Make this setgid games to avoid world-writable files

This commit is contained in:
Kris Kennaway 2000-08-17 06:34:50 +00:00
parent 64c614c46c
commit ecfbae58bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31698

View File

@ -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>