PKG_NAME:=freeradius3
PKG_VERSION:=release_3_0_20
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/FreeRADIUS/freeradius-server/archive
/etc/freeradius3/mods-enabled/unix
endef
+define Package/freeradius3-mod-rest
+ $(call Package/freeradius3/Default)
+ DEPENDS:=freeradius3 +libcurl +libjson-c
+ TITLE:=Radius REST module
+endef
+
+define Package/freeradius3-mod-rest/conffiles
+/etc/freeradius3/mods-available/rest
+endef
+
define Package/freeradius3-utils
$(call Package/freeradius3/Default)
DEPENDS:=+freeradius3-common
--without-rlm_python \
--without-rlm_redis \
--without-rlm_rediswho \
- --without-rlm_rest \
--without-rlm_ruby \
--without-rlm_securid \
--without-rlm_smsotp \
CONFIGURE_ARGS+= --without-rlm_unix
endif
+ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-rest),)
+ CONFIGURE_ARGS+= --with-rlm_rest
+else
+ CONFIGURE_ARGS+= --without-rlm_rest
+endif
+
+
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-ldap),)
CONFIGURE_ARGS+= --with-rlm_ldap \
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
$(eval $(call BuildPlugin,freeradius3-mod-sqlcounter,rlm_sqlcounter,))
$(eval $(call BuildPlugin,freeradius3-mod-sqlippool,rlm_sqlippool,))
$(eval $(call BuildPlugin,freeradius3-mod-unix,rlm_unix,))
+$(eval $(call BuildPlugin,freeradius3-mod-rest,rlm_rest,))
$(eval $(call BuildPackage,freeradius3-utils))