summaryrefslogtreecommitdiff
path: root/games/mirrormagic
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-17 06:34:50 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-17 06:34:50 +0000
commitecfbae58bf030cb753795cee19b209debb9f63d8 (patch)
tree4e973666f431b107fb7d3d3eca1bb56ec7f1a28d /games/mirrormagic
parentMake this setgid games to avoid a world-writable file (diff)
Make this setgid games to avoid world-writable files
Notes
Notes: svn path=/head/; revision=31698
Diffstat (limited to 'games/mirrormagic')
-rw-r--r--games/mirrormagic/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/mirrormagic/Makefile b/games/mirrormagic/Makefile
index 31203a5ff59a..7f8f7c99b66c 100644
--- a/games/mirrormagic/Makefile
+++ b/games/mirrormagic/Makefile
@@ -23,7 +23,7 @@ post-extract:
@(cd ${WRKDIR}; ${CP} ${FILESDIR}/RAY.* .; uudecode *.uu; ${RM} *.uu)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mirrormagic ${PREFIX}/bin
+ ${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/mirrormagic ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/mirrormagic/graphics
${INSTALL_DATA} ${WRKSRC}/graphics/* ${PREFIX}/share/mirrormagic/graphics
@${MKDIR} ${PREFIX}/share/mirrormagic/sounds
@@ -35,7 +35,8 @@ do-install:
.for file in CHANGES COPYRIGHT DISCLAIMER README
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/mirrormagic
.endfor
-# @${CHMOD} a=rwx ${PREFIX}/share/mirrormagic/data
- @${CHMOD} a=rw ${PREFIX}/share/mirrormagic/data/RAY.*
+# @${CHMOD} 664 ${PREFIX}/share/mirrormagic/data
+ @${CHOWN} root:games ${PREFIX}/share/mirrormagic/data/RAY.*
+ @${CHMOD} 664 ${PREFIX}/share/mirrormagic/data/RAY.*
.include <bsd.port.mk>