Unbreak python scripts

Fix PLISTs

OK sthen@, ckuethe@ (MAINTAINER)
This commit is contained in:
dcoppa 2010-05-11 18:36:13 +00:00
parent a13310312d
commit a23b8ae1f8
4 changed files with 37 additions and 22 deletions

View File

@ -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-main= service daemon that monitors one or more GPSes
COMMENT-motif= motif-based test apps using gpsd COMMENT-motif= motif-based test apps using gpsd
@ -7,10 +7,10 @@ COMMENT-python= python bindings for gpsd
VERSION= 2.38 VERSION= 2.38
DISTNAME= gpsd-${VERSION} DISTNAME= gpsd-${VERSION}
PKGNAME-main= gpsd-${VERSION}p0 PKGNAME-main= gpsd-${VERSION}p1
PKGNAME-motif= gpsd-motif-${VERSION}p3 PKGNAME-motif= gpsd-motif-${VERSION}p4
PKGNAME-php= gpsd-php-${VERSION} PKGNAME-php= gpsd-php-${VERSION}
PKGNAME-python= gpsd-python-${VERSION}p1 PKGNAME-python= gpsd-python-${VERSION}p2
SHARED_LIBS= gps 18.0 SHARED_LIBS= gps 18.0
CATEGORIES= misc geo CATEGORIES= misc geo
@ -59,7 +59,7 @@ CONFIGURE_ARGS+= --disable-python
.else .else
MULTI_PACKAGES+= -python MULTI_PACKAGES+= -python
MODULES= lang/python MODULES= lang/python
LIB_DEPENDS-python= gps::misc/gpsd RUN_DEPENDS-python= ::misc/gpsd
WANTLIB-python= WANTLIB-python=
RUN_DEPENDS-main= RUN_DEPENDS-main=
RUN_DEPENDS-motif= RUN_DEPENDS-motif=
@ -73,10 +73,16 @@ PKG_ARCH-php= *
RUN_DEPENDS-php= :php5-gd-*:www/php5/extensions,-gd RUN_DEPENDS-php= :php5-gd-*:www/php5/extensions,-gd
PREFIX-php= /var/www/ 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: post-install:
${INSTALL_DATA_DIR} ${WRKINST}/var/www/gpsd ${INSTALL_DATA_DIR} ${WRKINST}/var/www/gpsd
${INSTALL_SCRIPT} ${WRKSRC}/gpsd.php ${WRKINST}/var/www/gpsd ${INSTALL_SCRIPT} ${WRKSRC}/gpsd.php ${WRKINST}/var/www/gpsd
${INSTALL_DATA} ${WRKSRC}/gpsd_config.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/gpsd_config.h ${PREFIX}/include
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -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 @newuser _gpsd:551:dialer::GPS server:/nonexistent:/sbin/nologin
%%SHARED%% %%SHARED%%
bin/cgps @bin bin/cgps
bin/cgpxlogger @bin bin/cgpxlogger
bin/gpsctl @bin bin/gpsctl
bin/gpsflash @bin bin/gpsdlcdd
bin/gpspipe @bin bin/gpsflash
bin/rtcmdecode @bin bin/gpspipe
bin/sirfmon @bin bin/rtcmdecode
@bin bin/sirfmon
include/gps.h include/gps.h
include/gpsd.h include/gpsd.h
include/gpsd_config.h include/gpsd_config.h
@ -20,16 +22,15 @@ lib/pkgconfig/libgpsd.pc
@man man/man1/cgps.1 @man man/man1/cgps.1
@man man/man1/cgpxlogger.1 @man man/man1/cgpxlogger.1
@man man/man1/gps.1 @man man/man1/gps.1
@man man/man1/gpsctl.1
@man man/man1/gpsflash.1 @man man/man1/gpsflash.1
@man man/man1/gpscat.1
@man man/man1/gpspipe.1 @man man/man1/gpspipe.1
@man man/man1/rtcmdecode.1 @man man/man1/rtcmdecode.1
@man man/man1/sirfmon.1 @man man/man1/sirfmon.1
@man man/man1/xgps.1
@man man/man3/libgps.3 @man man/man3/libgps.3
@man man/man3/libgpsd.3 @man man/man3/libgpsd.3
@man man/man3/libgpsmm.3 @man man/man3/libgpsmm.3
@man man/man5/rtcm-104.5 @man man/man5/rtcm-104.5
@man man/man5/srec.5 @man man/man5/srec.5
@man man/man8/gpsd.8 @man man/man8/gpsd.8
sbin/gpsd @bin sbin/gpsd

View File

@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST-motif,v 1.2 2006/10/27 23:47:23 ckuethe Exp $ @comment $OpenBSD: PLIST-motif,v 1.3 2010/05/11 18:36:13 dcoppa Exp $
bin/xgps @conflict gpsd-<=2.38p0
bin/xgpsspeed @bin bin/xgps
@bin bin/xgpsspeed
@man man/man1/xgps.1
@man man/man1/xgpsspeed.1 @man man/man1/xgpsspeed.1

View File

@ -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/gpscat
bin/gpsfake bin/gpsfake
bin/gpsprof 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.py
lib/python${MODPY_VERSION}/site-packages/gps.pyc lib/python${MODPY_VERSION}/site-packages/gps.pyc
lib/python${MODPY_VERSION}/site-packages/gps.pyo 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.py
lib/python${MODPY_VERSION}/site-packages/gpsfake.pyc lib/python${MODPY_VERSION}/site-packages/gpsfake.pyc
lib/python${MODPY_VERSION}/site-packages/gpsfake.pyo 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/gpsfake.1
@man man/man1/gpsprof.1 @man man/man1/gpsprof.1