+#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id: Makefile 4603 2006-08-18 21:21:06Z mbm $
+# $Id$
include $(TOPDIR)/rules.mk
/etc/etter.conf
endef
+define Build/Prepare
+ $(call Build/Prepare/Default)
+ # remove default optimization flags set by configure
+ $(SED) 's,DEBUG_FLAGS=.*,DEBUG_FLAGS=,g' $(PKG_BUILD_DIR)/configure
+endef
+
define Build/Configure
$(call Build/Configure/Default, \
--with-libpcap="$(STAGING_DIR)/usr" \
)
endef
-
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
endef
define Package/ettercap/install
- install -d -m0755 $(1)/etc
+ $(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_INSTALL_DIR)/etc/etter.conf $(1)/etc/
- install -d -m0755 $(1)/usr/bin
+ $(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/etter{cap,filter,log} $(1)/usr/bin/
- install -d -m0755 $(1)/usr/lib/ettercap
+ $(INSTALL_DIR) $(1)/usr/lib/ettercap
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ettercap/*.so $(1)/usr/lib/ettercap/
- install -d -m0755 $(1)/usr/share/ettercap
+ $(INSTALL_DIR) $(1)/usr/share/ettercap
$(CP) $(PKG_INSTALL_DIR)/usr/share/ettercap/* $(1)/usr/share/ettercap/
endef