]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
committing changes in /etc after emerge run
authorfrank <frank@bruni.home.brehm-online.com>
Tue, 17 Jan 2012 10:17:20 +0000 (11:17 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Tue, 17 Jan 2012 10:17:20 +0000 (11:17 +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 4a84fa0b209805e98d44224f119cf4a350a78ceb..ce9a822e16d438648fa6127671bbe9835cc0ba87 100755 (executable)
@@ -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 (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}
+}