46b1f8748b0afe2be169fb03e509134d0b33d93d
[openwrt/svn-archive/archive.git] / net / wrt-radauth / 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:=wrt-radauth
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.zerfleddert.de/wrt54g/
17 PKG_MD5SUM:=f941e3139175dc6b87f6c89ba8848a07
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/wrt-radauth
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+kmod-brcm-wl +nvram
27 TITLE:=A Radius MAC authenticator for Broadcom based access points
28 URL:=http://www.zerfleddert.de/wrt54g/
29 endef
30
31 define Package/wrt-radauth/description
32 This software watches the stations associating to a broadcom based
33 AccessPoint (e.g. Linksys WRT54G) and sends an authentication request
34 to the radius-server specified in nvram.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) clean
39 $(call Build/Compile/Default, \
40 CFLAGS="$(EXTRA_CFLAGS)" \
41 LDFLAGS="$(EXTRA_LDFLAGS)" \
42 )
43 endef
44
45 define Package/wrt-radauth/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/radius-client $(1)/usr/sbin/
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wrt-radauth $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,wrt-radauth))