summaryrefslogtreecommitdiff
path: root/community/dopewars/dopewars.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/dopewars/dopewars.install
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/dopewars/dopewars.install')
-rw-r--r--community/dopewars/dopewars.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/dopewars/dopewars.install b/community/dopewars/dopewars.install
new file mode 100644
index 000000000..2801fc338
--- /dev/null
+++ b/community/dopewars/dopewars.install
@@ -0,0 +1,20 @@
+post_install() {
+ if [ ! -e /var/games/dopewars.sco ]; then
+ mkdir -p /var/games
+ touch /var/games/dopewars.sco
+ chown root:games /var/games/dopewars.sco
+ chmod 664 /var/games/dopewars.sco
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ if [ -e /var/games/dopewars.sco ]; then
+ rm /var/games/dopewars.sco
+ fi
+}
+
+# vim:set ts=2 sw=2 et: