Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

9
net/pygopherd/DESCR Normal file
View File

@@ -0,0 +1,9 @@
This is an all-new, modern Gopher server. It can serve documents
with Gopher+, standard Gopher (RFC1436), and HTTP -- all on the same
port. Pygopherd features a modular extension system as well as
loadable scripts and much more. It contains full support for
UMN gopherd systems -- including .Links, .names, .cap, searches, etc.
Pygopherd also supports Bucktooth features such as gophermap files
and executables. In addition to all this, there are Pygopherd's own
extra features. All features are fully customizable and can be enabled
or disabled by editing /etc/pygopherd/pygopherd.conf.

69
net/pygopherd/Makefile Normal file
View File

@@ -0,0 +1,69 @@
# $NetBSD: Makefile,v 1.23 2012/10/23 17:19:04 asau Exp $
#
DISTNAME= pygopherd_2.0.16
PKGREVISION= 3
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= net
MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/
MAINTAINER= metaridley@mchsi.com
HOMEPAGE= http://gopher.quux.org:70/devel/gopher/pygopherd/
COMMENT= Gopher server
LICENSE= gnu-gpl-v2
PKG_SYSCONFSUBDIR= pygopherd
EXAMPLEDIR= ${PREFIX}/share/examples/pygopherd
RUNTIMEDIR= ${VARBASE}/gopher
BUILD_DEFS+= VARBASE
GOPHER_USER= gopher
GOPHER_GROUP= gopher
PKG_GROUPS= ${GOPHER_GROUP}
PKG_USERS= ${GOPHER_USER}:${GOPHER_GROUP}
OWN_DIRS_PERMS= ${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750
CONF_FILES= ${EXAMPLEDIR}/pygopherd.conf ${PKG_SYSCONFDIR}/pygopherd.conf
CONF_FILES+= ${EXAMPLEDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
EGFILES= ${WRKSRC}/examples/gophermap
EGFILES+= ${WRKSRC}/conf/mime.types
EGFILES+= ${WRKSRC}/conf/pygopherd.conf
RCD_SCRIPTS= pygopherd
FILES_SUBST+= RUNTIMEDIR=${RUNTIMEDIR:Q}
FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
PYTHON_PATCH_SCRIPTS= bin/pygopherd
PYTHON_PATCH_SCRIPTS+= pygopherd/GopherExceptionsTest.py
PYTHON_PATCH_SCRIPTS+= pygopherd/fileextTest.py
PYTHON_PATCH_SCRIPTS+= pygopherd/gopherentryTest.py
PYTHON_PATCH_SCRIPTS+= pygopherd/initializationTest.py
PYTHON_PATCH_SCRIPTS+= pygopherd/testutil.py
SUBST_CLASSES+= man
SUBST_STAGE.man= post-patch
SUBST_FILES.man= setup.py
SUBST_FILES.man+= bin/pygopherd
SUBST_FILES.man+= conf/pygopherd.conf
SUBST_FILES.man+= doc/pygopherd.8
SUBST_VARS.man= PKG_SYSCONFDIR EXAMPLEDIR VARBASE
SUBST_VARS.man+= GOPHER_USER GOPHER_GROUP RUNTIMEDIR
EGG_NAME= ${PKGBASE}-2.0.15
INSTALLATION_DIRS= share/examples/pygopherd ${PKGMANDIR}/man8
# XXX this is needed for the RCD script
post-extract:
${MV} ${WRKDIR}/pygopherd ${WRKDIR}/${DISTNAME}
post-install:
for egfile in ${EGFILES}; do \
${INSTALL_DATA} $$egfile ${DESTDIR}${EXAMPLEDIR}; \
done
${INSTALL_MAN} ${WRKSRC}/doc/pygopherd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../lang/python/distutils.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

137
net/pygopherd/PLIST Normal file
View File

@@ -0,0 +1,137 @@
@comment $NetBSD: PLIST,v 1.8 2012/04/08 20:21:54 wiz Exp $
bin/pygopherd
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/pygopherd/GopherExceptions.py
${PYSITELIB}/pygopherd/GopherExceptions.pyc
${PYSITELIB}/pygopherd/GopherExceptions.pyo
${PYSITELIB}/pygopherd/GopherExceptionsTest.py
${PYSITELIB}/pygopherd/GopherExceptionsTest.pyc
${PYSITELIB}/pygopherd/GopherExceptionsTest.pyo
${PYSITELIB}/pygopherd/__init__.py
${PYSITELIB}/pygopherd/__init__.pyc
${PYSITELIB}/pygopherd/__init__.pyo
${PYSITELIB}/pygopherd/fileext.py
${PYSITELIB}/pygopherd/fileext.pyc
${PYSITELIB}/pygopherd/fileext.pyo
${PYSITELIB}/pygopherd/fileextTest.py
${PYSITELIB}/pygopherd/fileextTest.pyc
${PYSITELIB}/pygopherd/fileextTest.pyo
${PYSITELIB}/pygopherd/gopherentry.py
${PYSITELIB}/pygopherd/gopherentry.pyc
${PYSITELIB}/pygopherd/gopherentry.pyo
${PYSITELIB}/pygopherd/gopherentryTest.py
${PYSITELIB}/pygopherd/gopherentryTest.pyc
${PYSITELIB}/pygopherd/gopherentryTest.pyo
${PYSITELIB}/pygopherd/handlers/HandlerMultiplexer.py
${PYSITELIB}/pygopherd/handlers/HandlerMultiplexer.pyc
${PYSITELIB}/pygopherd/handlers/HandlerMultiplexer.pyo
${PYSITELIB}/pygopherd/handlers/UMN.py
${PYSITELIB}/pygopherd/handlers/UMN.pyc
${PYSITELIB}/pygopherd/handlers/UMN.pyo
${PYSITELIB}/pygopherd/handlers/ZIP.py
${PYSITELIB}/pygopherd/handlers/ZIP.pyc
${PYSITELIB}/pygopherd/handlers/ZIP.pyo
${PYSITELIB}/pygopherd/handlers/__init__.py
${PYSITELIB}/pygopherd/handlers/__init__.pyc
${PYSITELIB}/pygopherd/handlers/__init__.pyo
${PYSITELIB}/pygopherd/handlers/base.py
${PYSITELIB}/pygopherd/handlers/base.pyc
${PYSITELIB}/pygopherd/handlers/base.pyo
${PYSITELIB}/pygopherd/handlers/dir.py
${PYSITELIB}/pygopherd/handlers/dir.pyc
${PYSITELIB}/pygopherd/handlers/dir.pyo
${PYSITELIB}/pygopherd/handlers/file.py
${PYSITELIB}/pygopherd/handlers/file.pyc
${PYSITELIB}/pygopherd/handlers/file.pyo
${PYSITELIB}/pygopherd/handlers/gophermap.py
${PYSITELIB}/pygopherd/handlers/gophermap.pyc
${PYSITELIB}/pygopherd/handlers/gophermap.pyo
${PYSITELIB}/pygopherd/handlers/html.py
${PYSITELIB}/pygopherd/handlers/html.pyc
${PYSITELIB}/pygopherd/handlers/html.pyo
${PYSITELIB}/pygopherd/handlers/mbox.py
${PYSITELIB}/pygopherd/handlers/mbox.pyc
${PYSITELIB}/pygopherd/handlers/mbox.pyo
${PYSITELIB}/pygopherd/handlers/pyg.py
${PYSITELIB}/pygopherd/handlers/pyg.pyc
${PYSITELIB}/pygopherd/handlers/pyg.pyo
${PYSITELIB}/pygopherd/handlers/scriptexec.py
${PYSITELIB}/pygopherd/handlers/scriptexec.pyc
${PYSITELIB}/pygopherd/handlers/scriptexec.pyo
${PYSITELIB}/pygopherd/handlers/tal.py
${PYSITELIB}/pygopherd/handlers/tal.pyc
${PYSITELIB}/pygopherd/handlers/tal.pyo
${PYSITELIB}/pygopherd/handlers/url.py
${PYSITELIB}/pygopherd/handlers/url.pyc
${PYSITELIB}/pygopherd/handlers/url.pyo
${PYSITELIB}/pygopherd/handlers/virtual.py
${PYSITELIB}/pygopherd/handlers/virtual.pyc
${PYSITELIB}/pygopherd/handlers/virtual.pyo
${PYSITELIB}/pygopherd/initialization.py
${PYSITELIB}/pygopherd/initialization.pyc
${PYSITELIB}/pygopherd/initialization.pyo
${PYSITELIB}/pygopherd/initializationTest.py
${PYSITELIB}/pygopherd/initializationTest.pyc
${PYSITELIB}/pygopherd/initializationTest.pyo
${PYSITELIB}/pygopherd/logger.py
${PYSITELIB}/pygopherd/logger.pyc
${PYSITELIB}/pygopherd/logger.pyo
${PYSITELIB}/pygopherd/loggerTest.py
${PYSITELIB}/pygopherd/loggerTest.pyc
${PYSITELIB}/pygopherd/loggerTest.pyo
${PYSITELIB}/pygopherd/pipe.py
${PYSITELIB}/pygopherd/pipe.pyc
${PYSITELIB}/pygopherd/pipe.pyo
${PYSITELIB}/pygopherd/pipeTest.py
${PYSITELIB}/pygopherd/pipeTest.pyc
${PYSITELIB}/pygopherd/pipeTest.pyo
${PYSITELIB}/pygopherd/protocols/ProtocolMultiplexer.py
${PYSITELIB}/pygopherd/protocols/ProtocolMultiplexer.pyc
${PYSITELIB}/pygopherd/protocols/ProtocolMultiplexer.pyo
${PYSITELIB}/pygopherd/protocols/ProtocolMultiplexerTest.py
${PYSITELIB}/pygopherd/protocols/ProtocolMultiplexerTest.pyc
${PYSITELIB}/pygopherd/protocols/ProtocolMultiplexerTest.pyo
${PYSITELIB}/pygopherd/protocols/__init__.py
${PYSITELIB}/pygopherd/protocols/__init__.pyc
${PYSITELIB}/pygopherd/protocols/__init__.pyo
${PYSITELIB}/pygopherd/protocols/base.py
${PYSITELIB}/pygopherd/protocols/base.pyc
${PYSITELIB}/pygopherd/protocols/base.pyo
${PYSITELIB}/pygopherd/protocols/baseTest.py
${PYSITELIB}/pygopherd/protocols/baseTest.pyc
${PYSITELIB}/pygopherd/protocols/baseTest.pyo
${PYSITELIB}/pygopherd/protocols/enhanced.py
${PYSITELIB}/pygopherd/protocols/enhanced.pyc
${PYSITELIB}/pygopherd/protocols/enhanced.pyo
${PYSITELIB}/pygopherd/protocols/gopherp.py
${PYSITELIB}/pygopherd/protocols/gopherp.pyc
${PYSITELIB}/pygopherd/protocols/gopherp.pyo
${PYSITELIB}/pygopherd/protocols/http.py
${PYSITELIB}/pygopherd/protocols/http.pyc
${PYSITELIB}/pygopherd/protocols/http.pyo
${PYSITELIB}/pygopherd/protocols/rfc1436.py
${PYSITELIB}/pygopherd/protocols/rfc1436.pyc
${PYSITELIB}/pygopherd/protocols/rfc1436.pyo
${PYSITELIB}/pygopherd/protocols/rfc1436Test.py
${PYSITELIB}/pygopherd/protocols/rfc1436Test.pyc
${PYSITELIB}/pygopherd/protocols/rfc1436Test.pyo
${PYSITELIB}/pygopherd/protocols/wap.py
${PYSITELIB}/pygopherd/protocols/wap.pyc
${PYSITELIB}/pygopherd/protocols/wap.pyo
${PYSITELIB}/pygopherd/sighandlers.py
${PYSITELIB}/pygopherd/sighandlers.pyc
${PYSITELIB}/pygopherd/sighandlers.pyo
${PYSITELIB}/pygopherd/testutil.py
${PYSITELIB}/pygopherd/testutil.pyc
${PYSITELIB}/pygopherd/testutil.pyo
${PYSITELIB}/pygopherd/version.py
${PYSITELIB}/pygopherd/version.pyc
${PYSITELIB}/pygopherd/version.pyo
${PYSITELIB}/pygopherd/zipfile.py
${PYSITELIB}/pygopherd/zipfile.pyc
${PYSITELIB}/pygopherd/zipfile.pyo
man/man8/pygopherd.8
share/examples/pygopherd/gophermap
share/examples/pygopherd/mime.types
share/examples/pygopherd/pygopherd.conf
share/examples/rc.d/pygopherd

9
net/pygopherd/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.5 2011/10/31 08:45:08 obache Exp $
SHA1 (pygopherd_2.0.16.tar.gz) = 1851105d7bb2eda055c0a399168cf1799bd5e453
RMD160 (pygopherd_2.0.16.tar.gz) = 3b99e7a2474c8e6a90cf987c59ab877d165c07c9
Size (pygopherd_2.0.16.tar.gz) = 255475 bytes
SHA1 (patch-aa) = 5baa1dac1d4ae5728ea83355efe8bbe3f9df153f
SHA1 (patch-ab) = 41fd7ded966d943511cc45436f630722fa8a8336
SHA1 (patch-ac) = 5e93805b2f731073b614caa30361fce18958b2a3
SHA1 (patch-ad) = d2dd4c57a2bc11c44a813c67cbc38caf0d5d5cc2

View File

@@ -0,0 +1,41 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: pygopherd.sh,v 1.2 2011/10/31 08:45:08 obache Exp $
#
# PROVIDE: pygopherd
# REQUIRE: DAEMON
#
# To start spread at startup, copy this script to /etc/rc.d and set
# spread=YES in /etc/rc.conf.
#
# Addtionally you may set spread_log to a file where to log stuff.
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
rcd_dir=`@DIRNAME@ $0`
name="pygopherd"
rcvar=$name
command="@PREFIX@/bin/${name}"
command_interpreter="@PYTHONBIN@"
pidfile="@VARBASE@/run/${name}.pid"
conf_file="@PKG_SYSCONFDIR@/${name}.conf"
mime_file="@PKG_SYSCONFDIR@/mime.types"
required_files="${conf_file} ${mime_file}"
start_precmd="${name}_precmd"
pygopherd_precmd()
{
if [ ! -d @RUNTIMEDIR@ ]
then
@MKDIR@ @RUNTIMEDIR@
@CHMOD@ 0750 @RUNTIMEDIR@
@CHOWN@ @PKG_USERS@ @RUNTIMEDIR@
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.2 2011/10/31 08:45:08 obache Exp $
--- bin/pygopherd.orig 2003-08-23 18:31:54.000000000 +0200
+++ bin/pygopherd 2003-08-28 20:39:34.000000000 +0200
@@ -23,7 +23,7 @@
from pygopherd import *
import sys
-conffile = '/etc/pygopherd/pygopherd.conf'
+conffile = '@PKG_SYSCONFDIR@/pygopherd.conf'
if len(sys.argv) > 1:
conffile = sys.argv[1]

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ab,v 1.3 2011/10/31 08:45:08 obache Exp $
--- doc/pygopherd.8.orig 2005-09-22 13:00:21.000000000 +0000
+++ doc/pygopherd.8
@@ -180,7 +180,7 @@ distribution includes two files of inter
\fIconf/pygopherd.conf\fR and
\fIconf/mime.types\fR. Debian users will find
the configuration file pre-installed in
-\fI/etc/pygopherd/pygopherd.conf\fR and the
+\fI@PKG_SYSCONFDIR@/pygopherd.conf\fR and the
\fImime.types\fR file provided by the system
already.
.PP
@@ -242,7 +242,7 @@ Some systems will use \fBpython\fR or
\fBpython2.2\fR.
.PP
Next, proceed to configuration. Make sure that the
-\fI/etc/pygopherd/pygopherd.conf\fR file
+\fI@PKG_SYSCONFDIR@/pygopherd.conf\fR file
names valid users (\fIsetuid\fR and
\fIsetgid\fR options) and a valid document
root (\fIroot\fR option).
@@ -287,7 +287,7 @@ installation step necessary.
.SH "CONFIGURATION"
.PP
\fBPyGopherd\fR is regulated by a configuratoin file normally
-stored in \fI/etc/pygopherd/pygopherd.conf\fR.
+stored in \fI@PKG_SYSCONFDIR@/pygopherd.conf\fR.
You can specify an alternate configuration file on the command
line. The \fBPyGopherd\fR distribution ships
with a sample \fIpygopherd.conf\fR file that

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-ac,v 1.2 2011/10/31 08:45:08 obache Exp $
--- conf/pygopherd.conf.orig 2006-09-11 14:10:13.000000000 +0000
+++ conf/pygopherd.conf
@@ -16,7 +16,7 @@ detach = yes
# If you want gopherd to write a PID file, set this to the location
# where you want it. Otherwise, comment out this line.
-pidfile = /var/run/pygopherd.pid
+pidfile = @VARBASE@/run/pygopherd.pid
##################################################
# Network
@@ -110,8 +110,8 @@ usechroot = yes
## starting pygopherd as root. Comment out if you don't want this
## functionality. NOTE: DO NOT RUN AS ROOT UNLESS YOU USE THESE! BAD BAD BAD!
-setuid = gopher
-setgid = gopher
+setuid = @GOPHER_USER@
+setgid = @GOPHER_GROUP@
##################################################
# Filesystem and MIME
@@ -119,13 +119,13 @@ setgid = gopher
# Where the documents are stored.
-root = /var/gopher
+root = @RUNTIMEDIR@
# Location of a file to use to figure out MIME types. You can
# 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:@PKG_SYSCONFDIR@/mime.types:/etc/mime.types
# Encodings. You can use the default with the following syntax. The
# mimetypex.encodings_map is {'.Z': 'compress', '.gz': 'gzip'}.

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.2 2011/10/31 08:45:08 obache Exp $
--- setup.py.orig 2003-08-23 18:31:00.000000000 +0200
+++ setup.py 2003-08-28 20:40:53.000000000 +0200
@@ -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 = [ ('@EXAMPLEDIR@', ['conf/pygopherd.conf',
'conf/mime.types'] ) ],
license = pygopherd.version.license
)