diff options
Diffstat (limited to 'www')
-rw-r--r-- | www/wwwcount/Makefile | 38 | ||||
-rw-r--r-- | www/wwwcount/files/md5 | 1 | ||||
-rw-r--r-- | www/wwwcount/patches/patch-aa | 139 | ||||
-rw-r--r-- | www/wwwcount/patches/patch-ab | 19 | ||||
-rw-r--r-- | www/wwwcount/patches/patch-ae | 175 | ||||
-rw-r--r-- | www/wwwcount/pkg/COMMENT | 1 | ||||
-rw-r--r-- | www/wwwcount/pkg/DESCR | 4 | ||||
-rw-r--r-- | www/wwwcount/pkg/PLIST | 17 |
8 files changed, 394 insertions, 0 deletions
diff --git a/www/wwwcount/Makefile b/www/wwwcount/Makefile new file mode 100644 index 00000000000..143ee01d2c1 --- /dev/null +++ b/www/wwwcount/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: wwwcount +# Version required: 2.4 +# Date created: 16 May 1996 +# Whom: ache +# +# FreeBSD Id: Makefile,v 1.12 1998/09/28 18:02:05 smace Exp +# + +# WWW site: http://www.fccc.edu/users/muquit/Count.html +# For digit images look at: +# http://www.digitmania.holowww.com/ + +DISTNAME= wwwcount2.4 +PKGNAME= wwwcount-2.4 +CATEGORIES= www +MASTER_SITES= http://www.fccc.edu/users/muquit/src/wwwcount2.4/ + +MAINTAINER= ports@FreeBSD.ORG + +GNU_CONFIGURE= yes +IS_INTERACTIVE= yes +USE_GMAKE= yes +MAN1= mkstrip.1 + +pre-configure: + cd ${WRKSRC}; yes "" | PREFIX=${PREFIX} ./Count-config + +post-build: + cd ${WRKSRC}; ./Gen-conf + +do-install: + cd ${WRKSRC}; yes "" | ./Count-install + cd ${WRKSRC}/utils/mkstrip; \ + ${INSTALL_PROGRAM} extdgts mkstrip ${PREFIX}/bin; \ + ${INSTALL_MAN} mkstrip.1 ${PREFIX}/man/man1; \ + ${INSTALL_SCRIPT} mkstrip.sh ${PREFIX}/lib/Counter/digits + +.include <bsd.port.mk> diff --git a/www/wwwcount/files/md5 b/www/wwwcount/files/md5 new file mode 100644 index 00000000000..8aa8d55b794 --- /dev/null +++ b/www/wwwcount/files/md5 @@ -0,0 +1 @@ +MD5 (wwwcount2.4.tar.gz) = b9efab88431a1fd32f3908ba278d9375 diff --git a/www/wwwcount/patches/patch-aa b/www/wwwcount/patches/patch-aa new file mode 100644 index 00000000000..084c3a56d69 --- /dev/null +++ b/www/wwwcount/patches/patch-aa @@ -0,0 +1,139 @@ +*** Count-config.orig Mon Nov 24 04:49:51 1997 +--- Count-config Sat Nov 29 18:50:53 1997 +*************** +*** 20,26 **** + trap 'echo '';echo "Interrupt Detected..exiting";rm -f "./Config.tmpl" 2>/dev/null;rm -f "./.alfcf" ;rm -f "./strict" 2>/dev/null;echo '';exit 1' 1 2 3 15 + + Tmpl="./Config.tmpl" +! CgiBinDir="/usr/local/etc/httpd/cgi-bin" + + if [ ! -f "./VERSION" ] + then +--- 20,26 ---- + trap 'echo '';echo "Interrupt Detected..exiting";rm -f "./Config.tmpl" 2>/dev/null;rm -f "./.alfcf" ;rm -f "./strict" 2>/dev/null;echo '';exit 1' 1 2 3 15 + + Tmpl="./Config.tmpl" +! CgiBinDir="${PREFIX}/www/cgi-bin" + + if [ ! -f "./VERSION" ] + then +*************** +*** 37,49 **** + Version=`cat ./VERSION` + Basedir="wwwcount$Version" + ConfigH="src/config.h" +! BaseDir="/usr/local/etc/Counter" + ConfigDir="$BaseDir/conf" + ConfFile="count.cfg" +! DigitDir="$BaseDir/digits" + DataDir="$BaseDir/data" +! LogDir="$BaseDir/logs" +! LogFile="Count$Version.log" + RgbFile="./wcount/rgb.txt" + + # +--- 37,50 ---- + Version=`cat ./VERSION` + Basedir="wwwcount$Version" + ConfigH="src/config.h" +! BaseDir="${PREFIX}/etc/Counter" +! LibDir="${PREFIX}/lib/Counter" + ConfigDir="$BaseDir/conf" + ConfFile="count.cfg" +! DigitDir="$LibDir/digits" + DataDir="$BaseDir/data" +! LogDir="/var/log" +! LogFile="Counter.log" + RgbFile="./wcount/rgb.txt" + + # +*************** +*** 117,123 **** + + if [ .$answer = . ] + then +! answer=x + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +--- 118,124 ---- + + if [ .$answer = . ] + then +! answer=y + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +*************** +*** 183,191 **** + then + BaseDir=$newpath + ConfigDir=$BaseDir/conf +- DigitDir=$BaseDir/digits + DataDir=$BaseDir/data +- LogDir=$BaseDir/logs + fi + + # +--- 184,190 ---- +*************** +*** 374,380 **** + + if [ .$answer = . ] + then +! answer=x + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +--- 373,379 ---- + + if [ .$answer = . ] + then +! answer=y + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +*************** +*** 517,523 **** + ** so RGB names can be looked up, but yet not allow users to make constant + ** use of this very ineffiecient lookup. + */ +! #define RGB_MAPPING_DICT "$BaseDir/rgb.txt" + EOX + + cat<<EOXXX>>$ConfigH +--- 516,522 ---- + ** so RGB names can be looked up, but yet not allow users to make constant + ** use of this very ineffiecient lookup. + */ +! #define RGB_MAPPING_DICT "$LibDir/rgb.txt" + EOX + + cat<<EOXXX>>$ConfigH +*************** +*** 535,540 **** +--- 534,540 ---- + ## + echo "creating variables template file $Tmpl for the install program.." + echo "BASE_DIR=\"$BaseDir\"" > $Tmpl ++ echo "LIB_DIR=\"$LibDir\"" >> $Tmpl + echo "CGIBIN_DIR=\"$CgiBinDir\"" >> $Tmpl + echo "CONFIG_FILE=\"$ConfFile\"" >> $Tmpl + echo "CONFIG_DIR=\"$ConfigDir\"" >> $Tmpl +*************** +*** 543,549 **** + echo "LOG_DIR=\"$LogDir\"" >> $Tmpl + echo "LOG_FILE=\"$LogFile\"" >> $Tmpl + echo "RGB_FILE=\"$RgbFile\"" >> $Tmpl +! echo "RGB_DIR=\"$BaseDir\"" >> $Tmpl + ## + # create template for install program --ends + ## +--- 543,549 ---- + echo "LOG_DIR=\"$LogDir\"" >> $Tmpl + echo "LOG_FILE=\"$LogFile\"" >> $Tmpl + echo "RGB_FILE=\"$RgbFile\"" >> $Tmpl +! echo "RGB_DIR=\"$LibDir\"" >> $Tmpl + ## + # create template for install program --ends + ## diff --git a/www/wwwcount/patches/patch-ab b/www/wwwcount/patches/patch-ab new file mode 100644 index 00000000000..f4c58de6415 --- /dev/null +++ b/www/wwwcount/patches/patch-ab @@ -0,0 +1,19 @@ +*** configure.bak Sat Oct 25 08:47:50 1997 +--- configure Thu Nov 6 00:59:05 1997 +*************** +*** 1587,1593 **** + s%@CFLAGS@%$CFLAGS%g + s%@CPPFLAGS@%$CPPFLAGS%g + s%@CXXFLAGS@%$CXXFLAGS%g +! s%@DEFS@%$DEFS%g + s%@LDFLAGS@%$LDFLAGS%g + s%@LIBS@%$LIBS%g + s%@exec_prefix@%$exec_prefix%g +--- 1587,1593 ---- + s%@CFLAGS@%$CFLAGS%g + s%@CPPFLAGS@%$CPPFLAGS%g + s%@CXXFLAGS@%$CXXFLAGS%g +! s%@DEFS@%$CFLAGS $DEFS%g + s%@LDFLAGS@%$LDFLAGS%g + s%@LIBS@%$LIBS%g + s%@exec_prefix@%$exec_prefix%g diff --git a/www/wwwcount/patches/patch-ae b/www/wwwcount/patches/patch-ae new file mode 100644 index 00000000000..e52c2c43025 --- /dev/null +++ b/www/wwwcount/patches/patch-ae @@ -0,0 +1,175 @@ +*** Count-install.orig Sat May 9 16:53:02 1998 +--- Count-install Sun Jun 7 15:03:51 1998 +*************** +*** 193,199 **** + + if [ .$answer = . ] + then +! answer=x + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +--- 193,199 ---- + + if [ .$answer = . ] + then +! answer=y + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +*************** +*** 233,239 **** + read answer + if [ .$answer = . ] + then +! answer=x + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +--- 233,239 ---- + read answer + if [ .$answer = . ] + then +! answer=y + fi + until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ] + do +*************** +*** 252,262 **** + ### + # enter user id -starts + ### +! echo $n "*Enter user id of httpd's child process [no default]:$c? " + read answer + if [ .$answer = . ] + then +! answer=x + fi + until [ $answer != "x" ] + do +--- 252,262 ---- + ### + # enter user id -starts + ### +! echo $n "*Enter user id of httpd's child process [nobody]:$c? " + read answer + if [ .$answer = . ] + then +! answer=nobody + fi + until [ $answer != "x" ] + do +*************** +*** 276,286 **** + ## + # enter groud id -starts + ## +! echo $n "*Enter group id of httpd's child process [no default]:$c? " + read answer + if [ .$answer = . ] + then +! answer=x + fi + until [ $answer != "x" ] + do +--- 276,286 ---- + ## + # enter groud id -starts + ## +! echo $n "*Enter group id of httpd's child process [nogroup]:$c? " + read answer + if [ .$answer = . ] + then +! answer=nogroup + fi + until [ $answer != "x" ] + do +*************** +*** 323,336 **** + echo + fi + +! echo "installing rgb.txt->$BASE_DIR" +! $INSTALL_PROG -c -m 644 $Rgbfile $BASE_DIR/rgb.txt + +! echo "creating Log directory $LOG_DIR" +! ./mkdirhier $LOG_DIR +! chown $UserId $LOG_DIR +! chgrp $GroupId $LOG_DIR +! chmod 775 $LOG_DIR + + echo "installing image strip for digit style A->$DIGIT_DIR/A" + $INSTALL_PROG -c -m 644 $DigitA/strip.gif\ +--- 323,335 ---- + echo + fi + +! echo "installing rgb.txt->$RGB_DIR" +! $INSTALL_PROG -c -m 644 $Rgbfile $RGB_DIR/rgb.txt + +! echo "installing $LOG_FILE->$LOG_DIR" +! touch $LOG_DIR/$LOG_FILE +! chmod 644 $LOG_DIR/$LOG_FILE +! chown $UserId.$GroupId $LOG_DIR/$LOG_FILE + + echo "installing image strip for digit style A->$DIGIT_DIR/A" + $INSTALL_PROG -c -m 644 $DigitA/strip.gif\ +*************** +*** 360,367 **** + # -R is not portable, reported by Geoff Scully <gws@dis.on.ca> and suggested + # the alternative (01/15/96) + #chown -R $UserId.$GroupId $BASE_DIR +! #find $BASE_DIR -exec chown $UserId {} \; +! #find $BASE_DIR -exec chgrp $GroupId {} \; + # echo "UserId=$UserId" + # echo "GroupId=$GroupId" + ;; +--- 359,368 ---- + # -R is not portable, reported by Geoff Scully <gws@dis.on.ca> and suggested + # the alternative (01/15/96) + #chown -R $UserId.$GroupId $BASE_DIR +! find $BASE_DIR -exec chown $UserId {} \; +! find $BASE_DIR -exec chgrp $GroupId {} \; +! find $LIB_DIR -exec chown $UserId {} \; +! find $LIB_DIR -exec chgrp $GroupId {} \; + # echo "UserId=$UserId" + # echo "GroupId=$GroupId" + ;; +*************** +*** 376,392 **** + + EOM + echo "installing Count.cgi->$CGIBIN_DIR" +! $INSTALL_PROG -c -m 755 $Binary $CGIBIN_DIR/Count.cgi + echo "installing $CONFIG_FILE->$CONFIG_DIR" + $INSTALL_PROG -c $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE + echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR" + $INSTALL_PROG -c $SAMPLE_DAT $DATA_DIR/sample.dat + +! echo "installing rgb.txt->$BASE_DIR" +! $INSTALL_PROG -c $Rgbfile $BASE_DIR/rgb.txt + +! echo "creating Log directory $LOG_DIR" +! ./mkdirhier $LOG_DIR + + echo "installing image strip for digit style A->$DIGIT_DIR/A" + $INSTALL_PROG -c $DigitA/strip.gif $DIGIT_DIR/A/strip.gif +--- 377,394 ---- + + EOM + echo "installing Count.cgi->$CGIBIN_DIR" +! $INSTALL_PROG -s -c -m 755 $Binary $CGIBIN_DIR/Count.cgi + echo "installing $CONFIG_FILE->$CONFIG_DIR" + $INSTALL_PROG -c $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE + echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR" + $INSTALL_PROG -c $SAMPLE_DAT $DATA_DIR/sample.dat + +! echo "installing rgb.txt->$RGB_DIR" +! $INSTALL_PROG -c $Rgbfile $RGB_DIR/rgb.txt + +! echo "installing $LOG_FILE->$LOG_DIR" +! touch $LOG_DIR/$LOG_FILE +! chmod 644 $LOG_DIR/$LOG_FILE + + echo "installing image strip for digit style A->$DIGIT_DIR/A" + $INSTALL_PROG -c $DigitA/strip.gif $DIGIT_DIR/A/strip.gif diff --git a/www/wwwcount/pkg/COMMENT b/www/wwwcount/pkg/COMMENT new file mode 100644 index 00000000000..401523383b4 --- /dev/null +++ b/www/wwwcount/pkg/COMMENT @@ -0,0 +1 @@ +Access counter, clock and date for WWW pages diff --git a/www/wwwcount/pkg/DESCR b/www/wwwcount/pkg/DESCR new file mode 100644 index 00000000000..02f7bf742b2 --- /dev/null +++ b/www/wwwcount/pkg/DESCR @@ -0,0 +1,4 @@ +The counter, clock and date, all in one program. The single program can +be used for any number of web pages, for any number of users. + +WWW: http://www.semcor.com/~muquit/Count.html diff --git a/www/wwwcount/pkg/PLIST b/www/wwwcount/pkg/PLIST new file mode 100644 index 00000000000..0dbd766014d --- /dev/null +++ b/www/wwwcount/pkg/PLIST @@ -0,0 +1,17 @@ +www/cgi-bin/Count.cgi +etc/Counter/conf/count.cfg +etc/Counter/data/sample.dat +lib/Counter/rgb.txt +lib/Counter/digits/A/strip.gif +lib/Counter/digits/B/strip.gif +lib/Counter/digits/C/strip.gif +lib/Counter/digits/D/strip.gif +lib/Counter/digits/D/lenna.gif +lib/Counter/digits/E/strip.gif +lib/Counter/digits/mkstrip.sh +bin/mkstrip +bin/extdgts +@exec touch /var/log/Counter.log +@exec chown nobody.nogroup /var/log/Counter.log +@exec chmod 644 /var/log/Counter.log +@unexec rm /var/log/Counter.log |