Subject: pkg/22913: security/rid needs net/libpcap on non-BSD
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 09/23/2003 12:51:10
>Number:         22913
>Category:       pkg
>Synopsis:       security/rid needs net/libpcap on non-BSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 23 12:52:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build1 5.9 Generic_112233-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
rid requires libpcap functionality, found on BSD systems, but supplied
by net/libpcap on non-BSD.

Use libpcap's buildlink2.mk to determine whether it is needed or not.
>How-To-Repeat:
[...]
checking for pcap_datalink in -lpcap... no

   ERROR!  Libpcap not found, go get it from
   ftp://ftp.ee.lbl.gov/libpcap.tar.Z

===> Building for rid-1.11nb1
bmake: cannot open Makefile.

bmake: stopped in /tmp/pkgsrc/security/rid/work.build1/rid-1.11
*** Error code 2
>Fix:
http://www.perkin.org.uk/projects/netbsd/rid.diff

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/rid/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	2003/07/17 22:53:13	1.4
+++ Makefile	2003/09/23 12:49:42
@@ -12,6 +12,7 @@
 COMMENT=	Remote Intrusion Detection to track down compromised hosts
 
 GNU_CONFIGURE=	YES
+USE_BUILDLINK2=	YES
 USE_PKGINSTALL=	YES
 
 CONF_FILES=	${PREFIX}/share/examples/rid/rid.conf ${PKG_SYSCONFDIR}/rid.conf
@@ -30,4 +31,5 @@
 	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rid
 	${INSTALL_DATA} ${WRKSRC}/rid.conf ${PREFIX}/share/examples/rid
 
+.include "../../net/libpcap/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: