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