summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/fakeroot/fakeroot.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-05-20 02:50:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-05-20 02:50:52 (GMT)
commit80e6ab5eb52ff5cb0587ecdd5eff3abec3abeb3d (patch)
tree2fb6eb377de14f587aab06802333c817b8640452 /abs/extra-testing/fakeroot/fakeroot.install
parent74c6a127f055057d920a9618c80174db5829d493 (diff)
downloadlinhes_pkgbuild-80e6ab5eb52ff5cb0587ecdd5eff3abec3abeb3d.zip
linhes_pkgbuild-80e6ab5eb52ff5cb0587ecdd5eff3abec3abeb3d.tar.gz
linhes_pkgbuild-80e6ab5eb52ff5cb0587ecdd5eff3abec3abeb3d.tar.bz2
fakeroot: add package
closes FS#352
Diffstat (limited to 'abs/extra-testing/fakeroot/fakeroot.install')
-rw-r--r--abs/extra-testing/fakeroot/fakeroot.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/extra-testing/fakeroot/fakeroot.install b/abs/extra-testing/fakeroot/fakeroot.install
new file mode 100644
index 0000000..c2f62a7
--- /dev/null
+++ b/abs/extra-testing/fakeroot/fakeroot.install
@@ -0,0 +1,30 @@
+# arg 1: the new package version
+post_install() {
+ if [ ! "`grep /usr/lib/libfakeroot etc/ld.so.conf`" ]; then
+ echo -n "updating /etc/ld.so.conf... "
+ echo "/usr/lib/libfakeroot" >>etc/ld.so.conf
+ sbin/ldconfig -r .
+ echo "done."
+ fi
+echo "The package is built using sysv ipc. If this causes segfaults"
+echo "see included README file and rebuild the pkg --with-ipc=tcp"
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ echo -ne "\nupdating /etc/ld.so.conf... "
+ sed -i -e '/\/usr\/lib\/libfakeroot/d' etc/ld.so.conf
+ sbin/ldconfig -r .
+ echo "done."
+}
+
+op=$1
+shift
+
+$op $*