瀏覽代碼

Ticket 48983 - Configure and Makefile.in from new default paths work.

Bug Description:   At configure time, this is the only time we know all the
resolved paths of a ds installation. However, external tools such as lib389
need to be able to discover and use these paths.

Fix Description:  This updates the configure and makefile based on the changes
to create the defaults.inf.

https://fedorahosted.org/389/ticket/48983

Author: wibrown

Review by: tbordaz, mreynolds (Thanks!)
William Brown 9 年之前
父節點
當前提交
bb3937ab86
共有 2 個文件被更改,包括 15 次插入7 次删除
  1. 11 7
      Makefile.in
  2. 4 0
      configure

+ 11 - 7
Makefile.in

@@ -1392,10 +1392,6 @@ build_os = @build_os@
 build_vendor = @build_vendor@
 builddir = @builddir@
 capbrand = @capbrand@
-
-#------------------------
-# Install Paths
-#------------------------
 configdir = $(sysconfdir)@configdir@
 datadir = @datadir@
 datarootdir = @datarootdir@
@@ -1473,6 +1469,11 @@ perldir = $(libdir)@perldir@
 perlexec = @perlexec@
 plainldif_opts = @plainldif_opts@
 prefix = @prefix@
+
+#------------------------
+# Install Paths
+#------------------------
+prefixdir = @prefixdir@
 program_transform_name = @program_transform_name@
 propertydir = $(datadir)@propertydir@
 psdir = @psdir@
@@ -2142,7 +2143,8 @@ task_SCRIPTS = ldap/admin/src/scripts/template-bak2db \
 inf_DATA = ldap/admin/src/slapd.inf \
 	ldap/admin/src/scripts/dscreate.map \
 	ldap/admin/src/scripts/dsupdate.map \
-	ldap/admin/src/scripts/dsorgentries.map
+	ldap/admin/src/scripts/dsorgentries.map \
+	ldap/admin/src/defaults.inf
 
 mib_DATA = ldap/servers/snmp/redhat-directory.mib
 pkgconfig_DATA = $(PACKAGE_NAME).pc
@@ -3157,7 +3159,8 @@ rsearch_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBS
 @BUNDLE_FALSE@	-e 's,@ldaplib_defs\@,$(ldaplib_defs),g' \
 @BUNDLE_FALSE@	-e 's,@systemdsystemunitdir\@,$(systemdsystemunitdir),g' \
 @BUNDLE_FALSE@	-e 's,@systemdsystemconfdir\@,$(systemdsystemconfdir),g' \
-@BUNDLE_FALSE@	-e 's,@systemdgroupname\@,$(systemdgroupname),g'
+@BUNDLE_FALSE@	-e 's,@systemdgroupname\@,$(systemdgroupname),g' \
+@BUNDLE_FALSE@	-e 's,@prefixdir\@,$(prefixdir),g'
 
 
 # these are for the config files and scripts that we need to generate and replace
@@ -3236,7 +3239,8 @@ rsearch_bin_LDADD = $(NSPR_LINK) $(NSS_LINK) $(LDAPSDK_LINK) $(SASL_LINK) $(LIBS
 @BUNDLE_TRUE@	-e 's,@ldaplib_defs\@,$(ldaplib_defs),g' \
 @BUNDLE_TRUE@	-e 's,@systemdsystemunitdir\@,$(systemdsystemunitdir),g' \
 @BUNDLE_TRUE@	-e 's,@systemdsystemconfdir\@,$(systemdsystemconfdir),g' \
-@BUNDLE_TRUE@	-e 's,@systemdgroupname\@,$(systemdgroupname),g'
+@BUNDLE_TRUE@	-e 's,@systemdgroupname\@,$(systemdgroupname),g' \
+@BUNDLE_TRUE@	-e 's,@prefixdir\@,$(prefixdir),g'
 
 all: $(BUILT_SOURCES) config.h
 	$(MAKE) $(AM_MAKEFLAGS) all-am

+ 4 - 0
configure

@@ -745,6 +745,7 @@ schemadir
 propertydir
 sampledatadir
 configdir
+prefixdir
 with_tmpfiles_d
 with_fhs_opt
 enable_nunc_stans_FALSE
@@ -18146,6 +18147,7 @@ localrundir='/run'
 if test "$with_fhs_opt" = "yes"; then
   # Override sysconfdir and localstatedir if FHS optional
   # package was requested.
+  prefixdir=$prefix
   sysconfdir='/etc/opt'
   localstatedir='/var/opt'
   localrundir='/var/opt/run'
@@ -18180,6 +18182,7 @@ else
         localstatedir='/var'
     localrundir='/run'
   fi
+  prefixdir=$prefix
   # relative to datadir
   sampledatadir=/$PACKAGE_NAME/data
   # relative to datadir
@@ -18303,6 +18306,7 @@ fi
 
 
 
+
 # check for --with-instconfigdir
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
 $as_echo_n "checking for --with-instconfigdir... " >&6; }