pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ntop fixes to compile and run on darwin.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c115b663194
branches:  trunk
changeset: 552779:4c115b663194
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Fri Jan 09 08:53:26 2009 +0000

description:
fixes to compile and run on darwin.
 . modify configure.in to look for libpcap.dylib
 . set INSTALL_UNSTRIPPED=yes

diffstat:

 net/ntop/Makefile         |  9 ++++++++-
 net/ntop/distinfo         |  4 ++--
 net/ntop/patches/patch-ab |  4 ++--
 3 files changed, 12 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 6365f92b5577 -r 4c115b663194 net/ntop/Makefile
--- a/net/ntop/Makefile Fri Jan 09 03:32:08 2009 +0000
+++ b/net/ntop/Makefile Fri Jan 09 08:53:26 2009 +0000
@@ -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 @@
 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 -r 6365f92b5577 -r 4c115b663194 net/ntop/distinfo
--- a/net/ntop/distinfo Fri Jan 09 03:32:08 2009 +0000
+++ b/net/ntop/distinfo Fri Jan 09 08:53:26 2009 +0000
@@ -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 -r 6365f92b5577 -r 4c115b663194 net/ntop/patches/patch-ab
--- a/net/ntop/patches/patch-ab Fri Jan 09 03:32:08 2009 +0000
+++ b/net/ntop/patches/patch-ab Fri Jan 09 08:53:26 2009 +0000
@@ -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 @@
    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"



Home | Main Index | Thread Index | Old Index