]> Frank Brehm's Git Trees - config/samara/etc.git/commitdiff
committing changes in /etc after emerge run
authorfbrehm <fbrehm@samara.profitbricks.localdomain>
Mon, 20 Feb 2012 23:06:50 +0000 (00:06 +0100)
committerroot <root@samara.profitbricks.localdomain>
Mon, 20 Feb 2012 23:06:50 +0000 (00:06 +0100)
Package changes:
+sci-geosciences/gpsd-2.95-r1

.etckeeper
conf.d/gpsd [new file with mode: 0644]
init.d/gpsd [new file with mode: 0755]

index 2c40ea34825e5b4d5a1464b3f665886c9325e7d8..4c1b9a6c0c8912646ae14e939ee2611a682c29d8 100755 (executable)
@@ -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 (file)
index 0000000..b50bd46
--- /dev/null
@@ -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 (executable)
index 0000000..20f3809
--- /dev/null
@@ -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}
+}