From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 25 22:50:19 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6D6416A42F for ; Sat, 25 Jun 2005 22:50:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EAC343D4C for ; Sat, 25 Jun 2005 22:50:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5PMoH92097402 for ; Sat, 25 Jun 2005 22:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5PMoHci097400; Sat, 25 Jun 2005 22:50:17 GMT (envelope-from gnats) Resent-Date: Sat, 25 Jun 2005 22:50:17 GMT Resent-Message-Id: <200506252250.j5PMoHci097400@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Alexander Novitsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B45BE16A41C for ; Sat, 25 Jun 2005 22:42:29 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9977443D1D for ; Sat, 25 Jun 2005 22:42:29 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j5PMgTqb097582 for ; Sat, 25 Jun 2005 22:42:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j5PMgTuR097581; Sat, 25 Jun 2005 22:42:29 GMT (envelope-from nobody) Message-Id: <200506252242.j5PMgTuR097581@www.freebsd.org> Date: Sat, 25 Jun 2005 22:42:29 GMT From: "Alexander Novitsky To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/82653: [NEW PORT] security/squidclam: Bridge betwean ClamAV antivirus software and Squid caching proxy X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 22:50:19 -0000 >Number: 82653 >Category: ports >Synopsis: [NEW PORT] security/squidclam: Bridge betwean ClamAV antivirus software and Squid caching proxy >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 25 22:50:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Alexander Novitsky >Release: FreeBSD 5.4-RELEASE i386 >Organization: Inzhcomcentre VVD >Environment: System: FreeBSD server.local.ru 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sat May 14 01:22:46 MSD 2005 >Description: Bridge betwean ClamAV antivirus software and Squid caching proxy. Squidclam is a replacement for SquidClamAV-Redirector.py written in C using libclamav and libcurl Author: squidclam@users.sourceforge.net WWW: http://sourceforge.net/projects/squidclam/ >How-To-Repeat: >Fix: --- squidclam-0.11.shar begins 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: # # squidclam # squidclam/pkg-descr # squidclam/Makefile # squidclam/pkg-plist # squidclam/distinfo # squidclam/files # squidclam/files/patch-configure # squidclam/files/pkg-message.in # echo c - squidclam mkdir -p squidclam > /dev/null 2>&1 echo x - squidclam/pkg-descr sed 's/^X//' >squidclam/pkg-descr << 'END-of-squidclam/pkg-descr' XBridge betwean ClamAV antivirus software and Squid caching proxy. X XSquidclam is a replacement for SquidClamAV-Redirector.py written Xin C using libclamav and libcurl X XAuthor: squidclam@users.sourceforge.net XWWW: http://sourceforge.net/projects/squidclam/ END-of-squidclam/pkg-descr echo x - squidclam/Makefile sed 's/^X//' >squidclam/Makefile << 'END-of-squidclam/Makefile' X# New ports collection makefile for: squidclam X# Date created: 2005-06-26 X# Whom: Alexander Novitsky X# X# $FreeBSD$ X# X XPORTNAME= squidclam XPORTVERSION= 0.11 XCATEGORIES= security XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} X XMAINTAINER= alecn2002@yandex.ru XCOMMENT= Bridge betwean ClamAV antivirus software and Squid caching proxy X XBUILD_DEPENDS= ${LOCALBASE}/bin/clamscan:${PORTSDIR}/security/clamav \ X ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl XRUN_DEPENDS= ${BUILD_DEPENDS} X XGNU_CONFIGURE= yes XUSE_GMAKE= yes XUSE_REINPLACE= yes XNO_INSTALL_MANPAGES= yes X XPORTDOCS= README Changelog X XSUB_FILES= pkg-message XPKGMESSAGE= ${WRKDIR}/pkg-message X X.include Xpost-patch: X ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/configure X# ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g' -e 's|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g' ${.CURDIR}/pkg-message X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} X ${MKDIR} ${DOCSDIR} X.for f in ${PORTDOCS} X ${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}/$f X.endfor X ${MKDIR} ${EXAMPLESDIR} X ${INSTALL_DATA} ${WRKSRC}/sample.conf ${EXAMPLESDIR}/${PORTNAME}.conf X Xpost-install: X ${CAT} ${WRKDIR}/pkg-message X X.include END-of-squidclam/Makefile echo x - squidclam/pkg-plist sed 's/^X//' >squidclam/pkg-plist << 'END-of-squidclam/pkg-plist' X@comment $FreeBSD$ Xbin/squidclam X%%EXAMPLESDIR%%/squidclam.conf END-of-squidclam/pkg-plist echo x - squidclam/distinfo sed 's/^X//' >squidclam/distinfo << 'END-of-squidclam/distinfo' XMD5 (squidclam-0.11.tar.gz) = a15a1f1d61f79c7f6b7830b9a45906b7 XSIZE (squidclam-0.11.tar.gz) = 10495 END-of-squidclam/distinfo echo c - squidclam/files mkdir -p squidclam/files > /dev/null 2>&1 echo x - squidclam/files/patch-configure sed 's/^X//' >squidclam/files/patch-configure << 'END-of-squidclam/files/patch-configure' X--- configure.orig Sun Apr 24 23:40:07 2005 X+++ configure Sun Jun 26 01:49:42 2005 X@@ -4,52 +4,16 @@ X X CLAMLIBS="`clamav-config --libs || exit -1`" X CURLLIBS="`curl-config --libs || exit -1`" X-CFLAGS="$CFLAGS $CURLLIBS $CLAMLIBS -lclamav -lcurl" X+CFLAGS="-I%%LOCALBASE%%/include $CFLAGS $CURLLIBS $CLAMLIBS -lclamav -lcurl" X OUTFILE=Makefile X BINARY=squidclam X-TMPFILE=`mktemp` X X # only use libs once X CFLAGS="`echo $CFLAGS | tr ' ' '\n' | sort -u | tr '\n' ' '`" X X-# no options allowed X-if test $# -ne 0 X-then X- echo "" X- echo "This is just a very small script. No Options available." X- echo "If you like to provide me with a better one please do :)" X- echo "" X- exit -1 X-fi X- X-# compiler test X-if test x"$CC" = "x" X-then X- CC="gcc -Wall" X-fi X- X-# can we generate an executable X-cat > $TMPFILE.c << EOF X-int main (void) { X- return 0; X-} X-EOF X- X-$CC -o $TMPFILE.exe $TMPFILE.c X- X-if test $? -ne 0 X-then X- echo "compiler not able to generate an executable" X- exit -1 X-else X- rm -f $TMPFILE* X-fi X- X # write makefile X cat > $OUTFILE << EOF X-ifndef \$(DESTDIR) X- DESTDIR="/usr/local/bin" X-endif X+DESTDIR?= "%%PREFIX%%/bin" X X CFLAGS=$CFLAGS X END-of-squidclam/files/patch-configure echo x - squidclam/files/pkg-message.in sed 's/^X//' >squidclam/files/pkg-message.in << 'END-of-squidclam/files/pkg-message.in' X*********************************************************************** X* X* To use this software you need to make changes in squid config file. X* Please refer to %%DOCSDIR%%/README. X* You may find example of config file for this software here: X* %%EXAMPLESDIR%%/squidclam.conf X* Plce your work copy of squidclam.conf into %%PREFIX%%/etc/ directory. X* X*********************************************************************** END-of-squidclam/files/pkg-message.in exit --- squidclam-0.11.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: