diff --git a/misc/gpsd/Makefile b/misc/gpsd/Makefile index 65778d4cced..d07fb1a7b49 100644 --- a/misc/gpsd/Makefile +++ b/misc/gpsd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.32 2010/04/24 20:18:39 naddy Exp $ +# $OpenBSD: Makefile,v 1.33 2010/05/11 18:36:13 dcoppa Exp $ COMMENT-main= service daemon that monitors one or more GPSes COMMENT-motif= motif-based test apps using gpsd @@ -7,10 +7,10 @@ COMMENT-python= python bindings for gpsd VERSION= 2.38 DISTNAME= gpsd-${VERSION} -PKGNAME-main= gpsd-${VERSION}p0 -PKGNAME-motif= gpsd-motif-${VERSION}p3 +PKGNAME-main= gpsd-${VERSION}p1 +PKGNAME-motif= gpsd-motif-${VERSION}p4 PKGNAME-php= gpsd-php-${VERSION} -PKGNAME-python= gpsd-python-${VERSION}p1 +PKGNAME-python= gpsd-python-${VERSION}p2 SHARED_LIBS= gps 18.0 CATEGORIES= misc geo @@ -59,7 +59,7 @@ CONFIGURE_ARGS+= --disable-python .else MULTI_PACKAGES+= -python MODULES= lang/python -LIB_DEPENDS-python= gps::misc/gpsd +RUN_DEPENDS-python= ::misc/gpsd WANTLIB-python= RUN_DEPENDS-main= RUN_DEPENDS-motif= @@ -73,10 +73,16 @@ PKG_ARCH-php= * RUN_DEPENDS-php= :php5-gd-*:www/php5/extensions,-gd PREFIX-php= /var/www/ +PYTHON_SCRIPTS= gpsprof gps.py gpsfake gpscat + +pre-configure: +.for file in ${PYTHON_SCRIPTS} + perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' ${WRKSRC}/${file} +.endfor + post-install: ${INSTALL_DATA_DIR} ${WRKINST}/var/www/gpsd ${INSTALL_SCRIPT} ${WRKSRC}/gpsd.php ${WRKINST}/var/www/gpsd ${INSTALL_DATA} ${WRKSRC}/gpsd_config.h ${PREFIX}/include .include - diff --git a/misc/gpsd/pkg/PLIST-main b/misc/gpsd/pkg/PLIST-main index a898d657818..9dda41b08c4 100644 --- a/misc/gpsd/pkg/PLIST-main +++ b/misc/gpsd/pkg/PLIST-main @@ -1,13 +1,15 @@ -@comment $OpenBSD: PLIST-main,v 1.5 2008/04/16 06:53:35 ckuethe Exp $ +@comment $OpenBSD: PLIST-main,v 1.6 2010/05/11 18:36:13 dcoppa Exp $ +@conflict gpsd-python-<=2.38p1 @newuser _gpsd:551:dialer::GPS server:/nonexistent:/sbin/nologin %%SHARED%% -bin/cgps -bin/cgpxlogger -bin/gpsctl -bin/gpsflash -bin/gpspipe -bin/rtcmdecode -bin/sirfmon +@bin bin/cgps +@bin bin/cgpxlogger +@bin bin/gpsctl +@bin bin/gpsdlcdd +@bin bin/gpsflash +@bin bin/gpspipe +@bin bin/rtcmdecode +@bin bin/sirfmon include/gps.h include/gpsd.h include/gpsd_config.h @@ -20,16 +22,15 @@ lib/pkgconfig/libgpsd.pc @man man/man1/cgps.1 @man man/man1/cgpxlogger.1 @man man/man1/gps.1 +@man man/man1/gpsctl.1 @man man/man1/gpsflash.1 -@man man/man1/gpscat.1 @man man/man1/gpspipe.1 @man man/man1/rtcmdecode.1 @man man/man1/sirfmon.1 -@man man/man1/xgps.1 @man man/man3/libgps.3 @man man/man3/libgpsd.3 @man man/man3/libgpsmm.3 @man man/man5/rtcm-104.5 @man man/man5/srec.5 @man man/man8/gpsd.8 -sbin/gpsd +@bin sbin/gpsd diff --git a/misc/gpsd/pkg/PLIST-motif b/misc/gpsd/pkg/PLIST-motif index 990ac0032aa..488b0a31270 100644 --- a/misc/gpsd/pkg/PLIST-motif +++ b/misc/gpsd/pkg/PLIST-motif @@ -1,4 +1,6 @@ -@comment $OpenBSD: PLIST-motif,v 1.2 2006/10/27 23:47:23 ckuethe Exp $ -bin/xgps -bin/xgpsspeed +@comment $OpenBSD: PLIST-motif,v 1.3 2010/05/11 18:36:13 dcoppa Exp $ +@conflict gpsd-<=2.38p0 +@bin bin/xgps +@bin bin/xgpsspeed +@man man/man1/xgps.1 @man man/man1/xgpsspeed.1 diff --git a/misc/gpsd/pkg/PLIST-python b/misc/gpsd/pkg/PLIST-python index 2a5b1dcf9bd..5f4b34eb8f0 100644 --- a/misc/gpsd/pkg/PLIST-python +++ b/misc/gpsd/pkg/PLIST-python @@ -1,4 +1,5 @@ -@comment $OpenBSD: PLIST-python,v 1.2 2008/04/16 06:53:35 ckuethe Exp $ +@comment $OpenBSD: PLIST-python,v 1.3 2010/05/11 18:36:13 dcoppa Exp $ +@conflict gpsd-<=2.38p0 bin/gpscat bin/gpsfake bin/gpsprof @@ -7,9 +8,14 @@ lib/python${MODPY_VERSION}/site-packages/ lib/python${MODPY_VERSION}/site-packages/gps.py lib/python${MODPY_VERSION}/site-packages/gps.pyc lib/python${MODPY_VERSION}/site-packages/gps.pyo +lib/python${MODPY_VERSION}/site-packages/gpscap.py +lib/python${MODPY_VERSION}/site-packages/gpscap.pyc +lib/python${MODPY_VERSION}/site-packages/gpscap.pyo lib/python${MODPY_VERSION}/site-packages/gpsfake.py lib/python${MODPY_VERSION}/site-packages/gpsfake.pyc lib/python${MODPY_VERSION}/site-packages/gpsfake.pyo -@man man/man1/gpsctl.1 +lib/python${MODPY_VERSION}/site-packages/gpslib.so +lib/python${MODPY_VERSION}/site-packages/gpspacket.so +@man man/man1/gpscat.1 @man man/man1/gpsfake.1 @man man/man1/gpsprof.1