#! /bin/sh /usr/share/dpatch/dpatch-run
## 003_etc_use_destdir.dpatch by  <fabbione@gordian.int.fabbione.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad simias-3.6~/src/server/setup/Makefile.in simias-3.6/src/server/setup/Makefile.in
--- simias-3.6~/src/server/setup/Makefile.in	2007-10-12 08:15:45.000000000 +0200
+++ simias-3.6/src/server/setup/Makefile.in	2007-10-12 09:36:52.000000000 +0200
@@ -680,9 +680,8 @@
 @WINDOWS_FALSE@	$(INSTALL_PROGRAM) ifolder-web-setup $(DESTDIR)$(bindir)
 @WINDOWS_FALSE@	$(INSTALL_PROGRAM) ifolder-admin-setup $(DESTDIR)$(bindir)
 @WINDOWS_FALSE@	$(INSTALL_PROGRAM) utility.exe $(DEBUG_FILES) $(DESTDIR)$(bindir)
-@WINDOWS_FALSE@	$(mkinstalldirs) /etc/ld.so.conf.d
-@WINDOWS_FALSE@	$(INSTALL_PROGRAM) novell-ifolder3.conf /etc/ld.so.conf.d
-@WINDOWS_FALSE@	grep -q "include /etc/ld.so.conf.d/\*.conf" /etc/ld.so.conf || echo "include /etc/ld.so.conf.d/*.conf" >> /etc/ld.so.conf
+@WINDOWS_FALSE@	$(mkinstalldirs) $(DESTDIR)/etc/ld.so.conf.d
+@WINDOWS_FALSE@	$(INSTALL_PROGRAM) novell-ifolder3.conf $(DESTDIR)/etc/ld.so.conf.d
 
 uninstall-local:
 	cd $(DESTDIR)$(bindir); rm -f SimiasServerSetup.exe $(DEBUG_FILES)
@@ -695,7 +694,7 @@
 	cd $(DESTDIR)$(bindir); rm -f ifolder-admin-setup ifolder-admin-setup.cmd
 	cd $(DESTDIR)$(bindir); rm -f iFolderAdminSetup.exe.config
 	cd $(DESTDIR)$(bindir); rm -f utility.exe
-	cd /etc/ld.so.conf.d; rm -f novell-ifolder3.conf
+	cd $(DESTDIR)/etc/ld.so.conf.d; rm -f novell-ifolder3.conf
 
 installcheck-local: install