diff options
author | root <root@rshg054.dnsready.net> | 2011-08-16 23:14:31 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-16 23:14:31 +0000 |
commit | 68b7938bb87c6e91d54e4f35f0223c7237fa53e1 (patch) | |
tree | c958be233dadd94e64aee91d88f18f1638817b6f /community/nethack/nethack.install | |
parent | 3abfc1ebef5936241997dd882938581c91743ee9 (diff) |
Tue Aug 16 23:14:31 UTC 2011
Diffstat (limited to 'community/nethack/nethack.install')
-rw-r--r-- | community/nethack/nethack.install | 12 |
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 +} |