From: frank Date: Tue, 17 Jan 2012 10:17:20 +0000 (+0100) Subject: committing changes in /etc after emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=080f2c337b88f7268fb4a93c86a9bfdb02938192;p=config%2Fbruni%2Fetc.git committing changes in /etc after emerge run Package changes: +sci-geosciences/gpsd-2.95-r1 --- diff --git a/.etckeeper b/.etckeeper index 4a84fa0b..ce9a822e 100755 --- a/.etckeeper +++ b/.etckeeper @@ -204,6 +204,7 @@ maybe chmod 0644 './conf.d/fsck' maybe chmod 0644 './conf.d/gem_server' 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/hwclock' maybe chmod 0644 './conf.d/ip6tables' @@ -772,6 +773,7 @@ maybe chmod 0755 './init.d/fsck' maybe chmod 0755 './init.d/gem_server' 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/hwclock' maybe chmod 0755 './init.d/ip6tables' diff --git a/conf.d/gpsd b/conf.d/gpsd new file mode 100644 index 00000000..b50bd46b --- /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 00000000..20f3809c --- /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} +}