b87dab3cd2030d2e755b5592bdfed989f86fc575
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dsniff
12 PKG_VERSION:=2.4b1
13 PKG_RELEASE:=2
14 PKG_MD5SUM:=2f761fa3475682a7512b0b43568ee7d6
15
16 PKG_SOURCE_URL:=http://www.monkey.org/~dugsong/dsniff/beta
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2.4
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/dsniff
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpcap +libnids +libnet +libopenssl +libgdbm
29 TITLE:=A collection of tools for betwork auditing and penetration testing
30 DESCRIPTION:=A collection of tools for betwork auditing and penetration testing
31 URL:=http://www.monkey.org/~dugsong/dsniff/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default,--without-db \
36 --without-x \
37 --with-gdbm="$(STAGING_DIR)/usr" \
38 --with-libnids="$(STAGING_DIR)/usr" \
39 --with-libpcap="$(STAGING_DIR)/usr" \
40 --with-libnet="$(STAGING_DIR)/usr" \
41 --with-openssl="$(STAGING_DIR)/usr" \
42 )
43 endef
44
45 define Build/Compile
46 rm -rf $(PKG_INSTALL_DIR)
47 mkdir -p $(PKG_INSTALL_DIR)
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 $(TARGET_CONFIGURE_OPTS) \
50 install_prefix="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/dsniff/install
55 install -d -m0755 $(1)/usr/lib
56 install -d -m0755 $(1)/usr/sbin
57 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
59 endef
60
61 $(eval $(call BuildPackage,dsniff))