[package] fix path to the md5 header in dsniff, patch from Russell Senior
[openwrt/svn-archive/archive.git] / net / dsniff / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dsniff
11 PKG_VERSION:=2.4b1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.monkey.org/~dugsong/dsniff/beta
16 PKG_MD5SUM:=2f761fa3475682a7512b0b43568ee7d6
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2.4
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/dsniff
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libpcap +libnids +libnet0 +libopenssl +libgdbm
26 TITLE:=A collection of tools for network auditing and penetration testing
27 URL:=http://www.monkey.org/~dugsong/dsniff/
28 endef
29
30 define Package/dsniff/description
31 A collection of tools for network auditing and penetration testing.
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --with-gdbm="$(STAGING_DIR)/usr" \
37 --with-libnids="$(STAGING_DIR)/usr" \
38 --with-libpcap="$(STAGING_DIR)/usr" \
39 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
40 --with-openssl="$(STAGING_DIR)/usr" \
41 --without-db \
42 --without-x \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 $(TARGET_CONFIGURE_OPTS) \
49 install_prefix="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/dsniff/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,dsniff))