e0e3ff85355b4fcc3e8cd299029e19e7db5876ef
[openwrt/svn-archive/archive.git] / net / karma / Makefile
1 #
2 # Copyright (C) 2007 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:=karma
11 PKG_VERSION:=20060124
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://theta44.org/software/
16 PKG_MD5SUM:=e9d4ccbda89b4b1cd70eefb1db339d0a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/karma
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+kmod-madwifi +ruby +libpcap +libncurses
24 TITLE:=set of tools for assessing the security of wireless clients
25 URL:=http://theta44.org/karma/index.html
26 endef
27
28 define Package/karma/description
29 KARMA is a set of tools for assessing the security of wireless clients
30 at multiple layers. Wireless sniffing tools discover clients and their
31 preferred/trusted networks by passively listening for 802.11 Probe Request
32 frames.
33 endef
34
35 define Package/karma/conffiles
36 /etc/karma-lan.xml
37 /etc/karma-scan.xml
38 /etc/karma.xml
39 endef
40
41 define Build/Configure
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR)/src/ \
46 CC="$(TARGET_CC)" \
47 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
48 LDLIBS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap -lncurses"
49 endef
50
51 define Package/karma/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/karma $(1)/usr/sbin/karma-ruby
54 $(CP) $(PKG_BUILD_DIR)/src/karma $(1)/usr/sbin/karma
55 $(INSTALL_DIR) $(1)/etc
56 $(CP) $(PKG_BUILD_DIR)/etc/* $(1)/etc/
57 endef
58
59 $(eval $(call BuildPackage,karma))