summaryrefslogtreecommitdiff
path: root/net/tcpreplay
diff options
context:
space:
mode:
authoradrianp <adrianp>2007-02-18 18:49:03 +0000
committeradrianp <adrianp>2007-02-18 18:49:03 +0000
commit46a3ce7f505adb2ccfbdd0ce9e855a34bdb0f707 (patch)
treeac0acca89528302d815648e146e5ede098822ab7 /net/tcpreplay
parent91bffe7a32121f80069766e8e552086d0c778012 (diff)
downloadpkgsrc-46a3ce7f505adb2ccfbdd0ce9e855a34bdb0f707.tar.gz
buildlink updates and patches to handle the new libnet package structure
bump PKGREVISION
Diffstat (limited to 'net/tcpreplay')
-rw-r--r--net/tcpreplay/Makefile12
-rw-r--r--net/tcpreplay/distinfo3
-rw-r--r--net/tcpreplay/patches/patch-aa25
3 files changed, 37 insertions, 3 deletions
diff --git a/net/tcpreplay/Makefile b/net/tcpreplay/Makefile
index 7431165d85c..35362ddda0d 100644
--- a/net/tcpreplay/Makefile
+++ b/net/tcpreplay/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2006/04/06 06:22:35 reed Exp $
+# $NetBSD: Makefile,v 1.16 2007/02/18 18:51:55 adrianp Exp $
DISTNAME= tcpreplay-2.3.5
+PKGREVSION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcpreplay/}
@@ -12,10 +13,17 @@ BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.6
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-libnet=${BUILDLINK_PREFIX.libnet}
CONFIGURE_ARGS+= --with-libpcap=${BUILDLINK_PREFIX.libpcap}
CONFIGURE_ARGS+= --without-pcapnav-config
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= pre-configure
+SUBST_FILES.conf= configure
+SUBST_SED.conf= -e "s|libnet-config|libnet11-config|g"
+SUBST_SED.conf+= -e "s|@@LN_INC@@|${BUILDLINK_PREFIX.libnet11}/include/libnet11|g"
+SUBST_SED.conf+= -e "s|@@LN_LIB@@|${BUILDLINK_PREFIX.libnet11}/lib/libnet11|g"
+SUBST_MESSAGE.conf= Fixing configuration script.
+
.include "../../devel/libnet11/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/tcpreplay/distinfo b/net/tcpreplay/distinfo
index aa323d6c3ac..340fb18e67e 100644
--- a/net/tcpreplay/distinfo
+++ b/net/tcpreplay/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2006/01/05 23:35:30 wiz Exp $
+$NetBSD: distinfo,v 1.7 2007/02/18 18:51:55 adrianp Exp $
SHA1 (tcpreplay-2.3.5.tar.gz) = 161eb4ac7985d3026f068eda93314f988eff05c7
RMD160 (tcpreplay-2.3.5.tar.gz) = f94e35bbe96e95416bbc320cb853fe889f2b630d
Size (tcpreplay-2.3.5.tar.gz) = 682045 bytes
+SHA1 (patch-aa) = 3797bf005a94165d22c6c3383eaeb4684b38265c
diff --git a/net/tcpreplay/patches/patch-aa b/net/tcpreplay/patches/patch-aa
new file mode 100644
index 00000000000..09760717d6e
--- /dev/null
+++ b/net/tcpreplay/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.1 2007/02/18 18:51:55 adrianp Exp $
+
+--- configure.orig 2007-02-18 17:30:43.000000000 +0000
++++ configure
+@@ -6974,14 +6974,12 @@ if test "${with_libnet+set}" = set; then
+ trynetdir=$withval
+ fi;
+
+-for testdir in $trynetdir /usr/local /usr ; do
+- if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
+- LNETINC="-I${testdir}/include"
+- LNETINCDIR="$testdir/include"
+- LNETLIB="-L${testdir}/lib -lnet"
+- foundnet=$testdir
+- fi
+-done
++if test -f "@@LN_INC@@/libnet.h" -a $foundnet = no ; then
++ LNETINC="-I@@LN_INC@@"
++ LNETINCDIR="@@LN_INC@@"
++ LNETLIB="-L@@LN_LIB@@ -lnet"
++ foundnet=$testdir
++fi
+
+ if test $foundnet = no ; then
+ echo "$as_me:$LINENO: result: no" >&5