diff options
Diffstat (limited to 'extra/xbill/xbill.install')
-rw-r--r-- | extra/xbill/xbill.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/extra/xbill/xbill.install b/extra/xbill/xbill.install new file mode 100644 index 000000000..014c0d54b --- /dev/null +++ b/extra/xbill/xbill.install @@ -0,0 +1,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 +} |