summaryrefslogtreecommitdiff
path: root/community/root/root.install
blob: 457af7314f44d3bf80c5ea2840978e3646430161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
  if ! [ `grep '/usr/lib/root' etc/ld.so.conf` ]; then
    echo "/usr/lib/root" >> etc/ld.so.conf
    sbin/ldconfig -r .
  fi

  update-desktop-database >/dev/null

  update-mime-database /usr/share/mime >/dev/null
}

pre_remove() {
  cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot
  mv /tmp/.pacroot etc/ld.so.conf
  chmod 644 etc/ld.so.conf
  sbin/ldconfig -r .
}