Package freeradius-mod-radutmp, thanks to toboz !
authorFlorian Fainelli <florian@openwrt.org>
Tue, 11 Sep 2007 16:29:18 +0000 (16:29 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 11 Sep 2007 16:29:18 +0000 (16:29 +0000)
SVN-Revision: 8752

net/freeradius/Makefile

index e03a7a2..6d4e7fb 100644 (file)
@@ -197,6 +197,11 @@ define Package/freeradius-mod-sqlcounter
   TITLE:=Generic SQL Counter module
 endef
 
+define Package/freeradius-mod-radutmp
+  $(call Package/freeradius/Default)
+  TITLE:=Radius UTMP module
+endef
+
 define Package/freeradius-utils
   $(call Package/freeradius/Default)
   DEPENDS:=freeradius
@@ -226,7 +231,6 @@ PKG_CONFIGURE_ARGS:= \
        --without-rlm_pam \
        --without-rlm_perl \
        --without-rlm_python \
-       --without-rlm_radutmp \
        --without-rlm_smb \
        --with-rlm_sql \
        --with-rlm_sqlcounter \
@@ -303,6 +307,12 @@ else
   PKG_CONFIGURE_ARGS+= --without-rlm_attr-rewrite
 endif
 
+ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius-mod-radutmp),)
+  PKG_CONFIGURE_ARGS+= --with-rlm_radutmp
+else
+  PKG_CONFIGURE_ARGS+= --without-rlm_radutmp
+endif
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --libdir=/usr/lib/freeradius \
@@ -396,4 +406,5 @@ $(eval $(call BuildPlugin,freeradius-mod-sql,rlm_sql,sql.conf))
 $(eval $(call BuildPlugin,freeradius-mod-sql-mysql,rlm_sql_mysql,))
 $(eval $(call BuildPlugin,freeradius-mod-sql-pgsql,rlm_sql_postgresql,))
 $(eval $(call BuildPlugin,freeradius-mod-sqlcounter,rlm_sqlcounter,))
+$(eval $(call BuildPlugin,freeradius-mod-radutmp,rlm_radutmp,))
 $(eval $(call BuildPackage,freeradius-utils))