move libiconv out of the way and prevent other autoconf based packages to silently...
[openwrt/svn-archive/archive.git] / net / ettercap / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id: Makefile 4603 2006-08-18 21:21:06Z mbm $
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ettercap
11 PKG_VERSION:=NG-0.7.3
12 PKG_RELEASE:=0
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ettercap
16 PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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
28 TITLE:=Ettercap is a suite for man in the middle attacks on LAN.
29 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 URL:=http://ettercap.sourceforge.net
35 endef
36
37 define Package/ettercap/conffiles
38 /etc/etter.conf
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --with-libpcap="$(STAGING_DIR)/usr" \
44 --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
45 --with-openssl="$(STAGING_DIR)/usr" \
46 --with-libpcre="$(STAGING_DIR)/usr" \
47 --with-iconv="$(STAGING_DIR)/usr/lib/libiconv" \
48 --with-libncurses="$(STAGING_DIR)/usr" \
49 --disable-gtk \
50 --disable-debug \
51 , \
52 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
53 )
54 endef
55
56
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 all install
61 endef
62
63 define Package/ettercap/install
64 install -d -m0755 $(1)/etc
65 $(CP) $(PKG_INSTALL_DIR)/etc/etter.conf $(1)/etc/
66 install -d -m0755 $(1)/usr/bin
67 $(CP) $(PKG_INSTALL_DIR)/usr/bin/etter{cap,filter,log} $(1)/usr/bin/
68 install -d -m0755 $(1)/usr/lib/ettercap
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/ettercap/*.so $(1)/usr/lib/ettercap/
70 install -d -m0755 $(1)/usr/share/ettercap
71 $(CP) $(PKG_INSTALL_DIR)/usr/share/ettercap/* $(1)/usr/share/ettercap/
72 endef
73
74 $(eval $(call BuildPackage,ettercap))