mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Most sophisticated Access Counter I found
This commit is contained in:
parent
43cb555578
commit
62ae860429
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3097
31
www/wwwcount/Makefile
Normal file
31
www/wwwcount/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: wwwcount
|
||||
# WWW site: http://www.semcor.com/~muquit/Count.html
|
||||
# For digit images look at:
|
||||
# http://cervantes.learningco.com/kevin/digits/index.html
|
||||
#
|
||||
# Version required: 2.3
|
||||
# Date created: 16 May 1996
|
||||
# Whom: ache
|
||||
#
|
||||
# $Id: Makefile,v 1.4 1996/04/27 12:51:27 ache Exp $
|
||||
#
|
||||
|
||||
DISTNAME= wwwcount2.3
|
||||
PKGNAME= wwwcount-2.3
|
||||
CATEGORIES+= www
|
||||
MASTER_SITES= ftp://warm.semcor.com/pub/muquit/wwwcount2.3/
|
||||
GNU_CONFIGURE= yes
|
||||
IS_INTERACTIVE= yes
|
||||
|
||||
MAINTAINER= ache@FreeBSD.ORG
|
||||
|
||||
pre-configure:
|
||||
cd ${WRKSRC}; yes "" | PREFIX=${PREFIX} ./Count-config
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}; ./Gen-conf
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}; yes "" | ./Count-install
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/wwwcount/distinfo
Normal file
1
www/wwwcount/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (wwwcount2.3.tar.gz) = 0a354cff730c4c9a1886d34f4f5f5031
|
70
www/wwwcount/files/patch-aa
Normal file
70
www/wwwcount/files/patch-aa
Normal file
@ -0,0 +1,70 @@
|
||||
*** Count-config.orig Fri May 3 06:20:27 1996
|
||||
--- Count-config Thu May 16 22:18:17 1996
|
||||
***************
|
||||
*** 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
|
||||
***************
|
||||
*** 36,42 ****
|
||||
Version=`cat ./VERSION`
|
||||
Basedir="wwwcount$Version"
|
||||
ConfigH="config.h"
|
||||
! BaseDir="/usr/local/etc/Counter"
|
||||
ConfigDir="conf"
|
||||
ConfFile="count.cfg"
|
||||
DigitDir="digits"
|
||||
--- 36,42 ----
|
||||
Version=`cat ./VERSION`
|
||||
Basedir="wwwcount$Version"
|
||||
ConfigH="config.h"
|
||||
! BaseDir="${PREFIX}/etc/Counter"
|
||||
ConfigDir="conf"
|
||||
ConfFile="count.cfg"
|
||||
DigitDir="digits"
|
||||
***************
|
||||
*** 114,120 ****
|
||||
|
||||
if [ .$answer = . ]
|
||||
then
|
||||
! answer=x
|
||||
fi
|
||||
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
|
||||
do
|
||||
--- 114,120 ----
|
||||
|
||||
if [ .$answer = . ]
|
||||
then
|
||||
! answer=y
|
||||
fi
|
||||
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
|
||||
do
|
||||
***************
|
||||
*** 302,308 ****
|
||||
|
||||
if [ .$answer = . ]
|
||||
then
|
||||
! answer=x
|
||||
fi
|
||||
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
|
||||
do
|
||||
--- 302,308 ----
|
||||
|
||||
if [ .$answer = . ]
|
||||
then
|
||||
! answer=y
|
||||
fi
|
||||
until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
|
||||
do
|
19
www/wwwcount/files/patch-ab
Normal file
19
www/wwwcount/files/patch-ab
Normal file
@ -0,0 +1,19 @@
|
||||
*** Makefile.in.bak Fri May 3 06:20:33 1996
|
||||
--- Makefile.in Thu May 16 05:43:27 1996
|
||||
***************
|
||||
*** 22,28 ****
|
||||
##
|
||||
ACCESS_AUTH= -DACCESS_AUTH=1
|
||||
DEFINES= $(INCLUDES) $(DEFS) $(ACCESS_AUTH) -D__USE_FIXED_PROTOTYPES__
|
||||
! CFLAGS= -O $(DEFINES) -DSYS_UNIX=1 -DDEBUG=1
|
||||
|
||||
|
||||
OBJS= main.o parse.o strimage.o
|
||||
--- 22,28 ----
|
||||
##
|
||||
ACCESS_AUTH= -DACCESS_AUTH=1
|
||||
DEFINES= $(INCLUDES) $(DEFS) $(ACCESS_AUTH) -D__USE_FIXED_PROTOTYPES__
|
||||
! CFLAGS+= $(DEFINES) -DSYS_UNIX=1 -DDEBUG=1
|
||||
|
||||
|
||||
OBJS= main.o parse.o strimage.o
|
120
www/wwwcount/files/patch-ae
Normal file
120
www/wwwcount/files/patch-ae
Normal file
@ -0,0 +1,120 @@
|
||||
*** Count-install.orig Fri May 3 06:20:31 1996
|
||||
--- Count-install Thu May 16 22:34:39 1996
|
||||
***************
|
||||
*** 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 [nobody]:$c? "
|
||||
read answer
|
||||
if [ .$answer = . ]
|
||||
then
|
||||
! answer=nobody
|
||||
fi
|
||||
until [ $answer != "x" ]
|
||||
do
|
||||
***************
|
||||
*** 298,304 ****
|
||||
# enter groud id -ends
|
||||
##
|
||||
echo "installing Count.cgi->$CGIBIN_DIR"
|
||||
! $INSTALL_PROG -c -o $UserId -g $GroupId -m 755 ./Count.cgi $CGIBIN_DIR/Count.cgi
|
||||
echo "installing $CONFIG_FILE->$CONFIG_DIR"
|
||||
$INSTALL_PROG -c -o $UserId -g $GroupId -m 664 $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE
|
||||
echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR"
|
||||
--- 298,304 ----
|
||||
# enter groud id -ends
|
||||
##
|
||||
echo "installing Count.cgi->$CGIBIN_DIR"
|
||||
! $INSTALL_PROG -s -c -o $UserId -g $GroupId -m 755 ./Count.cgi $CGIBIN_DIR/Count.cgi
|
||||
echo "installing $CONFIG_FILE->$CONFIG_DIR"
|
||||
$INSTALL_PROG -c -o $UserId -g $GroupId -m 664 $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE
|
||||
echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR"
|
||||
***************
|
||||
*** 358,364 ****
|
||||
|
||||
EOM
|
||||
echo "installing Count.cgi->$CGIBIN_DIR"
|
||||
! $INSTALL_PROG -c -m 755 ./Count.cgi $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"
|
||||
--- 358,364 ----
|
||||
|
||||
EOM
|
||||
echo "installing Count.cgi->$CGIBIN_DIR"
|
||||
! $INSTALL_PROG -s -c -m 755 ./Count.cgi $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"
|
1
www/wwwcount/pkg-comment
Normal file
1
www/wwwcount/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Count - access counter, clock and date for WWW pages
|
2
www/wwwcount/pkg-descr
Normal file
2
www/wwwcount/pkg-descr
Normal file
@ -0,0 +1,2 @@
|
||||
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.
|
22
www/wwwcount/pkg-plist
Normal file
22
www/wwwcount/pkg-plist
Normal file
@ -0,0 +1,22 @@
|
||||
@owner nobody
|
||||
@group nobody
|
||||
www/cgi-bin/Count.cgi
|
||||
etc/Counter
|
||||
etc/Counter/conf
|
||||
etc/Counter/conf/count.cfg
|
||||
etc/Counter/data
|
||||
etc/Counter/data/sample.dat
|
||||
etc/Counter/Log
|
||||
etc/Counter/rgb.txt
|
||||
etc/Counter/digits
|
||||
etc/Counter/digits/A
|
||||
etc/Counter/digits/A/strip.gif
|
||||
etc/Counter/digits/B
|
||||
etc/Counter/digits/B/strip.gif
|
||||
etc/Counter/digits/C
|
||||
etc/Counter/digits/C/strip.gif
|
||||
etc/Counter/digits/D
|
||||
etc/Counter/digits/D/strip.gif
|
||||
etc/Counter/digits/D/lenna.gif
|
||||
etc/Counter/digits/E
|
||||
etc/Counter/digits/E/strip.gif
|
Loading…
Reference in New Issue
Block a user