From: fbrehm Date: Mon, 20 Feb 2012 23:06:50 +0000 (+0100) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=161818c520312ff576f56c0556cfac66cfba3e1f;p=config%2Fsamara%2Fetc.git committing changes in /etc after emerge run Package changes: +sci-geosciences/gpsd-2.95-r1 --- diff --git a/.etckeeper b/.etckeeper index 2c40ea3..4c1b9a6 100755 --- a/.etckeeper +++ b/.etckeeper @@ -201,6 +201,7 @@ maybe chmod 0644 './conf.d/g15daemon' maybe chmod 0644 './conf.d/g15stats' maybe chmod 0644 './conf.d/git-daemon' maybe chmod 0644 './conf.d/gpm' +maybe chmod 0644 './conf.d/gpsd' maybe chmod 0644 './conf.d/hostname' maybe chmod 0644 './conf.d/hsqldb' maybe chmod 0644 './conf.d/hwclock' @@ -825,6 +826,7 @@ maybe chmod 0755 './init.d/g15daemon' maybe chmod 0755 './init.d/g15stats' maybe chmod 0755 './init.d/git-daemon' maybe chmod 0755 './init.d/gpm' +maybe chmod 0755 './init.d/gpsd' maybe chmod 0755 './init.d/hostname' maybe chmod 0755 './init.d/hsqldb' maybe chmod 0755 './init.d/hwclock' diff --git a/conf.d/gpsd b/conf.d/gpsd new file mode 100644 index 0000000..b50bd46 --- /dev/null +++ b/conf.d/gpsd @@ -0,0 +1,8 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/files/gpsd.conf-2,v 1.1 2010/09/26 13:36:50 scarabeus Exp $ + +# Config file for gpsd server +GPSD_OPTIONS="" +DEVICES="" +GPSD_SOCKET="/var/run/gpsd.sock" diff --git a/init.d/gpsd b/init.d/gpsd new file mode 100755 index 0000000..20f3809 --- /dev/null +++ b/init.d/gpsd @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/files/gpsd.init-2,v 1.2 2010/09/30 23:07:55 swegener Exp $ + +depend() { + after dbus + before ntpd +} + +PIDFILE=/var/run/${SVCNAME}.pid +DAEMON=/usr/sbin/gpsd + +checkconfig() { + if [ -z "${GPSD_SOCKET}" ] && [ -z "${DEVICES}" ]; then + GPSD_SOCKET="/var/run/gpsd.sock" + fi + + if [ -n "${GPSD_SOCKET}" ]; then + GPSD_OPTIONS="${GPSD_OPTIONS} -F ${GPSD_SOCKET}" + fi +} + +start() { + checkconfig + ebegin "Starting gpsd" + + start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- \ + ${GPSD_OPTIONS} -P ${PIDFILE} ${DEVICES} + eend $? +} + +stop() { + ebegin "Stopping gpsd" + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile ${PIDFILE} + eend $? + rm -f ${PIDFILE} +}