aboutsummaryrefslogtreecommitdiffstats
path: root/games/xjumpx
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-11-25 06:49:00 +0800
committermiwi <miwi@FreeBSD.org>2006-11-25 06:49:00 +0800
commit1896f6b5b9dd08f1a6a86baf989cbe68313aef2f (patch)
tree5693061833124e5b51da2a39c5d63551068f5dd9 /games/xjumpx
parentc76303ef7ac93a8e85fec0a8c2512530d586c4a0 (diff)
downloadfreebsd-ports-gnome-1896f6b5b9dd08f1a6a86baf989cbe68313aef2f.tar.gz
freebsd-ports-gnome-1896f6b5b9dd08f1a6a86baf989cbe68313aef2f.tar.zst
freebsd-ports-gnome-1896f6b5b9dd08f1a6a86baf989cbe68313aef2f.zip
- Respect X11BASE
PR: ports/105821 Submitted by: trasz
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