Subject: pkg/36438: net/darkstat build problem under NetBSD 2.1
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <bartosz.kuzma@gmail.com>
List: pkgsrc-bugs
Date: 06/04/2007 14:50:01
>Number: 36438
>Category: pkg
>Synopsis: net/darkstat build problem under NetBSD 2.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 04 14:50:01 +0000 2007
>Originator: Bartosz Kuzma
>Release: NetBSD 2.1
>Organization:
>Environment:
>Description:
Bulk build fails under NetBSD 2.1.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/darkstat/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 7 Oct 2006 07:49:01 -0000 1.3
+++ Makefile 4 Jun 2007 14:29:27 -0000
@@ -11,6 +11,8 @@
HOMEPAGE= http://dmr.ath.cx/net/darkstat/
COMMENT= Network statistics gatherer
+BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8.1
+
SUBST_CLASSES+= conv_c
SUBST_STAGE.conv_c= post-patch
SUBST_FILES.conv_c= conv.c
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/darkstat/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 7 Oct 2006 07:49:01 -0000 1.2
+++ distinfo 4 Jun 2007 14:29:27 -0000
@@ -4,3 +4,4 @@
RMD160 (darkstat/darkstat-3.0.540.tar.bz2) = c9ee36a5381bfc26c81759f4cde6153abac4264c
Size (darkstat/darkstat-3.0.540.tar.bz2) = 75293 bytes
SHA1 (patch-aa) = 8f5de074e5a5fc7798a8c196f116f12417b81d83
+SHA1 (patch-ac) = 94ab87c3ba94768656fb520e84e8c99b1eacd2db
Index: patches/patch-ac
===================================================================
--- empty 2007-06-04 16:28:37.000000000 +0200
+++ patches/patch-ac 2007-06-04 16:25:37.000000000 +0200
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- cap.h.orig 2007-06-04 16:25:08.000000000 +0200
++++ cap.h
+@@ -4,6 +4,7 @@
+ * cap.h: interface to libpcap.
+ */
+
++#include <sys/time.h>
+ #include <sys/types.h> /* OpenBSD needs this before select */
+ #include <sys/select.h>
+