1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
6 # $Id: Makefile 4603 2006-08-18 21:21:06Z mbm $
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/ettercap
16 PKG_MD5SUM
:=28fb15cd024162c55249888fe1b97820
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/ettercap
27 DEPENDS
:=+libpcap
+libnet1
+libopenssl
+libpcre
+libiconv
+libncurses
+libltdl
28 TITLE
:=Ettercap is a suite for man in the middle attacks on LAN.
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.
34 URL
:=http
://ettercap.sourceforge.net
37 define Package
/ettercap
/conffiles
42 $(call Build
/Prepare
/Default
)
43 # remove default optimization flags set by configure
44 $(SED
) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR
)/configure
47 define Build
/Configure
48 $(call Build
/Configure
/Default
, \
49 --with-libpcap
="$(STAGING_DIR)/usr" \
50 --with-libnet
="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
51 --with-openssl
="$(STAGING_DIR)/usr" \
52 --with-libpcre
="$(STAGING_DIR)/usr" \
53 --with-iconv
="$(STAGING_DIR)/usr/lib/libiconv" \
54 --with-libncurses
="$(STAGING_DIR)/usr" \
58 LDFLAGS
="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
68 define Package
/ettercap
/install
69 install -d
-m0755
$(1)/etc
70 $(CP
) $(PKG_INSTALL_DIR
)/etc
/etter.conf
$(1)/etc
/
71 install -d
-m0755
$(1)/usr
/bin
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/etter
{cap
,filter,log
} $(1)/usr
/bin
/
73 install -d
-m0755
$(1)/usr
/lib
/ettercap
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/ettercap
/*.so
$(1)/usr
/lib
/ettercap
/
75 install -d
-m0755
$(1)/usr
/share
/ettercap
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/ettercap
/* $(1)/usr
/share
/ettercap
/
79 $(eval
$(call BuildPackage
,ettercap
))