include $(TOPDIR)/rules.mk
PKG_NAME:=wrt-radauth
-PKG_VERSION:=1.0
+PKG_VERSION:=0.1
PKG_RELEASE:=1
-PKG_SOURCE:=$(PKG_NAME).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.zerfleddert.de/wrt54g/
PKG_MD5SUM:=f941e3139175dc6b87f6c89ba8848a07
define Package/wrt-radauth
SECTION:=net
CATEGORY:=Network
- DEPENDS:=kmod-brcm-wl +nvram
+ DEPENDS:=+kmod-brcm-wl +nvram
TITLE:=A Radius MAC authenticator for Broadcom based access points
URL:=http://www.zerfleddert.de/wrt54g/
endef
endef
define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR) clean
$(call Build/Compile/Default, \
CFLAGS="$(EXTRA_CFLAGS)" \
LDFLAGS="$(EXTRA_LDFLAGS)" \
--- /dev/null
+diff -urN wrt-radauth/Makefile wrt-radauth.new/Makefile
+--- wrt-radauth/Makefile 2007-01-07 20:05:21.000000000 +0100
++++ wrt-radauth.new/Makefile 2008-04-01 22:50:09.000000000 +0200
+@@ -7,7 +7,7 @@
+ all: wrt-radauth radius-client
+
+ wrt-radauth: wrt-radauth.o md5.o wireless.o radius.o
+- $(CC) $(LDFLAGS) -L$(WRT_BUILDROOT)/build_mipsel/root/usr/lib -lshared -lnvram $^ -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) -L$(STAGING_DIR)/usr/lib -lshared -lnvram $^ -o $@
+
+
+ radius-client: radius-client.o md5.o radius.o