50 lines
1.2 KiB
Makefile
Raw Normal View History

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=wrt-radauth
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME).tar.gz
PKG_SOURCE_URL:=http://www.zerfleddert.de/wrt54g/
PKG_MD5SUM:=f941e3139175dc6b87f6c89ba8848a07
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/wrt-radauth
SECTION:=net
CATEGORY:=Network
DEPENDS:=kmod-brcm-wl +nvram
TITLE:=A Radius MAC authenticator for Broadcom based access points
DESCRIPTION:=\
This software watches the stations associating to a broadcom based \\\
AccessPoint (e.g. Linksys WRT54G) and sends an authentication request \\\
to the radius-server specified in nvram.
URL:=http://www.zerfleddert.de/wrt54g/
endef
define Build/Compile
$(call Build/Compile/Default, \
CFLAGS="$(EXTRA_CFLAGS)" \
LDFLAGS="$(EXTRA_LDFLAGS)" \
)
endef
define Package/wrt-radauth/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/radius-client $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wrt-radauth $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,wrt-radauth))