source: packages/net/ettercap/Makefile @ 25319

Last change on this file since 25319 was 25319, checked in by jow, 5 years ago

[packages] make libintl and libiconv stub/full implementations switchable, use the new include/nls.mk infrastructure for it

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ettercap
11PKG_VERSION:=NG-0.7.3
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/ettercap
16PKG_MD5SUM:=28fb15cd024162c55249888fe1b97820
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20PKG_BUILD_PARALLEL:=1
21
22include $(INCLUDE_DIR)/package.mk
23include $(INCLUDE_DIR)/nls.mk
24
25define Package/ettercap
26  SECTION:=net
27  CATEGORY:=Network
28  DEPENDS:=+libpcap +libnet1 +libopenssl +libpcre +libncurses +libltdl +libpthread +zlib
29  TITLE:=Ettercap is a suite for man in the middle attacks on LAN.
30  URL:=http://ettercap.sourceforge.net
31endef
32
33define Package/ettercap/description
34        It features sniffing of live connections, content filtering on the fly
35        and many other interesting tricks.
36        It supports active and passive dissection of many protocols (even
37        ciphered ones) and includes many feature for network and host analysis.
38endef
39
40define Package/ettercap/conffiles
41/etc/etter.conf
42endef
43
44define Build/Prepare
45        $(call Build/Prepare/Default)
46        # remove default optimization flags set by configure
47        $(SED) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR)/configure
48endef
49
50CONFIGURE_ARGS += \
51        --with-libpcap="$(STAGING_DIR)/usr" \
52        --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
53        --with-openssl="$(STAGING_DIR)/usr" \
54        --with-libpcre="$(STAGING_DIR)/usr" \
55        --with-iconv="$(ICONV_PREFIX)" \
56        --with-libncurses="$(STAGING_DIR)/usr" \
57        --disable-gtk \
58        --disable-debug \
59        --enable-plugins
60
61MAKE_FLAGS += \
62        DESTDIR="$(PKG_INSTALL_DIR)"
63
64define 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/
73endef
74
75$(eval $(call BuildPackage,ettercap))
Note: See TracBrowser for help on using the repository browser.