ports/77235: [ PORT FIX ] security/clamav (fix failture when libmilter linked against libldap)
Lewis Thompson
lewiz at compsoc.man.ac.uk
Mon Feb 7 20:30:31 UTC 2005
>Number: 77235
>Category: ports
>Synopsis: [ PORT FIX ] security/clamav (fix failture when libmilter linked against libldap)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 07 20:30:30 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Lewis Thompson
>Release: FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD kiki.compsoc.man.ac.uk 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Wed Feb 2 01:37:13 GMT 2005 lewiz at kiki.compsoc.man.ac.uk:/usr/src/sys/i386/compile/KIKI i386
>Description:
security/clamav fails to build if libmilter has been linked against libldap.
This is a fairly basic patch that checks if libldap.so exists and (if it
does) adds -lldap to the LDFLAGS.
This is basically the same as ports/73519
(http://www.freebsd.org/cgi/query-pr.cgi?pr=73519)
>How-To-Repeat:
>Fix:
diff -ruN clamav.orig/Makefile clamav/Makefile
--- clamav.orig/Makefile Mon Feb 7 19:56:00 2005
+++ clamav/Makefile Mon Feb 7 20:17:51 2005
@@ -57,6 +57,14 @@
${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib \
${PTHREAD_LIBS}
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_LDAP) && exists(${LOCALBASE}/lib/libldap.so)
+USE_OPENLDAP= yes
+LDFLAGS+= -lldap
+.endif
+
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
MAN1= clamscan.1 freshclam.1 sigtool.1 clamdscan.1
@@ -101,8 +109,6 @@
-e 's|%%RC_SUFX%%|${RC_SUFX}|g'
PLIST_SUB+= RC_DIR=${RC_DIR} \
RC_SUFX=${RC_SUFX}
-
-.include <bsd.port.pre.mk>
.if defined(WITH_MILTER)
.if !exists(/usr/lib/libmilter.a)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list