Add freeradius-mod-attr-rewrite (#2353)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 9 Sep 2007 19:54:14 +0000 (19:54 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 9 Sep 2007 19:54:14 +0000 (19:54 +0000)
SVN-Revision: 8720

net/freeradius/Makefile

index 63da998..e03a7a2 100644 (file)
@@ -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,))