summaryrefslogtreecommitdiff
path: root/testing/xbill/xbill.install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/xbill/xbill.install')
-rw-r--r--testing/xbill/xbill.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/xbill/xbill.install b/testing/xbill/xbill.install
new file mode 100644
index 000000000..b68d88071
--- /dev/null
+++ b/testing/xbill/xbill.install
@@ -0,0 +1,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
+}