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