ead: use the new pcap features and the raw socket optimization to eliminate most...
[openwrt.git] / package / crda / Makefile
1 #
2 # Copyright (C) 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 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=crda
12 PKG_RELEASE:=1
13 PKG_VERSION:=1.0.1
14 PKG_SOURCE_URL:=http://wireless.kernel.org/download/crda
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_MD5SUM:=03554b71eef2626795befa17eb1d8b9e
17 PKG_BUILD_DEPENDS:=mac80211 libnl
18
19 PKG_REGULATORY_NAME:=regulatory
20 PKG_REGULATORY_VERSION:=2009.03.09
21 PKG_REGULATORY_SOURCE_URL:=http://wireless.kernel.org/download/wireless-regdb/regulatory.bins
22 PKG_REGULATORY_SOURCE:=$(PKG_REGULATORY_VERSION)-$(PKG_REGULATORY_NAME).bin
23 PKG_REGULATORY_MD5SUM:=8bda8022441a19e8b956dd3835cf9b10
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/crda
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=Central Regulatory Domain Agent (CRDA)
31 DEPENDS:=@LINUX_2_6 +hotplug2 +kmod-mac80211
32 URL:=http://wireless.kernel.org/en/developers/Regulatory/CRDA
33 endef
34
35 define Download/wireless-regdb
36 FILE:=$(PKG_REGULATORY_SOURCE)
37 URL:=$(PKG_REGULATORY_SOURCE_URL)
38 VERSION:=$(PKG_REGULATORY_VERSION)
39 MD5SUM:=$(PKG_REGULATORY_MD5SUM)
40 endef
41 $(eval $(call Download,wireless-regdb))
42
43 define Package/crda/description
44 This is the Central Regulatory Domain Agent for Linux. It serves one
45 purpose: tell Linux kernel what to enforce. In essence it is a udev
46 helper for communication between the kernel and userspace. You only
47 need to run this manually for debugging purposes. For manual changing
48 of regulatory domains use iw (iw reg set) or wpa_supplicant (feature
49 yet to be added).
50 endef
51
52 define Build/Compile
53 $(MAKE_VARS) \
54 $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
55 $(MAKE_FLAGS) \
56 NLLIBS="$(STAGING_DIR)/usr/lib/libnl.a -lm" \
57 REG_BIN="$(DL_DIR)/$(PKG_REGULATORY_SOURCE)" \
58 crda
59 endef
60
61 define Package/crda/install
62 $(INSTALL_DIR) $(1)/sbin
63 $(INSTALL_DIR) $(1)/etc/hotplug.d
64 $(INSTALL_DIR) $(1)/etc/hotplug.d/platform
65 $(INSTALL_DIR) $(1)/usr/lib/crda
66 $(INSTALL_BIN) $(PKG_BUILD_DIR)/crda $(1)/sbin/
67 $(INSTALL_DATA) ./files/hotplug.rule $(1)/etc/hotplug.d/platform/10-regulatory
68 $(INSTALL_DATA) $(DL_DIR)/$(PKG_REGULATORY_SOURCE) $(1)/usr/lib/crda/regulatory.bin
69 endef
70
71 $(eval $(call BuildPackage,crda))
72
This page took 0.05339 seconds and 5 git commands to generate.