summaryrefslogtreecommitdiff
path: root/security/dsniff
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-02-18 18:54:23 +0000
committeradrianp <adrianp@pkgsrc.org>2007-02-18 18:54:23 +0000
commit5e82482f1fdb99365384babf5e259daedf5ed000 (patch)
treea288cb4f084a313d25d2e9502b986a29962bedb8 /security/dsniff
parent446c26a5121d303e7972af0ab818a5af57bd4e2c (diff)
downloadpkgsrc-5e82482f1fdb99365384babf5e259daedf5ed000.tar.gz
buildlink updates and patches to handle the new libnet package structure
bump PKGREVISION
Diffstat (limited to 'security/dsniff')
-rw-r--r--security/dsniff/Makefile.common15
-rw-r--r--security/dsniff/distinfo3
-rw-r--r--security/dsniff/patches/patch-ad18
3 files changed, 31 insertions, 5 deletions
diff --git a/security/dsniff/Makefile.common b/security/dsniff/Makefile.common
index 8bc7953e9cd..db78675c9ce 100644
--- a/security/dsniff/Makefile.common
+++ b/security/dsniff/Makefile.common
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile.common,v 1.5 2006/05/11 15:39:20 joerg Exp $
+# $NetBSD: Makefile.common,v 1.6 2007/02/18 18:56:13 adrianp Exp $
DISTNAME= dsniff-${VERS}
+PKGREVISION= 1
VERS= 2.3
CATEGORIES= security
MASTER_SITES+= http://monkey.org/~dugsong/dsniff/
@@ -10,11 +11,17 @@ HOMEPAGE= http://monkey.org/~dugsong/dsniff/
GNU_CONFIGURE= yes
-BUILDLINK_API_DEPENDS.libnet+= libnet-1.0.*
-
PATCHDIR= ${.CURDIR}/../../security/dsniff/patches
DISTINFO_FILE= ${.CURDIR}/../../security/dsniff/distinfo
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= pre-configure
+SUBST_FILES.conf= configure
+SUBST_SED.conf= -e "s|libnet-config|libnet10-config|g"
+SUBST_SED.conf+= -e "s|@@LN_INC@@|${BUILDLINK_PREFIX.libnet10}/include/libnet10|g"
+SUBST_SED.conf+= -e "s|@@LN_LIB@@|${BUILDLINK_PREFIX.libnet10}/lib/libnet10|g"
+SUBST_MESSAGE.conf= Fixing configuration script.
+
.include "../../net/libpcap/buildlink3.mk"
-.include "../../devel/libnet/buildlink3.mk"
+.include "../../devel/libnet10/buildlink3.mk"
.include "../../net/libnids/buildlink3.mk"
diff --git a/security/dsniff/distinfo b/security/dsniff/distinfo
index 04f6e36dd3d..e6c33341a77 100644
--- a/security/dsniff/distinfo
+++ b/security/dsniff/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2006/05/11 15:39:20 joerg Exp $
+$NetBSD: distinfo,v 1.7 2007/02/18 18:56:13 adrianp Exp $
SHA1 (dsniff-2.3.tar.gz) = 671a1df823ab0657fc95e79112924a57281e9c3b
RMD160 (dsniff-2.3.tar.gz) = 89dad0259e90acef30a7aa5f3471de3aaeb06147
@@ -6,3 +6,4 @@ Size (dsniff-2.3.tar.gz) = 126797 bytes
SHA1 (patch-aa) = b50347c772c13abd6b62a80315c7bfecc139ba60
SHA1 (patch-ab) = 6385da7139dcb11ea29ffba468e7fac260b61b44
SHA1 (patch-ac) = 55ad4f73e53578857bc5ad7a445c8e6125c39215
+SHA1 (patch-ad) = cab09e1b1a61fd6a3fa96c24fff3cd1519146a3e
diff --git a/security/dsniff/patches/patch-ad b/security/dsniff/patches/patch-ad
new file mode 100644
index 00000000000..6224a1f5868
--- /dev/null
+++ b/security/dsniff/patches/patch-ad
@@ -0,0 +1,18 @@
+$NetBSD: patch-ad,v 1.1 2007/02/18 18:56:13 adrianp Exp $
+
+--- configure.orig 2000-12-03 04:35:46.000000000 +0000
++++ configure
+@@ -3083,10 +3083,10 @@ if test "${with_libnet+set}" = set; then
+ ;;
+ esac
+ else
+- if test -f ${prefix}/include/libnet.h; then
++ if test -f @@LN_INC@@/libnet.h; then
+ CFLAGS="$CFLAGS `${prefix}/bin/libnet-config --defines`"
+- LNETINC="-I${prefix}/include"
+- LNETLIB="-L${prefix}/lib -lnet"
++ LNETINC="-I@@LN_INC@@"
++ LNETLIB="-L@@LN_LIB@@ -lnet"
+ elif test -f /usr/include/libnet.h; then
+ CFLAGS="$CFLAGS `libnet-config --defines`"
+ LNETLIB="-lnet"