Subject: pkg/13928: buildlinking net/snort
To: None <gnats-bugs@gnats.netbsd.org>
From: Stoned Elipot <Stoned.Elipot@script.jussieu.fr>
List: netbsd-bugs
Date: 09/11/2001 17:58:24
>Number:         13928
>Category:       pkg
>Synopsis:       user net/libpcap/buildlink.mk in net/snort/Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 11 08:59:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stoned Elipot
>Release:        pkgsrc-current
>Organization:
SCRIPT, Paris VII University, France
>Environment:
System: NetBSD bandsept 1.5.1 NetBSD 1.5.1 (GENERIC) #0: Mon Jul 9 22:42:32 CST 2001 toor@proxima:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
Using net/libpcap/buildlink.mk is IMHO better than 
'.if ${OPSYS} ... DEPENDS+=... .endif'

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/snort/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	2001/08/24 11:43:47	1.11
+++ Makefile	2001/09/11 15:55:11
@@ -17,11 +17,12 @@
 COMMENT=	Libpcap-based packet sniffer/logger
 
 GNU_CONFIGURE=	YES
+CONFIGURE_ARGS+=	--with-libpcap-includes=${BUILDLINK_DIR}/include
+CONFIGURE_ARGS+=	--with-libpcap-libraries=${BUILDLINK_DIR}/lib
 
 .include "../../mk/bsd.prefs.mk"
 
 .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
-DEPENDS+=	libpcap>=0.4:../../net/libpcap
 ROOTGROUP=	root
 .endif
 
@@ -50,4 +51,5 @@
 	done
 	${INSTALL_MAN} ${WRKSRC}/snort.8 ${PREFIX}/man/man8
 
+.include "../../net/libpcap/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: