pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/sarg Initial import of sarg-1.4.1 from pkgsrc-wip,...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a00fea3f928
branches:  trunk
changeset: 464208:8a00fea3f928
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Dec 04 16:06:32 2003 +0000

description:
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:

 www/sarg/DESCR            |   4 ++
 www/sarg/Makefile         |  77 +++++++++++++++++++++++++++++++++++++++++++++++
 www/sarg/PLIST            |  28 +++++++++++++++++
 www/sarg/distinfo         |  12 +++++++
 www/sarg/patches/patch-aa |  18 ++++++++++
 www/sarg/patches/patch-ab |  13 +++++++
 www/sarg/patches/patch-ac |  22 +++++++++++++
 www/sarg/patches/patch-ad |  13 +++++++
 www/sarg/patches/patch-ae |  31 ++++++++++++++++++
 www/sarg/patches/patch-af |  13 +++++++
 10 files changed, 231 insertions(+), 0 deletions(-)

diffs (271 lines):

diff -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/DESCR    Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/Makefile Thu Dec 04 16:06:32 2003 +0000
@@ -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@localhost
+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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/PLIST    Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/distinfo Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/patches/patch-aa Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/patches/patch-ab Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/patches/patch-ac Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/patches/patch-ad Thu Dec 04 16:06:32 2003 +0000
@@ -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@localhost>,
diff -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/patches/patch-ae Thu Dec 04 16:06:32 2003 +0000
@@ -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 -r 0d4fb0de5470 -r 8a00fea3f928 www/sarg/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/sarg/patches/patch-af Thu Dec 04 16:06:32 2003 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index