summaryrefslogtreecommitdiffstats
path: root/extra/grass/grass.install
blob: 116f57cc650e5644fb2fb36084f0054ed28b81ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  sed -e '/\/opt\/grass-*/d' -i /etc/ld.so.conf
  echo '/opt/grass/lib' >> etc/ld.so.conf
  sbin/ldconfig -r .
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  sed -e '/\/opt\/grass-*\/lib/d' -i /etc/ld.so.conf
  sbin/ldconfig -r .
}