[packages] lighttpd:
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ettercap
11 PKG_VERSION:=NG-0.7.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ettercap
16 PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ettercap
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libpcap +libnet1 +libopenssl +libpcre +libiconv +libncurses +libltdl +libpthread +zlib
24 TITLE:=Ettercap is a suite for man in the middle attacks on LAN.
25 URL:=http://ettercap.sourceforge.net
26 endef
27
28 define Package/ettercap/description
29 It features sniffing of live connections, content filtering on the fly
30 and many other interesting tricks.
31 It supports active and passive dissection of many protocols (even
32 ciphered ones) and includes many feature for network and host analysis.
33 endef
34
35 define Package/ettercap/conffiles
36 /etc/etter.conf
37 endef
38
39 define Build/Prepare
40 $(call Build/Prepare/Default)
41 # remove default optimization flags set by configure
42 $(SED) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR)/configure
43 endef
44
45 CONFIGURE_ARGS += \
46 --with-libpcap="$(STAGING_DIR)/usr" \
47 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
48 --with-openssl="$(STAGING_DIR)/usr" \
49 --with-libpcre="$(STAGING_DIR)/usr" \
50 --with-iconv="$(STAGING_DIR)/usr/lib/libiconv" \
51 --with-libncurses="$(STAGING_DIR)/usr" \
52 --disable-gtk \
53 --disable-debug \
54 --enable-plugins
55
56 MAKE_FLAGS += \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 AM_LDFLAGS="-L$(STAGING_DIR)/usr/lib/libiconv/lib" \
59 all install
60
61
62 define Package/ettercap/install
63 $(INSTALL_DIR) $(1)/etc
64 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/etter.conf $(1)/etc/
65 $(INSTALL_DIR) $(1)/usr/bin
66 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/etter{cap,filter,log} $(1)/usr/bin/
67 $(INSTALL_DIR) $(1)/usr/lib/ettercap
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ettercap/*.so $(1)/usr/lib/ettercap/
69 $(INSTALL_DIR) $(1)/usr/share/ettercap
70 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/ettercap/* $(1)/usr/share/ettercap/
71 endef
72
73 $(eval $(call BuildPackage,ettercap))