ports/58255: [new port] www/mod_clamav: Scans content delivered by the proxy module for viruses using Clamav
Clement Laforet
sheepkiller at cultdeadsheep.org
Sun Oct 19 19:50:30 UTC 2003
>Number: 58255
>Category: ports
>Synopsis: [new port] www/mod_clamav: Scans content delivered by the proxy module for viruses using Clamav
>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: Sun Oct 19 12:50:25 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Clement Laforet
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD lucifer.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Sep 22 08:20:10 CEST 2003 clement at lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER i386
>Description:
Apache 2 introduces filters, which allow to modify content generated by some
other module. mod_clamav is an Apache 2 filter which scans the content
delivered by the proxy module (mod_proxy) for viruses using the Clamav virus
scanning engine.
WWW: http://software.othello.ch/mod_clamav/
>How-To-Repeat:
N/A.
>Fix:
--- mod_clamav.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:
#
# mod_clamav
# mod_clamav/Makefile
# mod_clamav/distinfo
# mod_clamav/pkg-descr
# mod_clamav/pkg-plist
#
echo c - mod_clamav
mkdir -p mod_clamav > /dev/null 2>&1
echo x - mod_clamav/Makefile
sed 's/^X//' >mod_clamav/Makefile << 'END-of-mod_clamav/Makefile'
X# New ports collection makefile for: mod_clamav
X# Date created: Sun Oct 19
X# Whom: Clement Laforet <sheepkiller at cultdeadsheep.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mod_clamav
XPORTVERSION= 0.8
XCATEGORIES= www
XMASTER_SITES= http://software.othello.ch/mod_clamav/
XDIST_SUBDIR= apache
X
XMAINTAINER= sheepkiller at cultdeadsheep.org
XCOMMENT= Scans content delivered by the proxy module for viruses
X
XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
XRUN_DEPENDS= ${BUILD_DEPENDS}
XLIB_DEPENDS= clamav.1:${PORTSDIR}/security/clamav
X
XAPXS?= ${LOCALBASE}/sbin/apxs
XCLAMAV_INC= ${LOCALBASE}/include
XCLAMAV_LIB= ${LOCALBASE}/lib -lclamav
X
XDOC_FILES= AUTHORS COPYING ChangeLog INSTALL NEWS README \
X TODO mod_clamav.html
X
Xdo-configure:
X @${SED} "s|@VERSION@|${PORTNAME}|" ${WRKSRC}/mod_clamav_version.h.in > \
X ${WRKSRC}/mod_clamav_version.h
X @${SED} "s|@VERSION@|${PORTNAME}|" ${WRKSRC}/mod_clamav.html.in > \
X ${WRKSRC}/mod_clamav.html
X
Xdo-build:
X @(cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c)
X
Xdo-install:
X @(cd ${WRKSRC} && ${APXS} -i -A -n ${PORTNAME:S/mod_//} ${PORTNAME}.la)
X
X.if !defined (NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X. for f in ${DOC_FILES}
X @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X. endfor
X.endif
X
X.include <bsd.port.mk>
END-of-mod_clamav/Makefile
echo x - mod_clamav/distinfo
sed 's/^X//' >mod_clamav/distinfo << 'END-of-mod_clamav/distinfo'
XMD5 (apache/mod_clamav-0.8.tar.gz) = e95dc6bb4cd66acdcef7822b0ee8391c
END-of-mod_clamav/distinfo
echo x - mod_clamav/pkg-descr
sed 's/^X//' >mod_clamav/pkg-descr << 'END-of-mod_clamav/pkg-descr'
XApache 2 introduces filters, which allow to modify content generated by some
Xother module. mod_clamav is an Apache 2 filter which scans the content
Xdelivered by the proxy module (mod_proxy) for viruses using the Clamav virus
Xscanning engine.
X
XWWW: http://software.othello.ch/mod_clamav/
END-of-mod_clamav/pkg-descr
echo x - mod_clamav/pkg-plist
sed 's/^X//' >mod_clamav/pkg-plist << 'END-of-mod_clamav/pkg-plist'
Xlibexec/apache2/mod_clamav.so
X at exec %D/sbin/apxs -e -A -n clamav %D/%f
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/TODO
X%%PORTDOCS%%%%DOCSDIR%%/mod_clamav.html
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at unexec echo "===> If you do not plan on reinstalling mod_clamav, you must manually remove"; echo "===> references to it in httpd.conf."
END-of-mod_clamav/pkg-plist
exit
--- mod_clamav.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list