Browse Source

freeradius3: Fix the ordering in the Makefile.

Signed-off-by: Robby K <robbyke@gmail.com>
lilik-openwrt-22.03
Robby K 5 years ago
parent
commit
6aa91d2210
1 changed files with 104 additions and 105 deletions
  1. +104
    -105
      net/freeradius3/Makefile

+ 104
- 105
net/freeradius3/Makefile View File

@ -77,9 +77,9 @@ define Package/freeradius3-default
+freeradius3-mod-eap-md5 \ +freeradius3-mod-eap-md5 \
+freeradius3-mod-eap-mschapv2 \ +freeradius3-mod-eap-mschapv2 \
+freeradius3-mod-eap-peap \ +freeradius3-mod-eap-peap \
+freeradius3-mod-eap-pwd \
+freeradius3-mod-eap-tls \ +freeradius3-mod-eap-tls \
+freeradius3-mod-eap-ttls \ +freeradius3-mod-eap-ttls \
+freeradius3-mod-eap-pwd \
+freeradius3-mod-exec \ +freeradius3-mod-exec \
+freeradius3-mod-expiration \ +freeradius3-mod-expiration \
+freeradius3-mod-expr \ +freeradius3-mod-expr \
@ -100,6 +100,39 @@ define Package/freeradius3-democerts
TITLE:=Demo certificates to test the server TITLE:=Demo certificates to test the server
endef endef
define Package/freeradius3-mod-always
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=Always module
endef
define Package/freeradius3-mod-always/conffiles
/etc/freeradius3/mods-available/always
/etc/freeradius3/mods-enabled/always
endef
define Package/freeradius3-mod-attr-filter
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=ATTR filter module
endef
define Package/freeradius3-mod-attr-filter/conffiles
/etc/freeradius3/mods-available/attr_filter
/etc/freeradius3/mods-enabled/attr_filter
/etc/freeradius3/mods-config/attr_filter/access_challenge
/etc/freeradius3/mods-config/attr_filter/access_reject
/etc/freeradius3/mods-config/attr_filter/accounting_response
/etc/freeradius3/mods-config/attr_filter/post-proxy
/etc/freeradius3/mods-config/attr_filter/pre-proxy
endef
define Package/freeradius3-mod-attr-rewrite
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=ATTR rewrite module
endef
define Package/freeradius3-mod-chap define Package/freeradius3-mod-chap
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -177,6 +210,12 @@ define Package/freeradius3-mod-eap-peap
TITLE:=EAP/PEAP module TITLE:=EAP/PEAP module
endef endef
define Package/freeradius3-mod-eap-pwd
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3-mod-eap @FREERADIUS3_OPENSSL
TITLE:=EAP/PWD module
endef
define Package/freeradius3-mod-eap-tls define Package/freeradius3-mod-eap-tls
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3-mod-eap @FREERADIUS3_OPENSSL DEPENDS:=freeradius3-mod-eap @FREERADIUS3_OPENSSL
@ -189,12 +228,6 @@ define Package/freeradius3-mod-eap-ttls
TITLE:=EAP/TTLS module TITLE:=EAP/TTLS module
endef endef
define Package/freeradius3-mod-eap-pwd
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3-mod-eap @FREERADIUS3_OPENSSL
TITLE:=EAP/PWD module
endef
define Package/freeradius3-mod-exec define Package/freeradius3-mod-exec
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -217,17 +250,6 @@ define Package/freeradius3-mod-expiration/conffiles
/etc/freeradius3/mods-enabled/expiration /etc/freeradius3/mods-enabled/expiration
endef endef
define Package/freeradius3-mod-always
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=Always module
endef
define Package/freeradius3-mod-always/conffiles
/etc/freeradius3/mods-available/always
/etc/freeradius3/mods-enabled/always
endef
define Package/freeradius3-mod-expr define Package/freeradius3-mod-expr
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -239,28 +261,6 @@ define Package/freeradius3-mod-expr/conffiles
/etc/freeradius3/mods-enabled/expr /etc/freeradius3/mods-enabled/expr
endef endef
define Package/freeradius3-mod-attr-filter
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=ATTR filter module
endef
define Package/freeradius3-mod-attr-filter/conffiles
/etc/freeradius3/mods-available/attr_filter
/etc/freeradius3/mods-enabled/attr_filter
/etc/freeradius3/mods-config/attr_filter/access_challenge
/etc/freeradius3/mods-config/attr_filter/access_reject
/etc/freeradius3/mods-config/attr_filter/accounting_response
/etc/freeradius3/mods-config/attr_filter/post-proxy
/etc/freeradius3/mods-config/attr_filter/pre-proxy
endef
define Package/freeradius3-mod-attr-rewrite
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=ATTR rewrite module
endef
define Package/freeradius3-mod-files define Package/freeradius3-mod-files
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -275,17 +275,6 @@ define Package/freeradius3-mod-files/conffiles
/etc/freeradius3/mods-config/files/pre-proxy /etc/freeradius3/mods-config/files/pre-proxy
endef endef
define Package/freeradius3-mod-passwd
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=Rlm passwd module
endef
define Package/freeradius3-mod-passwd/conffiles
/etc/freeradius3/mods-available/passwd
/etc/freeradius3/mods-enabled/passwd
endef
define Package/freeradius3-mod-ldap define Package/freeradius3-mod-ldap
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 +libopenldap @FREERADIUS3_OPENSSL DEPENDS:=freeradius3 +libopenldap @FREERADIUS3_OPENSSL
@ -329,6 +318,17 @@ define Package/freeradius3-mod-pap/conffiles
/etc/freeradius3/mods-enabled/pap /etc/freeradius3/mods-enabled/pap
endef endef
define Package/freeradius3-mod-passwd
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=Rlm passwd module
endef
define Package/freeradius3-mod-passwd/conffiles
/etc/freeradius3/mods-available/passwd
/etc/freeradius3/mods-enabled/passwd
endef
define Package/freeradius3-mod-preprocess define Package/freeradius3-mod-preprocess
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -352,6 +352,19 @@ define Package/freeradius3-mod-python3/conffiles
/etc/freeradius3/mods-available/python3 /etc/freeradius3/mods-available/python3
endef endef
define Package/freeradius3-mod-radutmp
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=Radius UTMP module
endef
define Package/freeradius3-mod-radutmp/conffiles
/etc/freeradius3/mods-available/radutmp
/etc/freeradius3/mods-enabled/radutmp
/etc/freeradius3/mods-available/sradutmp
/etc/freeradius3/mods-enabled/sradutmp
endef
define Package/freeradius3-mod-realm define Package/freeradius3-mod-realm
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -363,6 +376,16 @@ define Package/freeradius3-mod-realm/conffiles
/etc/freeradius3/mods-enabled/realm /etc/freeradius3/mods-enabled/realm
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-mod-sql define Package/freeradius3-mod-sql
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -433,19 +456,6 @@ define Package/freeradius3-mod-sqlippool/conffiles
/etc/freeradius3/mods-available/sqlippool /etc/freeradius3/mods-available/sqlippool
endef endef
define Package/freeradius3-mod-radutmp
$(call Package/freeradius3/Default)
DEPENDS:=freeradius3
TITLE:=Radius UTMP module
endef
define Package/freeradius3-mod-radutmp/conffiles
/etc/freeradius3/mods-available/radutmp
/etc/freeradius3/mods-enabled/radutmp
/etc/freeradius3/mods-available/sradutmp
/etc/freeradius3/mods-enabled/sradutmp
endef
define Package/freeradius3-mod-unix define Package/freeradius3-mod-unix
$(call Package/freeradius3/Default) $(call Package/freeradius3/Default)
DEPENDS:=freeradius3 DEPENDS:=freeradius3
@ -457,16 +467,6 @@ 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
@ -547,6 +547,16 @@ else
CONFIGURE_ARGS+= --without-rlm_eap_peap CONFIGURE_ARGS+= --without-rlm_eap_peap
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-pwd),)
CONFIGURE_ARGS+= \
--with-rlm_eap_pwd \
--with-rlm_eap_pwd-include-dir="$(STAGING_DIR)/usr/include" \
--with-rlm_eap_pwd-lib-dir="$(STAGING_DIR)/usr/lib"
CONFIGURE_LIBS+= -lcrypto -lssl
else
CONFIGURE_ARGS+= --without-rlm_eap_pwd
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-tls),) ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-tls),)
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--with-rlm_eap_tls \ --with-rlm_eap_tls \
@ -567,14 +577,12 @@ else
CONFIGURE_ARGS+= --without-rlm_eap_ttls CONFIGURE_ARGS+= --without-rlm_eap_ttls
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-pwd),)
CONFIGURE_ARGS+= \
--with-rlm_eap_pwd \
--with-rlm_eap_pwd-include-dir="$(STAGING_DIR)/usr/include" \
--with-rlm_eap_pwd-lib-dir="$(STAGING_DIR)/usr/lib"
CONFIGURE_LIBS+= -lcrypto -lssl
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-ldap),)
CONFIGURE_ARGS+= --with-rlm_ldap \
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
--with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib"
else else
CONFIGURE_ARGS+= --without-rlm_eap_pwd
CONFIGURE_ARGS+= --without-rlm_ldap
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-python3),) ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-python3),)
@ -590,6 +598,18 @@ else
CONFIGURE_ARGS+= --without-rlm_python3 CONFIGURE_ARGS+= --without-rlm_python3
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-radutmp),)
CONFIGURE_ARGS+= --with-rlm_radutmp
else
CONFIGURE_ARGS+= --without-rlm_radutmp
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-sql),) ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-sql),)
CONFIGURE_ARGS+= --with-rlm_sql CONFIGURE_ARGS+= --with-rlm_sql
else else
@ -628,33 +648,12 @@ else
CONFIGURE_ARGS+= --without-rlm_sqlippool CONFIGURE_ARGS+= --without-rlm_sqlippool
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-radutmp),)
CONFIGURE_ARGS+= --with-rlm_radutmp
else
CONFIGURE_ARGS+= --without-rlm_radutmp
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-unix),) ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-unix),)
CONFIGURE_ARGS+= --with-rlm_unix CONFIGURE_ARGS+= --with-rlm_unix
else 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),)
CONFIGURE_ARGS+= --with-rlm_ldap \
--with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
--with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib"
else
CONFIGURE_ARGS+= --without-rlm_ldap
endif
ifeq ($(CONFIG_USE_GLIBC),y) ifeq ($(CONFIG_USE_GLIBC),y)
TARGET_CFLAGS+= -DLIBBSD_OVERLAY -I$(STAGING_DIR)/usr/include/bsd \ TARGET_CFLAGS+= -DLIBBSD_OVERLAY -I$(STAGING_DIR)/usr/include/bsd \
-D_RPC_NETDB_H -D_RPC_NETDB_H
@ -764,15 +763,15 @@ $(eval $(call BuildPlugin,freeradius3-mod-attr-filter,rlm_attr_filter,))
$(eval $(call BuildPlugin,freeradius3-mod-chap,rlm_chap,)) $(eval $(call BuildPlugin,freeradius3-mod-chap,rlm_chap,))
$(eval $(call BuildPlugin,freeradius3-mod-detail,rlm_detail,)) $(eval $(call BuildPlugin,freeradius3-mod-detail,rlm_detail,))
$(eval $(call BuildPlugin,freeradius3-mod-digest,rlm_digest,)) $(eval $(call BuildPlugin,freeradius3-mod-digest,rlm_digest,))
$(eval $(call BuildPlugin,freeradius3-mod-eap,rlm_eap,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-gtc,rlm_eap_gtc,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-gtc,rlm_eap_gtc,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-leap,rlm_eap_leap,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-leap,rlm_eap_leap,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-md5,rlm_eap_md5,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-md5,rlm_eap_md5,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-mschapv2,rlm_eap_mschapv2,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-mschapv2,rlm_eap_mschapv2,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-peap,rlm_eap_peap,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-peap,rlm_eap_peap,))
$(eval $(call BuildPlugin,freeradius3-mod-eap,rlm_eap,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-pwd,rlm_eap_pwd,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-tls,rlm_eap_tls,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-tls,rlm_eap_tls,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-ttls,rlm_eap_ttls,)) $(eval $(call BuildPlugin,freeradius3-mod-eap-ttls,rlm_eap_ttls,))
$(eval $(call BuildPlugin,freeradius3-mod-eap-pwd,rlm_eap_pwd,))
$(eval $(call BuildPlugin,freeradius3-mod-exec,rlm_exec,)) $(eval $(call BuildPlugin,freeradius3-mod-exec,rlm_exec,))
$(eval $(call BuildPlugin,freeradius3-mod-expiration,rlm_expiration,)) $(eval $(call BuildPlugin,freeradius3-mod-expiration,rlm_expiration,))
$(eval $(call BuildPlugin,freeradius3-mod-expr,rlm_expr,)) $(eval $(call BuildPlugin,freeradius3-mod-expr,rlm_expr,))
@ -786,6 +785,7 @@ $(eval $(call BuildPlugin,freeradius3-mod-preprocess,rlm_preprocess,))
$(eval $(call BuildPlugin,freeradius3-mod-python3,rlm_python3,)) $(eval $(call BuildPlugin,freeradius3-mod-python3,rlm_python3,))
$(eval $(call BuildPlugin,freeradius3-mod-radutmp,rlm_radutmp,)) $(eval $(call BuildPlugin,freeradius3-mod-radutmp,rlm_radutmp,))
$(eval $(call BuildPlugin,freeradius3-mod-realm,rlm_realm,)) $(eval $(call BuildPlugin,freeradius3-mod-realm,rlm_realm,))
$(eval $(call BuildPlugin,freeradius3-mod-rest,rlm_rest,))
$(eval $(call BuildPlugin,freeradius3-mod-sql,rlm_sql,)) $(eval $(call BuildPlugin,freeradius3-mod-sql,rlm_sql,))
$(eval $(call BuildPlugin,freeradius3-mod-sql-mysql,rlm_sql_mysql,)) $(eval $(call BuildPlugin,freeradius3-mod-sql-mysql,rlm_sql_mysql,))
$(eval $(call BuildPlugin,freeradius3-mod-sql-null,rlm_sql_null,)) $(eval $(call BuildPlugin,freeradius3-mod-sql-null,rlm_sql_null,))
@ -794,5 +794,4 @@ $(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