ports/59984: [update orphaned port] net/pygopherd: update to 2.0.3
Clement Laforet
sheepkiller at cultdeadsheep.org
Fri Dec 5 21:40:20 UTC 2003
>Number: 59984
>Category: ports
>Synopsis: [update orphaned port] net/pygopherd: update to 2.0.3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 05 13:40:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Clement Laforet
>Release: FreeBSD 5.2-BETA i386
>Organization:
cotds.org
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.2-BETA FreeBSD 5.2-BETA #0: Fri Nov 28 21:23:08 CET 2003 clement at lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386
>Description:
- update pygopherd to 2.0.3
- preserve config file
>How-To-Repeat:
N/A.
>Fix:
--- pygopherd.diff begins here ---
? pygopherd/work
Index: pygopherd/Makefile
===================================================================
RCS file: /SERVICES/cvs/FreeBSD/ports/net/pygopherd/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- pygopherd/Makefile 3 Nov 2003 01:20:27 -0000 1.5
+++ pygopherd/Makefile 5 Dec 2003 21:36:10 -0000
@@ -7,9 +7,9 @@
#
PORTNAME= pygopherd
-PORTVERSION= 1.1.0
+PORTVERSION= 2.0.3
CATEGORIES= net python
-MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/old/
+MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
@@ -18,7 +18,7 @@
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+WRKSRC= ${WRKDIR}/${PORTNAME}
MAN8= pygopherd.8
@@ -30,8 +30,11 @@
${WRKSRC}/bin/pygopherd
@${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} \
-e "s|/usr/bin/python2.2|${SETENV} python|g"
+ @${MV} ${WRKSRC}/conf/pygopherd.conf ${WRKSRC}/conf/pygopherd.conf-dist
post-install:
- ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
+ @${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
+ @[ -f ${PREFIX}/etc/pygopherd/pygopherd.conf ] || \
+ ${CP} ${PREFIX}/etc/pygopherd/pygopherd.conf-dist ${PREFIX}/etc/pygopherd/pygopherd.conf
.include <bsd.port.mk>
Index: pygopherd/distinfo
===================================================================
RCS file: /SERVICES/cvs/FreeBSD/ports/net/pygopherd/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- pygopherd/distinfo 7 Sep 2002 19:12:17 -0000 1.1
+++ pygopherd/distinfo 5 Dec 2003 21:36:10 -0000
@@ -1 +1 @@
-MD5 (pygopherd_1.1.0.tar.gz) = 8ce1fd82845a8a9fc2a003840cdeb5b2
+MD5 (pygopherd_2.0.3.tar.gz) = e79144cb93eab75fef01a4018d55f9d9
Index: pygopherd/pkg-plist
===================================================================
RCS file: /SERVICES/cvs/FreeBSD/ports/net/pygopherd/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pygopherd/pkg-plist 7 Sep 2002 19:12:17 -0000 1.1
+++ pygopherd/pkg-plist 5 Dec 2003 21:36:10 -0000
@@ -1,7 +1,8 @@
bin/pygopherd
etc/pygopherd/mime.types
-etc/pygopherd/pygopherd.conf
- at dirrm etc/pygopherd
+ at 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
+ at exec [ -f %B/pygopherd.conf ] || cp %B/%f %B/pygopherd.conf
%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.py
%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.pyc
%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.pyo
@@ -62,6 +63,9 @@
%%PYTHON_SITELIBDIR%%/pygopherd/handlers/virtual.py
%%PYTHON_SITELIBDIR%%/pygopherd/handlers/virtual.pyc
%%PYTHON_SITELIBDIR%%/pygopherd/handlers/virtual.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/ZIP.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/ZIP.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/ZIP.pyo
%%PYTHON_SITELIBDIR%%/pygopherd/initialization.py
%%PYTHON_SITELIBDIR%%/pygopherd/initialization.pyc
%%PYTHON_SITELIBDIR%%/pygopherd/initialization.pyo
@@ -110,6 +114,9 @@
%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436Test.py
%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436Test.pyc
%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436Test.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/wap.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/wap.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/wap.pyo
%%PYTHON_SITELIBDIR%%/pygopherd/sighandlers.py
%%PYTHON_SITELIBDIR%%/pygopherd/sighandlers.pyc
%%PYTHON_SITELIBDIR%%/pygopherd/sighandlers.pyo
@@ -119,6 +126,11 @@
%%PYTHON_SITELIBDIR%%/pygopherd/version.py
%%PYTHON_SITELIBDIR%%/pygopherd/version.pyc
%%PYTHON_SITELIBDIR%%/pygopherd/version.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/zipfile.py
+%%PYTHON_SITELIBDIR%%/pygopherd/zipfile.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/zipfile.pyo
@dirrm %%PYTHON_SITELIBDIR%%/pygopherd/handlers
@dirrm %%PYTHON_SITELIBDIR%%/pygopherd/protocols
@dirrm %%PYTHON_SITELIBDIR%%/pygopherd
+ at unexec rmdir %D/etc/pygopherd 2> /dev/null || echo "If you do not plan on reinstalling pygopherd, you can safely remove %D/etc/pygopherd"
+
Index: pygopherd/files/patch-setup.py
===================================================================
RCS file: /SERVICES/cvs/FreeBSD/ports/net/pygopherd/files/patch-setup.py,v
retrieving revision 1.1
diff -u -r1.1 patch-setup.py
--- pygopherd/files/patch-setup.py 7 Sep 2002 19:12:18 -0000 1.1
+++ pygopherd/files/patch-setup.py 5 Dec 2003 21:36:10 -0000
@@ -1,11 +1,11 @@
---- setup.py.orig Sun Sep 8 02:47:43 2002
-+++ setup.py Sun Sep 8 02:48:06 2002
-@@ -34,7 +34,7 @@
+--- setup.py.orig Sat Aug 23 16:31:00 2003
++++ setup.py Fri Dec 5 21:24:43 2003
+@@ -33,7 +33,7 @@
url = pygopherd.version.homepage,
packages = ['pygopherd', 'pygopherd.handlers', 'pygopherd.protocols'],
scripts = ['bin/pygopherd'],
- data_files = [ ('/etc/pygopherd', ['conf/pygopherd.conf',
-+ data_files = [ ('%%PREFIX%%/etc/pygopherd', ['conf/pygopherd.conf',
++ data_files = [ ('%%PREFIX%%/etc/pygopherd', ['conf/pygopherd.conf-dist',
'conf/mime.types'] ) ],
license = pygopherd.version.license
)
--- pygopherd.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list