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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/ettercap
28 DEPENDS
:=+libpcap
+libnet1
+libopenssl
+libpcre
+libiconv
+libncurses
+libltdl
29 TITLE
:=Ettercap is a suite for man in the middle attacks on LAN.
31 It features sniffing of live connections
, content filtering on the fly
\\\
32 and many other interesting tricks.
\\\
33 It supports active and passive dissection of many protocols
(even
\\\
34 ciphered ones
) and includes many feature for network and host analysis.
35 URL
:=http
://ettercap.sourceforge.net
38 define Package
/ettercap
/conffiles
43 $(call Build
/Prepare
/Default
)
44 # remove default optimization flags set by configure
45 $(SED
) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR
)/configure
48 define Build
/Configure
49 $(call Build
/Configure
/Default
, \
50 --with-libpcap
="$(STAGING_DIR)/usr" \
51 --with-libnet
="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
52 --with-openssl
="$(STAGING_DIR)/usr" \
53 --with-libpcre
="$(STAGING_DIR)/usr" \
54 --with-iconv
="$(STAGING_DIR)/usr/lib/libiconv" \
55 --with-libncurses
="$(STAGING_DIR)/usr" \
59 LDFLAGS
="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
69 define Package
/ettercap
/install
70 install -d
-m0755
$(1)/etc
71 $(CP
) $(PKG_INSTALL_DIR
)/etc
/etter.conf
$(1)/etc
/
72 install -d
-m0755
$(1)/usr
/bin
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/etter
{cap
,filter,log
} $(1)/usr
/bin
/
74 install -d
-m0755
$(1)/usr
/lib
/ettercap
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/ettercap
/*.so
$(1)/usr
/lib
/ettercap
/
76 install -d
-m0755
$(1)/usr
/share
/ettercap
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ettercap
/* $(1)/usr
/share
/ettercap
/
80 $(eval
$(call BuildPackage
,ettercap
))