summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/gn/Makefile33
-rw-r--r--www/gn/files/patch-aa99
-rw-r--r--www/gn/pkg-comment1
-rw-r--r--www/gn/pkg-descr2
-rw-r--r--www/gn/pkg-plist7
-rw-r--r--www/gn/scripts/configure24
6 files changed, 166 insertions, 0 deletions
diff --git a/www/gn/Makefile b/www/gn/Makefile
new file mode 100644
index 000000000000..71fa07ab4f3f
--- /dev/null
+++ b/www/gn/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: gn
+# Version required: 2.13
+# Date created: 20 Sep 1994
+# Whom: adam
+#
+# $Id: Makefile,v $
+#
+
+DISTNAME= gn-2.13
+MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/gn
+INETD_CONF= /etc/inetd.conf
+CONF= ' stream tcp nowait nobody /usr/local/etc/gn gn'
+DEPENDS= net/wais
+
+pre-build:
+ @ln -s ../../../../wais/work/freeWAIS-0.3/ir work/${DISTNAME}/waisgn
+ @ln -s ../../../../wais/work/freeWAIS-0.3/bin work/${DISTNAME}/waisgn
+
+pre-install:
+ @grep -q '^gopher' ${INETD_CONF} || { \
+ echo gopher${CONF} >>${INETD_CONF}; \
+ kill -HUP \
+ `ps ax | grep inetd | grep -v grep | awk '{ print $$1 }'`; \
+ }
+ @if [ ! -d /usr/local/gnroot ]; then \
+ mkdir -p /usr/local/gnroot; \
+ cd /usr/local/gnroot; \
+ tar -C ${WRKSRC} -cf - docs | tar xpf -; \
+ mv docs/sample.root.menu menu; \
+ ${WRKSRC}/mkcache/mkcache -r; \
+ fi
+
+.include <bsd.port.mk>
diff --git a/www/gn/files/patch-aa b/www/gn/files/patch-aa
new file mode 100644
index 000000000000..c4caf3212a47
--- /dev/null
+++ b/www/gn/files/patch-aa
@@ -0,0 +1,99 @@
+*** Makefile.org Mon Jul 18 10:27:03 1994
+--- Makefile Fri Sep 16 19:45:13 1994
+***************
+*** 8,14 ****
+ # Where to put the programs
+ #
+ SERVBINDIR = /usr/local/etc
+! BINDIR = /home/john/bin
+ LIBDIR = /usr/local/etc
+
+ #
+--- 8,14 ----
+ # Where to put the programs
+ #
+ SERVBINDIR = /usr/local/etc
+! BINDIR = /usr/local/bin
+ LIBDIR = /usr/local/etc
+
+ #
+***************
+*** 43,49 ****
+
+
+ all: gn mkcache uncache waisgn sgn
+! install: inst-gn inst-mkcache inst-uncache
+ gn: gn/gn
+ sgn: gn/sgn
+ mkcache: mkcache/mkcache
+--- 43,49 ----
+
+
+ all: gn mkcache uncache waisgn sgn
+! install: inst-gn inst-mkcache inst-uncache inst-waisgn
+ gn: gn/gn
+ sgn: gn/sgn
+ mkcache: mkcache/mkcache
+*** config.h.org Sat Sep 3 16:51:51 1994
+--- config.h Fri Sep 23 10:06:50 1994
+***************
+*** 13,24 ****
+ */
+
+
+! #define ROOT_DIR "/your/root/data/dir"
+ /*
+ * Enter the complete path of your root data directory here.
+ */
+
+! #define SUN_OS4
+ /*
+ Pick one of the following Operating System types which describes
+ your system and replace the SUN_OS4 value above
+--- 13,24 ----
+ */
+
+
+! #define ROOT_DIR "/usr/local/gnroot"
+ /*
+ * Enter the complete path of your root data directory here.
+ */
+
+! #define OTHER
+ /*
+ Pick one of the following Operating System types which describes
+ your system and replace the SUN_OS4 value above
+***************
+*** 48,54 ****
+ */
+
+
+! #define MIME_TYPE_FILE "/path/to/src/mkcache/gn_mime.types"
+ /*
+ * This file contains information permitting mkcache to translate
+ * ascertain the MIME "Content-type" from the suffix of a file name
+--- 48,54 ----
+ */
+
+
+! #define MIME_TYPE_FILE "/usr/local/etc/gn_mime.types"
+ /*
+ * This file contains information permitting mkcache to translate
+ * ascertain the MIME "Content-type" from the suffix of a file name
+***************
+*** 109,115 ****
+ * If you wish to run at a different port than 70, edit this line.
+ */
+
+! #define DECOMPRESS "/usr/net/bin/zcat"
+ /*
+ * This is the program which does "on the fly" decompression
+ */
+--- 109,115 ----
+ * If you wish to run at a different port than 70, edit this line.
+ */
+
+! #define DECOMPRESS "/usr/bin/zcat"
+ /*
+ * This is the program which does "on the fly" decompression
+ */
diff --git a/www/gn/pkg-comment b/www/gn/pkg-comment
new file mode 100644
index 000000000000..0085e2e580e8
--- /dev/null
+++ b/www/gn/pkg-comment
@@ -0,0 +1 @@
+GN gopher and http server, version 2.13
diff --git a/www/gn/pkg-descr b/www/gn/pkg-descr
new file mode 100644
index 000000000000..2b853c5ef3e3
--- /dev/null
+++ b/www/gn/pkg-descr
@@ -0,0 +1,2 @@
+GN is a combined server for both gopher and http.
+It also has some nice features of its own.
diff --git a/www/gn/pkg-plist b/www/gn/pkg-plist
new file mode 100644
index 000000000000..eff6b2018cad
--- /dev/null
+++ b/www/gn/pkg-plist
@@ -0,0 +1,7 @@
+@cwd /usr/local
+etc/gn_mime.types
+etc/gn
+etc/sgn
+etc/waisgn
+bin/mkcache
+bin/uncache
diff --git a/www/gn/scripts/configure b/www/gn/scripts/configure
new file mode 100644
index 000000000000..a2cd84f715bd
--- /dev/null
+++ b/www/gn/scripts/configure
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+if [ $# -ne 3 ]; then
+ echo "This script should only be run by the Makefile."
+ exit 1
+fi
+
+# First arg is top level ports directory, second is current directory,
+# third is the directory containing the dist.
+#
+PDIR=$1
+CDIR=$2
+WDIR=$3
+
+hostname=`hostname`
+echo -n "Hostname of server machine? [$hostname] "
+read answer; if [ X$answer != X ]; then hostname=$answer; fi
+maintainer="mailto:www-admin@$hostname"
+echo -n "URL to default WWW admin? [$maintainer] "
+read answer; if [ X$answer != X ]; then maintainer=$answer; fi
+sed -e "/GN_HOSTNAME/s/\".*\"/\"$hostname\"/" \
+ -e "/MAINTAINER/s/\".*\"/\"$maintainer\"/" \
+ $WDIR/config.h >$WDIR/config.h.foo
+mv $WDIR/config.h.foo $WDIR/config.h