Port of the dyndns.com update client ndyndns.
[openwrt/svn-archive/archive.git] / net / ettercap / 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:=ettercap
12 PKG_VERSION:=NG-0.7.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/ettercap
17 PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ettercap
22 SECTION:=net
23 CATEGORY:=Network
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
27 endef
28
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.
34 endef
35
36 define Package/ettercap/conffiles
37 /etc/etter.conf
38 endef
39
40 define Build/Prepare
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
44 endef
45
46 CONFIGURE_ARGS += \
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" \
53 --disable-gtk \
54 --disable-debug \
55 --enable-plugins
56
57 MAKE_FLAGS += \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 AM_LDFLAGS="-L$(STAGING_DIR)/usr/lib/libiconv/lib" \
60 all install
61
62
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/
72 endef
73
74 $(eval $(call BuildPackage,ettercap))