updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / insight / insight.install
blobf62dafcb86b7e21e12453e25b8f4b243f5b3aaa4
1 post_install() {
2   if ! [ `grep '/opt/insight/lib' etc/ld.so.conf` ]; then
3     echo "/opt/insight/lib" >>etc/ld.so.conf
4     sbin/ldconfig -r .
5   fi
6   echo "-----------------------------------------------"
7   echo "Environment variables have changed. Either log"
8   echo "out and back in or source /etc/profile before"
9   echo "using insight!"
10   echo "-----------------------------------------------"
13 post_upgrade() {
14   /bin/true
17 pre_remove() {
18   cat etc/ld.so.conf | grep -v '/opt/insight/lib' >/tmp/.pacinsight
19   mv /tmp/.pacinsight etc/ld.so.conf
20   chmod 644 etc/ld.so.conf
21   sbin/ldconfig -r .
24 op=$1
25 shift
27 $op $*