Fix wrt-radauth compilation (#3282)
authorFlorian Fainelli <florian@openwrt.org>
Tue, 1 Apr 2008 20:51:36 +0000 (20:51 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 1 Apr 2008 20:51:36 +0000 (20:51 +0000)
SVN-Revision: 10701

net/wrt-radauth/Makefile
net/wrt-radauth/patches/001-ldpath.patch [new file with mode: 0644]

index 49aa947974a6abb6883228cd810d94dade12531f..46b1f8748b0afe2be169fb03e509134d0b33d93d 100644 (file)
@@ -9,10 +9,10 @@
 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
 
@@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
 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
@@ -35,6 +35,7 @@ define Package/wrt-radauth/description
 endef
   
 define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) clean
        $(call Build/Compile/Default, \
                CFLAGS="$(EXTRA_CFLAGS)" \
                LDFLAGS="$(EXTRA_LDFLAGS)" \
diff --git a/net/wrt-radauth/patches/001-ldpath.patch b/net/wrt-radauth/patches/001-ldpath.patch
new file mode 100644 (file)
index 0000000..93982bc
--- /dev/null
@@ -0,0 +1,12 @@
+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