[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[openwrt/svn-archive/archive.git] / net / wknock / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=wknock
11 PKG_VERSION:=1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME).tar.gz
15 PKG_SOURCE_URL:=http://blackhat.com/presentations/bh-europe-05/BH_EU_05-Oudot/
16 PKG_MD5SUM:=6b7a1f3cbb0af88da02e5d30cefd8e7f
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/wknock
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=kmod-brcm-wl +libpcap
26 TITLE:=A tool to hide your Access Point against opportunistic attackers.
27 URL:=http://www.rstack.org/oudot/wknock/
28 endef
29
30 define Package/wknock/description
31 tool to hide your Access Point against opportunistic attackers.
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 CC="$(TARGET_CC)" \
37 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
38 LDFLAGS="$(TARGET_LDFLAGS) -lpcap" \
39 all
40 endef
41
42 define Package/wknock/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wknock $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wknock-ng $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,wknock))