GN gopher and http server
This commit is contained in:
parent
89dd92160c
commit
4acfb010e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114
33
www/gn/Makefile
Normal file
33
www/gn/Makefile
Normal file
@ -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>
|
99
www/gn/files/patch-aa
Normal file
99
www/gn/files/patch-aa
Normal file
@ -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
|
||||
*/
|
1
www/gn/pkg-comment
Normal file
1
www/gn/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
GN gopher and http server, version 2.13
|
2
www/gn/pkg-descr
Normal file
2
www/gn/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
||||
GN is a combined server for both gopher and http.
|
||||
It also has some nice features of its own.
|
7
www/gn/pkg-plist
Normal file
7
www/gn/pkg-plist
Normal file
@ -0,0 +1,7 @@
|
||||
@cwd /usr/local
|
||||
etc/gn_mime.types
|
||||
etc/gn
|
||||
etc/sgn
|
||||
etc/waisgn
|
||||
bin/mkcache
|
||||
bin/uncache
|
24
www/gn/scripts/configure
vendored
Normal file
24
www/gn/scripts/configure
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user