PKGBUILDs/extra/fakechroot/fakechroot.install

20 lines
401 B
Text
Raw Normal View History

2009-10-10 02:23:22 +00:00
post_install() {
if [ ! "`grep /usr/lib/libfakechroot etc/ld.so.conf`" ]; then
echo -n "updating /etc/ld.so.conf... "
echo "/usr/lib/libfakechroot" >>etc/ld.so.conf
sbin/ldconfig -r .
echo "done."
fi
}
post_upgrade() {
post_install $1
}
pre_remove() {
echo -ne "\nupdating /etc/ld.so.conf... "
sed -i -e '/\/usr\/lib\/libfakechroot/d' etc/ld.so.conf
sbin/ldconfig -r .
echo "done."
}