Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Apr 2002 14:04:06 +0900 (JST)
From:      NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/37128: New port: www/sarg, formerly known as www/sqmgrlog
Message-ID:  <200204160504.g3G546i77909@boggy.acest.tutrp.tut.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         37128
>Category:       ports
>Synopsis:       New port: www/sarg, formerly known as www/sqmgrlog
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 15 22:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     NAKAJI Hiroyuki
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD boggy.acest.tutrp.tut.ac.jp 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri Apr 5 00:23:31 JST 2002 root@boggy.acest.tutrp.tut.ac.jp:/usr/obj/usr/src/sys/NAKAJI i386


	
>Description:
	As mentioned in http://web.onda.com.br/orso/sarg.ChangeLog.txt,
	sqmgrlog had gained a new name: SARG - Squid Analysis Report
	Generator.

>How-To-Repeat:

>Fix:

	Shell archived new port www/sarg is attached below.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sarg
#	sarg/files
#	sarg/files/patch-Makefile.in
#	sarg/pkg-comment
#	sarg/pkg-descr
#	sarg/pkg-plist
#	sarg/distinfo
#	sarg/Makefile
#
echo c - sarg
mkdir -p sarg > /dev/null 2>&1
echo c - sarg/files
mkdir -p sarg/files > /dev/null 2>&1
echo x - sarg/files/patch-Makefile.in
sed 's/^X//' >sarg/files/patch-Makefile.in << 'END-of-sarg/files/patch-Makefile.in'
X--- Makefile.in.orig	Thu Dec  6 01:20:33 2001
X+++ Makefile.in	Tue Apr 16 13:35:18 2002
X@@ -1,6 +1,5 @@
X # Makefile.in for sarg
X 
X-CC 		= @CC@
X BINDIR   	= @BINDIR@
X IBINDIR   	= -DBINDIR=\"@BINDIR@\"
X SYSCONFDIR	= @SYSCONFDIR@
X@@ -52,7 +51,7 @@
X 	chmod 755 $(BINDIR)/sarg
X 	@if test ! -f $(SYSCONFDIR)/sarg.conf; then \
X 		echo "cp $(SYSCONFDIR)/sarg.conf"; \
X-		cp sarg.conf $(SYSCONFDIR)/sarg.conf; \
X+		cp sarg.conf $(SYSCONFDIR)/sarg.conf.dist; \
X 	else \
X 		cp sarg.conf $(SYSCONFDIR)/sarg.conf.default; \
X 	fi
END-of-sarg/files/patch-Makefile.in
echo x - sarg/pkg-comment
sed 's/^X//' >sarg/pkg-comment << 'END-of-sarg/pkg-comment'
XSquid Analysis Report Generator
END-of-sarg/pkg-comment
echo x - sarg/pkg-descr
sed 's/^X//' >sarg/pkg-descr << 'END-of-sarg/pkg-descr'
XSarg is a Squid Analysis Report Generator that allow you to view "where"
Xyour users are going to on the Internet.
XSarg generate reports in html, with many fields, like: users, IP Addresses,
Xbytes, sites and times.
X
XWWW: http://web.onda.com.br/orso/index.html
X     http://web.onda.com.br/orso/sarg.html
END-of-sarg/pkg-descr
echo x - sarg/pkg-plist
sed 's/^X//' >sarg/pkg-plist << 'END-of-sarg/pkg-plist'
Xbin/sarg
Xetc/sarg/languages/Turkish
Xetc/sarg/languages/Russian_koi8
Xetc/sarg/languages/German
Xetc/sarg/languages/French
Xetc/sarg/languages/Czech
Xetc/sarg/languages/Dutch
Xetc/sarg/languages/Bulgarian_windows1251
Xetc/sarg/languages/Romanian
Xetc/sarg/languages/Polish
Xetc/sarg/languages/Italian
Xetc/sarg/languages/Portuguese
Xetc/sarg/languages/Japanese
Xetc/sarg/languages/Hungarian
Xetc/sarg/languages/Latvian
Xetc/sarg/languages/Russian_windows1251
Xetc/sarg/languages/Serbian
Xetc/sarg/languages/Indonesian
Xetc/sarg/languages/English
Xetc/sarg/languages/Spanish
X@dirrm etc/sarg/languages
Xetc/sarg/exclude_codes
X@unexec if cmp -s %D/etc/sarg/sarg.conf.default %D/etc/sarg/sarg.conf; then rm -f %D/etc/sarg.conf; fi
Xetc/sarg/sarg.conf.default
X@exec if [ ! -f %D/etc/sarg/sarg.conf ]; then cp %D/etc/sarg/%f %D/etc/sarg/sarg.conf; fi
X@dirrm etc/sarg
END-of-sarg/pkg-plist
echo x - sarg/distinfo
sed 's/^X//' >sarg/distinfo << 'END-of-sarg/distinfo'
XMD5 (sarg-1.2.1.tar.gz) = 106619add4111b7960bcc2bf3ba64843
END-of-sarg/distinfo
echo x - sarg/Makefile
sed 's/^X//' >sarg/Makefile << 'END-of-sarg/Makefile'
X# New ports collection makefile for:	sqmgrlog
X# Date created:		Mon Feb  5 17:00:40 NOVT 2001
X# Whom:			Dmitry Grigorovich <odip@bionet.nsc.ru>
X#
X# $FreeBSD: ports/www/sqmgrlog/Makefile,v 1.1 2001/09/01 00:45:16 petef Exp $
X#
X
XPORTNAME=	sarg
XPORTVERSION=	1.2.1
XCATEGORIES=	www
XMASTER_SITES=	http://web.onda.com.br/orso/
X
XMAINTAINER=	ports@FreeBSD.org
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+=	--enable-bindir=${PREFIX}/bin \
X			--enable-sysconfdir=${PREFIX}/etc/sarg \
X			--with-gcc
X
Xpost-patch:
X	@${PERL} -pi -e 's,LDFLAGS="-g",LDFLAGS="",' ${WRKSRC}/configure
X	@${PERL} -pi -e 's,/usr/local/etc/httpd/htdocs/,${PREFIX}/www/data/,; \
X		s,mailx,mail,' ${WRKSRC}/sarg.conf ${WRKSRC}/log.c
X
Xpost-install:
X	@if [ ! -f ${PREFIX}/etc/sarg/sarg.conf ]; then \
X		${INSTALL_DATA} ${WRKSRC}/sarg.conf ${PREFIX}/etc/sarg; \
X	fi
X	@if [ -f ${PREFIX}/etc/sarg/languages/.new ]; then \
X		${RM} -f ${PREFIX}/etc/sarg/languages/.new; \
X	fi
X
X.include <bsd.port.mk>
END-of-sarg/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204160504.g3G546i77909>