diff options
author | Steve Arnold <nerdboy@gentoo.org> | 2005-08-08 01:14:31 +0000 |
---|---|---|
committer | Steve Arnold <nerdboy@gentoo.org> | 2005-08-08 01:14:31 +0000 |
commit | 924458c47d2a447ba50964615627a25e2ac7e98c (patch) | |
tree | bd522a35499b7add7ff6298cdc0997abe743507f /sci-geosciences/gpsd/gpsd-2.26.ebuild | |
parent | removing old ebuild (diff) | |
download | gentoo-2-924458c47d2a447ba50964615627a25e2ac7e98c.tar.gz gentoo-2-924458c47d2a447ba50964615627a25e2ac7e98c.tar.bz2 gentoo-2-924458c47d2a447ba50964615627a25e2ac7e98c.zip |
minor version bump
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sci-geosciences/gpsd/gpsd-2.26.ebuild')
-rw-r--r-- | sci-geosciences/gpsd/gpsd-2.26.ebuild | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/sci-geosciences/gpsd/gpsd-2.26.ebuild b/sci-geosciences/gpsd/gpsd-2.26.ebuild new file mode 100644 index 000000000000..dbf98491ce48 --- /dev/null +++ b/sci-geosciences/gpsd/gpsd-2.26.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.26.ebuild,v 1.1 2005/08/08 01:14:31 nerdboy Exp $ + +inherit eutils libtool distutils + +DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients." +HOMEPAGE="http://gpsd.berlios.de/" +SRC_URI="http://download.berlios.de/gpsd/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64 ~ppc64 ~sparc ~arm" + +IUSE="X usb dbus" + +DEPEND="X? ( virtual/motif + virtual/x11 ) + usb? ( sys-apps/hotplug ) + dbus? ( sys-apps/dbus ) + dev-lang/python + app-text/xmlto + virtual/libc + sys-devel/gcc" + +src_unpack() { + unpack ${A} + cd ${S} + # remove patches for >=2.27 + epatch ${FILESDIR}/${P}-python.patch + epatch ${FILESDIR}/${P}-dbus.patch + elibtoolize +} + +src_compile() { + distutils_python_version + export MY_ECONF="--with-gnu-ld --with-pic $(use_with X x) $(use_enable dbus)" + econf ${MY_ECONF} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + cd ${S} + make DESTDIR=${D} install + + if use usb ; then +# sed -i -e "s/gpsd.hotplug/gpsd/g" gpsd.hotplug gpsd.usermap + insinto /etc/hotplug/usb + doins gpsd.usermap + exeinto /etc/hotplug/usb + doexe gpsd.hotplug + else + newconfd ${FILESDIR}/gpsd.conf gpsd + newinitd ${FILESDIR}/gpsd.init gpsd + fi + if use X ; then + insinto /usr/lib/X11/app-defaults + newins xgps.ad xgps + newins xgpsspeed.ad xgpsspeed + fi + dobin logextract + diropts "-m0644" + exeinto /usr/lib/python${PYVER}/site-packages + doexe gps.py + dodoc AUTHORS HACKING INSTALL README TODO ${FILESDIR}/40-usb-serial.rules +} + +pkg_postinst() { + einfo "To use hotplugging (USB devices) your kernel has to be compiled" + einfo "with CONFIG_HOTPLUG enabled and sys-apps/hotplug must be emerged" + einfo "(both usb and dbus support are optional)." + 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 hotplug support." + ewarn + ewarn "The current gpsd may not start correctly except when run manually" + ewarn "via sudo with wheel permissions (or directly as root using the" + ewarn "supplied init script). Depending on system configuration, hotplug" + ewarn "doesn't always get the right device permissions (we're working on" + ewarn "it). If your client connection shows no data when gpsd is started" + ewarn "via the normal hotplug action, then kill the existing gpsd process" + ewarn "and try starting it directly via something like:" + ewarn "sudo /usr/sbin/gpsd -p /dev/ttyUSB0" + ewarn "or whatever your device is. This will verify whether your device" + ewarn "is working or not." + ewarn + 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 + einfo "Finally, the default gpsd setup looks for /dev/ttyUSB0, in the" + einfo "case of the USB-serial adapter mentioned above. Depending on" + einfo "your default device scheme (ie, udev, devfs, static), you will" + einfo "need to create a device alias if the default name is different." + einfo "A udev rule file has been provided with an example rule in the" + einfo "docs directory. If the device names are correct, gpsd will" + einfo "start automatically when the GPS device is plugged in." +} |