Browse Source

freeradius3: Support building freeradius3-mod-rest

Signed-off-by: Tobias Girstmair <tobias.girstmair@tirol.gv.at>
lilik-openwrt-22.03
Tobias Girstmair 5 years ago
parent
commit
f97a349bdf
1 changed files with 19 additions and 2 deletions
  1. +19
    -2
      net/freeradius3/Makefile

+ 19
- 2
net/freeradius3/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=freeradius3 PKG_NAME:=freeradius3
PKG_VERSION:=release_3_0_20 PKG_VERSION:=release_3_0_20
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/FreeRADIUS/freeradius-server/archive PKG_SOURCE_URL:=https://github.com/FreeRADIUS/freeradius-server/archive
@ -456,6 +456,16 @@ define Package/freeradius3-mod-unix/conffiles
/etc/freeradius3/mods-enabled/unix /etc/freeradius3/mods-enabled/unix
endef 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 define Package/freeradius3-utils
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=+freeradius3-common DEPENDS:=+freeradius3-common
@ -504,7 +514,6 @@ CONFIGURE_ARGS+= \
--without-rlm_python \ --without-rlm_python \
--without-rlm_redis \ --without-rlm_redis \
--without-rlm_rediswho \ --without-rlm_rediswho \
--without-rlm_rest \
--without-rlm_ruby \ --without-rlm_ruby \
--without-rlm_securid \ --without-rlm_securid \
--without-rlm_smsotp \ --without-rlm_smsotp \
@ -630,6 +639,13 @@ else
CONFIGURE_ARGS+= --without-rlm_unix CONFIGURE_ARGS+= --without-rlm_unix
endif 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),) ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-ldap),)
CONFIGURE_ARGS+= --with-rlm_ldap \ CONFIGURE_ARGS+= --with-rlm_ldap \
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \ --with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
@ -778,4 +794,5 @@ $(eval $(call BuildPlugin,freeradius3-mod-sql-sqlite,rlm_sql_sqlite,))
$(eval $(call BuildPlugin,freeradius3-mod-sqlcounter,rlm_sqlcounter,)) $(eval $(call BuildPlugin,freeradius3-mod-sqlcounter,rlm_sqlcounter,))
$(eval $(call BuildPlugin,freeradius3-mod-sqlippool,rlm_sqlippool,)) $(eval $(call BuildPlugin,freeradius3-mod-sqlippool,rlm_sqlippool,))
$(eval $(call BuildPlugin,freeradius3-mod-unix,rlm_unix,)) $(eval $(call BuildPlugin,freeradius3-mod-unix,rlm_unix,))
$(eval $(call BuildPlugin,freeradius3-mod-rest,rlm_rest,))
$(eval $(call BuildPackage,freeradius3-utils)) $(eval $(call BuildPackage,freeradius3-utils))

Loading…
Cancel
Save