aboutsummaryrefslogtreecommitdiffstats
path: root/german/webalizer2
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-05-30 04:01:19 +0800
committerdinoex <dinoex@FreeBSD.org>2001-05-30 04:01:19 +0800
commit487ab060d0c3fcda4c502dc054f6c4bd7b089808 (patch)
treedf379d9151e10abea84658f8d742acfcd73adf4e /german/webalizer2
parent77136f1c45e73339a9a6f7841b4667fc9408cb07 (diff)
downloadfreebsd-ports-gnome-487ab060d0c3fcda4c502dc054f6c4bd7b089808.tar.gz
freebsd-ports-gnome-487ab060d0c3fcda4c502dc054f6c4bd7b089808.tar.zst
freebsd-ports-gnome-487ab060d0c3fcda4c502dc054f6c4bd7b089808.zip
- Make this PORTS a slave port of www/webalizer
- Allow Makefile.local in the slave dir.
Diffstat (limited to 'german/webalizer2')
-rw-r--r--german/webalizer2/Makefile67
-rw-r--r--german/webalizer2/distinfo1
-rw-r--r--german/webalizer2/files/patch-aa17
-rw-r--r--german/webalizer2/files/patch-ab65
-rw-r--r--german/webalizer2/files/patch-ac62
-rw-r--r--german/webalizer2/files/patch-ad33
-rw-r--r--german/webalizer2/pkg-comment1
-rw-r--r--german/webalizer2/pkg-descr23
-rw-r--r--german/webalizer2/pkg-plist16
9 files changed, 6 insertions, 279 deletions
diff --git a/german/webalizer2/Makefile b/german/webalizer2/Makefile
index 0da9c39d9cc3..580dc90aa698 100644
--- a/german/webalizer2/Makefile
+++ b/german/webalizer2/Makefile
@@ -4,68 +4,13 @@
#
# $FreeBSD$
-PORTNAME= webalizer
-PORTVERSION= 2.1.6
-PORTREVISION= 2
-CATEGORIES= german www
-MASTER_SITES= ftp://ftp.mrunix.net/pub/webalizer/ \
- ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
PKGNAMEPREFIX?= de-
-DISTNAME= ${PORTNAME}-2.01-06-src
+MASTERDIR?= ${.CURDIR}/../../www/webalizer
+CATEGORIES= german
+WEBALIZER_LANG= german
-MAINTAINER= dirk.meyer@dinoex.sub.org
-
-LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd
-
-USE_BZIP2= yes
-GNU_CONFIGURE= yes
-WEBALIZER_LANG?= german
-
-.include <bsd.port.pre.mk>
-
-CONFIGURE_ARGS+= --enable-dns \
- --with-etcdir=${PREFIX}/etc \
- --with-gdlib=${PREFIX}/lib \
- --with-gd=${PREFIX}/include/gd \
- --with-language=${WEBALIZER_LANG}
-CONFIGURE_ENV+= LDFLAGS="-L${PREFIX}/lib"
-MAKE_ARGS+= CFLAGS="${CFLAGS}"
-MAN1= ${PKGNAMEPREFIX}webalizer.1
-DOC1= CHANGES COPYING Copyright INSTALL \
- README README.FIRST DNS.README country-codes.txt
-WRKSRC= ${WRKDIR}/${DISTNAME:S/-src$//}
-PLIST_SUB+= PKGNAMEPREFIX=${PKGNAMEPREFIX}
-
-pre-configure:
- @${PERL5} -pi -e "s=/etc=${PREFIX}/etc=" ${WRKSRC}/webalizer.1
- @${PERL5} -pi -e "s=webalizer.conf=${PKGNAMEPREFIX}webalizer.conf=" \
- ${WRKSRC}/webalizer.c
-
-do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/webalizer \
- ${PREFIX}/bin/${PKGNAMEPREFIX}webalizer
- ${LN} -sf ${PKGNAMEPREFIX}webalizer \
- ${PREFIX}/bin/${PKGNAMEPREFIX}webazolver
-
-post-install:
-.for i in ${MAN1}
- ${INSTALL_MAN} ${WRKSRC}/webalizer.1 ${PREFIX}/man/man1/${i}
-.endfor
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/${PKGNAMEPREFIX}webalizer
-.for i in ${DOC1}
- @${INSTALL_DATA} ${WRKSRC}/${i} \
- ${PREFIX}/share/doc/${PKGNAMEPREFIX}webalizer/${i}
-.endfor
+.if exists(${.CURDIR}/Makefile.local)
+.include "${.CURDIR}/Makefile.local"
.endif
- ${MKDIR} ${PREFIX}/share/examples/${PKGNAMEPREFIX}webalizer
-.for i in msfree.png sample.conf webalizer.png
- @${INSTALL_DATA} ${WRKSRC}/${i} \
- ${PREFIX}/share/examples/${PKGNAMEPREFIX}webalizer/${i}
-.endfor
- @if [ ! -f ${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ]; then \
- ${INSTALL_DATA} ${WRKSRC}/sample.conf \
- ${PREFIX}/etc/${PKGNAMEPREFIX}webalizer.conf-dist ; \
- fi
-.include <bsd.port.post.mk>
+.include "${MASTERDIR}/Makefile"
diff --git a/german/webalizer2/distinfo b/german/webalizer2/distinfo
deleted file mode 100644
index 67782415286d..000000000000
--- a/german/webalizer2/distinfo
+++ /dev/null
@@ -1 +0,0 @@
-MD5 (webalizer-2.01-06-src.tar.bz2) = 9e52cd91de25c87e29b105e5b23dcdfc
diff --git a/german/webalizer2/files/patch-aa b/german/webalizer2/files/patch-aa
deleted file mode 100644
index 37e6eb36db24..000000000000
--- a/german/webalizer2/files/patch-aa
+++ /dev/null
@@ -1,17 +0,0 @@
---- linklist.c.bak Fri Sep 29 07:51:02 2000
-+++ linklist.c Sat Oct 14 17:22:16 2000
-@@ -197,12 +197,12 @@
- strncpy(temp_buf,str,79);
- temp_buf[79]=0;
-
-- while (!isspace((int)*name)&&*name!=0) name++;
-+ while (!isspace((unsigned char)*name)&&*name!=0) name++;
- if (*name==0) name=temp_buf;
- else
- {
- *name++=0;
-- while (isspace((int)*name)&&*name!=0) name++;
-+ while (isspace((unsigned char)*name)&&*name!=0) name++;
- if (*name==0) name=temp_buf;
- }
-
diff --git a/german/webalizer2/files/patch-ab b/german/webalizer2/files/patch-ab
deleted file mode 100644
index f8f53e94cdc3..000000000000
--- a/german/webalizer2/files/patch-ab
+++ /dev/null
@@ -1,65 +0,0 @@
---- preserve.c.bak Fri Sep 29 07:51:32 2000
-+++ preserve.c Sat Oct 14 17:34:03 2000
-@@ -492,7 +492,7 @@
- tmp_buf[strlen(tmp_buf)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 10; /* error exit */
-- if (!isdigit((int)buffer[0])) return 10; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 10; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%d %lu %lu %lf %lu %lu",
-@@ -523,7 +523,7 @@
- tmp_buf[strlen(buffer)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 8; /* error exit */
-- if (!isdigit((int)buffer[0])) return 8; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 8; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%d %lu %lu %lf %lu %lu",
-@@ -563,7 +563,7 @@
- tmp_buf[strlen(buffer)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 9; /* error exit */
-- if (!isdigit((int)buffer[0])) return 9; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 9; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%d %lu %lu %lf %lu %lu",
-@@ -602,7 +602,7 @@
- tmp_buf[strlen(buffer)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 11; /* error exit */
-- if (!isdigit((int)buffer[0])) return 11; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 11; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%d %lu",&t_rnode.flag,&t_rnode.count);
-@@ -627,7 +627,7 @@
- tmp_buf[strlen(buffer)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 12; /* error exit */
-- if (!isdigit((int)buffer[0])) return 12; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 12; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%d %lu",&t_anode.flag,&t_anode.count);
-@@ -652,7 +652,7 @@
- tmp_buf[strlen(buffer)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 13; /* error exit */
-- if (!isdigit((int)buffer[0])) return 13; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 13; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%lu",&t_snode.count);
-@@ -677,7 +677,7 @@
- tmp_buf[strlen(buffer)-1]=0;
-
- if ((fgets(buffer,BUFSIZE,fp)) == NULL) return 14; /* error exit */
-- if (!isdigit((int)buffer[0])) return 14; /* error exit */
-+ if (!isdigit((unsigned char)buffer[0])) return 14; /* error exit */
-
- /* load temporary node data */
- sscanf(buffer,"%d %lu %lu %lf %lu %lu",
diff --git a/german/webalizer2/files/patch-ac b/german/webalizer2/files/patch-ac
deleted file mode 100644
index 2f257c710ad7..000000000000
--- a/german/webalizer2/files/patch-ac
+++ /dev/null
@@ -1,62 +0,0 @@
---- webalizer.c.orig Fri Oct 6 11:59:08 2000
-+++ webalizer.c Sat Oct 14 17:17:29 2000
-@@ -569,7 +569,7 @@
-
- /* convert month name to lowercase */
- for (i=4;i<7;i++)
-- log_rec.datetime[i]=tolower(log_rec.datetime[i]);
-+ log_rec.datetime[i]=tolower((unsigned char)log_rec.datetime[i]);
-
- /* get year/month/day/hour/min/sec values */
- for (i=0;i<12;i++)
-@@ -1459,19 +1459,19 @@
- while ( (fgets(buffer,BUFSIZE,fp)) != NULL)
- {
- /* skip comments and blank lines */
-- if ( (buffer[0]=='#') || isspace((int)buffer[0]) ) continue;
-+ if ( (buffer[0]=='#') || isspace((unsigned char)buffer[0]) ) continue;
-
- /* Get keyword */
- cp1=buffer;cp2=keyword;
-- while ( isalnum((int)*cp1) ) *cp2++ = *cp1++;
-+ while ( isalnum((unsigned char)*cp1) ) *cp2++ = *cp1++;
- *cp2='\0';
-
- /* Get value */
- cp2=value;
-- while ( (*cp1!='\n')&&(*cp1!='\0')&&(isspace((int)*cp1)) ) cp1++;
-+ while ( (*cp1!='\n')&&(*cp1!='\0')&&(isspace((unsigned char)*cp1)) ) cp1++;
- while ( (*cp1!='\n')&&(*cp1!='\0') ) *cp2++ = *cp1++;
- *cp2--='\0';
-- while ( (isspace((int)*cp2)) && (cp2 != value) ) *cp2--='\0';
-+ while ( (isspace((unsigned char)*cp2)) && (cp2 != value) ) *cp2--='\0';
-
- /* check if blank keyword/value */
- if ( (keyword[0]=='\0') || (value[0]=='\0') ) continue;
-@@ -1720,7 +1720,7 @@
-
- int isurlchar(char ch)
- {
-- if (isalnum((int)ch)) return 1; /* allow letters, numbers... */
-+ if (isalnum((unsigned char)ch)) return 1; /* allow letters, numbers... */
- return (strchr(":/\\.,' *-+_@~()[]",ch)!=NULL); /* and a few special ones */
- }
-
-@@ -1813,7 +1813,7 @@
- if (*cp1=='+') *cp1=' '; /* change + to space */
- if (sp_flg && *cp1==' ') { cp1++; continue; } /* compress spaces */
- if (*cp1==' ') sp_flg=1; else sp_flg=0; /* (flag spaces here) */
-- *cp2++=tolower(*cp1); /* normal character */
-+ *cp2++= *cp1; /* normal character */
- cp1++;
- }
- }
-@@ -1848,7 +1848,7 @@
- int i=group_domains+1;
-
- cp = str+strlen(str)-1;
-- if (isdigit((int)*cp)) return NULL; /* ignore IP addresses */
-+ if (isdigit((unsigned char)*cp)) return NULL; /* ignore IP addresses */
-
- while (cp!=str)
- {
diff --git a/german/webalizer2/files/patch-ad b/german/webalizer2/files/patch-ad
deleted file mode 100644
index 4ef6e9feebda..000000000000
--- a/german/webalizer2/files/patch-ad
+++ /dev/null
@@ -1,33 +0,0 @@
---- output.c.orig Fri Sep 29 07:51:42 2000
-+++ output.c Sat Oct 14 17:18:55 2000
-@@ -1450,10 +1450,17 @@
- rptr=*pointer++;
- if (rptr->flag == OBJ_REG)
- {
-- fprintf(out_fp,"%-8lu %6.02f%% %s\n",
-- rptr->count,
-- (t_hit==0)?0:((float)rptr->count/t_hit)*100.0,
-- rptr->string);
-+ if (strstr(rptr->string,"://")!=NULL)
-+ fprintf(out_fp,"%-8lu %6.02f%% <A HREF=\"%s\">%s</A>\n",
-+ rptr->count,
-+ (t_hit==0)?0:((float)rptr->count/t_hit)*100.0,
-+ rptr->string,
-+ rptr->string);
-+ else
-+ fprintf(out_fp,"%-8lu %6.02f%% %s\n",
-+ rptr->count,
-+ (t_hit==0)?0:((float)rptr->count/t_hit)*100.0,
-+ rptr->string);
- r_reg--;
- }
- }
-@@ -1932,7 +1939,7 @@
- {
- domain = hptr->string+strlen(hptr->string)-1;
- while ( (*domain!='.')&&(domain!=hptr->string)) domain--;
-- if ((domain==hptr->string)||(isdigit((int)*++domain)))
-+ if ((domain==hptr->string)||(isdigit((unsigned char)*++domain)))
- {
- ctry[0].count+=hptr->count;
- ctry[0].files+=hptr->files;
diff --git a/german/webalizer2/pkg-comment b/german/webalizer2/pkg-comment
deleted file mode 100644
index a2470870126b..000000000000
--- a/german/webalizer2/pkg-comment
+++ /dev/null
@@ -1 +0,0 @@
-A web server log file analysis program
diff --git a/german/webalizer2/pkg-descr b/german/webalizer2/pkg-descr
deleted file mode 100644
index f805f48673c7..000000000000
--- a/german/webalizer2/pkg-descr
+++ /dev/null
@@ -1,23 +0,0 @@
-What is The Webalizer?
-----------------------
-
-A fast, free web server log file analysis program. Produces
-HTML output for viewing with a web browser. Written in C on
-a Linux platform, however designed to be as ANSI/POSIX
-compliant as possible so porting to other UNIX platforms should
-be painless. Binary distributions for most popular platforms
-are available. Features multiple language support, incremental
-processing capabilities, reverse DNS lookup support, export via
-tab seperated ascii files to popular databases and spreadsheets,
-and much more. Supports standard CLF and combined logs, as well
-as wu-ftpd xferlog and squid proxy logs, which can be either in
-standard text format or gzip compressed.
-
-Keywords: Web Analysis, Log Analysis, Usage Statistics, Linux, Unix
-Author: Bradford L. Barrett
-Maintained-by: Bradford L. Barrett
-WWW: http://www.mrunix.net/webalizer/
-Alternate-site:http://samhain.unix.cslab.tuwien.ac.at/webalizer/
-FTP: ftp://www.mrunix.net/pub/webalizer/
-Platforms: Linux, SCO, other UNIX's
-Copying-policy: GPL
diff --git a/german/webalizer2/pkg-plist b/german/webalizer2/pkg-plist
deleted file mode 100644
index 43d95833a1ba..000000000000
--- a/german/webalizer2/pkg-plist
+++ /dev/null
@@ -1,16 +0,0 @@
-bin/%%PKGNAMEPREFIX%%webalizer
-@unexec rm -f %B/%%PKGNAMEPREFIX%%webazolver
-etc/%%PKGNAMEPREFIX%%webalizer.conf-dist
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/CHANGES
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/COPYING
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/Copyright
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/DNS.README
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/INSTALL
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/README
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/README.FIRST
-%%PORTDOCS%%share/doc/%%PKGNAMEPREFIX%%webalizer/country-codes.txt
-%%PORTDOCS%%@dirrm share/doc/%%PKGNAMEPREFIX%%webalizer
-%%PORTDOCS%%share/examples/%%PKGNAMEPREFIX%%webalizer/msfree.png
-%%PORTDOCS%%share/examples/%%PKGNAMEPREFIX%%webalizer/sample.conf
-%%PORTDOCS%%share/examples/%%PKGNAMEPREFIX%%webalizer/webalizer.png
-%%PORTDOCS%%@dirrm share/examples/%%PKGNAMEPREFIX%%webalizer