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.

632 lines
18 KiB

  1. #
  2. # Copyright (C) 2008-2014 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:=freeradius2
  9. PKG_VERSION:=2.2.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=freeradius-server-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/freeradius/
  13. PKG_MD5SUM:=40535bace507d7a3134c3d858f3cbc5a
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/freeradius-server-$(PKG_VERSION)
  16. PKG_FIXUP:=autoreconf
  17. PKG_CONFIG_DEPENDS := \
  18. FREERADIUS_OPENSSL \
  19. FREERADIUS_NOSSL
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/freeradius2/config
  22. source "$(SOURCE)/Config.in"
  23. endef
  24. define Package/freeradius2/Default
  25. SECTION:=net
  26. CATEGORY:=Network
  27. URL:=http://freeradius.org/
  28. SUBMENU:=FreeRADIUS (version 2)
  29. endef
  30. define Package/freeradius2
  31. $(call Package/freeradius2/Default)
  32. DEPENDS:=+libltdl +libreadline +freeradius2-common
  33. TITLE:=A flexible RADIUS server (version 2)
  34. endef
  35. define Package/freeradius2/conffiles
  36. /etc/freeradius2/clients.conf
  37. /etc/freeradius2/radiusd.conf
  38. /etc/freeradius2/sites/default
  39. endef
  40. define Package/freeradius2-democerts
  41. $(call Package/freeradius2/Default)
  42. DEPENDS:=freeradius2
  43. TITLE:=Demo certificates to test the server
  44. endef
  45. define Package/freeradius2-common
  46. $(call Package/freeradius2/Default)
  47. TITLE:=common files
  48. DEPENDS:=+libpthread +FREERADIUS_OPENSSL:libopenssl
  49. endef
  50. define Package/freeradius2-mod-chap
  51. $(call Package/freeradius2/Default)
  52. DEPENDS:=freeradius2
  53. TITLE:=CHAP module
  54. endef
  55. define Package/freeradius2-mod-chap/conffiles
  56. /etc/freeradius2/modules/chap
  57. endef
  58. define Package/freeradius2-mod-detail
  59. $(call Package/freeradius2/Default)
  60. DEPENDS:=freeradius2
  61. TITLE:=Detailed accounting module
  62. endef
  63. define Package/freeradius2-mod-detail/conffiles
  64. /etc/freeradius2/modules/detail
  65. endef
  66. define Package/freeradius2-mod-eap
  67. $(call Package/freeradius2/Default)
  68. DEPENDS:=freeradius2
  69. TITLE:=Base EAP module
  70. endef
  71. define Package/freeradius2-mod-eap/conffiles
  72. /etc/freeradius2/eap.conf
  73. endef
  74. define Package/freeradius2-mod-eap-gtc
  75. $(call Package/freeradius2/Default)
  76. DEPENDS:=freeradius2-mod-eap
  77. TITLE:=EAP/GTC module
  78. endef
  79. define Package/freeradius2-mod-eap-md5
  80. $(call Package/freeradius2/Default)
  81. DEPENDS:=freeradius2-mod-eap
  82. TITLE:=EAP/MD5 module
  83. endef
  84. define Package/freeradius2-mod-eap-mschapv2
  85. $(call Package/freeradius2/Default)
  86. DEPENDS:=freeradius2-mod-eap +freeradius2-mod-mschap
  87. TITLE:=EAP/MS-CHAPv2 module
  88. endef
  89. define Package/freeradius2-mod-eap-peap
  90. $(call Package/freeradius2/Default)
  91. DEPENDS:=freeradius2-mod-eap @FREERADIUS_OPENSSL
  92. TITLE:=EAP/PEAP module
  93. endef
  94. define Package/freeradius2-mod-eap-tls
  95. $(call Package/freeradius2/Default)
  96. DEPENDS:=freeradius2-mod-eap @FREERADIUS_OPENSSL
  97. TITLE:=EAP/TLS module
  98. endef
  99. define Package/freeradius2-mod-eap-ttls
  100. $(call Package/freeradius2/Default)
  101. DEPENDS:=freeradius2-mod-eap-tls
  102. TITLE:=EAP/TTLS module
  103. endef
  104. define Package/freeradius2-mod-exec
  105. $(call Package/freeradius2/Default)
  106. DEPENDS:=freeradius2
  107. TITLE:=EXEC module
  108. endef
  109. define Package/freeradius2-mod-exec/conffiles
  110. /etc/freeradius2/modules/exec
  111. endef
  112. define Package/freeradius2-mod-expiration
  113. $(call Package/freeradius2/Default)
  114. DEPENDS:=freeradius2
  115. TITLE:=Expiration module
  116. endef
  117. define Package/freeradius2-mod-expiration/conffiles
  118. /etc/freeradius2/modules/expiration
  119. endef
  120. define Package/freeradius2-mod-always
  121. $(call Package/freeradius2/Default)
  122. DEPENDS:=freeradius2
  123. TITLE:=Always module
  124. endef
  125. define Package/freeradius2-mod-always/conffiles
  126. /etc/freeradius2/modules/always
  127. endef
  128. define Package/freeradius2-mod-expr
  129. $(call Package/freeradius2/Default)
  130. DEPENDS:=freeradius2
  131. TITLE:=EXPR module
  132. endef
  133. define Package/freeradius2-mod-expr/conffiles
  134. /etc/freeradius2/modules/expr
  135. endef
  136. define Package/freeradius2-mod-attr-filter
  137. $(call Package/freeradius2/Default)
  138. DEPENDS:=freeradius2
  139. TITLE:=ATTR filter module
  140. endef
  141. define Package/freeradius2-mod-attr-filter/conffiles
  142. /etc/freeradius2/modules/attr_filter
  143. /etc/freeradius2/attrs
  144. /etc/freeradius2/attrs.access_reject
  145. /etc/freeradius2/attrs.accounting_response
  146. /etc/freeradius2/attrs.pre-proxy
  147. endef
  148. define Package/freeradius2-mod-attr-rewrite
  149. $(call Package/freeradius2/Default)
  150. DEPENDS:=freeradius2
  151. TITLE:=ATTR rewrite module
  152. endef
  153. define Package/freeradius2-mod-attr-rewrite/conffiles
  154. /etc/freeradius2/modules/attr_rewrite
  155. endef
  156. define Package/freeradius2-mod-files
  157. $(call Package/freeradius2/Default)
  158. DEPENDS:=freeradius2
  159. TITLE:=Module using local files for authorization
  160. endef
  161. define Package/freeradius2-mod-files/conffiles
  162. /etc/freeradius2/acct_users
  163. /etc/freeradius2/preproxy_users
  164. /etc/freeradius2/users
  165. /etc/freeradius2/modules/files
  166. endef
  167. define Package/freeradius2-mod-passwd
  168. $(call Package/freeradius2/Default)
  169. DEPENDS:=freeradius2
  170. TITLE:=Rlm passwd module
  171. endef
  172. define Package/freeradius2-mod-passwd/conffiles
  173. /etc/freeradius2/modules/passwd
  174. endef
  175. define Package/freeradius2-mod-ldap
  176. $(call Package/freeradius2/Default)
  177. DEPENDS:=freeradius2 +PACKAGE_freeradius2-mod-ldap:libopenldap
  178. TITLE:=LDAP module
  179. endef
  180. define Package/freeradius2-mod-ldap/conffiles
  181. /etc/freeradius2/ldap.attrmap
  182. /etc/freeradius2/modules/ldap
  183. endef
  184. define Package/freeradius2-mod-logintime
  185. $(call Package/freeradius2/Default)
  186. DEPENDS:=freeradius2
  187. TITLE:=Logintime module
  188. endef
  189. define Package/freeradius2-mod-logintime/conffiles
  190. /etc/freeradius2/modules/logintime
  191. endef
  192. define Package/freeradius2-mod-mschap
  193. $(call Package/freeradius2/Default)
  194. DEPENDS:=freeradius2
  195. TITLE:=MS-CHAP and MS-CHAPv2 module
  196. endef
  197. define Package/freeradius2-mod-mschap/conffiles
  198. /etc/freeradius2/modules/mschap
  199. endef
  200. define Package/freeradius2-mod-pap
  201. $(call Package/freeradius2/Default)
  202. DEPENDS:=freeradius2
  203. TITLE:=PAP module
  204. endef
  205. define Package/freeradius2-mod-pap/conffiles
  206. /etc/freeradius2/modules/pap
  207. endef
  208. define Package/freeradius2-mod-preprocess
  209. $(call Package/freeradius2/Default)
  210. DEPENDS:=freeradius2
  211. TITLE:=Request pre-processing module
  212. endef
  213. define Package/freeradius2-mod-preprocess/conffiles
  214. /etc/freeradius2/hints
  215. /etc/freeradius2/huntgroups
  216. /etc/freeradius2/modules/preprocess
  217. endef
  218. define Package/freeradius2-mod-realm
  219. $(call Package/freeradius2/Default)
  220. DEPENDS:=freeradius2
  221. TITLE:=Realms handling module
  222. endef
  223. define Package/freeradius2-mod-realm/conffiles
  224. /etc/freeradius2/proxy.conf
  225. /etc/freeradius2/modules/realm
  226. endef
  227. define Package/freeradius2-mod-sql
  228. $(call Package/freeradius2/Default)
  229. DEPENDS:=freeradius2
  230. TITLE:=Base SQL module
  231. endef
  232. define Package/freeradius2-mod-sql/conffiles
  233. /etc/freeradius2/sql.conf
  234. endef
  235. define Package/freeradius2-mod-sql-mysql
  236. $(call Package/freeradius2/Default)
  237. DEPENDS:=freeradius2-mod-sql \
  238. +PACKAGE_freeradius2-mod-sql-mysql:libmysqlclient-r
  239. TITLE:=MySQL module
  240. endef
  241. define Package/freeradius2-mod-sql-pgsql
  242. $(call Package/freeradius2/Default)
  243. DEPENDS:=freeradius2-mod-sql \
  244. +PACKAGE_freeradius2-mod-sql-pgsql:libpq
  245. TITLE:=PostgreSQL module
  246. endef
  247. define Package/freeradius2-mod-sql-sqlite
  248. $(call Package/freeradius2/Default)
  249. DEPENDS:=freeradius2-mod-sql \
  250. +PACKAGE_freeradius2-mod-sql-sqlite:libsqlite3
  251. TITLE:=SQLite module
  252. endef
  253. define Package/freeradius2-mod-sqlcounter
  254. $(call Package/freeradius2/Default)
  255. DEPENDS:=freeradius2-mod-sql
  256. TITLE:=Generic SQL Counter module
  257. endef
  258. define Package/freeradius2-mod-radutmp
  259. $(call Package/freeradius2/Default)
  260. DEPENDS:=freeradius2
  261. TITLE:=Radius UTMP module
  262. endef
  263. define Package/freeradius2-mod-radutmp/conffiles
  264. /etc/freeradius2/modules/radutmp
  265. /etc/freeradius2/modules/sradutmp
  266. endef
  267. define Package/freeradius2-utils
  268. $(call Package/freeradius2/Default)
  269. DEPENDS:=+freeradius2-common
  270. TITLE:=Misc. client utilities
  271. endef
  272. define Package/freeradius2-mod-sqllog
  273. $(call Package/freeradius2/Default)
  274. DEPENDS:=freeradius2
  275. TITLE:=SQL Logging module
  276. endef
  277. CONFIGURE_ARGS+= \
  278. --libdir=/usr/lib/freeradius2 \
  279. --libexecdir=/usr/lib/freeradius2 \
  280. --enable-shared \
  281. --disable-static \
  282. --disable-developer \
  283. --with-threads \
  284. $(if $(CONFIG_FREERADIUS_OPENSSL),--with,--without)-openssl \
  285. $(if $(CONFIG_FREERADIUS_OPENSSL),--with-openssl-includes="$(STAGING_DIR)/usr/include",) \
  286. $(if $(CONFIG_FREERADIUS_OPENSSL),--with-openssl-libraries="$(STAGING_DIR)/usr/lib",) \
  287. --with-system-libtool \
  288. --with-system-libltdl \
  289. --enable-strict-dependencies \
  290. --with-raddbdir=/etc/freeradius2 \
  291. --with-radacctdir=/var/db/radacct \
  292. --with-logdir=/var/log \
  293. --without-edir \
  294. --without-snmp \
  295. --without-rlm_checkval \
  296. --without-rlm_dbm \
  297. --without-rlm_counter \
  298. --with-rlm_expr \
  299. --with-rlm_eap \
  300. --without-rlm_eap_sim \
  301. --without-rlm_example \
  302. --without-rlm_ippool \
  303. --without-rlm_krb5 \
  304. --without-rlm_otp \
  305. --without-rlm_smsotp \
  306. --without-rlm_pam \
  307. --without-rlm_perl \
  308. --without-rlm_python \
  309. --without-rlm_smb \
  310. --with-rlm_sql \
  311. --with-rlm_sqlcounter \
  312. --without-rlm_sqlhpwippool \
  313. --without-rlm_sqlippool \
  314. --without-rlm_sql_db2 \
  315. --without-rlm_sql_firebird \
  316. --without-rlm_sql_freetds \
  317. --without-rlm_sql_iodbc \
  318. --without-rlm_sql_oracle \
  319. --without-rlm_sql_sybase \
  320. --without-rlm_sql_unixodbc \
  321. --without-rlm_sql_log \
  322. --without-rlm_unix \
  323. --without-rlm_eap_tnc \
  324. --without-rlm_eap_ikev2 \
  325. --without-rlm_opendirectory \
  326. --without-rlm_wimax \
  327. --without-rlm_ruby \
  328. --without-rlm_caching \
  329. --without-rlm_redis \
  330. --without-rlm_rediswho \
  331. --without-rlm_soh \
  332. --without-rlm_sim \
  333. --without-rlm_replicate \
  334. --without-rlm_protocol_filter \
  335. --without-rlm_policy \
  336. --without-rlm_linelog \
  337. --without-rlm_jradius \
  338. --without-rlm_fastusers \
  339. --without-rlm_eap_leap \
  340. --without-rlm_dynamic_clients \
  341. --without-rlm_digest \
  342. --without-rlm_cram \
  343. --without-rlm_copy_packet \
  344. --without-rlm_acct_unique \
  345. --without-rlm_acctlog
  346. PKG_DICTIONARIES:= \
  347. freeradius freeradius.internal \
  348. rfc2865 rfc2866 rfc2867 rfc2868 rfc2869 rfc3162 rfc3576 rfc3580 \
  349. rfc4372 rfc4675 rfc4679 \
  350. microsoft \
  351. wispr \
  352. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-ldap),)
  353. CONFIGURE_ARGS+= \
  354. --with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \
  355. --with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib"
  356. CONFIGURE_LIBS+= -lcrypto -lssl
  357. else
  358. CONFIGURE_ARGS+= --without-rlm_ldap
  359. endif
  360. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sql-mysql),)
  361. CONFIGURE_ARGS+= \
  362. --with-mysql-include-dir="$(STAGING_DIR)/usr/include" \
  363. --with-mysql-lib-dir="$(STAGING_DIR)/usr/lib/mysql"
  364. CONFIGURE_LIBS+= -lz
  365. CONFIGURE_VARS+= ac_cv_lib_mysqlclient_r_mysql_init=yes
  366. else
  367. CONFIGURE_ARGS+= --without-rlm_sql_mysql
  368. endif
  369. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sql-pgsql),)
  370. CONFIGURE_ARGS+= \
  371. --with-rlm_sql_postgresql-include-dir="$(STAGING_DIR)/usr/include" \
  372. --with-rlm_sql_postgresql-lib-dir="$(STAGING_DIR)/usr/lib"
  373. else
  374. CONFIGURE_ARGS+= --without-rlm_sql_postgresql
  375. endif
  376. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sqllog),)
  377. CONFIGURE_ARGS+= \
  378. --with-rlm_sql_log \
  379. --with-experimental-modules \
  380. else
  381. CONFIGURE_ARGS+= --without-rlm_sql_log
  382. endif
  383. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-sql-sqlite),)
  384. CONFIGURE_ARGS+= \
  385. --with-rlm_sql_sqlite \
  386. --with-experimental-modules \
  387. --with-sqlite-include-dir="$(STAGING_DIR)/usr/include" \
  388. --with-sqlite-lib-dir="$(STAGING_DIR)/usr/lib"
  389. else
  390. CONFIGURE_ARGS+= --without-rlm_sql_sqlite
  391. endif
  392. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-eap-peap),)
  393. CONFIGURE_ARGS+= \
  394. --with-rlm_eap_peap \
  395. --with-rlm_eap_peap-include-dir="$(STAGING_DIR)/usr/include" \
  396. --with-rlm_eap_peap-lib-dir="$(STAGING_DIR)/usr/lib"
  397. CONFIGURE_LIBS+= -lcrypto -lssl
  398. else
  399. CONFIGURE_ARGS+= --without-rlm_eap_peap
  400. endif
  401. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-eap-tls),)
  402. CONFIGURE_ARGS+= \
  403. --with-rlm_eap_tls \
  404. --with-rlm_eap_tls-include-dir="$(STAGING_DIR)/usr/include" \
  405. --with-rlm_eap_tls-lib-dir="$(STAGING_DIR)/usr/lib"
  406. CONFIGURE_LIBS+= -lcrypto -lssl
  407. else
  408. CONFIGURE_ARGS+= --without-rlm_eap_tls
  409. endif
  410. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-eap-ttls),)
  411. CONFIGURE_ARGS+= \
  412. --with-rlm_eap_ttls \
  413. --with-rlm_eap_ttls-include-dir="$(STAGING_DIR)/usr/include" \
  414. --with-rlm_eap_ttls-lib-dir="$(STAGING_DIR)/usr/lib"
  415. CONFIGURE_LIBS+= -lcrypto -lssl
  416. else
  417. CONFIGURE_ARGS+= --without-rlm_eap_ttls
  418. endif
  419. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-attr-rewrite),)
  420. CONFIGURE_ARGS+= --with-rlm_attr-rewrite
  421. else
  422. CONFIGURE_ARGS+= --without-rlm_attr-rewrite
  423. endif
  424. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-radutmp),)
  425. CONFIGURE_ARGS+= --with-rlm_radutmp
  426. else
  427. CONFIGURE_ARGS+= --without-rlm_radutmp
  428. endif
  429. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-logintime),)
  430. CONFIGURE_ARGS+= --with-rlm_logintime
  431. else
  432. CONFIGURE_ARGS+= --without-rlm_logintime
  433. endif
  434. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-expiration),)
  435. CONFIGURE_ARGS+= --with-rlm_expiration
  436. else
  437. CONFIGURE_ARGS+= --without-rlm_expiration
  438. endif
  439. ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius2-mod-always),)
  440. CONFIGURE_ARGS+= --with-rlm_always
  441. else
  442. CONFIGURE_ARGS+= --without-rlm_always
  443. endif
  444. CONFIGURE_VARS+= \
  445. LDFLAGS="$$$$LDFLAGS" \
  446. LIBS="$(CONFIGURE_LIBS)" \
  447. MYSQL_CONFIG="no" \
  448. ac_cv_lib_readline=no \
  449. define Build/Compile
  450. $(MAKE) -C $(PKG_BUILD_DIR) \
  451. R="$(PKG_INSTALL_DIR)" \
  452. INSTALLSTRIP="" \
  453. all certs install
  454. endef
  455. define Package/freeradius2-common/install
  456. $(INSTALL_DIR) $(1)/etc/freeradius2
  457. chmod 771 $(1)/etc/freeradius2
  458. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius2/dictionary $(1)/etc/freeradius2/ ; \
  459. $(INSTALL_DIR) $(1)/usr/lib/freeradius2
  460. $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius2/libfreeradius-radius{,-*}.so $(1)/usr/lib/freeradius2
  461. $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius2/libfreeradius-eap{,-*}.so $(1)/usr/lib/freeradius2
  462. $(INSTALL_DIR) $(1)/usr/share/freeradius2
  463. $(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary $(1)/usr/share/freeradius2/
  464. $(SED) "s,^\(\$$$$INCLUDE\),#\1,g" $(1)/usr/share/freeradius2/dictionary
  465. for f in $(PKG_DICTIONARIES); do \
  466. $(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary.$$$${f} $(1)/usr/share/freeradius2/ ; \
  467. $(SED) "s,^#\(\$$$$INCLUDE dictionary\.$$$${f}\),\1,g" $(1)/usr/share/freeradius2/dictionary ; \
  468. done
  469. endef
  470. define Package/freeradius2/install
  471. $(INSTALL_DIR) $(1)/etc/freeradius2/modules
  472. $(INSTALL_DIR) $(1)/etc/freeradius2/sites
  473. for f in clients.conf radiusd.conf policy.conf; do \
  474. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius2/$$$${f} $(1)/etc/freeradius2/ ; \
  475. done
  476. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius2/sites-available/default $(1)/etc/freeradius2/sites/default
  477. $(INSTALL_DIR) $(1)/usr/sbin
  478. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radiusd $(1)/usr/sbin/
  479. $(INSTALL_DIR) $(1)/etc/init.d
  480. $(INSTALL_BIN) ./files/radiusd.init $(1)/etc/init.d/radiusd
  481. endef
  482. define Package/freeradius2-democerts/install
  483. $(INSTALL_DIR) $(1)/etc/freeradius2/certs
  484. $(CP) \
  485. $(PKG_BUILD_DIR)/raddb/certs/ca.pem \
  486. $(PKG_BUILD_DIR)/raddb/certs/dh \
  487. $(PKG_BUILD_DIR)/raddb/certs/random \
  488. $(PKG_BUILD_DIR)/raddb/certs/server.pem \
  489. $(1)/etc/freeradius2/certs/
  490. endef
  491. define Package/freeradius2-utils/install
  492. $(INSTALL_DIR) $(1)/usr/bin
  493. for f in radclient radeapclient radwho; do \
  494. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$${f} $(1)/usr/bin/ ; \
  495. done
  496. endef
  497. define BuildPlugin
  498. define Package/$(1)/install
  499. [ -z "$(2)" ] || $(INSTALL_DIR) $$(1)/usr/lib/freeradius2
  500. for m in $(2); do \
  501. $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius2/$$$$$$$${m}{,-*}.so $$(1)/usr/lib/freeradius2 ; \
  502. done
  503. [ -z "$(3)" ] || $(INSTALL_DIR) $$(1)/etc/freeradius2
  504. [ -z "$(4)" ] || $(INSTALL_DIR) $$(1)/etc/freeradius2/$(4)
  505. for f in $(3); do \
  506. $(CP) $(PKG_INSTALL_DIR)/etc/freeradius2/$$$$$$$${f} $$(1)/etc/freeradius2/$$$$$$$${f} ; \
  507. done
  508. endef
  509. $$(eval $$(call BuildPackage,$(1)))
  510. endef
  511. $(eval $(call BuildPackage,freeradius2))
  512. $(eval $(call BuildPackage,freeradius2-common))
  513. $(eval $(call BuildPackage,freeradius2-democerts))
  514. $(eval $(call BuildPlugin,freeradius2-mod-chap,rlm_chap,modules/chap,modules,))
  515. $(eval $(call BuildPlugin,freeradius2-mod-detail,rlm_detail,modules/detail,modules,))
  516. $(eval $(call BuildPlugin,freeradius2-mod-eap,rlm_eap,eap.conf))
  517. $(eval $(call BuildPlugin,freeradius2-mod-eap-gtc,rlm_eap_gtc,))
  518. $(eval $(call BuildPlugin,freeradius2-mod-eap-md5,rlm_eap_md5,))
  519. $(eval $(call BuildPlugin,freeradius2-mod-eap-mschapv2,rlm_eap_mschapv2,))
  520. $(eval $(call BuildPlugin,freeradius2-mod-eap-peap,rlm_eap_peap,))
  521. $(eval $(call BuildPlugin,freeradius2-mod-eap-tls,rlm_eap_tls,))
  522. $(eval $(call BuildPlugin,freeradius2-mod-eap-ttls,rlm_eap_ttls,))
  523. $(eval $(call BuildPlugin,freeradius2-mod-exec,rlm_exec,modules/exec modules/echo ,modules,))
  524. $(eval $(call BuildPlugin,freeradius2-mod-attr-rewrite,rlm_attr_rewrite,modules/attr_rewrite,modules,))
  525. $(eval $(call BuildPlugin,freeradius2-mod-files,rlm_files,acct_users preproxy_users users modules/files,modules,))
  526. $(eval $(call BuildPlugin,freeradius2-mod-passwd,rlm_passwd,modules/passwd,modules,))
  527. $(eval $(call BuildPlugin,freeradius2-mod-ldap,rlm_ldap,ldap.attrmap modules/ldap,modules,))
  528. $(eval $(call BuildPlugin,freeradius2-mod-mschap,rlm_mschap,modules/mschap,modules,))
  529. $(eval $(call BuildPlugin,freeradius2-mod-pap,rlm_pap,modules/pap,modules,))
  530. $(eval $(call BuildPlugin,freeradius2-mod-preprocess,rlm_preprocess,hints huntgroups modules/preprocess,modules,))
  531. $(eval $(call BuildPlugin,freeradius2-mod-realm,rlm_realm,proxy.conf modules/realm modules/inner-eap,modules,))
  532. $(eval $(call BuildPlugin,freeradius2-mod-sql,rlm_sql,sql.conf,))
  533. $(eval $(call BuildPlugin,freeradius2-mod-sql-mysql,rlm_sql_mysql,))
  534. $(eval $(call BuildPlugin,freeradius2-mod-sql-pgsql,rlm_sql_postgresql,))
  535. $(eval $(call BuildPlugin,freeradius2-mod-sql-sqlite,rlm_sql_sqlite,))
  536. $(eval $(call BuildPlugin,freeradius2-mod-sqlcounter,rlm_sqlcounter,))
  537. $(eval $(call BuildPlugin,freeradius2-mod-sqllog,rlm_sql_log,))
  538. $(eval $(call BuildPlugin,freeradius2-mod-radutmp,rlm_radutmp,modules/radutmp modules/sradutmp,modules,))
  539. $(eval $(call BuildPlugin,freeradius2-mod-logintime,rlm_logintime,modules/logintime,modules,))
  540. $(eval $(call BuildPlugin,freeradius2-mod-expr,rlm_expr,modules/expr,modules,))
  541. $(eval $(call BuildPlugin,freeradius2-mod-attr-filter,rlm_attr_filter,modules/attr_filter attrs attrs.access_reject attrs.accounting_response attrs.pre-proxy,modules,,))
  542. $(eval $(call BuildPlugin,freeradius2-mod-expiration,rlm_expiration,modules/expiration,modules,))
  543. $(eval $(call BuildPlugin,freeradius2-mod-always,rlm_always,modules/always,modules,))
  544. $(eval $(call BuildPackage,freeradius2-utils))