diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2003-12-04 16:06:32 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2003-12-04 16:06:32 +0000 |
commit | 5790c3aed1e4ed1aabdca159be710dd8e52f26cf (patch) | |
tree | c81bf1c166066efdb6549d4f6bb216a9afe99032 /www/sarg/Makefile | |
parent | 2e2b807d225b21d505bf22942f8fb2505b5cd149 (diff) | |
download | pkgsrc-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/sarg/Makefile')
-rw-r--r-- | www/sarg/Makefile | 77 |
1 files changed, 77 insertions, 0 deletions
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" |