Date: Tue, 25 Nov 2003 18:36:45 -0700 From: Phil Oleson <poleson@verio.net> To: markun@onohara.to Cc: ports@FreeBSD.org Subject: FreeBSD Port: clamav-0.65 Message-ID: <3FC403AD.7020706@verio.net>
next in thread | raw e-mail | index | archive | help
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@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} \ ----------------------------------------------------------------------------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FC403AD.7020706>