From 3000dcd60009069583a45840bbaaed23d0727b92 Mon Sep 17 00:00:00 2001 From: fukachan Date: Sun, 18 Nov 2001 04:50:58 +0000 Subject: speculate program paths by configure (autoconf) --- fml/etc/main.cf.in | 7 ++++++- fml/lib/FML/Process/Switch.pm | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'fml') diff --git a/fml/etc/main.cf.in b/fml/etc/main.cf.in index 39c43f82..63d8bbbc 100644 --- a/fml/etc/main.cf.in +++ b/fml/etc/main.cf.in @@ -1,5 +1,5 @@ # -# $FML$ +# $FML: main.cf.in,v 1.1 2001/11/12 14:33:03 fukachan Exp $ # # fml version @@ -63,6 +63,11 @@ default_domain = fml.org default_config_cf = $default_config_dir/default_config.cf +# path_$program collection +# Example: /etc/fml/defaults/5.0/default_config.cf +default_paths_cf = $default_config_dir/paths.cf + + # domain specific configurations # Example: /etc/fml/domains/fml.org/default_config.cf domain_default_config = $config_dir/domains/$default_domain/config.cf diff --git a/fml/lib/FML/Process/Switch.pm b/fml/lib/FML/Process/Switch.pm index 024a8876..162047bd 100644 --- a/fml/lib/FML/Process/Switch.pm +++ b/fml/lib/FML/Process/Switch.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Switch.pm,v 1.38 2001/11/12 14:37:25 fukachan Exp $ +# $FML: Switch.pm,v 1.39 2001/11/17 04:03:37 fukachan Exp $ # package FML::Process::Switch; @@ -123,6 +123,7 @@ sub main::Bootstrap2 my $sitedef = File::Spec->catfile($main_cf->{ config_dir }, 'site_default_config.cf'); unshift(@$cf, $sitedef); + unshift(@$cf, $main_cf->{ default_paths_cf }); unshift(@$cf, $main_cf->{ default_config_cf }); # 3.1 set up @INC -- cgit v1.2.1