]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow for per-module dictionaries
authorAlan T. DeKok <aland@freeradius.org>
Sat, 2 Sep 2023 12:44:00 +0000 (08:44 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 2 Sep 2023 12:56:21 +0000 (08:56 -0400)
share/dictionary/freeradius/dictionary
src/modules/all.mk

index 7688ff931f8acb608b6c084f9ec6b608cd5ed13e..f842dd3588571eb1d2467ad216c1e7b0973066db 100644 (file)
@@ -21,3 +21,8 @@ $INCLUDE dictionary.freeradius.internal.ippool
 
 # 5200-5299 SIM management attributes
 $INCLUDE dictionary.freeradius.internal.sim
+
+#
+#  Include module-specific dictionaries.
+#
+$INCLUDE- modules/*.txt
index e2637887fc3c01d2a748cdf89cd63b4a69c5797b..1f97784f78f64413c159656f26a51c4ba2b143f9 100644 (file)
@@ -33,3 +33,17 @@ src/modules/%/configure: src/modules/%/configure.ac $(wildcard ${top_srcdir}/m4/
                $(ACLOCAL) -I $(top_builddir)/m4 && \
                $(AUTOCONF)
 endif
+
+#
+#  This dictionary file loads all of the module-specific ones.
+#
+share/dictionary/freeradius/dictionary: $(patsubst src/modules/rlm_%/dictionary,share/dictionary/freeradius/modules/%.txt,$(wildcard src/modules/rlm_*/dictionary))
+       @touch $@
+
+#
+#  In the modules they're called "dictionary".  In the installed directory, they're just text files.
+#
+#  No one should be editing them.
+#
+share/dictionary/freeradius/modules/%.txt: src/modules/rlm_%/dictionary
+       @cp $< $@