From: Florian Fainelli Date: Tue, 1 Apr 2008 20:51:36 +0000 (+0000) Subject: Fix wrt-radauth compilation (#3282) X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2cb1a425fddce1823da506d78b0e57abb895160c;p=openwrt%2Fsvn-archive%2Fpackages.git Fix wrt-radauth compilation (#3282) SVN-Revision: 10701 --- diff --git a/net/wrt-radauth/Makefile b/net/wrt-radauth/Makefile index 49aa94797..46b1f8748 100644 --- a/net/wrt-radauth/Makefile +++ b/net/wrt-radauth/Makefile @@ -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 index 000000000..93982bcd3 --- /dev/null +++ b/net/wrt-radauth/patches/001-ldpath.patch @@ -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