Date: Fri, 11 Feb 2005 14:36:31 +1100 (EST) From: Chris Forkin <chris@forkin.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/77373: new port for squidclamav-1.1 Message-ID: <200502110336.j1B3aVFs093333@firewall.forkin.com> Resent-Message-ID: <200502110340.j1B3eETd008886@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77373 >Category: ports >Synopsis: new port for squidclamav-1.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Feb 11 03:40:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Chris Forkin >Release: FreeBSD 5.2.1-RELEASE-p11 i386 >Organization: forkin.com >Environment: System: FreeBSD firewall.forkin.com 5.2.1-RELEASE-p11 FreeBSD 5.2.1-RELEASE-p11 #0: Sat Nov 6 12:10:50 EST 2004 root@firewall.forkin.com:/usr/obj/usr/src/sys/FORKIN-COM i386 >Description: new port for squidclamav-1.1 >How-To-Repeat: not applicable >Fix: # 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: # # squidclamav # squidclamav/files # squidclamav/files/patch-aa # squidclamav/files/patch-ab # squidclamav/Makefile # squidclamav/README.html # squidclamav/distinfo # squidclamav/pkg-descr # squidclamav/pkg-plist # echo c - squidclamav mkdir -p squidclamav > /dev/null 2>&1 echo c - squidclamav/files mkdir -p squidclamav/files > /dev/null 2>&1 echo x - squidclamav/files/patch-aa sed 's/^X//' >squidclamav/files/patch-aa << 'END-of-squidclamav/files/patch-aa' X--- Makefile Thu Feb 10 01:03:14 2005 X+++ Makefile Fri Feb 11 10:54:27 2005 X@@ -1,31 +1,33 @@ X # Makefile for SquidClamav X # X X-OFILES = squidclamav.o main.o config.o log.o lists.o regex.o X+OFILES = squidclamav.o main.o config.o log.o lists.o X X-HFILES = squidclamav.h paths.h lists.h log.h regex.h X+HFILES = squidclamav.h paths.h lists.h log.h X X-CC=gcc X+#CC=gcc X #CC=checkergcc X X #EXTRALIBS=-lregex X-EXTRALIBS=-lclamav -lcurl -ldl -lssl -lcrypto -ldl -lz -lbz2 -lgmp -lpthread X+EXTRALIBS=-L/usr/local/lib -lgnuregex -lclamav -lcurl -lssl -lcrypto -lz -lbz2 -lgmp -pthread X X BINARIES = squidclamav X X-CFLAGS = -O3 -Wall -funroll-loops X+CFLAGS = -I/usr/local/include -O3 -Wall -funroll-loops X #CFLAGS = -Wall -g X X+USER=$(SQUID_UID) X+GROUP=$(SQUID_GID) X+ X all: $(BINARIES) X X install: all X- install -m 755 -o root -g root -d /usr/local/squidclamav \ X- /usr/local/squidclamav/bin X- install -m 770 -o root -g squid -d /usr/local/squidclamav/etc X- install -m 750 -o squid -g squid -d /usr/local/squidclamav/logs X- install -m 660 -o root -g squid squidclamav.conf.dist \ X- /usr/local/squidclamav/etc X- install -m 755 -o root -g root --strip squidclamav /usr/local/squidclamav/bin X+ install -m 755 -o root -g wheel -d $(PREFIX)/squidclamav X+ install -m 770 -o root -g $(GROUP) -d $(PREFIX)/etc/squidclamav X+ install -m 750 -o $(USER) -g $(GROUP) -d $(PREFIX)/squidclamav/logs X+ install -m 660 -o root -g $(GROUP) squidclamav.conf.dist \ X+ $(PREFIX)/etc/squidclamav X+ $(BSD_INSTALL_PROGRAM) squidclamav $(PREFIX)/sbin X X squidclamav.o: squidclamav.c $(HFILES) X $(CC) -c squidclamav.c $(CFLAGS) END-of-squidclamav/files/patch-aa echo x - squidclamav/files/patch-ab sed 's/^X//' >squidclamav/files/patch-ab << 'END-of-squidclamav/files/patch-ab' X--- paths.h Fri Feb 11 08:27:22 2005 X+++ paths.h Fri Feb 11 10:48:20 2005 X@@ -28,6 +28,6 @@ X #define LOG_FILE "/usr/local/squidclamav/logs/squidclamav.log" X X /************* Configuration file locations ***********/ X-#define REDIRECT_PATTERNS "/usr/local/squidclamav/etc/squidclamav.conf" X+#define REDIRECT_PATTERNS "/usr/local/etc/squidclamav/squidclamav.conf" X X #endif END-of-squidclamav/files/patch-ab echo x - squidclamav/Makefile sed 's/^X//' >squidclamav/Makefile << 'END-of-squidclamav/Makefile' X# New ports collection makefile for: squidclamav X# Date created: 11 Feb 2005 X# Whom: Chris Forkin <chris@forkin.com> X# X# $FreeBSD$ X# X XPORTNAME= squidclamav XPORTVERSION= 1.1 XCATEGORIES= www XMASTER_SITES= http://www.samse.fr/GPL/squidclamav/ X XMAINTAINER= ports@FreeBSD.org XCOMMENT= A Clamav Antivirus redirector for Squid X XRUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid \ X ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl \ X ${LOCALBASE}/bin/clamav-config:${PORTSDIR}/security/clamav X XNO_PACKAGE= must set SQUID_UID and SQUID_GID before building X XMAKE_ENV+= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID} X XPLIST_SUB= SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID} X XUSE_GMAKE= yes X Xpre-install: X.if defined(SQUID_UID) && defined(SQUID_GID) X.if (${SQUID_UID} == "nobody") || (${SQUID_GID} == "nogroup") X @${ECHO_MSG} X @${ECHO_MSG} 'WARNING! You are going to install squirm files with either nobody owner or' X @${ECHO_MSG} 'nogroup group, which may be insecure.' X @${ECHO_MSG} X.endif X.else X @${ECHO_MSG} X @${ECHO_MSG} 'You should set SQUID_UID and SQUID_GID variables to your squid effective' X @${ECHO_MSG} 'user/group. For example: SQUID_UID=squid SQUID_GID=squid.' X @${ECHO_MSG} X @${FALSE} X.endif X Xpost-install: X ${MKDIR} ${DATADIR} X ${CP} ${WRKSRC}/clwarn.cgi ${DATADIR} X @${ECHO_MSG} X @${ECHO_MSG} ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' X @${ECHO_MSG} ' You have to manually add "redirect_program ${PREFIX}/bin/squidclamav"' X @${ECHO_MSG} ' into your squid.conf file.' X @${ECHO_MSG} ' For help on configuring squidclamav try http://www.samse.fr/GPL/squidclamav/' X @${ECHO_MSG} ' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' X @${ECHO_MSG} X X.include <bsd.port.mk> END-of-squidclamav/Makefile echo x - squidclamav/README.html sed 's/^X//' >squidclamav/README.html << 'END-of-squidclamav/README.html' X<html> X<title> The FreeBSD Ports Collection (www/squidclamav)</title> X<head><h1> The FreeBSD Ports Collection ("www/squidclamav")</h1> </head> <hr> X<body> X X<p>You are now in the directory for the port "www/squidclamav" (package name "squidclamav-1.1"). X X<p>This is the one-line description for this port: X X<p><hr><p> XSquidClamav - A Clamav Antivirus Redirector for Squid X<p><hr> X X<p>Please read the "<a href="pkg-descr">description file</a>" for a Xlonger description. X X<p>Go to the <a href="../../README.html">top of the ports tree</a> for Xa summary on how to use the ports collection. X X<p> X X<p> XThis port requires package(s) "perl-5.6.1_11 squid-2.4_10" to run. X X<p><hr><p> X<a href="../README.html"> Go up one level</a> X| X<a href="../../README.html"> Go to top of ports tree</a> X</body> X</html> END-of-squidclamav/README.html echo x - squidclamav/distinfo sed 's/^X//' >squidclamav/distinfo << 'END-of-squidclamav/distinfo' XMD5 (squidclamav-1.1.tar.gz) = b92084723e6e0537a7f83d510a4aef09 XSIZE (squidclamav-1.1.tar.gz) = 319878 END-of-squidclamav/distinfo echo x - squidclamav/pkg-descr sed 's/^X//' >squidclamav/pkg-descr << 'END-of-squidclamav/pkg-descr' XSquidClamav - A Clamav Antivirus Redirector for Squid X XWWW: http://www.samse.fr/GPL/squidclamav/ X X- Chris Forkin Xchris@forkin.com END-of-squidclamav/pkg-descr echo x - squidclamav/pkg-plist sed 's/^X//' >squidclamav/pkg-plist << 'END-of-squidclamav/pkg-plist' Xsbin/squidclamav Xetc/squidclamav/squidclamav.conf.dist X@exec install -m 755 -o root -g wheel -d %D/squidclamav X@exec install -m 750 -o %%SQUID_UID%% -g %%SQUID_GID%% -d %D/squidclamav/logs X@dirrm etc/squidclamav X@dirrm squidclamav/logs X@dirrm squidclamav X@dirrm %%DATADIR%% END-of-squidclamav/pkg-plist exit ------------=_1108092998-67400-171 Content-Type: text/plain; name="disclaimer.txt" Content-Disposition: inline; filename="disclaimer.txt" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.414 (Entity 5.414) =========================== Disclaimer =========================== All E-mail correspondence is scanned with: + ClamAV (see http://www.clamav.net) + MIMEDefang (see http://www.mimedefang.org/) + SpamAssassin (see http://spamassassin.apache.org/) We can however not guarantee that it is virus free and therefore accept no responsibility for any damage caused by the contents of this email. forkin.com has implemented SPF to assist in identifying SPAM (see http://spf.pobox.com/). postmaster@forkin.com ------------=_1108092998-67400-171-- >Release-Note: >Audit-Trail: >Unformatted: This is a multi-part message in MIME format... ------------=_1108092998-67400-171 Content-Disposition: inline
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502110336.j1B3aVFs093333>