massive Makefile cleanup, add missing 'svn:keywords' property
[openwrt/svn-archive/archive.git] / net / wknock / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wknock
12 PKG_VERSION:=1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME).tar.gz
16 PKG_SOURCE_URL:=http://blackhat.com/presentations/bh-europe-05/BH_EU_05-Oudot/
17 PKG_MD5SUM:=6b7a1f3cbb0af88da02e5d30cefd8e7f
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/wknock
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=kmod-brcm-wl +libpcap
28 TITLE:=A tool to hide your Access Point against opportunistic attackers.
29 DESCRIPTION:=tool to hide your Access Point against opportunistic attackers.
30 URL:=http://www.rstack.org/oudot/wknock/
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 CC="$(TARGET_CC)" \
36 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
37 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lpcap" \
38 all
39 endef
40
41 define Package/wknock/install
42 install -d -m0755 $(1)/usr/sbin
43 install -m0755 $(PKG_BUILD_DIR)/wknock $(1)/usr/sbin/
44 install -m0755 $(PKG_BUILD_DIR)/wknock-ng $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,wknock))