#
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id: $
include $(TOPDIR)/rules.mk
define Package/karma
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+kmod-madwifi-karma +ruby +libpcap +libncurses
+ DEPENDS:=+kmod-madwifi +ruby +libpcap +libncurses
TITLE:=set of tools for assessing the security of wireless clients
URL:=http://theta44.org/karma/index.html
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src/ \
CC="$(TARGET_CC)" \
- CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
- LDLIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap -lncurses"
+ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
+ LDLIBS="$(TARGET_LDFLAGS) -lpcap -lncurses"
endef
define Package/karma/install
$(INSTALL_DIR) $(1)/usr/sbin
- $(CP) $(PKG_BUILD_DIR)/bin/karma $(1)/usr/sbin/karma-ruby
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/karma $(1)/usr/sbin/karma-ruby
$(CP) $(PKG_BUILD_DIR)/src/karma $(1)/usr/sbin/karma
$(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_BUILD_DIR)/etc/* $(1)/etc/