summaryrefslogtreecommitdiff
path: root/community/nethack/nethack.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-16 23:14:31 +0000
committerroot <root@rshg054.dnsready.net>2011-08-16 23:14:31 +0000
commit68b7938bb87c6e91d54e4f35f0223c7237fa53e1 (patch)
treec958be233dadd94e64aee91d88f18f1638817b6f /community/nethack/nethack.install
parent3abfc1ebef5936241997dd882938581c91743ee9 (diff)
Tue Aug 16 23:14:31 UTC 2011
Diffstat (limited to 'community/nethack/nethack.install')
-rw-r--r--community/nethack/nethack.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/nethack/nethack.install b/community/nethack/nethack.install
new file mode 100644
index 000000000..66ec2aeb5
--- /dev/null
+++ b/community/nethack/nethack.install
@@ -0,0 +1,12 @@
+pre_upgrade() {
+ if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
+ mv /usr/share/nethack /tmp/nethack-backup
+ fi
+}
+
+post_upgrade() {
+ if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
+ rm -rf /var/games/nethack
+ mv /tmp/nethack-backup /var/games/nethack
+ fi
+}