From 9fa515b893148d1f341f903f89c00b54ca32e457 Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 17 Aug 2000 06:34:50 +0000 Subject: Make this setgid games to avoid world-writable files --- games/mirrormagic/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'games/mirrormagic') 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 -- cgit