From 09a8763fee10d5a61cd85228c15056a452916153 Mon Sep 17 00:00:00 2001 From: dbj Date: Fri, 9 Jan 2009 08:53:26 +0000 Subject: fixes to compile and run on darwin. . modify configure.in to look for libpcap.dylib . set INSTALL_UNSTRIPPED=yes --- net/ntop/Makefile | 9 ++++++++- net/ntop/distinfo | 4 ++-- net/ntop/patches/patch-ab | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'net/ntop') diff --git a/net/ntop/Makefile b/net/ntop/Makefile index 0c2e6fca318..a9c5a7a24fb 100644 --- a/net/ntop/Makefile +++ b/net/ntop/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.49 2008/10/16 12:24:09 adam Exp $ +# $NetBSD: Makefile,v 1.50 2009/01/09 08:53:26 dbj Exp $ DISTNAME= ntop-3.3.8 CATEGORIES= net @@ -35,6 +35,13 @@ BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8.3 CONFIGURE_ARGS+= --disable-mt .endif +.if ${OPSYS} == "Darwin" +# This package uses "-flat_namespace -undefined suppress" and exports +# symbols from the executable that get stripped unless we set this: + +INSTALL_UNSTRIPPED= YES +.endif + pre-configure: set -e; cd ${WRKSRC}; \ diff --git a/net/ntop/distinfo b/net/ntop/distinfo index 41372c8d86d..0d56f9754d8 100644 --- a/net/ntop/distinfo +++ b/net/ntop/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.9 2008/10/16 12:24:09 adam Exp $ +$NetBSD: distinfo,v 1.10 2009/01/09 08:53:26 dbj Exp $ SHA1 (ntop-3.3.8.tar.gz) = 6ef20a1c43ce560b81e6439dc7ad0f7b29edc2c0 RMD160 (ntop-3.3.8.tar.gz) = cd1b3e08f74d9231d56fc8b619ce5e85d3fabbd0 Size (ntop-3.3.8.tar.gz) = 5626313 bytes SHA1 (patch-aa) = 3a3c9ce9bad98d6b73c487ca31ff67720e1ea96c -SHA1 (patch-ab) = 55b23a8445a3364bd9e1dac6d1baa39a884bb471 +SHA1 (patch-ab) = afee878962b6d3313faa618fd1c9230f8ac5016c diff --git a/net/ntop/patches/patch-ab b/net/ntop/patches/patch-ab index 3cc783d7810..3ddb8dbf5c3 100644 --- a/net/ntop/patches/patch-ab +++ b/net/ntop/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.13 2008/10/16 12:24:09 adam Exp $ +$NetBSD: patch-ab,v 1.14 2009/01/09 08:53:26 dbj Exp $ --- configure.in.orig 2008-10-02 12:54:15.000000000 +0200 +++ configure.in @@ -24,7 +24,7 @@ $NetBSD: patch-ab,v 1.13 2008/10/16 12:24:09 adam Exp $ if test -d $PCAP_ROOT && - test -r $PCAP_ROOT/libpcap.a && - test -r $PCAP_ROOT/pcap.h; then -+ test -r $PCAP_ROOT/lib/libpcap.a && ++ test -r $PCAP_ROOT/lib/libpcap.a -o -r $PCAP_ROOT/lib/libpcap.dylib && + test -r $PCAP_ROOT/include/pcap.h; then PCAP_ROOT=`cd ${PCAP_ROOT} && pwd` CORELIBS="${CORELIBS} -L$PCAP_ROOT -lpcap" -- cgit v1.2.3