summaryrefslogtreecommitdiffstats
path: root/games/xdigger
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-08-17 06:50:45 +0000
committerkris <kris@FreeBSD.org>2000-08-17 06:50:45 +0000
commit94b12eea8d7e30e71b2375a86c5b88fc3a03d91f (patch)
treefd8c791a8c1da342c8da5ed6be124c73d5aed9d0 /games/xdigger
parent9fa515b893148d1f341f903f89c00b54ca32e457 (diff)
downloadFreeBSD-ports-94b12eea8d7e30e71b2375a86c5b88fc3a03d91f.zip
FreeBSD-ports-94b12eea8d7e30e71b2375a86c5b88fc3a03d91f.tar.gz
Make this setgid games to avoid a world-writable file
Diffstat (limited to 'games/xdigger')
-rw-r--r--games/xdigger/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/xdigger/Makefile b/games/xdigger/Makefile
index 2fdedd9..70b5def 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
OpenPOWER on IntegriCloud