From 94b12eea8d7e30e71b2375a86c5b88fc3a03d91f Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 17 Aug 2000 06:50:45 +0000 Subject: Make this setgid games to avoid a world-writable file --- games/xdigger/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'games/xdigger') diff --git a/games/xdigger/Makefile b/games/xdigger/Makefile index 2fdedd90e472..70b5def80e1d 100644 --- a/games/xdigger/Makefile +++ b/games/xdigger/Makefile @@ -22,13 +22,14 @@ post-patch: @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/configure.h do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xdigger ${PREFIX}/bin + ${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/xdigger ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/xdigger.man ${PREFIX}/man/man6/xdigger.6 @${MKDIR} ${PREFIX}/share/xdigger ${INSTALL_DATA} ${WRKSRC}/xdigger.level ${PREFIX}/share/xdigger ${INSTALL_DATA} ${WRKSRC}/audio/*.au ${PREFIX}/share/xdigger @${TOUCH} ${PREFIX}/share/xdigger/xdigger.hiscore - @${CHMOD} a+rw ${PREFIX}/share/xdigger/xdigger.hiscore + @${CHMOD} 664 ${PREFIX}/share/xdigger/xdigger.hiscore + @${CHOWN} root:games ${PREFIX}/share/xdigger/xdigger.hiscore .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/xdigger ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/xdigger -- cgit