]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move $(raddbir) to $(confdir)
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Jan 2026 17:09:47 +0000 (12:09 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 28 Jan 2026 17:52:00 +0000 (12:52 -0500)
and ${raddb} in tests to ${raddbdir}

and ${maindir} in tests to ${raddb}, because "confdir" is set
automatically from '-d foo', and we still need to load the main
configuration files from the top-level "raddb" directory.

32 files changed:
Make.inc.in
Makefile
configure
configure.ac
debian/patches/radiusd-to-freeradius.diff
debian/rules
doc/antora/modules/reference/pages/raddb/radiusd.conf.adoc
doc/antora/modules/reference/pages/raddb/radrelay.conf.adoc
doc/antora/modules/tutorials/pages/variables.adoc
raddb/all.mk
raddb/radiusd.conf.in
raddb/radrelay.conf.in
scripts/rc.radiusd.in
scripts/solaris/svc-radius.in
share/dictionary/radius/v3/README.md
src/bin/checkrad.in
src/include/all.mk
src/modules/rlm_mruby/all.mk.in
src/modules/rlm_python/all.mk.in
src/modules/rlm_securid/all.mk.in
src/tests/all.mk
src/tests/detail/config/radiusd.conf
src/tests/digest/config/digest.conf
src/tests/eapol_test/config/servers.conf
src/tests/ldap_sync/active_directory/config/radiusd.conf
src/tests/ldap_sync/persistent_search/config/radiusd.conf
src/tests/ldap_sync/rfc4533/config/radiusd.conf
src/tests/process/dhcpv4/server.conf
src/tests/process/dhcpv6/server.conf
src/tests/radclient/config/radiusd.conf
src/tests/tacacs/config/radiusd.conf
src/tests/vmps/config/radiusd.conf

index ac212d4a91307e03c424d9f93d01a47359373b5d..722ab9d4ca6c783653bbad08ef4c1c898b486edc 100644 (file)
@@ -20,8 +20,8 @@ mibdir                = @mibdir@
 logdir         = @logdir@
 includedir     = @includedir@
 
-raddbdir       = @raddbdir@
-modconfdir     = @modconfdir@
+confdir                = @confdir@
+modconfdir     = ${confdir}/mods-config
 radacctdir     = @radacctdir@
 top_builddir   = @abs_top_builddir@
 top_build_prefix=@abs_top_builddir@/
@@ -119,7 +119,7 @@ LIBS                = $(OPENSSL_LIBS) $(TALLOC_LIBS) $(KQUEUE_LIBS) @LIBS@
 LDFLAGS                = $(OPENSSL_LDFLAGS) $(TALLOC_LDFLAGS) $(KQUEUE_LDFLAGS) @LDFLAGS@
 
 LOGDIR         = ${logdir}
-CONFDIR        = ${raddbdir}
+CONFDIR                = ${confdir}
 RUNDIR         = ${localstatedir}/run/radiusd
 SBINDIR                = ${sbindir}
 RADIR          = ${radacctdir}
index 615315c7e5f28c67b243ec16d0f05a949dc281d4..188387371ecf07ddbe5892f7042c43c185e9f7d1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -241,7 +241,7 @@ install.man: $(subst man/,$(R)$(mandir)/,$(MANFILES))
 
 $(R)$(mandir)/%: man/%
        @echo INSTALL $(notdir $<)
-       @sed -e "s,/etc/raddb,$(raddbdir),g" \
+       @sed -e "s,/etc/raddb,$(confdir),g" \
                -e "s,/usr/local/share,$(datarootdir),g" \
                $< > $<.subst
        @$(INSTALL) -m 644 $<.subst $@
@@ -260,10 +260,10 @@ ifneq ($(RADMIN),)
   ifneq ($(RGROUP),)
 .PHONY: install-chown
 install-chown:
-       chown -R $(RADMIN)   $(R)$(raddbdir)
-       chgrp -R $(RGROUP)   $(R)$(raddbdir)
-       chmod u=rwx,g=rx,o=  `find $(R)$(raddbdir) -type d -print`
-       chmod u=rw,g=r,o=    `find $(R)$(raddbdir) -type f -print`
+       chown -R $(RADMIN)   $(R)$(confdir)
+       chgrp -R $(RGROUP)   $(R)$(confdir)
+       chmod u=rwx,g=rx,o=  `find $(R)$(confdir) -type d -print`
+       chmod u=rw,g=r,o=    `find $(R)$(confdir) -type f -print`
        chown -R $(RADMIN)   $(R)$(logdir)
        chgrp -R $(RGROUP)   $(R)$(logdir)
        find $(R)$(logdir) -type d -exec chmod u=rwx,g=rwx,o= {} \;
index 72421dddd7b64df84e7598630b947670556c7d01..91f6ae81c211b0fd618eceecb396be5ef4248577 100755 (executable)
--- a/configure
+++ b/configure
@@ -678,10 +678,9 @@ ACLOCAL
 RUSERS
 SNMPWALK
 SNMPGET
-modconfdir
 mibdir
 dictdir
-raddbdir
+confdir
 radacctdir
 logdir
 openssl_version_check_config
@@ -6219,7 +6218,7 @@ fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
 printf "%s\n" "$radacctdir" >&6; }
 
-raddbdir='${sysconfdir}/raddb'
+confdir='${sysconfdir}/raddb'
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
 printf %s "checking raddbdir... " >&6; }
 
@@ -6233,7 +6232,7 @@ then :
   yes)
     ;;
   [\\/$]* | ?:[\\/]* )
-    raddbdir="$withval"
+    confdir="$withval"
     ;;
   *)
     as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
@@ -6243,8 +6242,8 @@ then :
 fi
 
 
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
-printf "%s\n" "$raddbdir" >&6; }
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $confdir" >&5
+printf "%s\n" "$confdir" >&6; }
 
 dictdir='${datarootdir}/freeradius/dictionary'
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dictdir" >&5
@@ -6300,8 +6299,6 @@ fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mibdir" >&5
 printf "%s\n" "$mibdir" >&6; }
 
-modconfdir='${raddbdir}/mods-config'
-
 
 
 
index 9906ca8e343a1e15dd9c2e8229329dd0888e96cf..d5cb779cec557a26ec3da706664bf58c15227e7e 100644 (file)
@@ -740,7 +740,7 @@ AC_MSG_RESULT($radacctdir)
 dnl #
 dnl #  extra argument: --with-raddbdir
 dnl #
-raddbdir='${sysconfdir}/raddb'
+confdir='${sysconfdir}/raddb'
 AC_MSG_CHECKING(raddbdir)
 AC_ARG_WITH(raddbdir,
 [  --with-raddbdir=DIR     directory for config files [SYSCONFDIR/raddb] ],
@@ -751,15 +751,15 @@ AC_ARG_WITH(raddbdir,
   yes)
     ;;
   [[\\/$]]* | ?:[[\\/]]* )
-    raddbdir="$withval"
+    confdir="$withval"
     ;;
   *)
     AC_MSG_ERROR([expected an absolute directory name for --with-raddbdir: $withval])
     ;;
   esac ]
 )
-AC_SUBST(raddbdir)
-AC_MSG_RESULT($raddbdir)
+AC_SUBST(confdir)
+AC_MSG_RESULT($confdir)
 
 dnl #
 dnl #  extra argument: --with-dictdir
@@ -809,9 +809,6 @@ AC_ARG_WITH(mibdir,
 AC_SUBST(mibdir)
 AC_MSG_RESULT($mibdir)
 
-modconfdir='${raddbdir}/mods-config'
-AC_SUBST(modconfdir)
-
 dnl #############################################################
 dnl #
 dnl #  0e. Library/include paths
index d2feaf61bbd730ba7eb9c979124bae2fb5ad20bf..c43b16649ceaa8c702434751e51433662d622cad 100644 (file)
@@ -5,7 +5,7 @@ Index: freeradius-server/Make.inc.in
 @@ -105,7 +105,7 @@ LDFLAGS            = $(OPENSSL_LDFLAGS) $(TALLOC_L
  
  LOGDIR                = ${logdir}
- CONFDIR       = ${raddbdir}
+ CONFDIR       = $(confdir)
 -RUNDIR                = ${localstatedir}/run/radiusd
 +RUNDIR                = ${localstatedir}/run/freeradius
  SBINDIR               = ${sbindir}
index a5e6abff9d26f96999f8ad13cd77e28c9ffb3241..9e5c3f1669b55df43554e74ac66c6b11c5080786 100755 (executable)
@@ -27,7 +27,7 @@ mandir          = /usr/share/man
 libdir          = /usr/lib/$(package)
 logdir          = /var/log/$(package)
 pkgdocdir       = /usr/share/doc/$(package)
-raddbdir        = /etc/$(package)
+confdir        = /etc/$(package)
 
 modulelist=krb5 ldap redis rest yubikey
 sqldriverlist=freetds mysql unixodbc postgresql
@@ -99,7 +99,7 @@ endif
                --libdir=$(libdir) \
                --datadir=/usr/share \
                --localstatedir=/var \
-               --with-raddbdir=$(raddbdir) \
+               --with-raddbdir=$(confdir) \
                --with-logdir=/var/log/$(package) \
                --with-large-files \
                --with-udpfromto \
index 1f46c38557195785e97f2a75b086572a573271ac..afe41e6e9af865cbe29b4cbb4cdfe733f7ebf3b7 100644 (file)
@@ -598,7 +598,7 @@ removed (and made into errors!) in the final release.
 Some of these flags can also be passed on the command line as
 `-S flag=value`.
 
-Dictionary migration instructions can be found in `${raddbdir}/dictionary`.
+Dictionary migration instructions can be found in `${confdir}/dictionary`.
 
 
 
@@ -710,10 +710,9 @@ sysconfdir = ${prefix}/etc
 localstatedir = ${prefix}/var
 sbindir = ${exec_prefix}/sbin
 logdir = ${localstatedir}/log/radius
-raddbdir = ${sysconfdir}/raddb
+confdir = ${sysconfdir}/raddb
 radacctdir = ${logdir}/radacct
 name = radiusd
-confdir = ${raddbdir}
 modconfdir = ${confdir}/mods-config
 certdir = ${confdir}/certs
 cadir   = ${confdir}/certs
@@ -722,7 +721,7 @@ db_dir = ${localstatedir}/lib/${name}
 libdir = ${exec_prefix}/lib
 pidfile = ${run_dir}/${name}.pid
 #panic_action = "gdb %e %p"
-#panic_action = "gdb -silent -x ${raddbdir}/panic.gdb %e %p 2>&1 | tee ${logdir}/gdb-${name}-%p.log"
+#panic_action = "gdb -silent -x ${confdir}/panic.gdb %e %p 2>&1 | tee ${logdir}/gdb-${name}-%p.log"
 request {
        max = 16384
        timeout = 30
@@ -757,7 +756,7 @@ log debug {
 ENV {
 #      FOO = '/bar/baz'
 #      BAR
-#      KRB5_CLIENT_KTNAME = ${raddbdir}/radiusd.keytab
+#      KRB5_CLIENT_KTNAME = ${confdir}/radiusd.keytab
 #      LD_PRELOAD = /path/to/library1.so
 #      LD_PRELOAD = /path/to/library2.so
 }
index 97875ac8970e5102d0b73f422124a2631cd9f90c..d84b743e6713551636c908484adeb9ed91a1ca00 100644 (file)
@@ -253,10 +253,9 @@ sysconfdir = ${prefix}/etc
 localstatedir = ${prefix}/var
 sbindir = ${exec_prefix}/sbin
 logdir = ${localstatedir}/log/radius
-raddbdir = ${sysconfdir}/raddb
+confdir = ${sysconfdir}/raddb
 radacctdir = ${logdir}/radacct
 name = radrelay
-confdir = ${raddbdir}
 run_dir = ${localstatedir}/run/${name}
 libdir = ${exec_prefix}/lib
 pidfile = ${run_dir}/${name}.pid
index 6fc169142e3a3d3fb7e784ae013b2703db8de760..bfd152b454a50124958b7e06ffabfb159f6d1e8a 100644 (file)
@@ -32,7 +32,7 @@ sysconfdir = ${prefix}/etc
 localstatedir = ${prefix}/var
 sbindir = ${exec_prefix}/sbin
 logdir = ${localstatedir}/log/radius
-raddbdir = ${sysconfdir}/raddb
+confdir = ${sysconfdir}/raddb
 radacctdir = ${logdir}/radacct
 ----
 
index f2c5a5d770c8d2e67b56605ab73fd04147aac25f..13e165ff3920d9bad90596c881ed0bc89c32302a 100644 (file)
@@ -41,13 +41,13 @@ LOCAL_CERT_FILES := dh \
                        ecc/server.key \
                        ecc/server.pem
 
-INSTALL_CERT_PRODUCTS := $(addprefix $(R)$(raddbdir)/certs/,$(INSTALL_CERT_FILES))
+INSTALL_CERT_PRODUCTS := $(addprefix $(R)$(confdir)/certs/,$(INSTALL_CERT_FILES))
 
 ifeq ("$(TEST_CERTS)","yes")
-INSTALL_CERT_PRODUCTS += $(addprefix $(R)$(raddbdir)/certs/,$(LOCAL_CERT_FILES))
+INSTALL_CERT_PRODUCTS += $(addprefix $(R)$(confdir)/certs/,$(LOCAL_CERT_FILES))
 endif
 
-LEGACY_LINKS :=                $(addprefix $(R)$(raddbdir)/,users)
+LEGACY_LINKS :=                $(addprefix $(R)$(confdir)/,users)
 
 BUILD_RADDB := $(strip $(foreach x,install clean,$(findstring $(x),$(MAKECMDGOALS))))
 ifneq "$(BUILD_RADDB)" ""
@@ -56,7 +56,7 @@ RADDB_DIRS :=         certs mods-available mods-enabled global.d policy.d template.d \
                        $(patsubst raddb/%,%,$(call FIND_DIRS,raddb/mods-config))
 
 # Installed directories
-INSTALL_RADDB_DIRS :=  $(R)$(raddbdir)/ $(addprefix $(R)$(raddbdir)/,$(RADDB_DIRS))
+INSTALL_RADDB_DIRS :=  $(R)$(confdir)/ $(addprefix $(R)$(confdir)/,$(RADDB_DIRS))
 
 # Grab files from the various subdirectories
 INSTALL_FILES :=       $(wildcard raddb/sites-available/* raddb/mods-available/*) \
@@ -68,7 +68,7 @@ INSTALL_FILES :=      $(wildcard raddb/sites-available/* raddb/mods-available/*) \
                        $(call FIND_FILES,raddb/template.d)
 
 # Re-write local files to installed files, filtering out editor backups
-INSTALL_RADDB :=       $(patsubst raddb/%,$(R)$(raddbdir)/%,$(INSTALL_FILES))
+INSTALL_RADDB :=       $(patsubst raddb/%,$(R)$(confdir)/%,$(INSTALL_FILES))
 endif
 
 all: build.raddb
@@ -97,7 +97,7 @@ raddb/sites-enabled/%: raddb/sites-available/% | raddb/sites-enabled
 ifneq "$(BUILD_RADDB)" ""
 # Installation rules for directories.  Note permissions are 750!
 $(INSTALL_RADDB_DIRS):
-       ${Q}echo INSTALL $(patsubst $(R)$(raddbdir)%,raddb%,$@)
+       ${Q}echo INSTALL $(patsubst $(R)$(confdir)%,raddb%,$@)
        ${Q}$(INSTALL) -d -m 750 $@
 
 #  The installed files have ORDER dependencies.  This means that they
@@ -107,32 +107,32 @@ $(INSTALL_RADDB_DIRS):
 #  This dependency lets us install the server on top of an existing
 #  system, hopefully without breaking anything.
 
-ifeq "$(wildcard $(R)$(raddbdir)/mods-available/)" ""
-INSTALL_RADDB +=       $(patsubst raddb/%,$(R)$(raddbdir)/%,\
+ifeq "$(wildcard $(R)$(confdir)/mods-available/)" ""
+INSTALL_RADDB +=       $(patsubst raddb/%,$(R)$(confdir)/%,\
                        $(filter-out %~,$(LOCAL_MODULES)))
 
 # Installation rules for mods-enabled.  Note ORDER dependencies
-$(R)$(raddbdir)/mods-enabled/%: | $(R)$(raddbdir)/mods-available/%
+$(R)$(confdir)/mods-enabled/%: | $(R)$(confdir)/mods-available/%
        ${Q}cd $(dir $@) && ln -sf ../mods-available/$(notdir $@)
 endif
 
-ifeq "$(wildcard $(R)$(raddbdir)/sites-available/)" ""
-INSTALL_RADDB +=       $(patsubst raddb/%,$(R)$(raddbdir)/%,\
+ifeq "$(wildcard $(R)$(confdir)/sites-available/)" ""
+INSTALL_RADDB +=       $(patsubst raddb/%,$(R)$(confdir)/%,\
                        $(filter-out %~,$(LOCAL_SITES)))
 
 # Installation rules for sites-enabled.  Note ORDER dependencies
-$(R)$(raddbdir)/sites-enabled/%: | $(R)$(raddbdir)/sites-available/%
+$(R)$(confdir)/sites-enabled/%: | $(R)$(confdir)/sites-available/%
        ${Q}cd $(dir $@) && ln -sf ../sites-available/$(notdir $@)
 endif
 
 # Installation rules for plain modules.
-$(R)$(raddbdir)/%: | raddb/%
-       ${Q}echo INSTALL $(patsubst $(R)$(raddbdir)/%,raddb/%,$@)
-       ${Q}$(INSTALL) -m 640 $(patsubst $(R)$(raddbdir)/%,raddb/%,$@) $@
+$(R)$(confdir)/%: | raddb/%
+       ${Q}echo INSTALL $(patsubst $(R)$(confdir)/%,raddb/%,$@)
+       ${Q}$(INSTALL) -m 640 $(patsubst $(R)$(confdir)/%,raddb/%,$@) $@
 
-$(R)$(raddbdir)/users: $(R)$(modconfdir)/files/authorize
-       ${Q}[ -e $@ ] || echo LN-S $(patsubst $(R)$(raddbdir)/%,raddb/%,$@)
-       ${Q}[ -e $@ ] || ln -s $(patsubst $(R)$(raddbdir)/%,./%,$<) $@
+$(R)$(confdir)/users: $(R)$(modconfdir)/files/authorize
+       ${Q}[ -e $@ ] || echo LN-S $(patsubst $(R)$(confdir)/%,raddb/%,$@)
+       ${Q}[ -e $@ ] || ln -s $(patsubst $(R)$(confdir)/%,./%,$<) $@
 endif
 
 ifeq ("$(PACKAGE)","")
@@ -173,9 +173,9 @@ endif
 #  Install the bootstrap script so that installations can run it
 #  to generate test certs.
 #
-$(R)$(raddbdir)/certs/bootstrap: raddb/certs/bootstrap
-       ${Q}echo INSTALL $(patsubst $(R)$(raddbdir)/%,raddb/%,$@)
-       ${Q}$(INSTALL) -m 750 $(patsubst $(R)$(raddbdir)/%,raddb/%,$@) $@
+$(R)$(confdir)/certs/bootstrap: raddb/certs/bootstrap
+       ${Q}echo INSTALL $(patsubst $(R)$(confdir)/%,raddb/%,$@)
+       ${Q}$(INSTALL) -m 750 $(patsubst $(R)$(confdir)/%,raddb/%,$@) $@
 
 #  List directories before the file targets.
 #  It's not clear why GNU Make doesn't deal well with this.
index 620ed57e57ee0c21e81e9e58274bfbc553c9a275..6ce963ffb5f8076b10634e01fd8405f94359004a 100644 (file)
@@ -61,7 +61,7 @@ sysconfdir = @sysconfdir@
 localstatedir = @localstatedir@
 sbindir = @sbindir@
 logdir = @logdir@
-raddbdir = @raddbdir@
+confdir = @confdir@
 radacctdir = @radacctdir@
 
 #
@@ -74,7 +74,6 @@ name = radiusd
 #
 #  Location of config and logfiles.
 #
-confdir = ${raddbdir}
 modconfdir = ${confdir}/mods-config
 certdir = ${confdir}/certs
 cadir   = ${confdir}/certs
@@ -163,7 +162,7 @@ pidfile = ${run_dir}/${name}.pid
 #
 #  An example panic action for opening an automated session in GDB would be:
 #
-#panic_action = "gdb -silent -x ${raddbdir}/panic.gdb %e %p 2>&1 | tee ${logdir}/gdb-${name}-%p.log"
+#panic_action = "gdb -silent -x ${confdir}/panic.gdb %e %p 2>&1 | tee ${logdir}/gdb-${name}-%p.log"
 #
 #  NOTE: That command can be used on a production system.
 #
@@ -456,7 +455,7 @@ ENV {
        #  This also permits the server to use those credentials when it is
        #  run in debug mode.
        #
-#      KRB5_CLIENT_KTNAME = ${raddbdir}/radiusd.keytab
+#      KRB5_CLIENT_KTNAME = ${confdir}/radiusd.keytab
 
        #
        #  `LD_PRELOAD` is special.  It is normally set before the
@@ -673,7 +672,7 @@ global {
 #  Some of these flags can also be passed on the command line as
 #  `-S flag=value`.
 #
-#  Dictionary migration instructions can be found in `${raddbdir}/dictionary`.
+#  Dictionary migration instructions can be found in `${confdir}/dictionary`.
 #
 migrate {
 }
index 6425f4e23fc87e935dae0722e8d770361b4ce707..6e8d8f25c368f44b947cafae5943d99a91ab09f4 100644 (file)
@@ -74,7 +74,7 @@ sysconfdir = @sysconfdir@
 localstatedir = @localstatedir@
 sbindir = @sbindir@
 logdir = @logdir@
-raddbdir = @raddbdir@
+confdir = @confdir@
 radacctdir = @radacctdir@
 
 #
@@ -87,7 +87,6 @@ name = radrelay
 #
 #  Location of config and logfiles.
 #
-confdir = ${raddbdir}
 run_dir = ${localstatedir}/run/${name}
 libdir = @libdir@
 pidfile = ${run_dir}/${name}.pid
index da5fba4ea8e91b2fe281d6812c4c2daba2ea763f..2539aeffc214fce7e0b9a0f794e0fd0b5eae9b68 100755 (executable)
@@ -38,7 +38,7 @@ sysconfdir=@sysconfdir@
 export LD_LIBRARY_PATH LD_RUN_PATH LD_PRELOAD
 
 RADIUSD=$sbindir/radiusd
-CONFDIR=@raddbdir@
+CONFDIR=@confdir@
 DESC="FreeRADIUS"
 
 #
index b0d5bcf606eed1f6d665f6abe37f8d46f648b526..e576724d4271d46169109e1abfc93e1dfc9fb078 100755 (executable)
@@ -40,7 +40,7 @@ sysconfdir=@sysconfdir@
 export LD_LIBRARY_PATH LD_RUN_PATH LD_PRELOAD
 
 RADIUSD=$sbindir/radiusd
-CONFDIR=@raddbdir@
+CONFDIR=@confdir@
 DESC="FreeRADIUS"
 
 #
index 529d2111e95e0a3ea1c49cbd9a7971114ff4cc0b..c8dc7a57c079c35cb12a0014b0edeb85410bf8ab 100644 (file)
@@ -2,7 +2,7 @@
 
 The dictionaries in this directory allow the use of v3 names in v4.
 
-See ${raddbdir}/dictionary for more information.
+See $(confdir)/dictionary for more information.
 
 Do NOT copy the v3 dictionaries to this directory.  The files are NOT
 compatible.
index 29a73a2124d29f42fc3a078be48aa78ca36002f7..faeb6b39c72bf2da76aef0ea515fd10bfa032109 100644 (file)
@@ -50,7 +50,7 @@ $prefix               = "@prefix@";
 $localstatedir = "@localstatedir@";
 $logdir                = "@logdir@";
 $sysconfdir    = "@sysconfdir@";
-$confdir       = "@raddbdir@";
+$confdir       = "@confdir@";
 
 $debug         = "";
 #$debug                = "$logdir/checkrad.log";
index 45424c29972616624999a8a5aff145befa44d3a3..12688029c7cae7b4445c0a4c88540f41eb18db02 100644 (file)
@@ -114,7 +114,7 @@ src/include/missing.h: src/include/missing-h src/include/autoconf.sed
 define include_defs
 #define LOGDIR         "${logdir}"
 #define LIBDIR         "${libdir}"
-#define CONFDIR                "${raddbdir}"
+#define CONFDIR                "${confdir}"
 #define RUNDIR         "${RUNDIR}"
 #define SBINDIR                "${sbindir}"
 #define RADIR          "${radacctdir}"
index fd1b1781e49263e15cfad00b7bb68708e90eb816..c62a1f533ca193f4f5f44a40797d851304355133 100644 (file)
@@ -13,7 +13,7 @@ ifneq "$(TARGETNAME)" ""
 install: $(R)$(modconfdir)/mruby/example.rb
 
 $(R)$(modconfdir)/mruby: | $(R)$(modconfdir)
-       @echo INSTALL $(patsubst $(R)${raddbdir}%,raddb%,$@)
+       @echo INSTALL $(patsubst $(R)$(confdir)%,raddb%,$@)
        @$(INSTALL) -d -m 750 $@
 
 $(R)$(modconfdir)/mruby/example.rb: src/modules/rlm_mruby/example.rb | $(R)$(modconfdir)/mruby
index d4b64999e6808340212146925c436c3250b98393..e7db5c19bd169399345d4cdecfc17defcbfc411e 100644 (file)
@@ -13,7 +13,7 @@ ifneq "$(TARGETNAME)" ""
 install: $(R)$(modconfdir)/python/example.py
 
 $(R)$(modconfdir)/python: | $(R)$(modconfdir)
-       @echo INSTALL $(patsubst $(R)${raddbdir}%,raddb%,$@)
+       @echo INSTALL $(patsubst $(R)$(confdir)%,raddb%,$@)
        @$(INSTALL) -d -m 750 $@
 
 $(R)$(modconfdir)/python/example.py: src/modules/rlm_python/example.py | $(R)$(modconfdir)/python
index a547fb853970cecaf24f9680abd5844f332fe96b..fd64118f6260456992cc75cb9a980fdd7b7e22a2 100644 (file)
@@ -10,10 +10,10 @@ SRC_CFLAGS  := @mod_cflags@
 TGT_LDLIBS     := @mod_ldflags@
 
 ifneq "$(TARGETNAME)" ""
-install: $(R)${raddbdir}/mods-available/securid
+install: $(R)$(confdir)/mods-available/securid
 
-$(R)${raddbdir}/mods-available/securid: src/modules/rlm_securid/securid | $(R)${raddbdir}/mods-available
+$(R)$(confdir)/mods-available/securid: src/modules/rlm_securid/securid | $(R)$(confdir)/mods-available
        @$(ECHO) INSTALL $(notdir $<)
-       @$(INSTALL) -m 640 $< $(R)${raddbdir}/mods-available
+       @$(INSTALL) -m 640 $< $(R)$(confdir)/mods-available
 endif
 LOG_ID_LIB     = 45
index 9eebada1729065d602af26771b31cdeb3cdf7266..c75eb39d44e28da159d158611e1e53886decc7c6 100644 (file)
@@ -75,7 +75,7 @@ ci-test: raddb/test.conf test
        ${Q}FR_LIBRARY_PATH=${BUILD_DIR}/lib/local/.libs/ ${BUILD_DIR}/make/jlibtool --mode=execute ${BUILD_DIR}/bin/local/radiusd -xxxv -n test
        ${Q}rm -f raddb/test.conf
        ${Q}$(MAKE) install
-       ${Q}perl -p -i -e 's/allow_vulnerable_openssl = no/allow_vulnerable_openssl = yes/' ${raddbdir}/radiusd.conf
+       ${Q}perl -p -i -e 's/allow_vulnerable_openssl = no/allow_vulnerable_openssl = yes/' $(confdir)/radiusd.conf
        ${Q}${sbindir}/radiusd -XC
 
 #
index a2c66275965dcc2931996152d8638868091319c5..f8b693b90403659566f9f02f646de4632ecdb91b 100644 (file)
 output       = build/tests/detail
 
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 
 client localhost {
        ipaddr = 127.0.0.1
index df06c004b7e4815adcb51a522f09e53bd2e042f6..8b9683c524a5b6f122082461e838286acb412561 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -36,7 +39,7 @@ policy {
                        control.Password.Cleartext := "bob"
                }
        }
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 client localhost {
index 7dc0c381b4c0afe739b078b48d541dc5ad282209..8ef8fa0d5624ad5d508dacce2065d137f0142970 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -50,10 +53,10 @@ client eapol_test {
 #  Modules needed for EAP
 #
 modules {
-       $INCLUDE ${maindir}/mods-available/always
-       $INCLUDE ${maindir}/mods-available/chap
-       $INCLUDE ${maindir}/mods-available/pap
-       $INCLUDE ${maindir}/mods-available/mschap
+       $INCLUDE ${raddb}/mods-available/always
+       $INCLUDE ${raddb}/mods-available/chap
+       $INCLUDE ${raddb}/mods-available/pap
+       $INCLUDE ${raddb}/mods-available/mschap
 
        #
        #  Include the modules which are enabled for this particular
@@ -113,7 +116,7 @@ policy {
                }
        }
 
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 #
index d37a3c4c8377ae9ed461d74a34a061724433834c..38efae907b3672867681fe0a42f9638316d9fae8 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -41,7 +44,7 @@ trigger {
 }
 
 policy {
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 client localhost {
index 615fd0a5246d0aeb3b97420463a68c48c504c2e1..f82a8bd8fecff43adf62a63b421eef179c716d58 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+# 
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -57,7 +60,7 @@ policy {
                }
        }
 
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 client localhost {
index 7a4268e60ab41fa1d80e72d6cafd3f2a2f92d76a..5aceb22e2cfb62a70a4831265542f34abcfb8535 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+# 
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -57,7 +60,7 @@ policy {
                }
        }
 
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 client localhost {
index 39f46678c9be78adeea63f47e5784b2c3d4572dd..d53f6e67a39fdfd6bfac5b21a3a85f5e18ad93a1 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
index 2321b074edd0bda6ec4789c34e592a8ff686ed80..9c65d2e6be6fa5d882b06595612464a71503e7cc 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
index 2e64fc32dcb88b63bbd6f173fda1bf2b65fdea03..f5fbb8e9605f038d5507b8e2d609602f6cd4895d 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -36,7 +39,7 @@ policy {
                        control.Password.Cleartext := "bob"
                }
        }
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 modules {
index 91cac536deb89596fc0c72bf0ecde97993ef6251..6e8865b893158c9a070ec6c2612d1631060d29ae 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -36,7 +39,7 @@ policy {
                        control.Password.Cleartext := "bob"
                }
        }
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 client localhost {
@@ -46,8 +49,8 @@ client localhost {
 }
 
 modules {
-       $INCLUDE ${maindir}/mods-available/pap
-       $INCLUDE ${maindir}/mods-available/chap
+       $INCLUDE ${raddb}/mods-available/pap
+       $INCLUDE ${raddb}/mods-available/chap
 
        always reject {
                rcode = reject
index 3efcbf473c441b3c3dfce8a43b7bdff12f2ba043..6a1a8b66292206af3ff74acdc5ff35a3e4e1bdcc 100644 (file)
 testdir      = $ENV{TESTDIR}
 output       = $ENV{OUTPUT}
 run_dir      = ${output}
-raddb        = raddb
 pidfile      = ${run_dir}/radiusd.pid
 panic_action = "gdb -batch -x src/tests/panic.gdb %e %p > ${run_dir}/gdb.log 2>&1; cat ${run_dir}/gdb.log"
 
-maindir      = ${raddb}
+#
+# Look at the source version of raddb for the rest of the files, not
+# this directory.
+#
+raddb        = raddb
 radacctdir   = ${run_dir}/radacct
-modconfdir   = ${maindir}/mods-config
-certdir      = ${maindir}/certs
-cadir        = ${maindir}/certs
+modconfdir   = ${raddb}/mods-config
+certdir      = ${raddb}/certs
+cadir        = ${raddb}/certs
 test_port    = $ENV{TEST_PORT}
 
 #  Only for testing!
@@ -31,7 +34,7 @@ security {
 }
 
 policy {
-       $INCLUDE ${maindir}/policy.d/
+       $INCLUDE ${raddb}/policy.d/
 }
 
 client localhost {