summaryrefslogtreecommitdiffstats
path: root/wrappers/ldif.in
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2006-11-02 03:11:40 +0000
committerRich Megginson <rmeggins@redhat.com>2006-11-02 03:11:40 +0000
commite5ead29c3e278442b37138bc09acbfdc682fd72b (patch)
treea04f6b59b6dd0a2b5eb744e872055ed76b7a292a /wrappers/ldif.in
parent55654f531c5bb4135fa7b0f461a721c44fab3302 (diff)
downloadds-e5ead29c3e278442b37138bc09acbfdc682fd72b.tar.gz
ds-e5ead29c3e278442b37138bc09acbfdc682fd72b.tar.xz
ds-e5ead29c3e278442b37138bc09acbfdc682fd72b.zip
Bug(s) fixed: 213352
Bug Description: autotools: support redhat/fedora rpmbuild %configure and %makeinstall Reviewed by: nhosoi (Thanks!) Fix Description: The standard way to do an rpmbuild on fedora/redhat is to use the %configure macro in the %prep section of the spec file and the %makeinstall macro in the %install section. These set all of the bindir, libdir, datadir, sysconfdir, etc. paths used by the application. %configure sets them to their "real" runtime locations e.g. /usr/lib, and %makeinstall sets them to their paths used for rpm packaging e.g. /var/tmp/fedora-ds-foo-bar-baz/usr/lib. There were a few places in our autotools files where we were running afoul of this. Another thing is that configure defines bindir etc. as literally '${exec_prefix}/bin' so that the real value doesn't get expanded until make or make install time. This means that we cannot create scripts from templates in configure, we have to do that in make. So this adds a sed command to Makefile.am in order to do all of the script and config file path replacement at make time. Since we do the subst this way, whatever $prefix is set during make will be incorporated into the value of $bindir etc. so we can omit directly referencing @prefix@ in the template files. Platforms tested: RHEL4 Flag Day: no Doc impact: no
Diffstat (limited to 'wrappers/ldif.in')
-rwxr-xr-xwrappers/ldif.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/ldif.in b/wrappers/ldif.in
index 6f52692c..d04227f5 100755
--- a/wrappers/ldif.in
+++ b/wrappers/ldif.in
@@ -5,7 +5,7 @@
###############################################################################
LIB_DIR=@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@
-BIN_DIR=@prefix@@serverdir@
+BIN_DIR=@serverdir@
COMMAND=ldif-bin