Date: Sun, 26 Jun 2005 02:31:45 +0400 (MSD) From: Alexander Novitsky <alecn2002@yandex.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Alexander Novitsky <alecn2002@yandex.ru> Subject: ports/82652: [NEW PORT] security/squidclam: Bridge betwean ClamAV antivirus software and Squid caching proxy Message-ID: <200506252231.j5PMVjmY012786@server.local.ru> Resent-Message-ID: <200506252240.j5PMeF2k097198@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82652 >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:40:15 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/ Generated with FreeBSD Port Tools 0.63 >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 <alecn2002@yandex.ru> 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 <bsd.port.pre.mk> 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 <bsd.port.post.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506252231.j5PMVjmY012786>