diff options
author | petef <petef@FreeBSD.org> | 2001-09-01 08:45:18 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-09-01 08:45:18 +0800 |
commit | 21de4ff2ab80dec816c9bea1e55df99a069b4617 (patch) | |
tree | d0831129c3f9a5d45ec585d236b4cb8a3f580ab6 /www/sqmgrlog | |
parent | ca7b083325b11b8688e0da45a3ee36c8707df2f2 (diff) | |
download | freebsd-ports-gnome-21de4ff2ab80dec816c9bea1e55df99a069b4617.tar.gz freebsd-ports-gnome-21de4ff2ab80dec816c9bea1e55df99a069b4617.tar.zst freebsd-ports-gnome-21de4ff2ab80dec816c9bea1e55df99a069b4617.zip |
add sqmgrlog 3.0.1
Squid log analyzer and HTML report generator
PR: 24895
Submitted by: Dmitry Grigorovich <odip@bionet.nsc.ru> (mostly)
Diffstat (limited to 'www/sqmgrlog')
-rw-r--r-- | www/sqmgrlog/Makefile | 28 | ||||
-rw-r--r-- | www/sqmgrlog/distinfo | 1 | ||||
-rw-r--r-- | www/sqmgrlog/files/patch-Makefile.in | 31 | ||||
-rw-r--r-- | www/sqmgrlog/pkg-comment | 1 | ||||
-rw-r--r-- | www/sqmgrlog/pkg-descr | 6 | ||||
-rw-r--r-- | www/sqmgrlog/pkg-plist | 4 |
6 files changed, 71 insertions, 0 deletions
diff --git a/www/sqmgrlog/Makefile b/www/sqmgrlog/Makefile new file mode 100644 index 000000000000..fc57cfbd349e --- /dev/null +++ b/www/sqmgrlog/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: sqmgrlog +# Date created: Mon Feb 5 17:00:40 NOVT 2001 +# Whom: Dmitry Grigorovich <odip@bionet.nsc.ru> +# +# $FreeBSD$ +# + +PORTNAME= sqmgrlog +PORTVERSION= 3.0.1 +CATEGORIES= www +MASTER_SITES= http://web.onda.com.br/orso/ + +MAINTAINER= ports@FreeBSD.org + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --enable-prefix=${PREFIX} --with-gcc + +post-patch: + @${PERL} -pi -e 's,LDFLAGS="-g",LDFLAGS="",' ${WRKSRC}/configure + @${PERL} -pi -e 's,/usr/local/etc/httpd/htdocs/,${PREFIX}/www/data/,; \ + s,mailx,mail,' ${WRKSRC}/sqmgrlog.conf ${WRKSRC}/log.c + +post-install: + @if [ ! -f ${PREFIX}/etc/sqmgrlog.conf ]; then \ + ${INSTALL_DATA} ${WRKSRC}/sqmgrlog.conf ${PREFIX}/etc; \ + fi + +.include <bsd.port.mk> diff --git a/www/sqmgrlog/distinfo b/www/sqmgrlog/distinfo new file mode 100644 index 000000000000..0da73ee46567 --- /dev/null +++ b/www/sqmgrlog/distinfo @@ -0,0 +1 @@ +MD5 (sqmgrlog-3.0.1.tar.gz) = d014b981cff8a58fa0b43f3b786172e0 diff --git a/www/sqmgrlog/files/patch-Makefile.in b/www/sqmgrlog/files/patch-Makefile.in new file mode 100644 index 000000000000..b9c82a638e64 --- /dev/null +++ b/www/sqmgrlog/files/patch-Makefile.in @@ -0,0 +1,31 @@ +--- Makefile.in.orig Thu Feb 1 11:03:42 2001 ++++ Makefile.in Fri Aug 31 19:41:44 2001 +@@ -1,6 +1,5 @@ + # Makefile.in for sqmgrlog + +-CC = @CC@ + LANGUAGE = @LANGUAGE@ + PREFIX = @PREFIX@ + CONFIG = @CONFIG@ +@@ -35,19 +34,8 @@ + $(CC) $(LDFLAGS) $(OBJS) $(LIBCRYPT) -o $@ + + install: all +- -@if test ! -d $(PREFIX); then \ +- echo "mkdir $(PREFIX)"; \ +- mkdir $(PREFIX); \ +- fi +- $(INSTALL_PROGRAM) sqmgrlog $(PREFIX)/sqmgrlog +- chmod 755 $(PREFIX)/sqmgrlog +- @if test ! -f $(CONFIG)/sqmgrlog.conf; then \ +- echo "cp $(CONFIG)/sqmgrlog.conf"; \ +- cp sqmgrlog.conf $(CONFIG)/sqmgrlog.conf; \ +- chmod 644 $(CONFIG)/sqmgrlog.conf; \ +- else \ +- cp sqmgrlog.conf $(CONFIG)/sqmgrlog.conf.orig; \ +- fi ++ $(BSD_INSTALL_PROGRAM) sqmgrlog $(PREFIX)/bin ++ $(BSD_INSTALL_DATA) sqmgrlog.conf $(PREFIX)/etc/sqmgrlog.conf.dist + + uninstall: + rm -f $(PREFIX)/sqmgrlog diff --git a/www/sqmgrlog/pkg-comment b/www/sqmgrlog/pkg-comment new file mode 100644 index 000000000000..20a60e1f7ace --- /dev/null +++ b/www/sqmgrlog/pkg-comment @@ -0,0 +1 @@ +Squid log analyzer and HTML report generator diff --git a/www/sqmgrlog/pkg-descr b/www/sqmgrlog/pkg-descr new file mode 100644 index 000000000000..7d209c0340ba --- /dev/null +++ b/www/sqmgrlog/pkg-descr @@ -0,0 +1,6 @@ +sqmgrlog is a Squid analisys report generator that allow you to +view "where" your users are going through squid. sqmgrlog generates +reports in html, with many fields including users, IP addresses, bytes, +sites and times. + +WWW: http://web.onda.com.br/orso/sqmgrlog.html diff --git a/www/sqmgrlog/pkg-plist b/www/sqmgrlog/pkg-plist new file mode 100644 index 000000000000..2d08f8db08c6 --- /dev/null +++ b/www/sqmgrlog/pkg-plist @@ -0,0 +1,4 @@ +bin/sqmgrlog +@unexec if cmp -s %D/etc/sqmgrlog.conf.dist %D/etc/sqmgrlog.conf; then rm -f %D/etc/sqmgrlog.conf; fi +etc/sqmgrlog.conf.dist +@exec if [ ! -f %D/etc/sqmgrlog.conf ]; then cp %D/etc/%f %D/etc/sqmgrlog.conf; fi |