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.

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