summarylogtreecommitdiffstats
path: root/xbill.install
blob: b68d88071a72aa6973b61020cb384636d9307ef0 (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
26
pre_install() {
  if [ ! -e var/games/xbill/scores -a -e usr/var/xbill/scores ]; then
    mkdir -p var/games/xbill
    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
}