Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2005 20:22:57 GMT
From:      Lewis Thompson <lewiz@compsoc.man.ac.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77235: [ PORT FIX ] security/clamav (fix failture when libmilter linked against libldap)
Message-ID:  <200502072022.j17KMvMW098357@kiki.compsoc.man.ac.uk>
Resent-Message-ID: <200502072030.j17KUVOF030900@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502072022.j17KMvMW098357>