PKGBUILDs/core/fakeroot/fakeroot.install

32 lines
727 B
Plaintext
Raw Normal View History

2009-09-26 15:58:33 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
# arg 1: the new package version
post_install() {
2009-09-26 15:58:33 +00:00
if [ ! "`grep /opt/lib/libfakeroot opt/etc/ld.so.conf`" ]; then
echo -n "updating /opt/etc/ld.so.conf... "
echo "/opt/lib/libfakeroot" >>opt/etc/ld.so.conf
2009-09-26 14:35:50 +00:00
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() {
2009-09-26 15:58:33 +00:00
echo -ne "\nupdating /opt/etc/ld.so.conf... "
sed -i -e '/\/opt\/lib\/libfakeroot/d' opt/etc/ld.so.conf
2009-09-26 14:35:50 +00:00
sbin/ldconfig -r .
echo "done."
}
op=$1
shift
$op $*