FreeBSD Port: clamav-0.65
Phil Oleson
poleson at verio.net
Tue Nov 25 17:37:05 PST 2003
Hey.. the latest clamav needs a couple fixes.. I had libgmp4 installed
and even though
it wasn't included as a dependancy for clamav, the port used it.. thus
it looks like it needs
the LIB_DEPENDS like clamav-devel does. Also, the Makefile in
${BUILD_WRKSRC}/etc/
does not install the clamav.conf.default so the extra port-install cmd
is needed.
Phil.
----------------------------------------------------------------------------------------------------------------------------------------------
diff -ur clamav.orig/Makefile clamav/Makefile
--- clamav.orig/Makefile Wed Nov 19 10:40:04 2003
+++ clamav/Makefile Tue Nov 25 18:32:01 2003
@@ -14,6 +14,7 @@
MAINTAINER= markun at onohara.to
COMMENT= Command line virus scanner written entirely in C
+LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
RUN_DEPENDS= lha:${PORTSDIR}/archivers/lha \
unarj:${PORTSDIR}/archivers/unarj \
unrar:${PORTSDIR}/archivers/unrar \
@@ -33,7 +34,7 @@
CONFIGURE_ARGS= --with-dbdir=${DATADIR} \
--disable-clamav --enable-bigstack
CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= ${PTHREAD_LIBS}
+LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
MAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1
MAN5= clamav.conf.5
@@ -106,6 +107,7 @@
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/clamd.sh ${RC_DIR}/clamd${RC_SUFX}
@${CHOWN} -R clamav:clamav ${DATADIR}
+ @${INSTALL_SCRIPT} ${BUILD_WRKSRC}/etc/clamav.conf.default
${PREFIX}/etc
@[ -f ${PREFIX}/etc/clamav.conf ] || \
${CP} ${PREFIX}/etc/clamav.conf.default
${PREFIX}/etc/clamav.conf
@${SETENV} PKG_PREFIX=${PREFIX} \
----------------------------------------------------------------------------------------------------------------------------------------------
More information about the freebsd-ports
mailing list