ports/57149: update security/clamav (pthread related)
Rob Evers
rob at debank.tv
Wed Sep 24 08:30:26 UTC 2003
>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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list