From a2237b9b5f016b9ac4d9de7ca15dd753a2702732 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 9 Sep 2007 19:54:14 +0000 Subject: [PATCH] Add freeradius-mod-attr-rewrite (#2353) git-svn-id: svn://svn.openwrt.org/openwrt/packages@8720 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/freeradius/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile index 63da9981a..e03a7a212 100644 --- a/net/freeradius/Makefile +++ b/net/freeradius/Makefile @@ -112,6 +112,12 @@ define Package/freeradius-mod-exec TITLE:=EXEC module endef +define Package/freeradius-mod-attr-rewrite + $(call Package/freeradius/Default) + DEPENDS:=freeradius + TITLE:=ATTR rewrite module +endef + define Package/freeradius-mod-files $(call Package/freeradius/Default) DEPENDS:=freeradius @@ -208,7 +214,6 @@ PKG_CONFIGURE_ARGS:= \ --without-edir \ --without-snmp \ --with-experimental-modules \ - --without-rlm_attr-rewrite \ --without-rlm_checkval \ --without-rlm_counter \ --without-rlm_dbm \ @@ -292,6 +297,12 @@ else PKG_CONFIGURE_ARGS+= --without-rlm_eap_ttls endif +ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-attr-rewrite),) + PKG_CONFIGURE_ARGS+= --with-rlm_attr-rewrite +else + PKG_CONFIGURE_ARGS+= --without-rlm_attr-rewrite +endif + define Build/Configure $(call Build/Configure/Default, \ --libdir=/usr/lib/freeradius \ @@ -374,6 +385,7 @@ $(eval $(call BuildPlugin,freeradius-mod-eap-peap,rlm_eap_peap,)) $(eval $(call BuildPlugin,freeradius-mod-eap-tls,rlm_eap_tls,)) $(eval $(call BuildPlugin,freeradius-mod-eap-ttls,rlm_eap_ttls,)) $(eval $(call BuildPlugin,freeradius-mod-exec,rlm_exec,)) +$(eval $(call BuildPlugin,freeradius-mod-attr-rewrite,rlm_attr_rewrite)) $(eval $(call BuildPlugin,freeradius-mod-files,rlm_files,acct_users preproxy_users users)) $(eval $(call BuildPlugin,freeradius-mod-ldap,rlm_ldap,ldap.attrmap)) $(eval $(call BuildPlugin,freeradius-mod-mschap,rlm_mschap,))