From owner-freebsd-ports@FreeBSD.ORG Tue Nov 25 17:37:05 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30B5416A4CE for ; Tue, 25 Nov 2003 17:37:05 -0800 (PST) Received: from gatekeeper.oremut02.us.wh.verio.net (gatekeeper.oremut02.us.wh.verio.net [198.65.168.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51CE443FB1 for ; Tue, 25 Nov 2003 17:37:04 -0800 (PST) (envelope-from poleson@verio.net) Received: from mx.dmz.orem.verio.net (mx.dmz.orem.verio.net [10.1.1.10]) 2DDD91E7931 for ; Tue, 25 Nov 2003 18:37:04 -0700 (MST) Received: from verio.net (demigorgon.dmz.orem.verio.net [10.1.1.54]) hAQ1b2V2048620; Tue, 25 Nov 2003 18:37:03 -0700 (MST) (envelope-from poleson@verio.net) Message-ID: <3FC403AD.7020706@verio.net> Date: Tue, 25 Nov 2003 18:36:45 -0700 From: Phil Oleson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031020 X-Accept-Language: en-us, en MIME-Version: 1.0 To: markun@onohara.to Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: ports@FreeBSD.org Subject: FreeBSD Port: clamav-0.65 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 01:37:05 -0000 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} \ ----------------------------------------------------------------------------------------------------------------------------------------------