2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.zerfleddert.de/wrt54g/
16 PKG_MD5SUM:=1713b96a157f9e209cf7986f38ef57d9
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/wrt-radauth
25 DEPENDS:=+kmod-brcm-wl +nvram
26 TITLE:=A Radius MAC authenticator for Broadcom based access points
27 URL:=http://www.zerfleddert.de/wrt54g/
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.
37 $(MAKE) -C $(PKG_BUILD_DIR) clean
38 $(call Build/Compile/Default, \
39 CFLAGS="$(EXTRA_CFLAGS)" \
40 LDFLAGS="$(EXTRA_LDFLAGS)" \
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/
50 $(eval $(call BuildPackage,wrt-radauth))