aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openwrt.org>2005-06-11 14:13:51 +0000
committerWaldemar Brodkorb <wbx@openwrt.org>2005-06-11 14:13:51 +0000
commit28890937bd201ff2fae0237a19f49f7cce5efd9c (patch)
treeeaeba632e207932765527a27ecccc594ec2afdc2
parent36ac484a4e859c395df55baf6af096ca9ef52359 (diff)
downloadupstream-28890937bd201ff2fae0237a19f49f7cce5efd9c.tar.gz
upstream-28890937bd201ff2fae0237a19f49f7cce5efd9c.tar.bz2
upstream-28890937bd201ff2fae0237a19f49f7cce5efd9c.zip
fixup dsniff start and remove manpages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1200 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/dsniff/Makefile4
-rw-r--r--package/dsniff/patches/gdbm.patch45
2 files changed, 28 insertions, 21 deletions
diff --git a/package/dsniff/Makefile b/package/dsniff/Makefile
index 9f17259b41..2f95d6aee0 100644
--- a/package/dsniff/Makefile
+++ b/package/dsniff/Makefile
@@ -63,9 +63,9 @@ $(PKG_BUILD_DIR)/.built:
touch $@
$(IPKG_DSNIFF):
- install -d -m0755 $(IDIR_DSNIFF)/usr/share
+ install -d -m0755 $(IDIR_DSNIFF)/usr/lib
install -d -m0755 $(IDIR_DSNIFF)/usr/sbin
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_DSNIFF)/usr/sbin
- cp -fpR $(PKG_INSTALL_DIR)/usr/share/* $(IDIR_DSNIFF)/usr/share
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_DSNIFF)/usr/lib
$(RSTRIP) $(IDIR_DSNIFF)
$(IPKG_BUILD) $(IDIR_DSNIFF) $(PACKAGE_DIR)
diff --git a/package/dsniff/patches/gdbm.patch b/package/dsniff/patches/gdbm.patch
index 2d9256aaef..06f92d92c5 100644
--- a/package/dsniff/patches/gdbm.patch
+++ b/package/dsniff/patches/gdbm.patch
@@ -1,7 +1,16 @@
diff -Nur dsniff-2.3/configure dsniff-2.3.patched/configure
---- dsniff-2.3/configure 2005-06-09 15:21:49.000000000 +0200
-+++ dsniff-2.3.patched/configure 2005-06-09 15:26:41.000000000 +0200
-@@ -3051,7 +3051,40 @@
+--- dsniff-2.3/configure 2005-06-11 16:38:47.000000000 +0200
++++ dsniff-2.3.patched/configure 2005-06-11 16:39:26.000000000 +0200
+@@ -16,6 +16,8 @@
+ ac_help="$ac_help
+ --with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
+ ac_help="$ac_help
++ --with-gdbm=DIR use GNU DBM in DIR"
++ac_help="$ac_help
+ --with-libpcap=DIR use libpcap in DIR"
+ ac_help="$ac_help
+ --with-libnet=DIR use libnet in DIR"
+@@ -3051,7 +3053,40 @@
fi
@@ -42,21 +51,9 @@ diff -Nur dsniff-2.3/configure dsniff-2.3.patched/configure
echo $ac_n "checking for libnet""... $ac_c" 1>&6
-diff -Nur dsniff-2.3/configure dsniff-2.3.patched/configure
---- dsniff-2.3/configure 2005-06-09 15:17:11.000000000 +0200
-+++ dsniff-2.3.patched/configure 2005-06-09 14:47:24.000000000 +0200
-@@ -16,6 +16,8 @@
- ac_help="$ac_help
- --with-db=DIR use Berkeley DB (with --enable-compat185) in DIR"
- ac_help="$ac_help
-+ --with-gdbm=DIR use GNU DBM in DIR"
-+ac_help="$ac_help
- --with-libpcap=DIR use libpcap in DIR"
- ac_help="$ac_help
- --with-libnet=DIR use libnet in DIR"
diff -Nur dsniff-2.3/record.c dsniff-2.3.patched/record.c
--- dsniff-2.3/record.c 2000-11-14 16:51:02.000000000 +0100
-+++ dsniff-2.3.patched/record.c 2005-06-09 15:16:50.000000000 +0200
++++ dsniff-2.3.patched/record.c 2005-06-11 16:39:49.000000000 +0200
@@ -13,12 +13,7 @@
#include <stdio.h>
#include <time.h>
@@ -160,9 +157,18 @@ diff -Nur dsniff-2.3/record.c dsniff-2.3.patched/record.c
}
}
-@@ -157,14 +156,14 @@
+@@ -155,16 +154,23 @@
+ record_init(char *file)
+ {
int flags, mode;
-
+-
++ // needed for gdbm_open, which does not have the option to create
++ // a database in memory
++ if(file == NULL) {
++ char *record_file = "/tmp/.dsniff.db";
++ file = record_file;
++ }
++
if (Opt_read) {
- flags = O_RDONLY;
+ flags = GDBM_READER;
@@ -174,11 +180,12 @@ diff -Nur dsniff-2.3/record.c dsniff-2.3.patched/record.c
mode = S_IRUSR|S_IWUSR;
}
- if ((db = dbopen(file, flags, mode, DB_BTREE, NULL)) == NULL)
++
+ if ((dbf = gdbm_open(file, 1024, flags, mode, NULL)) == NULL)
return (0);
return (1);
-@@ -203,6 +202,6 @@
+@@ -203,6 +209,6 @@
void
record_close(void)
{