aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/xrot/Makefile10
-rw-r--r--games/xrot/pkg-install9
-rw-r--r--games/xrot/pkg-plist9
3 files changed, 12 insertions, 16 deletions
diff --git a/games/xrot/Makefile b/games/xrot/Makefile
index 7846ff8b52bf..7ecf5380aeb7 100644
--- a/games/xrot/Makefile
+++ b/games/xrot/Makefile
@@ -23,13 +23,9 @@ USE_XORG= xpm
ALL_TARGET= xrot
CFLAGS+= -Wno-return-type
-PLIST_FILES= bin/xrot
-
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/xrot ${PREFIX}/bin
- ${CHOWN} root:games ${PREFIX}/bin/xrot
- ${CHMOD} g+s ${PREFIX}/bin/xrot
- ${SH} pkg-install ${PKGNAME} POST-INSTALL
+ ${INSTALL_PROGRAM} ${WRKSRC}/xrot ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}/var/games
+ ${TOUCH} ${STAGEDIR}/var/games/xrot.scores.sample
.include <bsd.port.mk>
diff --git a/games/xrot/pkg-install b/games/xrot/pkg-install
deleted file mode 100644
index 97b40ce47230..000000000000
--- a/games/xrot/pkg-install
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-FILE="/var/games/xrot.scores"
-[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
-
-echo "===> Creating initial high score file $FILE"
-touch $FILE
-chown root:games $FILE
-chmod 664 $FILE
diff --git a/games/xrot/pkg-plist b/games/xrot/pkg-plist
new file mode 100644
index 000000000000..ea01ae43cbd6
--- /dev/null
+++ b/games/xrot/pkg-plist
@@ -0,0 +1,9 @@
+@group games
+@mode 3755
+bin/xrot
+@mode
+@cwd /
+@sample var/games/xrot.scores.sample
+@exec chmod 664 %B/%f
+@group
+@dirrmtry var/games