diff options
author | Steve Price <steve@FreeBSD.org> | 1998-08-24 02:11:20 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1998-08-24 02:11:20 +0000 |
commit | 6212c76b8a7e4f7b03807c80c07dbd7fa11a5b21 (patch) | |
tree | 1b733be2512fbff22487c2ed5a903b713ac00d31 /www | |
parent | b600200ec34cb424e9e0a62d297d654d6edf031f (diff) | |
download | ports-6212c76b8a7e4f7b03807c80c07dbd7fa11a5b21.tar.gz ports-6212c76b8a7e4f7b03807c80c07dbd7fa11a5b21.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/wcol/Makefile | 45 | ||||
-rw-r--r-- | www/wcol/distinfo | 1 | ||||
-rw-r--r-- | www/wcol/files/patch-aa | 65 | ||||
-rw-r--r-- | www/wcol/files/patch-ab | 69 | ||||
-rw-r--r-- | www/wcol/files/patch-ac | 11 | ||||
-rw-r--r-- | www/wcol/files/patch-ad | 17 | ||||
-rw-r--r-- | www/wcol/files/patch-ae | 11 | ||||
-rw-r--r-- | www/wcol/files/wcol.sh.sample | 8 | ||||
-rw-r--r-- | www/wcol/pkg-comment | 1 | ||||
-rw-r--r-- | www/wcol/pkg-descr | 20 | ||||
-rw-r--r-- | www/wcol/pkg-plist | 19 |
11 files changed, 267 insertions, 0 deletions
diff --git a/www/wcol/Makefile b/www/wcol/Makefile new file mode 100644 index 000000000000..df1f8b487b40 --- /dev/null +++ b/www/wcol/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: wcolEpre +# Version required: 980713_100245 +# Date created: 17 July 1998 +# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp> +# +# $Id$ +# + +DISTNAME= wcolEpre.980713_100245 +PKGNAME= wcolEpre-1998.07.13 +CATEGORIES= www +MASTER_SITES= http://shika.aist-nara.ac.jp/products/DEST/Wcol/ + +MAINTAINER= shige@kuis.kyoto-u.ac.jp + +WRKSRC= ${WRKDIR}/${DISTNAME}/src + +GNU_CONFIGURE= yes + +STARTUP_SCRIPT=${PREFIX}/etc/rc.d/wcol.sh.sample + +# wcol pooldir +DEFAULT_POOLDIR?=/var/spool/wcol +MAKE_ENV+=DEFAULT_POOLDIR=${DEFAULT_POOLDIR} + +pre-patch: + @rm -f ${WRKSRC}/../admin/killwcol.in + @mv -f ${WRKSRC}/../admin/killwcol ${WRKSRC}/../admin/killwcol.in + +post-install: + @if [ ! -d ${DEFAULT_POOLDIR} ]; then \ + ${ECHO} "Making wcol pool directory." ; \ + ${MKDIR} ${DEFAULT_POOLDIR} ; \ + fi + ${TOUCH} /var/log/wcol.log + + @${ECHO} "Installing sample configuration file." + @${INSTALL_DATA} ${WRKSRC}/wcol.conf-dist ${PREFIX}/etc/wcol.conf.sample + + @if [ ! -f ${STARTUP_SCRIPT} ]; then \ + ${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ; \ + ${INSTALL_SCRIPT} ${FILESDIR}/wcol.sh.sample ${STARTUP_SCRIPT} ; \ + fi + +.include <bsd.port.mk> diff --git a/www/wcol/distinfo b/www/wcol/distinfo new file mode 100644 index 000000000000..ccbe2807fd30 --- /dev/null +++ b/www/wcol/distinfo @@ -0,0 +1 @@ +MD5 (wcolEpre.980713_100245.tar.gz) = bb13951023278a6146d07af01aca5861 diff --git a/www/wcol/files/patch-aa b/www/wcol/files/patch-aa new file mode 100644 index 000000000000..10e4602c0e5c --- /dev/null +++ b/www/wcol/files/patch-aa @@ -0,0 +1,65 @@ +--- Makefile.in.orig Sat Sep 27 16:42:19 1997 ++++ Makefile.in Sun Jul 12 20:32:18 1998 +@@ -8,8 +8,9 @@ + + + RM=rm -f +-#CC=gcc -ansi +-#CC=/opt/SUNWspro/SC4.0/bin/cc ++CC=cc ++WCOLDIR=@prefix@/wcol ++DEFAULT_POOLDIR?=/var/spool/wcol + + # + # Compile Flag +@@ -58,7 +58,11 @@ + # + + DEFS = @DEFS@ \ +- -DDEFAULT_CONFIGFILE=\"/etc/wcol.conf\" \ ++ -DDEFAULT_CONFIGFILE=\"@prefix@/etc/wcol.conf\" \ ++ -DDEFAULT_LOGFILE=\"/var/log/wcol.log\" \ ++ -DDEFAULT_PIDFILE=\"/var/run/wcol.pid\" \ ++ -DDEFAULT_STATEFILE=\"/var/tmp/wcol.state\" \ ++ -DDEFAULT_POOLDIR=\"${DEFAULT_POOLDIR}\" \ + -DLOGGING_LOCALTIME \ + -DMAX_REQUEST_QUEUE=2048 \ + -DMAX_HANDLER=4 -DNUM_HANDLER=4 \ +@@ -95,7 +100,8 @@ + JFILTER_OBJS = _jfilter.o + ICP_OBJS = _icp.o socket.o hname.o msg.o base.o url.o mem.o sigs.o + PLIST_OBJS = plist.o msg.o base.o url.o info.o mem.o misc.o \ +- args.o rglobal.o accept.o pstate.o conv.o ++ args.o rglobal.o accept.o pstate.o conv.o \ ++ reaper.o sigs.o ipc.o eqsort.o + + OBJS = $(WCOL_OBJS) $(SSTATE_OBJS) $(HSTATE_OBJS) $(REAPER_OBJS) \ + $(FTP_OBJS) $(PARSE_OBJS) $(JFILTER_OBJS) $(ICP_OBJS) $(PLIST_OBJS) +@@ -150,6 +156,27 @@ + allclean: + -$(MAKE) clean + $(RM) config.h Makefile config.cache config.status ++ ++### ++install: ++ @if [ ! -d ${WCOLDIR} ]; then \ ++ mkdir ${WCOLDIR}; \ ++ fi ++ @echo "install programs..." ++ ${BSD_INSTALL_PROGRAM} ./hstate ${WCOLDIR}/hstate ++ ${BSD_INSTALL_PROGRAM} ./icp ${WCOLDIR}/icp ++ ${BSD_INSTALL_PROGRAM} ./jfilter ${WCOLDIR}/jfilter ++ ${BSD_INSTALL_PROGRAM} ./parse ${WCOLDIR}/parse ++ ${BSD_INSTALL_PROGRAM} ./plist ${WCOLDIR}/plist ++ ${BSD_INSTALL_PROGRAM} ./reaper ${WCOLDIR}/reaper ++ ${BSD_INSTALL_PROGRAM} ./scntl ${WCOLDIR}/scntl ++ ${BSD_INSTALL_PROGRAM} ./sstate ${WCOLDIR}/sstate ++ ${BSD_INSTALL_PROGRAM} ./wcol ${WCOLDIR}/wcol ++ @echo "install admin scripts..." ++ ${BSD_INSTALL_SCRIPT} ../admin/killwcol ${WCOLDIR}/killwcol ++ ${BSD_INSTALL_SCRIPT} ../admin/pool_walk ${WCOLDIR}/pool_walk ++ ${BSD_INSTALL_SCRIPT} ../stat/log_report ${WCOLDIR}/log_report ++ ${BSD_INSTALL_SCRIPT} ../stat/log_transition ${WCOLDIR}/log_transition + + ### + ### dependency diff --git a/www/wcol/files/patch-ab b/www/wcol/files/patch-ab new file mode 100644 index 000000000000..15e58abf9cc7 --- /dev/null +++ b/www/wcol/files/patch-ab @@ -0,0 +1,69 @@ +--- wcol.conf-dist.orig Sat Sep 20 21:55:05 1997 ++++ wcol.conf-dist Mon Jul 13 03:48:00 1998 +@@ -46,7 +46,7 @@ + # + # + +-LocalDomain .high-quality.com ++LocalDomain .mydomain + + + # +@@ -58,7 +58,7 @@ + # + + FTPUser anonymous +-FTPPass wcol-ftp@admin.hight-quality.com ++FTPPass wcol-ftp@myhost.mydomain + + + +@@ -112,7 +112,7 @@ + # HTTPPort 8000 + # + +-HTTPPort 9000 ++HTTPPort 7128 + + + # +@@ -128,7 +128,7 @@ + # ICPPort 7130 + # + +-ICPPort 3130 ++ICPPort 7130 + + + ###### +@@ -359,10 +359,10 @@ + # LogFile /var/tmp/wcol.log + # + +-LogFile /var/tmp/wcol.log ++LogFile /var/log/wcol.log + + StateFile /var/tmp/wcol.state +-PidFile /var/tmp/wcol.pid ++PidFile /var/run/wcol.pid + + + +@@ -388,7 +388,7 @@ + # + + NumHandler 4 +-MaxHandler 8 ++MaxHandler 4 + + + NumPrompter 1 +@@ -417,7 +417,7 @@ + # CacheDir /var/tmp/www-pool + # + +-CacheDir /var/tmp/pool ++CacheDir /var/spool/wcol + + + # diff --git a/www/wcol/files/patch-ac b/www/wcol/files/patch-ac new file mode 100644 index 000000000000..8cf5d40dcf3d --- /dev/null +++ b/www/wcol/files/patch-ac @@ -0,0 +1,11 @@ +--- plist.c.orig Sun Jan 19 20:20:25 1997 ++++ plist.c Sun Jul 12 20:02:33 1998 +@@ -100,7 +100,7 @@ + URL_Reset(&url); + } + +- ++pid_t wcol_pid; + + main(int argc, char **argv) + { diff --git a/www/wcol/files/patch-ad b/www/wcol/files/patch-ad new file mode 100644 index 000000000000..58acc2ad2f4e --- /dev/null +++ b/www/wcol/files/patch-ad @@ -0,0 +1,17 @@ +--- ../admin/killwcol.in.orig Sun Jul 12 20:37:34 1998 ++++ ../admin/killwcol.in Sun Jul 12 20:35:08 1998 +@@ -3,10 +3,10 @@ + ### + ### defaults + ### +-D_CONFIG=/etc/wcol.conf +-D_PIDFILE=/var/tmp/wcol.pid +-BSD= +-SYSV=1 ++D_CONFIG=@prefix@/etc/wcol.conf ++D_PIDFILE=/var/run/wcol.pid ++BSD=1 ++SYSV= + + + while [ $# -ge 1 ] diff --git a/www/wcol/files/patch-ae b/www/wcol/files/patch-ae new file mode 100644 index 000000000000..2c5acbee73ee --- /dev/null +++ b/www/wcol/files/patch-ae @@ -0,0 +1,11 @@ +--- configure.orig Sun Jul 12 20:36:14 1998 ++++ configure Sun Jul 12 20:35:57 1998 +@@ -2197,7 +2197,7 @@ + EOF + cat >> $CONFIG_STATUS <<EOF + +-CONFIG_FILES=\${CONFIG_FILES-"Makefile"} ++CONFIG_FILES=\${CONFIG_FILES-"Makefile ../admin/killwcol"} + EOF + cat >> $CONFIG_STATUS <<\EOF + for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then diff --git a/www/wcol/files/wcol.sh.sample b/www/wcol/files/wcol.sh.sample new file mode 100644 index 000000000000..5855b633c114 --- /dev/null +++ b/www/wcol/files/wcol.sh.sample @@ -0,0 +1,8 @@ +#!/bin/sh +wcolspool=/var/spool/wcol +wcol=/usr/local/wcol/wcol + +if [ -f $wcol ]; then + echo -n ' wcol' + $wcol >/dev/null 2>&1 & +fi diff --git a/www/wcol/pkg-comment b/www/wcol/pkg-comment new file mode 100644 index 000000000000..5e01e376bc21 --- /dev/null +++ b/www/wcol/pkg-comment @@ -0,0 +1 @@ +A prefetching proxy server for WWW. diff --git a/www/wcol/pkg-descr b/www/wcol/pkg-descr new file mode 100644 index 000000000000..12d3b1ce1161 --- /dev/null +++ b/www/wcol/pkg-descr @@ -0,0 +1,20 @@ +WcolE - WWW Collector 5th generation + + Wcol is a prefetching proxy server for WWW. + WcolE is 5th generation of Wcol. + + Informaion of Wcol is published by SHiKA project server. + http://shika.aist-nara.ac.jp/products/wcol/wcol.html + + Wcol sample configuration file is ${PREFIX}/etc/wcol.conf.sample + Wcol sample startup script is ${PREFIX}/etc/rc.d/wcol.sh.sample + Wcol cache spool directory is /var/spool/wcol + Wcol log directory is /var/log/wcol.log + Wcol pid file is /var/run/wcol.pid + + You should prepare wcol config file: ${PREFIX}/etc/wcol.conf + + (*) default ${PREFIX} is /usr/local + +--- +Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp> diff --git a/www/wcol/pkg-plist b/www/wcol/pkg-plist new file mode 100644 index 000000000000..edc3d5f6abf6 --- /dev/null +++ b/www/wcol/pkg-plist @@ -0,0 +1,19 @@ +wcol/wcol +wcol/hstate +wcol/icp +wcol/jfilter +wcol/parse +wcol/plist +wcol/reaper +wcol/scntl +wcol/sstate +wcol/killwcol +wcol/pool_walk +wcol/log_report +wcol/log_transition +etc/wcol.conf.sample +etc/rc.d/wcol.sh.sample +@exec mkdir -p /var/spool/wcol +@exec touch /var/log/wcol.log +@unexec rm -rf /var/spool/wcol +@dirrm wcol |