remove PKG_CAT from packages
[packages.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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dsniff
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+libpcap +libnids +libnet0 +libopenssl +libgdbm
28   TITLE:=A collection of tools for network auditing and penetration testing
29   URL:=http://www.monkey.org/~dugsong/dsniff/
30 endef
31
32 define Package/dsniff/description
33         A collection of tools for network auditing and penetration testing.
34 endef
35
36 define Build/Configure
37         $(call Build/Configure/Default, \
38                 --with-gdbm="$(STAGING_DIR)/usr" \
39                 --with-libnids="$(STAGING_DIR)/usr" \
40                 --with-libpcap="$(STAGING_DIR)/usr" \
41                 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.0.x" \
42                 --with-openssl="$(STAGING_DIR)/usr" \
43                 --without-db \
44                 --without-x \
45         )
46 endef
47
48 define Build/Compile    
49         $(MAKE) -C $(PKG_BUILD_DIR) \
50                 $(TARGET_CONFIGURE_OPTS) \
51                 install_prefix="$(PKG_INSTALL_DIR)" \
52                 all install
53 endef
54
55 define Package/dsniff/install   
56         $(INSTALL_DIR) $(1)/usr/sbin
57         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
58         $(INSTALL_DIR) $(1)/usr/lib
59         $(CP)  $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,dsniff))