Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6f7c861a9eb7db95aa7cdd7c8728bdbc4a783b07
commit 6f7c861a9eb7db95aa7cdd7c8728bdbc4a783b07 Author: bouleetbil <[email protected]> Date: Thu Jul 23 23:20:55 2009 +0200 gpsd-2.39-1-i686 *new package diff --git a/source/xlib-extra/gpsd/FrugalBuild b/source/xlib-extra/gpsd/FrugalBuild new file mode 100644 index 0000000..ab479ac --- /dev/null +++ b/source/xlib-extra/gpsd/FrugalBuild @@ -0,0 +1,28 @@ +# Compiling Time: 0.28 SBU +# Maintainer: bouleetbil <[email protected]> + +pkgname=gpsd +pkgver=2.39 +pkgrel=1 +pkgdesc="GPS daemon and library to support USB/serial GPS devices" +archs=('i686') +groups=('xlib-extra') +Finclude berlios +source=($source rc.gpsd gpsd) +depends=('lesstif' 'libxaw>=1.0.5' 'python>=2.6') +backup=('etc/sysconfig/gpsd') +sha1sums=('d3f33da9f8e789119366ec4781957eed118aa08f' \ + '51559045c787bcb0359778f5c8a2b8a1f330cee8' \ + '5ef21b7d58d4f7bf39feb4603ea90bc93d7293f0') + +build() { + Fcd + Fbuild + sed -i -e "s/gpsd.hotplug/gpsd/g" gpsd.hotplug gpsd.usermap || Fdie + 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 + Frcd2 gpsd +} + +# optimization OK diff --git a/source/xlib-extra/gpsd/gpsd b/source/xlib-extra/gpsd/gpsd new file mode 100644 index 0000000..e0a0e77 --- /dev/null +++ b/source/xlib-extra/gpsd/gpsd @@ -0,0 +1,23 @@ +# Config file for gpsd server + +# ATTENTION: most of the configuration is done in the kernel device +# setup for USB/Serial, Garmin, or other. + +# Set GPS_DEV to the device to be used by the gpsd server. +# This device must have the group tty and be writable (see +# the udev rule in the docs). + +# This example is for a Deluo GPS Serial/USB converter dongle, really +# a pl2303 chip - CONFIG_USB_SERIAL_PL2303 in modern 2.6 kernels. +# The udev rule provides the symlink below to /dev/tts/USB0 +# The second one is just a normal serial port... + +#GPS_DEV="/dev/ttyUSB0" + +#GPS_DEV="/dev/ttyS0 + +# 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/rc.gpsd b/source/xlib-extra/gpsd/rc.gpsd new file mode 100644 index 0000000..6923d69 --- /dev/null +++ b/source/xlib-extra/gpsd/rc.gpsd @@ -0,0 +1,51 @@ +#!/bin/bash + +# (c) 2009 bouleetbil <[email protected]> +# rc.sppechd for FrugalWare +# distributed under GPL License +# description: gpsd is a service daemon that mediates access to a GPS sensor + +# chkconfig: 2345 44 66 +# description: Starts and stops gpsd + +source /lib/initscripts/functions + +TEXTDOMAIN=speechd +TEXTDOMAINDIR=/lib/initscripts/messages +source /lib/initscripts/functions +daemon=$"gpsd" + +# Source gpsd configuration +if [ -f /etc/sysconfig/gpsd ] ; then + . /etc/sysconfig/gpsd +fi + +actions=(start stop) +NAME=gpsd +DAEMON=/usr/sbin/$NAME +PID=`pidof -o %PPID /usr/sbin/gpsd` + +rc_start() +{ + start_msg + if [ -z "$(eval $pid)" ]; then + [ -z "$PID" ] && $DAEMON ${GPSD_OPTS} ${GPS_DEV} + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ ! -z "$(eval $pid)" ] ;then + kill $(eval $pid) 2>/dev/null 1>/dev/null + rm -f /var/run/$PID.pid &>/dev/null + ok $? + else + ok 999 + fi +} + +rc_exec $1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
