Date: Wed, 24 Sep 2003 10:21:31 +0200 (CEST) From: Rob Evers <rob@debank.tv> To: FreeBSD-gnats-submit@FreeBSD.org Cc: markun@onohara.to Subject: ports/57149: update security/clamav (pthread related) Message-ID: <200309240821.h8O8LVBU008661@haha.debank.tv> Resent-Message-ID: <200309240830.h8O8UL6B021987@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 57149 >Category: ports >Synopsis: update security/clamav (pthread related) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Sep 24 01:30:19 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Rob Evers >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD haha.debank.tv 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Thu Sep 18 16:37:14 CEST 2003 rob@haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386 >Description: update security/clamav (pthread related), and fix master-sites >How-To-Repeat: >Fix: diff -ruN clamav.orig/Makefile clamav/Makefile --- clamav.orig/Makefile Mon Jul 7 09:37:08 2003 +++ clamav/Makefile Wed Sep 24 10:14:47 2003 @@ -7,10 +7,9 @@ PORTNAME= clamav PORTVERSION= 0.60 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security -MASTER_SITES= http://clamav.elektrapro.com/stable/ \ - http://clamav.essentkabel.com/stable/ +MASTER_SITES= http://prdownloads.sourceforge.net/clamav/ \ MAINTAINER= markun@onohara.to COMMENT= Command line virus scanner written entirely in C @@ -22,6 +21,7 @@ arc:${PORTSDIR}/archivers/arc \ unzip:${PORTSDIR}/archivers/unzip +USE_REINPLACE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -29,22 +29,30 @@ INSTALLS_SHLIB= yes CONFIGURE_ARGS= --prefix=${PREFIX} \ - --disable-clamav \ - --enable-bigstack - + --disable-clamav --enable-bigstack +CFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" MAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1 clamav-milter.1 MAN5= clamav.conf.5 MAN8= clamd.8 .include <bsd.port.pre.mk> -.if ${OSVERSION} > 500000 -CONFIGURE_ARGS+=--enable-milter +.if ${OSVERSION} < 510001 +# compiles only with optimizer +CFLAGS+= -O +LDFLAGS+= -lcipher +.endif + +.if defined(WITH_MILTER) +CONFIGURE_ARGS+= --enable-milter PLIST_SUB+= CLAMAV-MILTER:="" .else PLIST_SUB+= CLAMAV-MILTER:="@comment " .endif +post-patch: + @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure pre-install: @${ECHO} "===> Creating custom user to run clamav..." ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309240821.h8O8LVBU008661>