aboutsummaryrefslogtreecommitdiffstats
path: root/net/pygopherd
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-09-08 03:12:18 +0800
committerijliao <ijliao@FreeBSD.org>2002-09-08 03:12:18 +0800
commit2ad828ca0154e670b3a70993b4954824bdfe5218 (patch)
tree8df590b43063e2b3d06aca636f4199082f205178 /net/pygopherd
parent987cfb8e7932db4e8809c3c1e589b838764aca26 (diff)
downloadfreebsd-ports-gnome-2ad828ca0154e670b3a70993b4954824bdfe5218.tar.gz
freebsd-ports-gnome-2ad828ca0154e670b3a70993b4954824bdfe5218.tar.zst
freebsd-ports-gnome-2ad828ca0154e670b3a70993b4954824bdfe5218.zip
add pygopherd 1.1.0
Multiprotocol Information Server
Diffstat (limited to 'net/pygopherd')
-rw-r--r--net/pygopherd/Makefile36
-rw-r--r--net/pygopherd/distinfo1
-rw-r--r--net/pygopherd/files/patch-pygopherd11
-rw-r--r--net/pygopherd/files/patch-pygopherd.811
-rw-r--r--net/pygopherd/files/patch-pygopherd.conf11
-rw-r--r--net/pygopherd/files/patch-setup.py11
-rw-r--r--net/pygopherd/pkg-comment1
-rw-r--r--net/pygopherd/pkg-descr19
-rw-r--r--net/pygopherd/pkg-plist124
9 files changed, 225 insertions, 0 deletions
diff --git a/net/pygopherd/Makefile b/net/pygopherd/Makefile
new file mode 100644
index 000000000000..94c522177605
--- /dev/null
+++ b/net/pygopherd/Makefile
@@ -0,0 +1,36 @@
+# ex:ts=8
+# Ports collection makefile for: pygopherd
+# Date created: Sep 6, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= pygopherd
+PORTVERSION= 1.1.0
+CATEGORIES= net python
+MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+USE_REINPLACE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+MAN8= pygopherd.8
+
+post-patch:
+.for file in setup.py bin/pygopherd conf/pygopherd.conf pygopherd.8
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
+.endfor
+ @${REINPLACE_CMD} -e "s|/usr/bin/python2.2|${SETENV} python|g" \
+ ${WRKSRC}/bin/pygopherd
+ @${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} \
+ -e "s|/usr/bin/python2.2|${SETENV} python|g"
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/net/pygopherd/distinfo b/net/pygopherd/distinfo
new file mode 100644
index 000000000000..0b508a6e9823
--- /dev/null
+++ b/net/pygopherd/distinfo
@@ -0,0 +1 @@
+MD5 (pygopherd_1.1.0.tar.gz) = 8ce1fd82845a8a9fc2a003840cdeb5b2
diff --git a/net/pygopherd/files/patch-pygopherd b/net/pygopherd/files/patch-pygopherd
new file mode 100644
index 000000000000..e87b5a39e9b2
--- /dev/null
+++ b/net/pygopherd/files/patch-pygopherd
@@ -0,0 +1,11 @@
+--- bin/pygopherd.orig Sun Sep 8 02:58:15 2002
++++ bin/pygopherd Fri Aug 9 01:59:33 2002
+@@ -24,7 +24,7 @@
+ from pygopherd import *
+ import sys
+
+-conffile = '/etc/pygopherd/pygopherd.conf'
++conffile = '%%PREFIX%%/etc/pygopherd/pygopherd.conf'
+ if len(sys.argv) > 1:
+ conffile = sys.argv[1]
+
diff --git a/net/pygopherd/files/patch-pygopherd.8 b/net/pygopherd/files/patch-pygopherd.8
new file mode 100644
index 000000000000..b50e5b799acc
--- /dev/null
+++ b/net/pygopherd/files/patch-pygopherd.8
@@ -0,0 +1,11 @@
+--- pygopherd.8.orig Sun Sep 8 03:02:36 2002
++++ pygopherd.8 Sun Sep 8 03:02:51 2002
+@@ -188,7 +188,7 @@
+ .B python2.2.
+
+ Next, proceed to configuration. Make sure that the
+-\fI/etc/pygopherd/pygopherd.conf\fP file names valid users
++\fI%%PREFIX%%/etc/pygopherd/pygopherd.conf\fP file names valid users
+ (\fBsetuid\fP and \fBsetgid\fP options) and a valid document root
+ (\fBroot\fP option).
+
diff --git a/net/pygopherd/files/patch-pygopherd.conf b/net/pygopherd/files/patch-pygopherd.conf
new file mode 100644
index 000000000000..09a5cff6abe0
--- /dev/null
+++ b/net/pygopherd/files/patch-pygopherd.conf
@@ -0,0 +1,11 @@
+--- conf/pygopherd.conf.orig Sun Sep 8 03:00:01 2002
++++ conf/pygopherd.conf Sun Sep 8 03:00:34 2002
+@@ -119,7 +119,7 @@
+ # specify multiple files here -- just separate them with a colon.
+ # ALL of them that are found will be read.
+
+-mimetypes = ./conf/mime.types:/etc/pygopherd/mime.types:/etc/mime.types
++mimetypes = ./conf/mime.types:%%PREFIX%%/etc/pygopherd/mime.types:/etc/mime.types
+
+ # Encodings. You can use the default with the following syntax. The
+ # mimetypex.encodings_map is {'.Z': 'compress', '.gz': 'gzip'}.
diff --git a/net/pygopherd/files/patch-setup.py b/net/pygopherd/files/patch-setup.py
new file mode 100644
index 000000000000..ff32df5d3b39
--- /dev/null
+++ b/net/pygopherd/files/patch-setup.py
@@ -0,0 +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 @@
+ 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',
+ 'conf/mime.types'] ) ],
+ license = pygopherd.version.license
+ )
diff --git a/net/pygopherd/pkg-comment b/net/pygopherd/pkg-comment
new file mode 100644
index 000000000000..cd23291acf09
--- /dev/null
+++ b/net/pygopherd/pkg-comment
@@ -0,0 +1 @@
+Multiprotocol Information Server
diff --git a/net/pygopherd/pkg-descr b/net/pygopherd/pkg-descr
new file mode 100644
index 000000000000..6e115ed1f1c7
--- /dev/null
+++ b/net/pygopherd/pkg-descr
@@ -0,0 +1,19 @@
+PyGopherd is a modern dynamic multi-protocol hierarchical information server
+with a pluggable modularized extension system, full flexible caching, virtual
+files and folders, and autodetection of file types -- all with support for
+standardized yet extensible per-document metadata.
+
+PyGopherd is designed to serve up files using the Gopher Internet protocol.
+With Gopher, you can mount a filesystem (viewing files and folders as if they
+were local), browse Gopherspace with a web browser, download files, and be
+interactive with searching.
+
+But this is only part of the story. The world of Gopher is more expansive than
+this. There are two major gopher protocols: Gopher0 (also known as RFC1436)
+and Gopher+. PyGopherd supports both.
+
+PyGopherd also fully natively supports HTTP, the protocol used on the Internet
+for most Web transactions. So, you can access a PyGopherd server using anything
+from a small, 20-line client in mobile phone to a massive 50-MB web browser.
+
+WWW: http://www.quux.org/devel/gopher/pygopherd/
diff --git a/net/pygopherd/pkg-plist b/net/pygopherd/pkg-plist
new file mode 100644
index 000000000000..3c29313d3bf2
--- /dev/null
+++ b/net/pygopherd/pkg-plist
@@ -0,0 +1,124 @@
+bin/pygopherd
+etc/pygopherd/mime.types
+etc/pygopherd/pygopherd.conf
+@dirrm etc/pygopherd
+%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.py
+%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptions.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptionsTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptionsTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/GopherExceptionsTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/__init__.py
+%%PYTHON_SITELIBDIR%%/pygopherd/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/fileext.py
+%%PYTHON_SITELIBDIR%%/pygopherd/fileext.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/fileext.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/fileextTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/fileextTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/fileextTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/gopherentry.py
+%%PYTHON_SITELIBDIR%%/pygopherd/gopherentry.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/gopherentry.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/gopherentryTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/gopherentryTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/gopherentryTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/HandlerMultiplexer.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/HandlerMultiplexer.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/HandlerMultiplexer.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/UMN.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/UMN.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/UMN.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/__init__.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/base.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/base.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/base.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/dir.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/dir.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/dir.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/file.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/file.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/file.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/gophermap.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/gophermap.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/gophermap.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/html.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/html.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/html.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/mbox.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/mbox.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/mbox.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/pyg.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/pyg.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/pyg.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/scriptexec.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/scriptexec.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/scriptexec.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/url.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/url.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/url.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/virtual.py
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/virtual.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/handlers/virtual.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/initialization.py
+%%PYTHON_SITELIBDIR%%/pygopherd/initialization.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/initialization.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/initializationTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/initializationTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/initializationTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/logger.py
+%%PYTHON_SITELIBDIR%%/pygopherd/logger.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/logger.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/loggerTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/loggerTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/loggerTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/pipe.py
+%%PYTHON_SITELIBDIR%%/pygopherd/pipe.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/pipe.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/pipeTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/pipeTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/pipeTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/ProtocolMultiplexer.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/ProtocolMultiplexer.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/ProtocolMultiplexer.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/ProtocolMultiplexerTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/ProtocolMultiplexerTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/ProtocolMultiplexerTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/__init__.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/__init__.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/__init__.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/base.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/base.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/base.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/baseTest.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/baseTest.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/baseTest.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/enhanced.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/enhanced.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/enhanced.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/gopherp.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/gopherp.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/gopherp.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/http.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/http.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/http.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436Test.py
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436Test.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/protocols/rfc1436Test.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/sighandlers.py
+%%PYTHON_SITELIBDIR%%/pygopherd/sighandlers.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/sighandlers.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/testutil.py
+%%PYTHON_SITELIBDIR%%/pygopherd/testutil.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/testutil.pyo
+%%PYTHON_SITELIBDIR%%/pygopherd/version.py
+%%PYTHON_SITELIBDIR%%/pygopherd/version.pyc
+%%PYTHON_SITELIBDIR%%/pygopherd/version.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/pygopherd/handlers
+@dirrm %%PYTHON_SITELIBDIR%%/pygopherd/protocols
+@dirrm %%PYTHON_SITELIBDIR%%/pygopherd