summaryrefslogtreecommitdiff
path: root/extra/xbill/xbill.install
blob: 014c0d54b9a4a40f72824144ce24344a2ed9352f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pre_install() {
  if [ ! -e var/games/xbill/scores ]; then
    [ -e usr/var/xbill/scores ] && mv usr/var/xbill/scores var/games/xbill/scores
  fi
}

post_install() {
  touch var/games/xbill/scores
  chown root:games var/games/xbill/scores
  chmod 664 var/games/xbill/scores
}

pre_upgrade() {
  pre_install $1
}

post_upgrade() {
  post_install $1
}

post_remove() {
  if [ -e var/games/xbill/scores ]; then
    mv var/games/xbill/scores var/games/xbill/scores.pacsave
  fi
}