Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=575b28295fc5ede5059ed67c9de4ed6c4d4541cd

commit 575b28295fc5ede5059ed67c9de4ed6c4d4541cd
Author: James Buren <[email protected]>
Date:   Thu Jun 7 03:18:25 2012 -0500

gpsd-2.96bis-3-x86_64
* convert to systemd schema

diff --git a/source/xlib-extra/gpsd/FrugalBuild 
b/source/xlib-extra/gpsd/FrugalBuild
index 4f2cafb..8795161 100644
--- a/source/xlib-extra/gpsd/FrugalBuild
+++ b/source/xlib-extra/gpsd/FrugalBuild
@@ -3,18 +3,22 @@

pkgname=gpsd
pkgver=2.96bis
-pkgrel=2
+pkgrel=3
pkgdesc="GPS daemon and library to support USB/serial GPS devices"
archs=('i686' 'x86_64')
groups=('xlib-extra')
Finclude berlios
-source=($source rc.gpsd gpsd)
+source=($source rc.$pkgname $pkgname $pkgname.service)
depends=('lesstif' 'libxaw>=1.0.5' 'python>=2.7')
backup=('etc/sysconfig/gpsd')
sha1sums=('cf123255f9ec54d018642cf230cd05826e507a9e' \
'ec737984e550495119edf316d9efffc5770d2bba' \
-          '5ef21b7d58d4f7bf39feb4603ea90bc93d7293f0')
+          '0bdf1b2f8bd0674a3a6d49939712e2353f2ebfc9' \
+          '43ab62520f5b2aca0d44eba10bf89661b79c104e')
options=('force')
+_F_sysvinit_units=($pkgname)
+_F_systemd_units=($pkgname=)
+Finclude systemd

build() {
Fcd $pkgname-2.96
@@ -23,12 +27,15 @@ build() {
install -D gpsd.usermap "$Fdestdir/etc/hotplug/usb/gpsd.usermap" || Fdie
install -m755 gpsd.hotplug "$Fdestdir/etc/hotplug/usb/gpsd" || Fdie
mkdir -p $Fdestdir/var/run/gpsd
+       Ffile /etc/sysconfig/gpsd
Frcd2 gpsd
# systemd tmpfiles
Fmkdir /etc/tmpfiles.d
cat > $Fdestdir/etc/tmpfiles.d/gpsd.conf << EOF
d $Flocalstatedir/run/gpsd/ 0755 root root -
EOF
+       Ffile /lib/systemd/system/$pkgname.service
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/xlib-extra/gpsd/gpsd b/source/xlib-extra/gpsd/gpsd
index e0a0e77..3226428 100644
--- a/source/xlib-extra/gpsd/gpsd
+++ b/source/xlib-extra/gpsd/gpsd
@@ -18,6 +18,3 @@

# Use the following for gpsd with ntp instead of the older one below
#GPSD_OPTS="-n ${GPS_DEV}"
-
-GPSD_OPTS="-P /var/run/gpsd.pid -F /var/run/gpsd/gpsd.sock"
-
diff --git a/source/xlib-extra/gpsd/gpsd.service 
b/source/xlib-extra/gpsd/gpsd.service
new file mode 100644
index 0000000..4130685
--- /dev/null
+++ b/source/xlib-extra/gpsd/gpsd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=GPS Sensor Daemon
+After=syslog.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/gpsd
+ExecStart=/usr/sbin/gpsd -P /var/run/gpsd.pid -F /var/run/gpsd/gpsd.sock 
$GPSD_OPTS $GPS_DEV
+PIDFile=/var/run/gpsd.pid
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to