diff options
Diffstat (limited to 'net/pygopherd')
-rw-r--r-- | net/pygopherd/Makefile | 10 | ||||
-rw-r--r-- | net/pygopherd/files/patch-setup.py | 2 | ||||
-rw-r--r-- | net/pygopherd/pkg-plist | 5 |
3 files changed, 6 insertions, 11 deletions
diff --git a/net/pygopherd/Makefile b/net/pygopherd/Makefile index 43d6fd96e6b8..067f84fa5a31 100644 --- a/net/pygopherd/Makefile +++ b/net/pygopherd/Makefile @@ -3,6 +3,7 @@ PORTNAME= pygopherd PORTVERSION= 2.0.16 +PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/ \ http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/old/ @@ -16,9 +17,6 @@ USE_PYDISTUTILS= yes PYDISTUTILS_PKGVERSION= 2.0.15 WRKSRC= ${WRKDIR}/${PORTNAME} -MAN8= pygopherd.8 - -NO_STAGE= yes post-patch: .for f in setup.py bin/pygopherd conf/pygopherd.conf doc/pygopherd.8 @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${f} @@ -27,11 +25,9 @@ post-patch: ${WRKSRC}/bin/pygopherd @${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} \ -e "s|/usr/bin/python2.2|${PYTHON_CMD}|g" - @${MV} ${WRKSRC}/conf/pygopherd.conf ${WRKSRC}/conf/pygopherd.conf-dist + @${MV} ${WRKSRC}/conf/pygopherd.conf ${WRKSRC}/conf/pygopherd.conf.sample post-install: - @${INSTALL_MAN} ${WRKSRC}/doc/${MAN8} ${MANPREFIX}/man/man8 - @[ -f ${PREFIX}/etc/pygopherd/pygopherd.conf ] || \ - ${CP} ${PREFIX}/etc/pygopherd/pygopherd.conf-dist ${PREFIX}/etc/pygopherd/pygopherd.conf + ${INSTALL_MAN} ${WRKSRC}/doc/pygopherd.8 ${STAGEDIR}${MANPREFIX}/man/man8 .include <bsd.port.mk> diff --git a/net/pygopherd/files/patch-setup.py b/net/pygopherd/files/patch-setup.py index 8e7ea6cc736e..6f9c890b08c8 100644 --- a/net/pygopherd/files/patch-setup.py +++ b/net/pygopherd/files/patch-setup.py @@ -5,7 +5,7 @@ packages = ['pygopherd', 'pygopherd.handlers', 'pygopherd.protocols'], scripts = ['bin/pygopherd'], - data_files = [ ('/etc/pygopherd', ['conf/pygopherd.conf', -+ data_files = [ ('%%PREFIX%%/etc/pygopherd', ['conf/pygopherd.conf-dist', ++ data_files = [ ('%%PREFIX%%/etc/pygopherd', ['conf/pygopherd.conf.sample', 'conf/mime.types'] ) ], license = pygopherd.version.license ) diff --git a/net/pygopherd/pkg-plist b/net/pygopherd/pkg-plist index f64ae90df88f..adafce19084b 100644 --- a/net/pygopherd/pkg-plist +++ b/net/pygopherd/pkg-plist @@ -1,8 +1,6 @@ bin/pygopherd etc/pygopherd/mime.types -@unexec if cmp -s %D/etc/pygopherd/pygopherd.conf %D/etc/pygopherd/pygopherd.conf-dist; then rm -f %D/etc/pygopherd/pygopherd.conf; fi -etc/pygopherd/pygopherd.conf-dist -@exec [ -f %B/pygopherd.conf ] || cp %B/%f %B/pygopherd.conf +@sample etc/pygopherd/pygopherd.conf.sample %%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.py %%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.pyc %%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.pyo @@ -132,6 +130,7 @@ etc/pygopherd/pygopherd.conf-dist %%PYTHON_SITELIBDIR%%/pygopherd/zipfile.py %%PYTHON_SITELIBDIR%%/pygopherd/zipfile.pyc %%PYTHON_SITELIBDIR%%/pygopherd/zipfile.pyo +man/man8/pygopherd.8.gz @dirrm %%PYTHON_SITELIBDIR%%/pygopherd/handlers @dirrm %%PYTHON_SITELIBDIR%%/pygopherd/protocols @dirrm %%PYTHON_SITELIBDIR%%/pygopherd |