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