aboutsummaryrefslogtreecommitdiff
path: root/games/nethack32/pkg-plist
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2004-04-12 21:02:09 +0000
committerGreg Lewis <glewis@FreeBSD.org>2004-04-12 21:02:09 +0000
commit49f6c471fd3f6ec869b79e86acbae5bc5f6a2963 (patch)
treeae46639e76d7fd6edaaa7cdf66c0a75799960946 /games/nethack32/pkg-plist
parent508bed379a4d0250401332895b99bb7df94aaf9b (diff)
downloadports-49f6c471fd3f6ec869b79e86acbae5bc5f6a2963.tar.gz
ports-49f6c471fd3f6ec869b79e86acbae5bc5f6a2963.zip
Notes
Diffstat (limited to 'games/nethack32/pkg-plist')
-rw-r--r--games/nethack32/pkg-plist14
1 files changed, 9 insertions, 5 deletions
diff --git a/games/nethack32/pkg-plist b/games/nethack32/pkg-plist
index 2c8178ae8b2d..157f99a66ba4 100644
--- a/games/nethack32/pkg-plist
+++ b/games/nethack32/pkg-plist
@@ -1,8 +1,9 @@
-bin/nethack
-%%DATADIR%%/nethack
+%%HACKLINK%%bin/nethack
+bin/%%HACKNAME%%
+%%DATADIR%%/%%HACKNAME%%
@exec mkdir %D/%%DATADIR%%/save
@exec chmod -R 775 %D/%%DATADIR%%
-@exec chmod 2755 %D/%%DATADIR%%/nethack
+@exec chmod 2755 %D/%%DATADIR%%/%%HACKNAME%%
@exec chown games:games %D/%%DATADIR%%/save
@unexec rmdir %D/%%DATADIR%%/save 2>/dev/null || true
%%PORTDOCS%%%%DOCSDIR%%/Guidebook.txt
@@ -118,8 +119,11 @@ bin/nethack
%%DATADIR%%/wizard3.lev
%%DATADIR%%/wizhelp
@mode 664
-%%DATADIR%%/logfile
-%%DATADIR%%/record
%%DATADIR%%/perm
+@mode
+@unexec [ -s %D/%%HACKDIR%%/logfile ] || rm -f %D/%%HACKDIR%%/logfile
+@exec touch %D/%%HACKDIR%%/logfile && chmod 664 %D/%%HACKDIR%%/logfile
+@unexec [ -s %D/%%HACKDIR%%/record ] || rm -f %D/%%HACKDIR%%/record
+@exec touch %D/%%HACKDIR%%/record && chmod 664 %D/%%HACKDIR%%/record
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
%%PORTDOCS%%@dirrm %%DOCSDIR%%