Subject: pkg/13921: buildlinking net/ntop
To: None <gnats-bugs@gnats.netbsd.org>
From: Stoned Elipot <Stoned.Elipot@script.jussieu.fr>
List: netbsd-bugs
Date: 09/10/2001 19:17:13
>Number:         13921
>Category:       pkg
>Synopsis:       use net/libpcap/buildlink.mk in net/ntop
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 10 10:18:00 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/ntop/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	2001/08/24 11:43:47	1.20
+++ Makefile	2001/09/10 17:14:01
@@ -18,9 +18,6 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
-DEPENDS+=	libpcap>=0.4:../../net/libpcap
-.endif
-
+.include "../../net/libpcap/buildlink.mk"
 .include "../../devel/ncurses/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: