delete old package
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2187 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
be20cedaf3
commit
3808365712
@ -1,184 +0,0 @@
|
||||
# ChangeLog for sci-geosciences/gpsd
|
||||
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.34 2008/08/06 17:56:52 ulm Exp $
|
||||
|
||||
08 Dec 2008; Mario Fetka <mario.fetka@gmail.com> ChangeLog:
|
||||
delete - dir
|
||||
|
||||
06 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
|
||||
Add USE flag description to metadata wrt GLEP 56.
|
||||
|
||||
27 Jun 2008; Ulrich Mueller <ulm@gentoo.org> gpsd-2.32.ebuild,
|
||||
gpsd-2.33-r1.ebuild, gpsd-2.34-r1.ebuild, gpsd-2.36.ebuild,
|
||||
gpsd-2.37.ebuild:
|
||||
Change dependency from virtual/motif to x11-libs/openmotif, bug 224749.
|
||||
|
||||
*gpsd-2.37 (02 Jun 2008)
|
||||
|
||||
02 Jun 2008; Hanno Boeck <hanno@gentoo.org> +gpsd-2.37.ebuild:
|
||||
Version bump, removed autotools-calls, not needed when not patching
|
||||
anything, removed flag-o-matic (not called anywhere), re-enable test
|
||||
(works for me).
|
||||
|
||||
17 May 2008; Steve Arnold <nerdboy@gentoo.org> gpsd-2.34-r1.ebuild:
|
||||
Applying updates from bug #211456 due to device breakage in 2.36 (no
|
||||
response on bug).
|
||||
|
||||
01 Mar 2008; Steve Arnold <nerdboy@gentoo.org> gpsd-2.36.ebuild:
|
||||
Cleaned up minimal use logic and updated for bug #211456; updated version
|
||||
of 2.34-r1 waiting for user testing.
|
||||
|
||||
*gpsd-2.36 (23 Feb 2008)
|
||||
|
||||
23 Feb 2008; Steve Arnold <nerdboy@gentoo.org> +files/99-gpsd-usb.rules,
|
||||
files/gpsd.conf, +gpsd-2.36.ebuild:
|
||||
Updated to latest version and new udev rules (closes bug #210079). Note
|
||||
the new rules supercede the older ones (but the older ones were not
|
||||
installed by default anyway). The gpsd script is still installed
|
||||
under /etc/hotplug but it only depends on udev now.
|
||||
|
||||
22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; gpsd-2.32.ebuild,
|
||||
gpsd-2.33-r1.ebuild, gpsd-2.34-r1.ebuild:
|
||||
Drop virtual/x11 references.
|
||||
|
||||
*gpsd-2.34-r1 (11 Jun 2007)
|
||||
|
||||
11 Jun 2007; Steve Arnold <nerdboy@gentoo.org> files/40-usb-serial.rules,
|
||||
files/gpsd.init, -gpsd-2.34.ebuild, +gpsd-2.34-r1.ebuild:
|
||||
updated dbus deps and init scripts for bugs 180348 and 181250
|
||||
|
||||
18 Jan 2007; Steve Arnold <nerdboy@gentoo.org> gpsd-2.34.ebuild:
|
||||
Added missing include file (bug 162361) and fixed up einfo.
|
||||
|
||||
14 Jan 2007; Steve Arnold <nerdboy@gentoo.org> files/gpsd.conf,
|
||||
files/gpsd.init:
|
||||
Reverted to strict config setup, since gpsd requires the device parameter
|
||||
when using the init script to start gpsd with an existing device (even a
|
||||
usb device).
|
||||
|
||||
*gpsd-2.34 (14 Jan 2007)
|
||||
|
||||
14 Jan 2007; Steve Arnold <nerdboy@gentoo.org> files/gpsd.conf,
|
||||
files/gpsd.init, +gpsd-2.34.ebuild:
|
||||
Version bump with new devices and use flags, plus streamlined config and
|
||||
minimal install option (disable other use flags and enable minimal).
|
||||
|
||||
08 Jan 2007; Danny van Dyk <kugelfang@gentoo.org> -gpsd-2.33.ebuild:
|
||||
QA: Removed unused versions.
|
||||
|
||||
05 Nov 2006; Steve Arnold <nerdboy@gentoo.org> files/gpsd.conf:
|
||||
Corrected path in config file (only affects non-usb usage).
|
||||
|
||||
24 Oct 2006; Steve Arnold <nerdboy@gentoo.org> files/gpsd.init,
|
||||
gpsd-2.33-r1.ebuild:
|
||||
Updated with USE flag for TNT hardware support (it's the only one that's
|
||||
default disabled) and init script change (bugs 144059 and 150141).
|
||||
|
||||
31 Aug 2006; Matthias Schwarzott <zzam@gentoo.org> ChangeLog:
|
||||
Fixed double-utf8 encoding, see bug #125288.
|
||||
|
||||
*gpsd-2.33-r1 (14 Aug 2006)
|
||||
|
||||
14 Aug 2006; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+files/gpsd-2.33-duplicate-device-add-hang.patch,
|
||||
+files/gpsd-2.33-hotplug-background-fix.patch, +gpsd-2.33-r1.ebuild:
|
||||
Fix bug #132288 and also two other hotplug issues that I personally ran
|
||||
into. The patches have been submitted upstream.
|
||||
|
||||
18 Jul 2006; Steve Arnold <nerdboy@gentoo.org> -gpsd-2.31.ebuild,
|
||||
gpsd-2.32.ebuild:
|
||||
Stable bump, removed old version due to broken Garmin driver.
|
||||
|
||||
*gpsd-2.33 (08 Jul 2006)
|
||||
|
||||
08 Jul 2006; Steve Arnold <nerdboy@gentoo.org> +gpsd-2.33.ebuild:
|
||||
updated to latest upstream release and added a couple USE flags
|
||||
|
||||
05 Jul 2006; Michael Sterrett <mr_bones_@gentoo.org> -gpsd-2.30-r1.ebuild:
|
||||
clean old dep-broken ebuild
|
||||
|
||||
23 June 2006; Tom Gall <tgall@gentoo.org> gpsd-2.31.ebuild:
|
||||
stable on ppc64
|
||||
|
||||
*gpsd-2.32 (27 May 2006)
|
||||
|
||||
27 May 2006; Steve Arnold <nerdboy@gentoo.org> gpsd-2.30-r1.ebuild,
|
||||
gpsd-2.31.ebuild, +gpsd-2.32.ebuild:
|
||||
Stable bump for older versions, added latest version, and reverted
|
||||
the socket dir change.
|
||||
|
||||
08 May 2006; Steve Arnold <nerdboy@gentoo.org> files/gpsd.conf,
|
||||
files/gpsd.init, gpsd-2.30-r1.ebuild, gpsd-2.31.ebuild:
|
||||
Updated with workaround for bug 132288
|
||||
|
||||
24 Feb 2006; Steve Arnold <nerdboy@gentoo.org> gpsd-2.31.ebuild:
|
||||
updated dbus depend atom
|
||||
|
||||
20 Feb 2006; Steve Arnold <nerdboy@gentoo.org> gpsd-2.30-r1.ebuild,
|
||||
gpsd-2.31.ebuild:
|
||||
updated SRC_URI until berlios fixes their dorked up downloads
|
||||
|
||||
*gpsd-2.31 (20 Feb 2006)
|
||||
*gpsd-2.30-r1 (20 Feb 2006)
|
||||
|
||||
20 Feb 2006; Steve Arnold <nerdboy@gentoo.org> -gpsd-2.30.ebuild,
|
||||
+gpsd-2.30-r1.ebuild, +gpsd-2.31.ebuild, -gpsd-2.29.ebuild:
|
||||
Updated for modular X and added latest release (2.31 finally uses
|
||||
newer dbus API). Closes bug #122512.
|
||||
|
||||
15 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> gpsd-2.29.ebuild,
|
||||
gpsd-2.30.ebuild:
|
||||
Added RESTRICT test as the tests seem to be broken, closes bug 118585.
|
||||
|
||||
16 Dec 2005; Diego Pettenò <flameeyes@gentoo.org> gpsd-2.30.ebuild:
|
||||
Remove --with-gnu-ld option, bug #108386.
|
||||
|
||||
*gpsd-2.30 (01 Oct 2005)
|
||||
|
||||
01 Oct 2005; Steve Arnold <nerdboy@gentoo.org>
|
||||
-files/gpsd-2.25-SiRF.patch, -files/gpsd-2.25-y-format.patch,
|
||||
-files/gpsd-2.26-dbus.patch, -files/gpsd-2.26-python.patch,
|
||||
-gpsd-2.25-r1.ebuild, -gpsd-2.26.ebuild, gpsd-2.29.ebuild,
|
||||
+gpsd-2.30.ebuild:
|
||||
version bump, fix for bug #107147, and cleanup of old ebuilds
|
||||
|
||||
20 Sep 2005; Steve Arnold <nerdboy@gentoo.org> gpsd-2.25-r1.ebuild,
|
||||
gpsd-2.26.ebuild, gpsd-2.29.ebuild:
|
||||
added additional LDFLAGS to fix bug #106330 (fix submitted by Morgan
|
||||
Collins <sirmorcant@morcant.org>)
|
||||
|
||||
*gpsd-2.29 (06 Sep 2005)
|
||||
*gpsd-2.25-r1 (06 Sep 2005)
|
||||
|
||||
06 Sep 2005; Steve Arnold <nerdboy@gentoo.org>
|
||||
+files/gpsd-2.25-SiRF.patch, -gpsd-2.25.ebuild, +gpsd-2.25-r1.ebuild,
|
||||
gpsd-2.26.ebuild, +gpsd-2.29.ebuild:
|
||||
fixed dbus depends and added new version
|
||||
|
||||
20 Aug 2005; Olivier Fisette <ribosome@gentoo.org> gpsd-2.26.ebuild:
|
||||
Depend on dbus version 0.23.4 or later (fixes bug #102049).
|
||||
|
||||
*gpsd-2.26 (08 Aug 2005)
|
||||
|
||||
08 Aug 2005; Steve Arnold <nerdboy@gentoo.org>
|
||||
+files/gpsd-2.26-dbus.patch, +files/gpsd-2.26-python.patch,
|
||||
+gpsd-2.26.ebuild:
|
||||
slightly updated, but hotplug still doesn't quite work right
|
||||
|
||||
02 Jun 2005; Olivier Fisette <ribosome@gentoo.org> gpsd-2.25.ebuild:
|
||||
Use "virtual/motif" instead of "x11-libs/openmotif".
|
||||
|
||||
*gpsd-2.25 (28 May 2005)
|
||||
|
||||
28 May 2005; Steve Arnold <nerdboy@gentoo.org> +files/40-usb-serial.rules,
|
||||
+files/gpsd-2.25-y-format.patch, +files/gpsd.conf, +files/gpsd.init,
|
||||
+metadata.xml, +gpsd-2.25.ebuild:
|
||||
added esr's patch for Y format messages, updated the einfo, and cleaned
|
||||
up the arch stuff a bit
|
||||
|
||||
*gpsd-2.25 (28 May 2005)
|
||||
|
||||
28 May 2005; Steve Arnold <nerdboy@gentoo.org> +files/40-usb-serial.rules,
|
||||
+files/gpsd.conf, +files/gpsd.init, +metadata.xml, +gpsd-2.25.ebuild:
|
||||
adding current version of gpsd (most other gps daemons are dead now)
|
||||
|
@ -1,10 +0,0 @@
|
||||
AUX 40-usb-serial.rules 213 RMD160 f29e28c0ea6e349811d26676da9d9eea56dfb167 SHA1 7afbf73c4deda1f247cc4256bfd0a1cf08ec8a1c SHA256 39e131d15c59fcf23e946309a5aef91b5cbe515d2902d74aac87eeea2802c74a
|
||||
AUX 99-gpsd-usb.rules 267 RMD160 711e223001aa060558c5027842bf15a70f6dae9e SHA1 4a3d43b732306b5b5e5e9a2d316894c6da17d552 SHA256 2ffba7431b8b325e0601058c93296719c10f549dd21882e0b2abba45e778995f
|
||||
AUX gpsd-2.33-duplicate-device-add-hang.patch 1094 RMD160 651375eacec543581266b3bfbf996ee31f4bbc03 SHA1 b00cd23f00bdd24280664c8a38efa752838909fe SHA256 504784c891073fa8825704c9e94598fceb1c95c0750566e230ace19e7c777b83
|
||||
AUX gpsd-2.33-hotplug-background-fix.patch 2231 RMD160 1b5d0326501627ec99dd08fb10a2b0eaed2f69e1 SHA1 9ba7b5a3f802d12527ad6937121027a41ecccbce SHA256 acf258d1b15fda4aa303105a62807d28cde1173817a7e46ad719be479cf28a33
|
||||
AUX gpsd.conf 1067 RMD160 8447ea231556079586993b51836da40618b8b185 SHA1 e25bc5aa7acd239dc28fc850ab8debcdd55e8f59 SHA256 ac7e21d444926fe37377b8a6ed61773d17bf4c1faafe1474dee3e6b8d578e833
|
||||
AUX gpsd.init 894 RMD160 44c6eba4d7e81fb7226e0432a2eba2ab30988d8a SHA1 3bc473dcca4ab4695ca68e679df63b949d974197 SHA256 7c5ade04f6ea215fcdb7cbe36fce2570568a7eb3795e874520983afe58193c82
|
||||
DIST gpsd-2.37.tar.gz 712943 RMD160 72387ef3c8da39ed1a1dffa9aecfff1622023fcc SHA1 5bf4e1db9e570cc14b70bd0cf902926f96131ace SHA256 8860e61edc26f0665ad6ea0b34be4e3fd2cc7c51c5fd63b25c857a1870e8e137
|
||||
EBUILD gpsd-2.37-r1.ebuild 4391 RMD160 abb5892b31c2f1ea950ee6ded3c8f48226e751f4 SHA1 8ea7dea954415954ab39a92d786f06b595e5e24b SHA256 059a8f2c17fa50077bb85f7b98f24de64799a91fdc1e798f2fe3529a2866538f
|
||||
MISC ChangeLog 7159 RMD160 f876a8cf7509dff8ceb5f7771fab1b48bcedf403 SHA1 5c1bb9d6f8b7133b543c6fb8997fab205f5aaab7 SHA256 b6b52daf3503512016262f0b4cfa4899f110c52f70b9033be1b36f05fc5ce94b
|
||||
MISC metadata.xml 725 RMD160 43552fdec3ce155eaf18eaec511817d7c339934f SHA1 06a4dc2f0ba9a85fcdccfb5184939e8b677d4789 SHA256 f9e74c40c24f4dc61c5d17088e3208f8b3035f71e85c6434df48eb97f4825a71
|
@ -1,4 +0,0 @@
|
||||
# Sample udev rule for ttyUSB devices used by cheap GPS hardware (for use with
|
||||
# gpsd) such as a PL2303 USB-Serial adapter.
|
||||
|
||||
KERNEL=="ttyUSB[0-9]*", NAME="tts/USB%n", SYMLINK="ttyUSB%n", GROUP="tty", MODE="0660"
|
@ -1,9 +0,0 @@
|
||||
# udev rules for the gpsd USB hotplugging (without hotplug)
|
||||
|
||||
SUBSYSTEM!="tty", GOTO="gpsd-usb_rules_end"
|
||||
ACTION!="add", GOTO="gpsd-usb_rules_end"
|
||||
|
||||
KERNEL=="ttyUSB[0-9]*", SYMLINK="gps%n", RUN+="/etc/hotplug/usb/gpsd.hotplug add $root/%k"
|
||||
|
||||
LABEL="gpsd-usb_rules_end"
|
||||
|
@ -1,26 +0,0 @@
|
||||
If you try to add the same device twice with the hotplug script, gpsd does not
|
||||
send any error back to the script, leading to it waiting forever on recv(), and
|
||||
blocking gpsd from progressing in it's select loop.
|
||||
|
||||
This patch makes the daemon write back an error to the control socket (in
|
||||
addition the the normal debug output), so that the hotplug script does not
|
||||
block for the socket, and everything proceeds much better.
|
||||
|
||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
||||
|
||||
diff -Nuar --exclude '*~' gpsd-2.33.orig/gpsd.c gpsd-2.33/gpsd.c
|
||||
--- gpsd-2.33.orig/gpsd.c 2006-06-09 05:34:09.000000000 -0700
|
||||
+++ gpsd-2.33/gpsd.c 2006-08-13 15:42:25.152204904 -0700
|
||||
@@ -1048,9 +1048,10 @@
|
||||
(void)write(sfd, "ERROR\n", 6);
|
||||
} else if (buf[0] == '+') {
|
||||
p = snarfline(buf+1, &stash);
|
||||
- if (find_device(stash))
|
||||
+ if (find_device(stash)) {
|
||||
gpsd_report(1,"<= control(%d): %s already active \n", sfd, stash);
|
||||
- else {
|
||||
+ (void)write(sfd, "ERROR\n", 6);
|
||||
+ } else {
|
||||
gpsd_report(1,"<= control(%d): adding %s \n", sfd, stash);
|
||||
if (open_device(stash))
|
||||
(void)write(sfd, "OK\n", 3);
|
@ -1,54 +0,0 @@
|
||||
In recent versions of udev, the gpsd script runs in series with the task that
|
||||
creates the real /dev/ttyUSB0 device node. Unfortuntely, the gpsd script runs
|
||||
BEFORE the creation of the node, and the node is not created until after you
|
||||
kill the gpsd script, because the gpsd script waits forever for the node to
|
||||
appear.
|
||||
|
||||
This is a race condition, and is best fixed by running the actual wait/hotplug
|
||||
portion in the background.
|
||||
|
||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
||||
|
||||
diff -Nuar --exclude '*~' gpsd-2.33.orig/gpsd.hotplug gpsd-2.33/gpsd.hotplug
|
||||
--- gpsd-2.33.orig/gpsd.hotplug 2005-06-27 11:53:00.000000000 -0700
|
||||
+++ gpsd-2.33/gpsd.hotplug 2006-08-13 18:35:03.382383884 -0700
|
||||
@@ -56,7 +56,7 @@
|
||||
return action
|
||||
|
||||
def hotplug(action, devpath):
|
||||
- #syslog.syslog("ACTION=%s" % action)
|
||||
+ #syslog.syslog("ACTION=%s DEVPATH=%s" % (action,devpath))
|
||||
if not devpath:
|
||||
syslog.syslog("No device")
|
||||
else:
|
||||
@@ -88,16 +88,18 @@
|
||||
return
|
||||
|
||||
if __name__ == '__main__':
|
||||
- syslog.openlog('gpsd.hotplug', 0, syslog.LOG_DAEMON)
|
||||
- try:
|
||||
- if len(sys.argv) == 1: # Called as hotplug script
|
||||
- hotplug(os.getenv("ACTION"), os.getenv("DEVPATH"))
|
||||
- else: # Called by hand for testing
|
||||
- gpsd_control(sys.argv[1], sys.argv[2])
|
||||
- except:
|
||||
- (exc_type, exc_value, exc_traceback) = sys.exc_info()
|
||||
- syslog.syslog("gpsd.hotplug: exception %s yields %s" % (exc_type, exc_value))
|
||||
- raise exc_type, exc_value, exc_traceback
|
||||
- #syslog.syslog("gpsd.hotplug ends")
|
||||
- syslog.closelog()
|
||||
+ pid = os.fork()
|
||||
+ if not pid:
|
||||
+ syslog.openlog('gpsd.hotplug', 0, syslog.LOG_DAEMON)
|
||||
+ try:
|
||||
+ if len(sys.argv) == 1: # Called as hotplug script
|
||||
+ hotplug(os.getenv("ACTION"), os.getenv("DEVPATH"))
|
||||
+ else: # Called by hand for testing
|
||||
+ gpsd_control(sys.argv[1], sys.argv[2])
|
||||
+ except:
|
||||
+ (exc_type, exc_value, exc_traceback) = sys.exc_info()
|
||||
+ syslog.syslog("gpsd.hotplug: exception %s yields %s" % (exc_type, exc_value))
|
||||
+ raise exc_type, exc_value, exc_traceback
|
||||
+ #syslog.syslog("gpsd.hotplug ends")
|
||||
+ syslog.closelog()
|
||||
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2005 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/files/gpsd.conf,v 1.6 2008/02/23 20:03:59 nerdboy Exp $
|
||||
|
||||
# Config file for gpsd server
|
||||
|
||||
# ATTENTION: most of the configuration is done in the kernel device
|
||||
# setup for USB/Serial, Garmin, or other, however, without hotplug,
|
||||
# gpsd still needs to have the device set on the commandline.
|
||||
|
||||
# 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 INSTALL file 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 normal udev config provides the correct /dev/ttyUSB0 device.
|
||||
# The second example 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 GPS0 -F /var/run/gpsd.sock"
|
||||
|
@ -1,35 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/files/gpsd.init,v 1.6 2007/06/11 03:04:29 nerdboy Exp $
|
||||
|
||||
# You can use this init script to manage a serial port GPS or other
|
||||
# non-hotplug device (or any device for that matter). By design,
|
||||
# USB devices should use the hotplug script instead.
|
||||
|
||||
depend() {
|
||||
after serial hotplug dbus bluetooth
|
||||
before ntpd
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ -z "${GPS_DEV}" ]; then
|
||||
eerror "You must define GPS_DEV in /etc/conf.d/gpsd."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
ebegin "Starting gpsd"
|
||||
touch /var/run/gpsd.pid
|
||||
/usr/sbin/gpsd ${GPSD_OPTS} ${GPS_DEV}
|
||||
eend $? "Failed to start gpsd"
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping gpsd"
|
||||
killall -q gpsd >/dev/null
|
||||
eend $? "Failed to stop gpsd"
|
||||
rm -f /var/run/gpsd.pid
|
||||
}
|
@ -1,155 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.37.ebuild,v 1.2 2008/06/27 10:31:15 ulm Exp $
|
||||
|
||||
inherit eutils distutils
|
||||
|
||||
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients."
|
||||
HOMEPAGE="http://gpsd.berlios.de/"
|
||||
SRC_URI="mirror://berlios/gpsd/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~arm ~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
IUSE="dbus italk itrax minimal ntp python usb X"
|
||||
# tnt support is broken in this version - add tntc back when fixed
|
||||
|
||||
RDEPEND="X? (
|
||||
x11-libs/libXmu
|
||||
x11-libs/libXext
|
||||
x11-libs/libXp
|
||||
x11-libs/libX11
|
||||
x11-libs/libXt
|
||||
x11-libs/libSM
|
||||
x11-libs/libICE
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXaw
|
||||
x11-libs/openmotif
|
||||
)
|
||||
python? ( dev-lang/python )
|
||||
|
||||
dbus? ( >=sys-apps/dbus-0.94
|
||||
>=dev-libs/glib-2.6
|
||||
dev-libs/dbus-glib )
|
||||
ntp? ( net-misc/ntp )
|
||||
usb? ( virtual/dev-manager )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
X? (
|
||||
x11-proto/xproto
|
||||
x11-proto/xextproto
|
||||
)
|
||||
!minimal? (
|
||||
dev-libs/libxslt
|
||||
sys-libs/ncurses
|
||||
)"
|
||||
|
||||
src_compile() {
|
||||
|
||||
local my_conf="--enable-shared --with-pic --enable-static \
|
||||
--disable-garmin --disable-garmintxt"
|
||||
# Garmin support is broken in this version
|
||||
|
||||
use python && distutils_python_version
|
||||
|
||||
if use ntp; then
|
||||
my_conf="${my_conf} --enable-ntpshm --enable-pps"
|
||||
else
|
||||
my_conf="${my_conf} --disable-ntpshm --disable-pps"
|
||||
fi
|
||||
|
||||
if use minimal; then
|
||||
local max_clients="5"
|
||||
local max_devices="2"
|
||||
if ! use ntp; then
|
||||
my_conf="${my_conf} --disable-pps"
|
||||
fi
|
||||
my_conf="${my_conf} --enable-squelch --without-x \
|
||||
--enable-max-devices=${max_devices} \
|
||||
--enable-max-clients=${max_clients}"
|
||||
|
||||
WITH_XSLTPROC=no WITH_XMLTO=no econf ${my_conf} \
|
||||
$(use_enable dbus) $(use_enable italk) \
|
||||
$(use_enable itrax) $(use_enable python) \
|
||||
|| die "econf failed"
|
||||
else
|
||||
econf ${my_conf} $(use_enable dbus) $(use_enable italk) \
|
||||
$(use_enable itrax) $(use_enable python) $(use_with X x) \
|
||||
|| die "econf failed"
|
||||
fi
|
||||
# Support for the TNT digital compass is currently broken
|
||||
# $(use_enable tntc tnt)
|
||||
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
make DESTDIR="${D}" install
|
||||
|
||||
if use usb ; then
|
||||
insinto /etc/hotplug/usb
|
||||
doins gpsd.usermap
|
||||
exeinto /etc/hotplug/usb
|
||||
doexe gpsd.hotplug
|
||||
insinto /etc/udev/rules.d
|
||||
doins "${FILESDIR}"/99-gpsd-usb.rules
|
||||
keepdir /var/run/usb # needed for REMOVER
|
||||
else
|
||||
newconfd "${FILESDIR}"/gpsd.conf gpsd
|
||||
newinitd "${FILESDIR}"/gpsd.init gpsd
|
||||
fi
|
||||
|
||||
if use X && ! use minimal ; then
|
||||
insinto /etc/X11/app-defaults
|
||||
newins xgps.ad Xgps
|
||||
newins xgpsspeed.ad Xgpsspeed
|
||||
else
|
||||
rm "${D}usr/share/man/man1/xgpsspeed.1.bz2" \
|
||||
"${D}usr/share/man/man1/xgps.1.bz2"
|
||||
fi
|
||||
|
||||
diropts "-m0644"
|
||||
dobin logextract
|
||||
|
||||
if use python ; then
|
||||
exeinto /usr/$(get_libdir)/python${PYVER}/site-packages
|
||||
doexe gps.py gpsfake.py gpspacket.so
|
||||
fi
|
||||
|
||||
if use minimal; then
|
||||
doman gpsctl.1 gpsflash.1 gpspipe.1 gpsd.8 gps.1
|
||||
use python && doman gpsprof.1 gpsfake.1 gpscat.1
|
||||
fi
|
||||
|
||||
dodoc INSTALL README TODO
|
||||
|
||||
# add missing include file (see bug #162361)
|
||||
insinto /usr/include
|
||||
doins gpsd_config.h
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo ""
|
||||
einfo "This version of gpsd has broken the support for the TNT compass"
|
||||
einfo "and Garmin so they are disabled. If you need it, stay with the"
|
||||
einfo "previous version for now. The minimal flag now removes X and"
|
||||
einfo "enables the embedded device (ie, small footprint) support, but"
|
||||
einfo "you'll need to modify the ebuild if you need to change either"
|
||||
einfo "the number of clients or the number of devices. Although pps"
|
||||
einfo "is enabled, it still needs the correct kernel patches. All"
|
||||
einfo "recent versions of udev (>=udev-115 or so) should have correct"
|
||||
einfo "usb device detection and startup of gpsd (ie, without hotplug)."
|
||||
einfo ""
|
||||
einfo "Different GPS devices require the corresponding kernel options"
|
||||
einfo "to be enabled, such as USB_SERIAL_GARMIN, or a USB serial driver"
|
||||
einfo "for an adapter such as those that come with Deluo GPS units (eg,"
|
||||
einfo "USB_SERIAL_PL2303). Straight serial devices should always work,"
|
||||
einfo "even without udev/hotplug support."
|
||||
einfo ""
|
||||
einfo "Read the INSTALL doc for more information on supported hardware,"
|
||||
einfo "and make sure udev has the right group permissions set on the tty"
|
||||
einfo "devices if using USB (it should Do The Right Thing (TM))..."
|
||||
einfo ""
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sci-geosciences</herd>
|
||||
<maintainer>
|
||||
<email>nerdboy@gentoo.org</email>
|
||||
<name>Steve Arnold</name>
|
||||
</maintainer>
|
||||
<longdescription>Unbundled GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients, such as GPSDrive, kismet, and pygps.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name='italk'>Enable iTalk protocol support</flag>
|
||||
<flag name='itrax'>Enable iTrax hardware support</flag>
|
||||
<flag name='ntp'>Enable <pkg>net-misc/ntp</pkg> shared memory interface
|
||||
for GPS time</flag>
|
||||
<flag name='tntc'>Enable True North Technologies support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user