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.

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