aboutsummaryrefslogtreecommitdiffstats
path: root/games/xjumpx
diff options
context:
space:
mode:
Diffstat (limited to 'games/xjumpx')
-rw-r--r--games/xjumpx/Makefile3
-rw-r--r--games/xjumpx/files/patch-Makefile11
-rw-r--r--games/xjumpx/files/pkg-message.in (renamed from games/xjumpx/pkg-message)6
-rw-r--r--games/xjumpx/pkg-plist2
4 files changed, 18 insertions, 4 deletions
diff --git a/games/xjumpx/Makefile b/games/xjumpx/Makefile
index fe2dead961f7..4d4c9361f72f 100644
--- a/games/xjumpx/Makefile
+++ b/games/xjumpx/Makefile
@@ -19,6 +19,9 @@ USE_XPM= yes
MAN1= xjumpx.1
MANCOMPRESSED= yes
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xjumpx ${PREFIX}/bin
${MKDIR} ${PREFIX}/lib/X11/xjumpx
diff --git a/games/xjumpx/files/patch-Makefile b/games/xjumpx/files/patch-Makefile
new file mode 100644
index 000000000000..4174ef339558
--- /dev/null
+++ b/games/xjumpx/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Fri Nov 24 16:24:37 2006
++++ Makefile Fri Nov 24 16:24:48 2006
+@@ -11,7 +11,7 @@
+
+ ## X11 base directory
+
+-X11BASE = /usr/X11R6
++#X11BASE = /usr/X11R6
+
+
+ ## directory for record files
diff --git a/games/xjumpx/pkg-message b/games/xjumpx/files/pkg-message.in
index d4d8dd806fbb..519a7b1aaf03 100644
--- a/games/xjumpx/pkg-message
+++ b/games/xjumpx/files/pkg-message.in
@@ -4,6 +4,6 @@ However, due to security concerns, xjumpx is not installed setgid games,
so everybody can change scorefiles.
In order to protect scorefiles, you will need to run these commands:
- chgrp games /usr/X11R6/bin/xjumpx /usr/X11R6/lib/X11/xjumpx
- chmod g+s /usr/X11R6/bin/xjumpx
- chmod 770 /usr/X11R6/lib/X11/xjumpx
+ chgrp games %%PREFIX%%/bin/xjumpx %%PREFIX%%/lib/X11/xjumpx
+ chmod g+s %%PREFIX%%/bin/xjumpx
+ chmod 770 %%PREFIX%%/lib/X11/xjumpx
diff --git a/games/xjumpx/pkg-plist b/games/xjumpx/pkg-plist
index f5fda8fb1a0f..5d03fde74224 100644
--- a/games/xjumpx/pkg-plist
+++ b/games/xjumpx/pkg-plist
@@ -1,4 +1,4 @@
bin/xjumpx
lib/X11/app-defaults/XJumpX
@exec install -d -m 777 %D/lib/X11/xjumpx
-@unexec rm -rf %D/lib/X11/xjumpx
+@unexec rm -rf %D/lib/X11/xjumpx 2>&1 >/dev/null || true