diff options
author | Adam David <adam@FreeBSD.org> | 1995-10-20 00:42:33 +0000 |
---|---|---|
committer | Adam David <adam@FreeBSD.org> | 1995-10-20 00:42:33 +0000 |
commit | 089657e46bd9af7ada3cf71621442cc335eaa544 (patch) | |
tree | 8e8e076f69aab9434e28933c5e6207412af5b5c9 | |
parent | ".b/" -> "pub/" (diff) |
Initial import of the WN server for the Web
Notes
Notes:
svn path=/head/; revision=2349
-rw-r--r-- | www/wn/Makefile | 41 | ||||
-rw-r--r-- | www/wn/distinfo | 1 | ||||
-rw-r--r-- | www/wn/files/index | 6 | ||||
-rw-r--r-- | www/wn/files/patch-aa | 164 | ||||
-rw-r--r-- | www/wn/pkg-comment | 1 | ||||
-rw-r--r-- | www/wn/pkg-descr | 1 | ||||
-rw-r--r-- | www/wn/pkg-plist | 9 | ||||
-rw-r--r-- | www/wn/scripts/configure | 14 |
8 files changed, 237 insertions, 0 deletions
diff --git a/www/wn/Makefile b/www/wn/Makefile new file mode 100644 index 000000000000..157cb857a520 --- /dev/null +++ b/www/wn/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: wn +# Version required: 1.06 +# Date created: 4 May 1995 +# Whom: adam +# +# $Id$ +# + +DISTNAME= wn-1.11 +CATEGORIES+= networking +MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/ + +IS_INTERACTIVE= +NO_PACKAGE= + +pre-patch: ${PATCH_COOKIE} + @cp ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile + @cp ${WRKSRC}/config.h.dist ${WRKSRC}/config.h + +post-install: + @mkdir -p ${PREFIX}/wn + @cp -PR ${WRKSRC}/docs ${PREFIX}/wn + @install -c -o bin -g bin ${WRKSRC}/bin/wn ${PREFIX}/libexec + @install -c -o bin -g bin ${WRKSRC}/bin/swn ${PREFIX}/sbin + @install -c -o bin -g bin ${WRKSRC}/bin/wndex ${PREFIX}/sbin + @if [ -s ${PREFIX}/etc/wn_mime.types ]; then \ + cmp -s ${PREFIX}/etc/wn_mime.types ${WRKSRC}/lib/mime.types || \ + echo Warning: new ${PREFIX}/etc/wn_mime.types not installed; \ + else \ + install -c -o bin -g bin -m 644 ${WRKSRC}/lib/mime.types \ + ${PREFIX}/etc/wn_mime.types; \ + fi + @if [ -s ${PREFIX}/wn/index ]; then \ + cmp -s ${PREFIX}/wn/index ${WRKDIR}/index || \ + echo Warning: new ${PREFIX}/wn/index not installed; \ + else \ + install -c -o bin -g bin -m 644 ${WRKDIR}/index ${PREFIX}/wn; \ + fi + @cd ${PREFIX}/wn; ../sbin/wndex -r + +.include <bsd.port.mk> diff --git a/www/wn/distinfo b/www/wn/distinfo new file mode 100644 index 000000000000..4daad20a3dfa --- /dev/null +++ b/www/wn/distinfo @@ -0,0 +1 @@ +MD5 (wn-1.11.tar.gz) = 54d824f26232e32bc60f120bdd931a79 diff --git a/www/wn/files/index b/www/wn/files/index new file mode 100644 index 000000000000..7e5bf76dac1c --- /dev/null +++ b/www/wn/files/index @@ -0,0 +1,6 @@ +Owner=$MAINTAINER +Subdirs=docs +Indexfile=index.html +Title=Welcome to the Web server at $SITENAME +Link=/docs/index.html +Title=Documentation for the WN server diff --git a/www/wn/files/patch-aa b/www/wn/files/patch-aa new file mode 100644 index 000000000000..0f8c8c4f0080 --- /dev/null +++ b/www/wn/files/patch-aa @@ -0,0 +1,164 @@ +*** Makefile.dist Thu Jul 6 16:40:36 1995 +--- Makefile Sun Jul 23 02:09:47 1995 +*************** +*** 7,13 **** + # + # Where to put the programs + # +! SERVBINDIR =../bin + BINDIR = ../bin + LIBDIR = ../lib + +--- 7,13 ---- + # + # Where to put the programs + # +! SERVBINDIR = ../bin + BINDIR = ../bin + LIBDIR = ../lib + +*************** +*** 22,28 **** + # + # Libraries to be included. + # +! LIBS = + + #For Solaris 5.X or SVR4.2 use + #LIBS = -lsocket -lnsl +--- 22,28 ---- + # + # Libraries to be included. + # +! LIBS = -lcrypt + + #For Solaris 5.X or SVR4.2 use + #LIBS = -lsocket -lnsl +*** config.h.dist Tue Jul 11 15:55:43 1995 +--- config.h Sun Jul 23 02:28:27 1995 +*************** +*** 7,13 **** + ********************************************************/ + + +! #define SUN_OS4 /* Operating System */ + /* + Pick one of the following Operating System types which describes + your system and replace the SUN_OS4 value above +--- 7,13 ---- + ********************************************************/ + + +! #define FREE_BSD_2 /* Operating System */ + /* + Pick one of the following Operating System types which describes + your system and replace the SUN_OS4 value above +*************** +*** 30,38 **** + * Enter the complete path of your root data directory here. + */ + +! #define WN_LOGFILE "/usr/local/wnlogs/wn.log" +! #define WN_ERRLOGFILE "/usr/local/wnlogs/wn.log.err" +! #define AUTH_ERRLOGFILE "/usrlocal/wnlogs/wn.log.err" + + /* + * Full path of the file you want to use for a log file and the +--- 30,38 ---- + * Enter the complete path of your root data directory here. + */ + +! #define WN_LOGFILE "/usr/local/wnlogs/wn.log" +! #define WN_ERRLOGFILE "/usr/local/wnlogs/wn-err.log" +! #define AUTH_ERRLOGFILE "/usr/local/wnlogs/wn-err.log" + + /* + * Full path of the file you want to use for a log file and the +*************** +*** 52,58 **** + */ + + +! #define MIME_TYPE_FILE "/usr/local/lib/wn/mime.types" + /* + * This file contains information permitting wndex to translate + * ascertain the MIME "Content-type" from the suffix of a file name +--- 52,58 ---- + */ + + +! #define MIME_TYPE_FILE "/usr/local/etc/wn_mime.types" + /* + * This file contains information permitting wndex to translate + * ascertain the MIME "Content-type" from the suffix of a file name +*************** +*** 77,83 **** + */ + + +! /* #define VERBOSELOG */ + /* By default WN uses the Common Log Format used by NCSA and CERN httpd. + * Uncommenting this will cause additional information to be added to + * the end of each log line. In particular the User-Agent and Referrer +--- 77,83 ---- + */ + + +! #define VERBOSELOG + /* By default WN uses the Common Log Format used by NCSA and CERN httpd. + * Uncommenting this will cause additional information to be added to + * the end of each log line. In particular the User-Agent and Referrer +*************** +*** 111,121 **** + + + #ifndef SOLARIS2 +! #define USERID (65534) +! #define GROUPID (65534) + #else +! #define USERID (60001) /* uid of nobody under Solaris */ +! #define GROUPID (60001) /* gid of nobody under Solaris */ + #endif + /* + * These are the group and user id you want the server to switch to when +--- 111,121 ---- + + + #ifndef SOLARIS2 +! #define USERID (65534) +! #define GROUPID (65534) + #else +! #define USERID (65534) +! #define GROUPID (65534) + #endif + /* + * These are the group and user id you want the server to switch to when +*************** +*** 198,204 **** + #define TILDE_TABLE "/path/to/rootdir_table" + */ + +! /* #define TILDE_USER_PWFILE */ + + #define TILDE_USER_STRING "/~" + /* +--- 198,204 ---- + #define TILDE_TABLE "/path/to/rootdir_table" + */ + +! #define TILDE_USER_PWFILE + + #define TILDE_USER_STRING "/~" + /* +*** config.h.old Thu Oct 19 21:29:04 1995 +--- config.h Thu Oct 19 21:01:36 1995 +*************** +*** 380,385 **** +--- 380,386 ---- + + #if defined(FREE_BSD_2) + #define BSD_LIKE ++ #define SIGCLD SIGCHLD + #endif + + #if defined(AIX) || defined(IRIX) diff --git a/www/wn/pkg-comment b/www/wn/pkg-comment new file mode 100644 index 000000000000..890acbc36e69 --- /dev/null +++ b/www/wn/pkg-comment @@ -0,0 +1 @@ +WN is a great http server diff --git a/www/wn/pkg-descr b/www/wn/pkg-descr new file mode 100644 index 000000000000..bcc5e646eb3d --- /dev/null +++ b/www/wn/pkg-descr @@ -0,0 +1 @@ +WN is a server for http, with some really nice features. diff --git a/www/wn/pkg-plist b/www/wn/pkg-plist new file mode 100644 index 000000000000..6b75f12b51f4 --- /dev/null +++ b/www/wn/pkg-plist @@ -0,0 +1,9 @@ +@cwd /usr/local +etc/wn_mime.types +libexec/wn +sbin/swn +sbin/wndex +wn/docs +wn/index +@cwd ./wn +@exec ../sbin/wndex -r diff --git a/www/wn/scripts/configure b/www/wn/scripts/configure new file mode 100644 index 000000000000..83c4366b3a5e --- /dev/null +++ b/www/wn/scripts/configure @@ -0,0 +1,14 @@ +#!/bin/sh +# + +sitename=`hostname` +echo -n "Site name? [$sitename] " +read answer; if [ X$answer != X ]; then sitename=$answer; fi +maintainer="mailto:webmaster@$sitename" +echo -n "URL to default WWW admin? [$maintainer] " +read answer; if [ X$answer != X ]; then maintainer=$answer; fi +sed -e "/MAINTAINER/s/\".*\"/\"$maintainer\"/" \ + ${WRKSRC}/config.h >${WRKSRC}/config.h.foo +mv ${WRKSRC}/config.h.foo ${WRKSRC}/config.h +sed -e "s/\$MAINTAINER/$maintainer/g" -e "s/\$SITENAME/$sitename/g" \ + ${FILESDIR}/index >${WRKDIR}/index |