# arg 1: the new package version post_install() { if qrep -q libjpeg6 /etc/ld.so.conf then exit else echo "/opt/libjpeg6/include" >> /etc/ld.so.conf ldconfig fi } # arg 1: the new package version # arg 2: the old package version post_upgrade() { if qrep -q libjpeg6 /etc/ld.so.conf then exit else echo "/opt/libjpeg6/include" >> /etc/ld.so.conf ldconfig fi } # arg 1: the old package version post_remove() { grep -v libjpeg6 /etc/ld.so.conf > /tmp/ld.so.conf mv /tmp/ld.so.conf /etc/ld.so.conf ldconfig } op=$1 shift $op $*