summaryrefslogtreecommitdiff
path: root/cpp/RPMTools.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/RPMTools.py')
-rw-r--r--cpp/RPMTools.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/RPMTools.py b/cpp/RPMTools.py
index 45a3d3437ea..a5105536072 100644
--- a/cpp/RPMTools.py
+++ b/cpp/RPMTools.py
@@ -155,7 +155,16 @@ class Package:
ofile.write('\n')
def writePostInstall(self, ofile, version, intVersion, installDir):
- pass
+ ofile.write('''x=`which mono 2> /dev/null | grep mono`
+if test ! "x$x" == "x";
+then
+ mono_home=`dirname $x | sed -e "s/\/bin$//"`
+ for f in icecs glacier2cs iceboxcs icegridcs icepatch2cs icestormcs;
+ do
+ sed -pi.bak -e 's/^mono_root.*$/mono_root = $mono_home/' /usr/lib/pkgconfig/$f ;
+ done
+fi
+ ''')
def writePostUninstall(self, ofile, version, intVersion, installDir):
pass