Update to asterisk 1.4.21 (yes there's a 1.4.21.1 but I haven't tested it)
[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
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.monkey.org/~dugsong/dsniff/beta
17 PKG_MD5SUM:=2f761fa3475682a7512b0b43568ee7d6
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2.4
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/dsniff
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap +libnids +libnet0 +libopenssl +libgdbm
27 TITLE:=A collection of tools for network auditing and penetration testing
28 URL:=http://www.monkey.org/~dugsong/dsniff/
29 endef
30
31 define Package/dsniff/description
32 A collection of tools for network auditing and penetration testing.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-gdbm="$(STAGING_DIR)/usr" \
38 --with-libnids="$(STAGING_DIR)/usr" \
39 --with-libpcap="$(STAGING_DIR)/usr" \
40 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
41 --with-openssl="$(STAGING_DIR)/usr" \
42 --without-db \
43 --without-x \
44 )
45 endef
46
47 define Build/Compile
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_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,dsniff))