[packages] quagga: Remove broken flag from ripngd and add IPv6 dependency
[openwrt/svn-archive/archive.git] / net / ettercap / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ettercap
11 PKG_VERSION:=NG-0.7.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ettercap
16 PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
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 +libltdl +libpthread +zlib
28 TITLE:=Ettercap is a suite for man in the middle attacks on LAN.
29 URL:=http://ettercap.sourceforge.net
30 endef
31
32 define Package/ettercap/description
33 It features sniffing of live connections, content filtering on the fly
34 and many other interesting tricks.
35 It supports active and passive dissection of many protocols (even
36 ciphered ones) and includes many feature for network and host analysis.
37 endef
38
39 define Package/ettercap/conffiles
40 /etc/etter.conf
41 endef
42
43 define Build/Prepare
44 $(call Build/Prepare/Default)
45 # remove default optimization flags set by configure
46 $(SED) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR)/configure
47 endef
48
49 CONFIGURE_ARGS += \
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" \
56 --disable-gtk \
57 --disable-debug \
58 --enable-plugins
59
60 MAKE_FLAGS += \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 AM_LDFLAGS="-L$(STAGING_DIR)/usr/lib/libiconv/lib"
63
64 define Package/ettercap/install
65 $(INSTALL_DIR) $(1)/etc
66 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/etter.conf $(1)/etc/
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/etter{cap,filter,log} $(1)/usr/bin/
69 $(INSTALL_DIR) $(1)/usr/lib/ettercap
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ettercap/*.so $(1)/usr/lib/ettercap/
71 $(INSTALL_DIR) $(1)/usr/share/ettercap
72 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ettercap/* $(1)/usr/share/ettercap/
73 endef
74
75 $(eval $(call BuildPackage,ettercap))