Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2005 06:10:22 GMT
From:      chris@forkin.com
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/77373: new port for squidclamav-1.1
Message-ID:  <200502110610.j1B6AMqH054513@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/77373; it has been noted by GNATS.

From: chris@forkin.com
To: freebsd-gnats-submit@FreeBSD.org, chris@forkin.com
Cc:  
Subject: Re: ports/77373: new port for squidclamav-1.1
Date: Fri, 11 Feb 2005 17:09:12 +1100 (EST)

 This is a multi-part message in MIME format...
 
 ------------=_1108102160-67400-189
 Content-Type: text/plain; charset=iso-8859-1
 Content-Transfer-Encoding: 8bit
 Content-Disposition: inline
 
 I added slightly more info to pkg-descr, remove README.html (auto-generated?)
 and added myself as the maintainer.
   Chris.
 -----------<cut here>-----------
 # 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/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=	chris@forkin.com
 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/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
 XSquidClamav used in conjunction with Squid enables HTTP traffic to be
 Xscanned for viruses with the anti-virus scanner Clamav.
 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
 -----------<cut here>-----------
 
 
 ------------=_1108102160-67400-189
 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
 
 ------------=_1108102160-67400-189--



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