Allow for and document make -Draddbdir=/tmp/garbage install
authorAlan T. DeKok <aland@freeradius.org>
Mon, 9 Sep 2013 14:19:11 +0000 (10:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 9 Sep 2013 14:19:23 +0000 (10:19 -0400)
Make.inc.in

index bf4e5b5..47e36ee 100644 (file)
@@ -18,7 +18,20 @@ datadir              = @datadir@
 dictdir                = $(datadir)/freeradius
 logdir         = @logdir@
 includedir     = @includedir@
+
+#
+#  In some systems, we don't want to over-write ANY configuration.
+#  So we do:
+#
+#      $./configure
+#      $ make
+#      $ make -Draddbdir=/tmp/garbage install
+#
+#  and all of the configuration files go into /tmp/garbage
+#
+ifneq "${raddbdir}" ""
 raddbdir       = @raddbdir@
+endif
 modconfdir     = @modconfdir@
 radacctdir     = @radacctdir@
 top_builddir   = @abs_top_builddir@