Install /usr/local/libdata/ldconfig/cde for FreeBSD
authorMarcin Cieslak <saper@saper.info>
Tue, 25 Sep 2012 13:41:18 +0000 (15:41 +0200)
committerJon Trulson <jon@radscan.com>
Tue, 25 Sep 2012 17:33:09 +0000 (11:33 -0600)
I mean really this time. Please.

cde/admin/IntegTools/post_install/freebsd/configShlibs.src

index f50578d70a7a672e2a0a93540bd28e0c5bf48026..50f07095e0e8e4490bacee150b05051245c9b423 100755 (executable)
@@ -78,6 +78,7 @@ FILESET=CDE-SHLIBS
 retval=0
 CDE_TOP=CDE_INSTALLATION_TOP
 CDE_CONF_TOP=CDE_CONFIGURATION_TOP
+LDCONFIGFILE=/usr/local/libdata/ldconfig/cde
 
   HandleOption $*
 
@@ -88,6 +89,7 @@ CDE_CONF_TOP=CDE_CONFIGURATION_TOP
 
     RemoveShlibFiles
 
+    rm -f $LDCONFIGFILE
     /sbin/ldconfig -R
 
     VerifyInstalledFiles
@@ -97,6 +99,7 @@ CDE_CONF_TOP=CDE_CONFIGURATION_TOP
 
     MakeTheLink
 
+    rm -f $LDCONFIGFILE
     echo $CDE_TOP/lib > $LDCONFIGFILE
     /sbin/ldconfig -m $CDE_TOP/lib