2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ettercap
17 PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
19 include $(INCLUDE_DIR)/package.mk
21 define Package/ettercap
24 DEPENDS:=+libpcap +libnet1 +libopenssl +libpcre +libiconv +libncurses +libltdl +libpthread +zlib
25 TITLE:=Ettercap is a suite for man in the middle attacks on LAN.
26 URL:=http://ettercap.sourceforge.net
29 define Package/ettercap/description
30 It features sniffing of live connections, content filtering on the fly
31 and many other interesting tricks.
32 It supports active and passive dissection of many protocols (even
33 ciphered ones) and includes many feature for network and host analysis.
36 define Package/ettercap/conffiles
41 $(call Build/Prepare/Default)
42 # remove default optimization flags set by configure
43 $(SED) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR)/configure
47 --with-libpcap="$(STAGING_DIR)/usr" \
48 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
49 --with-openssl="$(STAGING_DIR)/usr" \
50 --with-libpcre="$(STAGING_DIR)/usr" \
51 --with-iconv="$(STAGING_DIR)/usr/lib/libiconv" \
52 --with-libncurses="$(STAGING_DIR)/usr" \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 AM_LDFLAGS="-L$(STAGING_DIR)/usr/lib/libiconv/lib" \
63 define Package/ettercap/install
64 $(INSTALL_DIR) $(1)/etc
65 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/etter.conf $(1)/etc/
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/etter{cap,filter,log} $(1)/usr/bin/
68 $(INSTALL_DIR) $(1)/usr/lib/ettercap
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ettercap/*.so $(1)/usr/lib/ettercap/
70 $(INSTALL_DIR) $(1)/usr/share/ettercap
71 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ettercap/* $(1)/usr/share/ettercap/
74 $(eval $(call BuildPackage,ettercap))