[arch-commits] Commit in (8 files)
Andrea Scarpino
andrea at archlinux.org
Tue Aug 31 13:02:18 UTC 2010
Date: Tuesday, August 31, 2010 @ 09:02:17
Author: andrea
Revision: 89395
new kdeedu-marble dependence (FS#20601)
Added:
gpsd/
gpsd/repos/
gpsd/trunk/
gpsd/trunk/99-gpsd-usb.rules
gpsd/trunk/PKGBUILD
gpsd/trunk/gpsd
gpsd/trunk/gpsd.confd
gpsd/trunk/gpsd.install
-------------------+
99-gpsd-usb.rules | 19 +++++++++++++++++
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++
gpsd | 43 ++++++++++++++++++++++++++++++++++++++
gpsd.confd | 22 +++++++++++++++++++
gpsd.install | 6 +++++
5 files changed, 148 insertions(+)
Added: gpsd/trunk/99-gpsd-usb.rules
===================================================================
--- gpsd/trunk/99-gpsd-usb.rules (rev 0)
+++ gpsd/trunk/99-gpsd-usb.rules 2010-08-31 13:02:17 UTC (rev 89395)
@@ -0,0 +1,19 @@
+# udev rules for the gpsd USB hotplugging
+
+SUBSYSTEM!="tty", GOTO="gpsd-usb_rules_end"
+
+#ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd add $root/%k"
+#ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd remove $root/%k"
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd add $root/%k"
+ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd remove $root/%k"
+ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd add $root/%k"
+ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd remove $root/%k"
+ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd add $root/%k"
+ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd remove $root/%k"
+ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd add $root/%k"
+ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd remove $root/%k"
+#ATTRS{idVendor}=="", ATTRS{idProduct}=="", SUBSYSTEM=="tty", ACTION=="add", KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd add $root/%k"
+#ATTRS{idVendor}=="", ATTRS{idProduct}=="", SUBSYSTEM=="tty", ACTION=="remove", KERNEL=="ttyUSB[0-9]*", RUN+="/etc/hotplug/usb/gpsd remove $root/%k"
+
+LABEL="gpsd-usb_rules_end"
+
Added: gpsd/trunk/PKGBUILD
===================================================================
--- gpsd/trunk/PKGBUILD (rev 0)
+++ gpsd/trunk/PKGBUILD 2010-08-31 13:02:17 UTC (rev 89395)
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 24866 2010-08-29 07:19:22Z spupykin $
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
+# Contributor: Giacomo Rizzo <alt at free-os.it>
+
+pkgname=gpsd
+pkgver=2.95
+pkgrel=3
+pkgdesc="GPS daemon and library to support USB/serial GPS devices"
+arch=('i686' 'x86_64')
+url="http://gpsd.berlios.de"
+license=('GPL')
+depends=('lesstif' 'libxaw' 'python' 'pth' 'libusb1' 'qt')
+optdepends=('php: generate a PHP status page for your GPS'
+ 'php-gd: image support for the PHP status page')
+backup=('etc/conf.d/gpsd'
+ 'etc/udev/rules.d/99-gpsd-usb.rules')
+options=('!libtool' 'force')
+install="${pkgname}.install"
+source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'gpsd')
+md5sums=('12535a9ed9fecf9ea2c5bdc9840da5ae'
+ 'f929322fc4670543fcb36dafc7bb9e03')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # install python to the same DESTDIR given make
+ sed -i 's|--prefix=${prefix} # --root=$(DESTDIR)|--prefix=${prefix} --root=$(DESTDIR)|' Makefile.am Makefile.in
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # Our own udev-install since the Makefile uses absolute paths
+ # Original file names are [mostly] unmodified: useful to match process name in case of error
+ # Following the switch from hotplug to udev helper scripts now live in /lib/udev/ instead of /etc/hotplug/
+ sed -i 's|GPSD_OPTIONS=""|GPSD_OPTIONS="-P /var/run/gpsd.pid"|' packaging/deb/etc_default_gpsd
+ sed -i 's|"/var/run/gpsd.sock"|"/var/run/gpsd/gpsd.sock"|' packaging/deb/etc_default_gpsd
+ install -D -m644 "packaging/deb/etc_default_gpsd" "${pkgdir}/etc/conf.d/gpsd"
+
+ sed -i 's|Id: gpsd.rules|Id: 99-gpsd-usb.rules|' gpsd.rules
+ install -D -m644 "gpsd.rules" "${pkgdir}/etc/udev/rules.d/99-gpsd-usb.rules"
+
+ sed -i 's|/etc/default/gpsd|/etc/conf.d/gpsd|' gpsd.hotplug.wrapper
+ install -D -m755 gpsd.hotplug.wrapper "${pkgdir}/lib/udev/gpsd.hotplug.wrapper"
+
+ # Patch a path bug. Check to see if fixed in ensuing releases
+ sed -i 's|gpsdcmd = "gpsd %s|gpsdcmd = "/usr/sbin/gpsd %s|' gpsd.hotplug
+ install -D -m755 gpsd.hotplug "${pkgdir}/lib/udev/gpsd.hotplug"
+
+ install -D -m755 "${srcdir}/gpsd" "$pkgdir/etc/rc.d/gpsd"
+}
Added: gpsd/trunk/gpsd
===================================================================
--- gpsd/trunk/gpsd (rev 0)
+++ gpsd/trunk/gpsd 2010-08-31 13:02:17 UTC (rev 89395)
@@ -0,0 +1,43 @@
+#! /bin/sh
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+[ -f /etc/conf.d/gpsd ] && . /etc/conf.d/gpsd
+
+NAME=gpsd
+DAEMON=/usr/sbin/$NAME
+PID=$(pidof -o %PPID /usr/sbin/gpsd)
+
+case "$1" in
+ start)
+ stat_busy "Starting gpsd"
+ [ ! -d /var/run/gpsd ] && install -d /var/run/gpsd
+ [ -z "$PID" ] && "$DAEMON" ${GPSD_OPTIONS} -F ${GPSD_SOCKET} ${DEVICES}
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon gpsd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping gpsd"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm -f /var/run/$PID.pid &>/dev/null
+ rm_daemon gpsd
+ stat_done
+ fi
+ ;;
+
+ restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
Property changes on: gpsd/trunk/gpsd
___________________________________________________________________
Added: svn:executable
+ *
Added: gpsd/trunk/gpsd.confd
===================================================================
--- gpsd/trunk/gpsd.confd (rev 0)
+++ gpsd/trunk/gpsd.confd 2010-08-31 13:02:17 UTC (rev 89395)
@@ -0,0 +1,22 @@
+# 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...
+
+#export GPS_DEV="/dev/ttyUSB0"
+
+#export GPS_DEV="/dev/ttyS0
+
+# Use the following for gpsd with ntp instead of the older one below
+#export GPSD_OPTS="-n ${GPS_DEV}"
+
+export GPSD_OPTS="-P /var/run/gpsd.pid -F /var/run/gpsd/gpsd.sock"
Added: gpsd/trunk/gpsd.install
===================================================================
--- gpsd/trunk/gpsd.install (rev 0)
+++ gpsd/trunk/gpsd.install 2010-08-31 13:02:17 UTC (rev 89395)
@@ -0,0 +1,6 @@
+post_install() {
+ echo ">>>Note: the supplied gpsd udev rules are device-specific, so"
+ echo ">>>if your device isn't detected correctly, please use lsusb or"
+ echo ">>>another suitable tool to determine the proper device IDs and"
+ echo ">>>use the commented rules to fill in the blanks for your device."
+}
More information about the arch-commits
mailing list