24414b30092010ac9f6cdc24bcc5337ff14cb406
[packages.git] / net / ettercap / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id: Makefile 4603 2006-08-18 21:21:06Z mbm $
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ettercap
11 PKG_VERSION:=NG-0.7.3
12 PKG_RELEASE:=0
13 PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
14
15 PKG_SOURCE_URL:=@SF/ettercap
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ettercap
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+libpcap +libnet1 +libopenssl +libpcre +libiconv +libncurses
28   TITLE:=Ettercap is a suite for man in the middle attacks on LAN.
29   DESCRIPTION:=Ettercap is a suite for man in the middle attacks on LAN. It features sniffing of live connections,\\\
30   content filtering on the fly and many other interesting tricks.\\\
31   It supports active and passive dissection of many protocols (even ciphered ones) and includes many feature for network\\\
32   and host analysis.\\\
33   URL:=http://ettercap.sourceforge.net
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,--with-libpcap="$(STAGING_DIR)/usr" \
38                         --with-libnet="$(STAGING_DIR)/usr" \
39                         --with-openssl="$(STAGING_DIR)/usr" \
40                         --with-libpcre="$(STAGING_DIR)/usr" \
41                         --with-libiconv="$(STAGING_DIR)/usr" \
42                         --with-libncurses="$(STAGING_DIR)/usr" \
43                         --disable-gtk \
44                         --disable-debug \
45 )
46 endef
47
48
49 define Build/Compile
50 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" all install)
51 endef
52
53 define Package/ettercap/install
54         install -d -m0755 $(1)/usr/
55         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
56         rm -rf $(1)/usr/man
57 endef
58
59 $(eval $(call BuildPackage,ettercap))