You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

606 lines
18 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=freeradius3
  9. PKG_VERSION:=release_3_0_11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/FreeRADIUS/freeradius-server/archive
  13. PKG_MD5SUM:=612cb1d9ad0d66e881d8b0592cd51720
  14. PKG_MAINTAINER:=Lucile Quirion <lucile.quirion@savoirfairelinux.com>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYRIGHT LICENSE
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/freeradius-server-$(PKG_VERSION)
  18. PKG_FIXUP:=autoreconf
  19. PKG_CONFIG_DEPENDS := \
  20. FREERADIUS3_OPENSSL \
  21. FREERADIUS3_NOSSL
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/freeradius3/config
  24. source "$(SOURCE)/Config.in"
  25. endef
  26. define Package/freeradius3/Default
  27. SECTION:=net
  28. CATEGORY:=Network
  29. URL:=http://freeradius.org/
  30. SUBMENU:=FreeRADIUS (version 3)
  31. endef
  32. define Package/freeradius3
  33. $(call Package/freeradius3/Default)
  34. DEPENDS:=+freeradius3-common
  35. TITLE:=A flexible RADIUS server (version 3)
  36. endef
  37. define Package/freeradius3/conffiles
  38. /etc/freeradius3/clients.conf
  39. /etc/freeradius3/radiusd.conf
  40. /etc/freeradius3/sites/default
  41. endef
  42. define Package/freeradius3-common
  43. $(call Package/freeradius3/Default)
  44. TITLE:=common files
  45. DEPENDS:=+USE_GLIBC:libpthread +FREERADIUS3_OPENSSL:libopenssl +libcap +libpcap +libncurses +PACKAGE_libpcre:libpcre +libreadline +libtalloc
  46. endef
  47. define Package/freeradius3-default
  48. $(call Package/freeradius3/Default)
  49. DEPENDS:=freeradius3 \
  50. +freeradius3-democerts \
  51. +freeradius3-mod-always \
  52. +freeradius3-mod-attr-filter \
  53. +freeradius3-mod-chap \
  54. +freeradius3-mod-detail \
  55. +freeradius3-mod-digest \
  56. +freeradius3-mod-eap \
  57. +freeradius3-mod-eap-gtc \
  58. +freeradius3-mod-eap-leap \
  59. +freeradius3-mod-eap-md5 \
  60. +freeradius3-mod-eap-mschapv2 \
  61. +freeradius3-mod-eap-peap \
  62. +freeradius3-mod-eap-tls \
  63. +freeradius3-mod-eap-ttls \
  64. +freeradius3-mod-exec \
  65. +freeradius3-mod-expiration \
  66. +freeradius3-mod-expr \
  67. +freeradius3-mod-files \
  68. +freeradius3-mod-logintime \
  69. +freeradius3-mod-mschap \
  70. +freeradius3-mod-pap \
  71. +freeradius3-mod-preprocess \
  72. +freeradius3-mod-radutmp \
  73. +freeradius3-mod-realm \
  74. +freeradius3-mod-unix
  75. TITLE:=Modules needed for Radius default configuration
  76. endef
  77. define Package/freeradius3-democerts
  78. $(call Package/freeradius3/Default)
  79. DEPENDS:=freeradius3
  80. TITLE:=Demo certificates to test the server
  81. endef
  82. define Package/freeradius3-mod-chap
  83. $(call Package/freeradius3/Default)
  84. DEPENDS:=freeradius3
  85. TITLE:=CHAP module
  86. endef
  87. define Package/freeradius3-mod-chap/conffiles
  88. /etc/freeradius3/mods-available/chap
  89. /etc/freeradius3/mods-enabled/chap
  90. endef
  91. define Package/freeradius3-mod-detail
  92. $(call Package/freeradius3/Default)
  93. DEPENDS:=freeradius3
  94. TITLE:=Detailed accounting module
  95. endef
  96. define Package/freeradius3-mod-detail/conffiles
  97. /etc/freeradius3/mods-available/detail
  98. /etc/freeradius3/mods-enabled/detail
  99. endef
  100. define Package/freeradius3-mod-digest
  101. $(call Package/freeradius3/Default)
  102. DEPENDS:=freeradius3
  103. TITLE:=HTTP Digest Authentication
  104. endef
  105. define Package/freeradius3-mod-digest/conffiles
  106. /etc/freeradius3/mods-available/digest
  107. /etc/freeradius3/mods-enabled/digest
  108. endef
  109. define Package/freeradius3-mod-eap
  110. $(call Package/freeradius3/Default)
  111. DEPENDS:=freeradius3
  112. TITLE:=Base EAP module
  113. endef
  114. define Package/freeradius3-mod-eap/conffiles
  115. /etc/freeradius3/mods-available/eap
  116. /etc/freeradius3/mods-enabled/eap
  117. /etc/freeradius3/policy.d/eap
  118. endef
  119. define Package/freeradius3-mod-eap-gtc
  120. $(call Package/freeradius3/Default)
  121. DEPENDS:=freeradius3-mod-eap
  122. TITLE:=EAP/GTC module
  123. endef
  124. define Package/freeradius3-mod-eap-leap
  125. $(call Package/freeradius3/Default)
  126. DEPENDS:=freeradius3-mod-eap
  127. TITLE:=EAP/LEAP module
  128. endef
  129. define Package/freeradius3-mod-eap-md5
  130. $(call Package/freeradius3/Default)
  131. DEPENDS:=freeradius3-mod-eap
  132. TITLE:=EAP/MD5 module
  133. endef
  134. define Package/freeradius3-mod-eap-mschapv2
  135. $(call Package/freeradius3/Default)
  136. DEPENDS:=freeradius3-mod-eap +freeradius3-mod-mschap
  137. TITLE:=EAP/MS-CHAPv2 module
  138. endef
  139. define Package/freeradius3-mod-eap-peap
  140. $(call Package/freeradius3/Default)
  141. DEPENDS:=freeradius3-mod-eap @FREERADIUS3_OPENSSL
  142. TITLE:=EAP/PEAP module
  143. endef
  144. define Package/freeradius3-mod-eap-peap/conffiles
  145. /etc/freeradius3/sites-available/inner-tunnel
  146. /etc/freeradius3/sites-enabled/inner-tunnel
  147. endef
  148. define Package/freeradius3-mod-eap-tls
  149. $(call Package/freeradius3/Default)
  150. DEPENDS:=freeradius3-mod-eap @FREERADIUS3_OPENSSL
  151. TITLE:=EAP/TLS module
  152. endef
  153. define Package/freeradius3-mod-eap-ttls
  154. $(call Package/freeradius3/Default)
  155. DEPENDS:=freeradius3-mod-eap-tls
  156. TITLE:=EAP/TTLS module
  157. endef
  158. define Package/freeradius3-mod-eap-ttls/conffiles
  159. /etc/freeradius3/sites-available/inner-tunnel
  160. /etc/freeradius3/sites-enabled/inner-tunnel
  161. endef
  162. define Package/freeradius3-mod-exec
  163. $(call Package/freeradius3/Default)
  164. DEPENDS:=freeradius3
  165. TITLE:=EXEC module
  166. endef
  167. define Package/freeradius3-mod-exec/conffiles
  168. /etc/freeradius3/mods-available/exec
  169. /etc/freeradius3/mods-enabled/exec
  170. endef
  171. define Package/freeradius3-mod-expiration
  172. $(call Package/freeradius3/Default)
  173. DEPENDS:=freeradius3
  174. TITLE:=Expiration module
  175. endef
  176. define Package/freeradius3-mod-expiration/conffiles
  177. /etc/freeradius3/mods-available/expiration
  178. /etc/freeradius3/mods-enabled/expiration
  179. endef
  180. define Package/freeradius3-mod-always
  181. $(call Package/freeradius3/Default)
  182. DEPENDS:=freeradius3
  183. TITLE:=Always module
  184. endef
  185. define Package/freeradius3-mod-always/conffiles
  186. /etc/freeradius3/mods-available/always
  187. /etc/freeradius3/mods-enabled/always
  188. endef
  189. define Package/freeradius3-mod-expr
  190. $(call Package/freeradius3/Default)
  191. DEPENDS:=freeradius3
  192. TITLE:=EXPR module
  193. endef
  194. define Package/freeradius3-mod-expr/conffiles
  195. /etc/freeradius3/mods-available/expr
  196. /etc/freeradius3/mods-enabled/expr
  197. endef
  198. define Package/freeradius3-mod-attr-filter
  199. $(call Package/freeradius3/Default)
  200. DEPENDS:=freeradius3
  201. TITLE:=ATTR filter module
  202. endef
  203. define Package/freeradius3-mod-attr-filter/conffiles
  204. /etc/freeradius3/mods-available/attr_filter
  205. /etc/freeradius3/mods-enabled/attr_filter
  206. /etc/freeradius3/mods-config/attr_filter/access_challenge
  207. /etc/freeradius3/mods-config/attr_filter/access_reject
  208. /etc/freeradius3/mods-config/attr_filter/accounting_response
  209. /etc/freeradius3/mods-config/attr_filter/post-proxy
  210. /etc/freeradius3/mods-config/attr_filter/pre-proxy
  211. endef
  212. define Package/freeradius3-mod-attr-rewrite
  213. $(call Package/freeradius3/Default)
  214. DEPENDS:=freeradius3
  215. TITLE:=ATTR rewrite module
  216. endef
  217. define Package/freeradius3-mod-files
  218. $(call Package/freeradius3/Default)
  219. DEPENDS:=freeradius3
  220. TITLE:=Module using local files for authorization
  221. endef
  222. define Package/freeradius3-mod-files/conffiles
  223. /etc/freeradius3/mods-available/files
  224. /etc/freeradius3/mods-enabled/files
  225. /etc/freeradius3/mods-config/files/accounting
  226. /etc/freeradius3/mods-config/files/authorize
  227. /etc/freeradius3/mods-config/files/pre-proxy
  228. endef
  229. define Package/freeradius3-mod-passwd
  230. $(call Package/freeradius3/Default)
  231. DEPENDS:=freeradius3
  232. TITLE:=Rlm passwd module
  233. endef
  234. define Package/freeradius3-mod-passwd/conffiles
  235. /etc/freeradius3/mods-available/passwd
  236. /etc/freeradius3/mods-enabled/passwd
  237. endef
  238. # LDAP support has not been ported
  239. define Package/freeradius3-mod-logintime
  240. $(call Package/freeradius3/Default)
  241. DEPENDS:=freeradius3
  242. TITLE:=Logintime module
  243. endef
  244. define Package/freeradius3-mod-logintime/conffiles
  245. /etc/freeradius3/mods-available/logintime
  246. /etc/freeradius3/mods-enabled/logintime
  247. endef
  248. define Package/freeradius3-mod-mschap
  249. $(call Package/freeradius3/Default)
  250. DEPENDS:=freeradius3
  251. TITLE:=MS-CHAP and MS-CHAPv2 module
  252. endef
  253. define Package/freeradius3-mod-mschap/conffiles
  254. /etc/freeradius3/mods-available/mschap
  255. /etc/freeradius3/mods-enabled/mschap
  256. endef
  257. define Package/freeradius3-mod-pap
  258. $(call Package/freeradius3/Default)
  259. DEPENDS:=freeradius3
  260. TITLE:=PAP module
  261. endef
  262. define Package/freeradius3-mod-pap/conffiles
  263. /etc/freeradius3/mods-available/pap
  264. /etc/freeradius3/mods-enabled/pap
  265. endef
  266. define Package/freeradius3-mod-preprocess
  267. $(call Package/freeradius3/Default)
  268. DEPENDS:=freeradius3
  269. TITLE:=Request pre-processing module
  270. endef
  271. define Package/freeradius3-mod-preprocess/conffiles
  272. /etc/freeradius3/mods-config/preprocess/hints
  273. /etc/freeradius3/mods-config/preprocess/huntgroups
  274. /etc/freeradius3/mods-available/preprocess
  275. /etc/freeradius3/mods-enabled/preprocess
  276. endef
  277. define Package/freeradius3-mod-realm
  278. $(call Package/freeradius3/Default)
  279. DEPENDS:=freeradius3
  280. TITLE:=Realms handling module
  281. endef
  282. define Package/freeradius3-mod-realm/conffiles
  283. /etc/freeradius3/proxy.conf
  284. /etc/freeradius3/mods-available/realm
  285. /etc/freeradius3/mods-enabled/realm
  286. endef
  287. # SQL support has not been ported
  288. define Package/freeradius3-mod-radutmp
  289. $(call Package/freeradius3/Default)
  290. DEPENDS:=freeradius3
  291. TITLE:=Radius UTMP module
  292. endef
  293. define Package/freeradius3-mod-radutmp/conffiles
  294. /etc/freeradius3/mods-available/radutmp
  295. /etc/freeradius3/mods-enabled/radutmp
  296. /etc/freeradius3/mods-available/sradutmp
  297. /etc/freeradius3/mods-enabled/sradutmp
  298. endef
  299. define Package/freeradius3-mod-unix
  300. $(call Package/freeradius3/Default)
  301. DEPENDS:=freeradius3
  302. TITLE:=System Authentication
  303. endef
  304. define Package/freeradius3-mod-unix/conffiles
  305. /etc/freeradius3/mods-available/unix
  306. /etc/freeradius3/mods-enabled/unix
  307. endef
  308. define Package/freeradius3-utils
  309. $(call Package/freeradius3/Default)
  310. DEPENDS:=+freeradius3-common
  311. TITLE:=Misc. client utilities
  312. endef
  313. CONFIGURE_ARGS+= \
  314. --libdir=/usr/lib/freeradius3 \
  315. --libexecdir=/usr/lib/freeradius3 \
  316. --disable-developer \
  317. --with-threads \
  318. $(if $(CONFIG_FREERADIUS3_OPENSSL),--with,--without)-openssl \
  319. $(if $(CONFIG_FREERADIUS3_OPENSSL),--with-openssl-includes="$(STAGING_DIR)/usr/include",) \
  320. $(if $(CONFIG_FREERADIUS3_OPENSSL),--with-openssl-libraries="$(STAGING_DIR)/usr/lib",) \
  321. $(if $(CONFIG_FREERADIUS3_OPENSSL),--disable-openssl-version-check,) \
  322. --with-talloc-include-dir="$(STAGING_DIR)/usr/include" \
  323. --with-talloc-lib-dir="$(STAGING_DIR)/usr/lib" \
  324. --enable-strict-dependencies \
  325. --with-dictdir=/usr/share/freeradius3 \
  326. --with-raddbdir=/etc/freeradius3 \
  327. --with-radacctdir=/var/db/radacct \
  328. --with-logdir=/var/log \
  329. --without-edir \
  330. --without-snmp \
  331. --without-rlm_cache \
  332. --without-rlm_cache_memcached \
  333. --without-rlm_couchbase \
  334. --without-rlm_counter \
  335. --without-rlm_eap_ikev2 \
  336. --without-rlm_eap_pwd \
  337. --without-rlm_eap_sim \
  338. --without-rlm_eap_tnc \
  339. --without-rlm_example \
  340. --without-rlm_idn \
  341. --without-rlm_ippool \
  342. --without-rlm_krb5 \
  343. --without-rlm_ldap \
  344. --without-rlm_opendirectory \
  345. --without-rlm_pam \
  346. --without-rlm_perl \
  347. --without-rlm_python \
  348. --without-rlm_redis \
  349. --without-rlm_rediswho \
  350. --without-rlm_rest \
  351. --without-rlm_ruby \
  352. --without-rlm_securid \
  353. --without-rlm_smsotp \
  354. --without-rlm_sql \
  355. --without-rlm_sql_db2 \
  356. --without-rlm_sql_firebird \
  357. --without-rlm_sql_freetds \
  358. --without-rlm_sql_iodbc \
  359. --without-rlm_sql_mysql \
  360. --without-rlm_sql_oracle \
  361. --without-rlm_sql_postgresql \
  362. --without-rlm_sql_sqlite \
  363. --without-rlm_sql_unixodbc \
  364. --without-rlm_sqlcounter \
  365. --without-rlm_sqlhpwippool \
  366. --without-rlm_sqlippool \
  367. --without-rlm_unbound \
  368. --without-rlm_yubikey \
  369. PKG_DICTIONARIES:= \
  370. compat \
  371. freeradius freeradius.internal \
  372. rfc2865 rfc2866 rfc2867 rfc2868 rfc2869 rfc3162 rfc3576 rfc3580 \
  373. rfc4372 rfc4675 rfc4679 rfc5580\
  374. microsoft \
  375. wispr \
  376. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-peap),)
  377. CONFIGURE_ARGS+= \
  378. --with-rlm_eap_peap \
  379. --with-rlm_eap_peap-include-dir="$(STAGING_DIR)/usr/include" \
  380. --with-rlm_eap_peap-lib-dir="$(STAGING_DIR)/usr/lib"
  381. CONFIGURE_LIBS+= -lcrypto -lssl
  382. else
  383. CONFIGURE_ARGS+= --without-rlm_eap_peap
  384. endif
  385. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-tls),)
  386. CONFIGURE_ARGS+= \
  387. --with-rlm_eap_tls \
  388. --with-rlm_eap_tls-include-dir="$(STAGING_DIR)/usr/include" \
  389. --with-rlm_eap_tls-lib-dir="$(STAGING_DIR)/usr/lib"
  390. CONFIGURE_LIBS+= -lcrypto -lssl
  391. else
  392. CONFIGURE_ARGS+= --without-rlm_eap_tls
  393. endif
  394. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-eap-ttls),)
  395. CONFIGURE_ARGS+= \
  396. --with-rlm_eap_ttls \
  397. --with-rlm_eap_ttls-include-dir="$(STAGING_DIR)/usr/include" \
  398. --with-rlm_eap_ttls-lib-dir="$(STAGING_DIR)/usr/lib"
  399. CONFIGURE_LIBS+= -lcrypto -lssl
  400. else
  401. CONFIGURE_ARGS+= --without-rlm_eap_ttls
  402. endif
  403. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-radutmp),)
  404. CONFIGURE_ARGS+= --with-rlm_radutmp
  405. else
  406. CONFIGURE_ARGS+= --without-rlm_radutmp
  407. endif
  408. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-unix),)
  409. CONFIGURE_ARGS+= --with-rlm_unix
  410. else
  411. CONFIGURE_ARGS+= --without-rlm_unix
  412. endif
  413. CONFIGURE_VARS+= \
  414. LDFLAGS="$$$$LDFLAGS" \
  415. LIBS="$(CONFIGURE_LIBS)" \
  416. MYSQL_CONFIG="no" \
  417. ac_cv_lib_readline=no \
  418. ax_cv_cc_builtin_choose_expr=yes \
  419. ax_cv_cc_builtin_types_compatible_p=yes ax_cv_cc_builtin_bswap64=yes \
  420. ax_cv_cc_bounded_attribute=no \
  421. ac_cv_lib_collectdclient_lcc_connect=no \
  422. ac_cv_lib_execinfo_backtrace_symbols=no
  423. define Build/Compile
  424. # Compile jlibtool for the host once the configuration is done
  425. (cd $(PKG_BUILD_DIR); \
  426. mkdir -p build/make; \
  427. $(HOSTCC) $(HOST_CFLAGS) scripts/jlibtool.c -o build/make/jlibtool; \
  428. )
  429. $(MAKE) -C $(PKG_BUILD_DIR) \
  430. R="$(PKG_INSTALL_DIR)" \
  431. INSTALLSTRIP="" \
  432. all install
  433. endef
  434. define Package/freeradius3-common/install
  435. $(INSTALL_DIR) $(1)/etc/freeradius3
  436. chmod 771 $(1)/etc/freeradius3
  437. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius3/dictionary $(1)/etc/freeradius3/ ; \
  438. $(INSTALL_DIR) $(1)/usr/lib/freeradius3
  439. $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius3/libfreeradius-{dhcp,eap,radius,server}.so $(1)/usr/lib/freeradius3
  440. $(INSTALL_DIR) $(1)/usr/share/freeradius3
  441. $(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius3/dictionary $(1)/usr/share/freeradius3/
  442. $(SED) "s,^\(\$$$$INCLUDE\),#\1,g" $(1)/usr/share/freeradius3/dictionary
  443. for f in $(PKG_DICTIONARIES); do \
  444. $(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius3/dictionary.$$$${f} $(1)/usr/share/freeradius3/ ; \
  445. $(SED) "s,^#\(\$$$$INCLUDE dictionary\.$$$${f}\)$$$$,\1,g" $(1)/usr/share/freeradius3/dictionary ; \
  446. done
  447. endef
  448. define Package/freeradius3/install
  449. $(INSTALL_DIR) $(1)/etc/freeradius3
  450. $(INSTALL_DIR) $(1)/etc/freeradius3/policy.d
  451. $(INSTALL_DIR) $(1)/etc/freeradius3/sites-available
  452. $(INSTALL_DIR) $(1)/etc/freeradius3/sites-enabled
  453. for f in clients.conf radiusd.conf proxy.conf; do \
  454. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius3/$$$${f} $(1)/etc/freeradius3/ ; \
  455. done
  456. for f in accounting filter; do \
  457. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius3/policy.d/$$$${f} $(1)/etc/freeradius3/policy.d/ ; \
  458. done
  459. for f in default; do \
  460. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius3/sites-available/$$$${f} $(1)/etc/freeradius3/sites-available/ ; \
  461. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius3/sites-enabled/$$$${f} $(1)/etc/freeradius3/sites-enabled/ ; \
  462. done
  463. $(INSTALL_DIR) $(1)/usr/sbin
  464. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radiusd $(1)/usr/sbin/
  465. $(INSTALL_DIR) $(1)/etc/init.d
  466. $(INSTALL_BIN) ./files/radiusd.init $(1)/etc/init.d/radiusd
  467. endef
  468. define Package/freeradius3-democerts/install
  469. $(INSTALL_DIR) $(1)/etc/freeradius3/certs
  470. $(CP) \
  471. $(PKG_INSTALL_DIR)/etc/freeradius3/certs/ca.pem \
  472. $(PKG_INSTALL_DIR)/etc/freeradius3/certs/dh \
  473. $(PKG_INSTALL_DIR)/etc/freeradius3/certs/server.pem \
  474. $(1)/etc/freeradius3/certs/
  475. endef
  476. define Package/freeradius3-utils/install
  477. $(INSTALL_DIR) $(1)/usr/bin
  478. for f in radclient radeapclient radwho; do \
  479. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$${f} $(1)/usr/bin/ ; \
  480. done
  481. endef
  482. define BuildPlugin
  483. define Package/$(1)/install
  484. [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/freeradius3
  485. for m in $(2); do \
  486. $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius3/$$$$$$$${m}.so $$(1)/usr/lib/freeradius3 ; \
  487. done
  488. # Install configuration files
  489. for f in $(strip $(call Package/$(1)/conffiles)); do \
  490. $(INSTALL_DIR) $$(1)/$$$$$$$${f%/*} ; \
  491. $(CP) $(PKG_INSTALL_DIR)/$$$$$$$${f} $$(1)/$$$$$$$${f}; \
  492. done
  493. endef
  494. $$(eval $$(call BuildPackage,$(1)))
  495. endef
  496. $(eval $(call BuildPackage,freeradius3))
  497. $(eval $(call BuildPackage,freeradius3-common))
  498. $(eval $(call BuildPackage,freeradius3-default))
  499. $(eval $(call BuildPackage,freeradius3-democerts))
  500. $(eval $(call BuildPlugin,freeradius3-mod-always,rlm_always,))
  501. $(eval $(call BuildPlugin,freeradius3-mod-attr-filter,rlm_attr_filter,))
  502. $(eval $(call BuildPlugin,freeradius3-mod-chap,rlm_chap,))
  503. $(eval $(call BuildPlugin,freeradius3-mod-detail,rlm_detail,))
  504. $(eval $(call BuildPlugin,freeradius3-mod-digest,rlm_digest,))
  505. $(eval $(call BuildPlugin,freeradius3-mod-eap-gtc,rlm_eap_gtc,))
  506. $(eval $(call BuildPlugin,freeradius3-mod-eap-leap,rlm_eap_leap,))
  507. $(eval $(call BuildPlugin,freeradius3-mod-eap-md5,rlm_eap_md5,))
  508. $(eval $(call BuildPlugin,freeradius3-mod-eap-mschapv2,rlm_eap_mschapv2,))
  509. $(eval $(call BuildPlugin,freeradius3-mod-eap-peap,rlm_eap_peap,))
  510. $(eval $(call BuildPlugin,freeradius3-mod-eap,rlm_eap,))
  511. $(eval $(call BuildPlugin,freeradius3-mod-eap-tls,rlm_eap_tls,))
  512. $(eval $(call BuildPlugin,freeradius3-mod-eap-ttls,rlm_eap_ttls,))
  513. $(eval $(call BuildPlugin,freeradius3-mod-exec,rlm_exec,))
  514. $(eval $(call BuildPlugin,freeradius3-mod-expiration,rlm_expiration,))
  515. $(eval $(call BuildPlugin,freeradius3-mod-expr,rlm_expr,))
  516. $(eval $(call BuildPlugin,freeradius3-mod-files,rlm_files,))
  517. $(eval $(call BuildPlugin,freeradius3-mod-logintime,rlm_logintime,))
  518. $(eval $(call BuildPlugin,freeradius3-mod-mschap,rlm_mschap,))
  519. $(eval $(call BuildPlugin,freeradius3-mod-pap,rlm_pap,))
  520. $(eval $(call BuildPlugin,freeradius3-mod-passwd,rlm_passwd,))
  521. $(eval $(call BuildPlugin,freeradius3-mod-preprocess,rlm_preprocess,))
  522. $(eval $(call BuildPlugin,freeradius3-mod-radutmp,rlm_radutmp,))
  523. $(eval $(call BuildPlugin,freeradius3-mod-realm,rlm_realm,))
  524. $(eval $(call BuildPlugin,freeradius3-mod-unix,rlm_unix,))
  525. $(eval $(call BuildPackage,freeradius3-utils))