diff options
author | kris <kris@FreeBSD.org> | 2000-08-17 06:25:03 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-08-17 06:25:03 +0000 |
commit | 93eba540fbe2ceeb1348c559f1cdad4a1b23dfd1 (patch) | |
tree | 635ccc2e53deb6bf388a338e64acfb5ae6725673 /games/glasteroids/Makefile | |
parent | 2eb10c0572c0b2a425b2a811cabe2e37332f19f0 (diff) | |
download | FreeBSD-ports-93eba540fbe2ceeb1348c559f1cdad4a1b23dfd1.zip FreeBSD-ports-93eba540fbe2ceeb1348c559f1cdad4a1b23dfd1.tar.gz |
Make this setgid games to avoid a world-writable file
Diffstat (limited to 'games/glasteroids/Makefile')
-rw-r--r-- | games/glasteroids/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/glasteroids/Makefile b/games/glasteroids/Makefile index 67345f7..7cca6c7 100644 --- a/games/glasteroids/Makefile +++ b/games/glasteroids/Makefile @@ -24,13 +24,14 @@ pre-build: @ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC} do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids + @ ${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids @ ${MKDIR} ${PREFIX}/share/glasteroids @ ${INSTALL_DATA} ${WRKSRC}/gameText.txf ${PREFIX}/share/glasteroids @ cd ${WRKSRC}; tar -cf - scores.txt textures | \ ( cd ${PREFIX}/share/glasteroids; tar -xf - ) @ ${CHMOD} a+rx ${PREFIX}/share/glasteroids/textures - @ ${CHMOD} a+rw ${PREFIX}/share/glasteroids/scores.txt + @ ${CHMOD} g+rw,a-x ${PREFIX}/share/glasteroids/scores.txt + @ ${CHOWN} root:games ${PREFIX}/share/glasteroids/scores.txt post-install: .if !defined(NOPORTDOCS) |