NetBSD Problem Report #22913

Received: (qmail 21975 invoked by uid 605); 23 Sep 2003 12:51:15 -0000
Message-Id: <20030923125110.75EF211154@narn.netbsd.org>
Date: Tue, 23 Sep 2003 12:51:10 +0000 (UTC)
From: jonathan@perkin.org.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jonathan@perkin.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: security/rid needs net/libpcap on non-BSD
X-Send-Pr-Version: www-1.0

>Number:         22913
>Category:       pkg
>Synopsis:       security/rid needs net/libpcap on non-BSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 23 12:52:00 +0000 2003
>Closed-Date:    Tue Sep 23 13:15:51 +0000 2003
>Last-Modified:  Tue Sep 23 13:16:00 +0000 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: jmmv 
State-Changed-When: Tue Sep 23 13:15:31 UTC 2003 
State-Changed-Why:  
Applied, thanks. 

From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22913 CVS commit: pkgsrc/security/rid
Date: Tue, 23 Sep 2003 13:15:19 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jmmv
 Date:		Tue Sep 23 13:15:18 UTC 2003

 Modified Files:
 	pkgsrc/security/rid: Makefile

 Log Message:
 This needs libpcap.  Do not bump revision since the package does not change
 where it already built fine.  From Jonathan Perkin in PR pkg/22913.


 To generate a diff of this commit:
 cvs rdiff -r1.4 -r1.5 pkgsrc/security/rid/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.