summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2003-12-04 16:06:32 +0000
committerxtraeme <xtraeme@pkgsrc.org>2003-12-04 16:06:32 +0000
commit5790c3aed1e4ed1aabdca159be710dd8e52f26cf (patch)
treec81bf1c166066efdb6549d4f6bb216a9afe99032 /www
parent2e2b807d225b21d505bf22942f8fb2505b5cd149 (diff)
downloadpkgsrc-5790c3aed1e4ed1aabdca159be710dd8e52f26cf.tar.gz
Initial import of sarg-1.4.1 from pkgsrc-wip, packaged by Mike M. Volokhov.
SARG Squid Analysis Report Generator (formerly sqmgrlog) is a tool that allow you to view "where" your users are going to on the Internet. SARG generate reports in HTML showing users, IP addresses, bytes, sites, and times.
Diffstat (limited to 'www')
-rw-r--r--www/sarg/DESCR4
-rw-r--r--www/sarg/Makefile77
-rw-r--r--www/sarg/PLIST28
-rw-r--r--www/sarg/distinfo12
-rw-r--r--www/sarg/patches/patch-aa18
-rw-r--r--www/sarg/patches/patch-ab13
-rw-r--r--www/sarg/patches/patch-ac22
-rw-r--r--www/sarg/patches/patch-ad13
-rw-r--r--www/sarg/patches/patch-ae31
-rw-r--r--www/sarg/patches/patch-af13
10 files changed, 231 insertions, 0 deletions
diff --git a/www/sarg/DESCR b/www/sarg/DESCR
new file mode 100644
index 00000000000..d522ac146d6
--- /dev/null
+++ b/www/sarg/DESCR
@@ -0,0 +1,4 @@
+SARG Squid Analysis Report Generator (formerly sqmgrlog) is a tool
+that allow you to view "where" your users are going to on the
+Internet. SARG generate reports in HTML showing users, IP addresses,
+bytes, sites, and times.
diff --git a/www/sarg/Makefile b/www/sarg/Makefile
new file mode 100644
index 00000000000..99c11e421e4
--- /dev/null
+++ b/www/sarg/Makefile
@@ -0,0 +1,77 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+DISTNAME= sarg-1.4.1
+CATEGORIES= www
+MASTER_SITES= http://web.onda.com.br/orso/
+
+PATCH_SITES= http://web.onda.com.br/orso/patches/
+PATCHFILES= sarg-1.4.1-index.sort.patch
+
+MAINTAINER= mishka@terabyte.com.ua
+HOMEPAGE= http://web.onda.com.br/orso/
+COMMENT= Squid-Cache proxy server Analysis Report Generator
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-gcc \
+ --enable-bindir=${PREFIX}/sbin \
+ --enable-mandir=${PREFIX}/man/man1 \
+ --enable-sysconfdir=${PKG_SYSCONFDIR}
+
+USE_PKGINSTALL= yes
+
+DIST_SUBDIR= ${DISTNAME}
+PKG_SYSCONFSUBDIR= sarg
+EGDIR= ${PREFIX}/share/examples/sarg
+EGLNG= ${EGDIR}/languages
+CFLNG= ${PKG_SYSCONFDIR}/languages
+
+SQUID_ACCESSLOG?= /var/squid/logs/access.log
+SARG_REPORTSDIR?= /var/sarg
+
+OWN_DIRS+= ${SARG_REPORTSDIR} ${CFLNG}
+
+FILES_SUBST+= SQUID_ACCESSLOG=${SQUID_ACCESSLOG} \
+ SARG_REPORTSDIR=${SARG_REPORTSDIR}
+SUBST_CLASSES+= sargconf
+SUBST_MESSAGE.sargconf= "[Adjust values in SARG configuration files]"
+SUBST_STAGE.sargconf= post-configure
+SUBST_FILES.sargconf= sarg.conf sarg.1
+SUBST_SED.sargconf= ${FILES_SUBST_SED}
+
+BUILD_DEFS+= SQUID_ACCESSLOG SARG_REPORTSDIR
+MAKE_ENV+= PKG_FLAGS="-DSQUID_ACCESSLOG='\"${SQUID_ACCESSLOG}\"' \
+ -DSARG_REPORTSDIR='\"${SARG_REPORTSDIR}\"'" \
+ EGDIR="${EGDIR}"
+
+CONF_FILES= ${EGDIR}/sarg.conf ${PKG_SYSCONFDIR}/sarg.conf
+SUPPORT_FILES= ${EGDIR}/exclude_codes ${PKG_SYSCONFDIR}/exclude_codes \
+ ${EGLNG}/Bulgarian_windows1251 \
+ ${CFLNG}/Bulgarian_windows1251 \
+ ${EGLNG}/Catalan ${CFLNG}/Catalan \
+ ${EGLNG}/Czech ${CFLNG}/Czech \
+ ${EGLNG}/Dutch ${CFLNG}/Dutch \
+ ${EGLNG}/English ${CFLNG}/English \
+ ${EGLNG}/French ${CFLNG}/French \
+ ${EGLNG}/German ${CFLNG}/German \
+ ${EGLNG}/Hungarian ${CFLNG}/Hungarian \
+ ${EGLNG}/Indonesian ${CFLNG}/Indonesian \
+ ${EGLNG}/Italian ${CFLNG}/Italian \
+ ${EGLNG}/Japanese ${CFLNG}/Japanese \
+ ${EGLNG}/Latvian ${CFLNG}/Latvian \
+ ${EGLNG}/Polish ${CFLNG}/Polish \
+ ${EGLNG}/Portuguese ${CFLNG}/Portuguese \
+ ${EGLNG}/Romanian ${CFLNG}/Romanian \
+ ${EGLNG}/Russian_koi8 ${CFLNG}/Russian_koi8 \
+ ${EGLNG}/Russian_windows1251 \
+ ${CFLNG}/Russian_windows1251 \
+ ${EGLNG}/Serbian ${CFLNG}/Serbian \
+ ${EGLNG}/Spanish ${CFLNG}/Spanish \
+ ${EGLNG}/Turkish ${CFLNG}/Turkish \
+ ${EGLNG}/Ukrainian_windows1251 \
+ ${CFLNG}/Ukrainian_windows1251
+
+post-extract:
+ @${FIND} ${WRKSRC} -type d -exec ${CHMOD} +x {} \;
+ @${RM} ${WRKSRC}/languages/.new
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/sarg/PLIST b/www/sarg/PLIST
new file mode 100644
index 00000000000..637ecbc52fd
--- /dev/null
+++ b/www/sarg/PLIST
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+sbin/sarg
+man/man1/sarg.1
+share/examples/sarg/sarg.conf
+share/examples/sarg/exclude_codes
+share/examples/sarg/languages/Bulgarian_windows1251
+share/examples/sarg/languages/Catalan
+share/examples/sarg/languages/Czech
+share/examples/sarg/languages/Dutch
+share/examples/sarg/languages/English
+share/examples/sarg/languages/French
+share/examples/sarg/languages/German
+share/examples/sarg/languages/Hungarian
+share/examples/sarg/languages/Indonesian
+share/examples/sarg/languages/Italian
+share/examples/sarg/languages/Japanese
+share/examples/sarg/languages/Latvian
+share/examples/sarg/languages/Polish
+share/examples/sarg/languages/Portuguese
+share/examples/sarg/languages/Romanian
+share/examples/sarg/languages/Russian_koi8
+share/examples/sarg/languages/Russian_windows1251
+share/examples/sarg/languages/Serbian
+share/examples/sarg/languages/Spanish
+share/examples/sarg/languages/Turkish
+share/examples/sarg/languages/Ukrainian_windows1251
+@dirrm share/examples/sarg/languages
+@dirrm share/examples/sarg
diff --git a/www/sarg/distinfo b/www/sarg/distinfo
new file mode 100644
index 00000000000..5f20112bf93
--- /dev/null
+++ b/www/sarg/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+SHA1 (sarg-1.4.1/sarg-1.4.1.tar.gz) = 7b01ad67ca1e6795e33301ac03e455c01259b0f9
+Size (sarg-1.4.1/sarg-1.4.1.tar.gz) = 125589 bytes
+SHA1 (sarg-1.4.1/sarg-1.4.1-index.sort.patch) = 4fb150014d027dd24891a292c1c4ad7fafe0e66f
+Size (sarg-1.4.1/sarg-1.4.1-index.sort.patch) = 2034 bytes
+SHA1 (patch-aa) = c625b392bb7bc6cec773c8c6c14dbe2fba86377e
+SHA1 (patch-ab) = fd2d38a511e1bc3b95a854a8e9fc8beb9631fe3e
+SHA1 (patch-ac) = 59ac8d12b3e8fbd6230fed23fd5da542aee18184
+SHA1 (patch-ad) = 393cc7a76e0a8d01b0387890f7c9f12c08787827
+SHA1 (patch-ae) = d3fac03932f2471fa298069336a890d0a884557f
+SHA1 (patch-af) = 13a7d437eb90ccdcb18851338ab2ebe5512dc84e
diff --git a/www/sarg/patches/patch-aa b/www/sarg/patches/patch-aa
new file mode 100644
index 00000000000..32f192732be
--- /dev/null
+++ b/www/sarg/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+--- Makefile.in.orig 2003-04-25 20:20:55.000000000 +0300
++++ Makefile.in
+@@ -4,10 +4,10 @@ CC = @CC@
+ BINDIR = @BINDIR@
+ IBINDIR = -DBINDIR=\"@BINDIR@\"
+ MANDIR = @MANDIR@
+-SYSCONFDIR = @SYSCONFDIR@
++SYSCONFDIR = ${EGDIR}
+ ISYSCONFDIR = -DSYSCONFDIR=\"@SYSCONFDIR@\"
+-CFLAGS = @CFLAGS@
+-LDFLAGS = @LDFLAGS@
++CFLAGS += @CFLAGS@ ${PKG_FLAGS}
++LDFLAGS += @LDFLAGS@
+ DEFS = @DEFS@
+ SRCDIR = .
+ VPATH = .
diff --git a/www/sarg/patches/patch-ab b/www/sarg/patches/patch-ab
new file mode 100644
index 00000000000..f4697ed2027
--- /dev/null
+++ b/www/sarg/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+--- convlog.c.orig 2003-04-25 20:20:55.000000000 +0300
++++ convlog.c
+@@ -19,7 +19,7 @@ void convlog(char *arq, char *df, int df
+ struct tm *t;
+
+ if(arq[0] == '\0')
+- strcpy(arq,"/usr/local/squid/logs/access.log");
++ strcpy(arq,SQUID_ACCESSLOG);
+
+ if((fp_in=fopen(arq,"r"))==NULL) {
+ fprintf(stderr, "SARG: (convlog) %s: %s\n",text[8],arq);
diff --git a/www/sarg/patches/patch-ac b/www/sarg/patches/patch-ac
new file mode 100644
index 00000000000..bfe8f387d4d
--- /dev/null
+++ b/www/sarg/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+--- log.c.orig 2003-04-25 20:20:55.000000000 +0300
++++ log.c
+@@ -133,7 +133,7 @@ int main(argc,argv)
+ ReportType[0]='\0';
+ UserTabFile[0]='\0';
+
+- strcpy(AccessLog,"/usr/local/squid/var/logs/access.log");
++ strcpy(AccessLog,SQUID_ACCESSLOG);
+ sprintf(ExcludeCodes,"%s/exclude_codes",SYSCONFDIR);
+ strcpy(BgColor,"white");
+ strcpy(TxColor,"black");
+@@ -146,7 +146,7 @@ int main(argc,argv)
+ strcpy(HeaderBgColor,"blanchedalmond");
+ strcpy(FontSize,"-1");
+ strcpy(TempDir,"/tmp");
+- strcpy(OutputDir,"/usr/local/etc/httpd/htdocs/squid-reports");
++ strcpy(OutputDir,SARG_REPORTSDIR);
+ strcpy(Ip2Name,"no");
+ strcpy(DateFormat,"u");
+ strcpy(OverwriteReport,"no");
diff --git a/www/sarg/patches/patch-ad b/www/sarg/patches/patch-ad
new file mode 100644
index 00000000000..2a7a8dd9326
--- /dev/null
+++ b/www/sarg/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+--- sarg.1.orig 2003-04-25 20:20:55.000000000 +0300
++++ sarg.1
+@@ -124,7 +124,7 @@ Convert the logfile's date/time field to
+ .B \-split
+ Split the log file by date in \fB-d\fP parameter.
+ .SH FILES
+-.BR /etc/squid/sarg.conf
++.BR @PKG_SYSCONFDIR@/sarg.conf
+ .br
+ .SH AUTHOR
+ This manual page was written by Luigi Gangitano <gangitano@lugroma3.org>,
diff --git a/www/sarg/patches/patch-ae b/www/sarg/patches/patch-ae
new file mode 100644
index 00000000000..7ca3444a0d9
--- /dev/null
+++ b/www/sarg/patches/patch-ae
@@ -0,0 +1,31 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+--- sarg.conf.orig 2003-04-25 20:20:55.000000000 +0300
++++ sarg.conf
+@@ -29,7 +29,7 @@
+ # Where is the access.log file
+ # sarg -l file
+ #
+-#access_log /usr/local/squid/var/logs/access.log
++#access_log @SQUID_ACCESSLOG@
+
+ # TAG: title
+ # Especify the title for html page.
+@@ -120,7 +120,7 @@
+ # The reports will be saved in that directory
+ # sarg -o dir
+ #
+-#output_dir /var/www/html/squid-reports
++#output_dir @SARG_REPORTSDIR@
+
+ # TAG: output_email
+ # Email address to send the reports. If you use this tag, no html reports will be generated.
+@@ -244,7 +244,7 @@
+ # TAG: exclude_codes file
+ # Ignore records with these codes. Eg.: NONE/400
+ #
+-#exclude_codes /usr/local/sarg/exclude_codes
++#exclude_codes @PKG_SYSCONFDIR@/exclude_codes
+
+ # TAG: replace_index string
+ # Replace "index.html" in the main index file with this string
diff --git a/www/sarg/patches/patch-af b/www/sarg/patches/patch-af
new file mode 100644
index 00000000000..d77d8c09ee1
--- /dev/null
+++ b/www/sarg/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2003/12/04 16:06:32 xtraeme Exp $
+
+--- splitlog.c.orig 2003-04-25 20:20:55.000000000 +0300
++++ splitlog.c
+@@ -19,7 +19,7 @@ void splitlog(char *arq, char *df, int d
+ struct tm *t;
+
+ if(arq[0] == '\0')
+- strcpy(arq,"/usr/local/squid/logs/access.log");
++ strcpy(arq,SQUID_ACCESSLOG);
+
+ if((fp_in=fopen(arq,"r"))==NULL) {
+ fprintf(stderr, "SARG: (splitlog) %s: %s\n",text[8],arq);