1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Make this setgid games to avoid a world-writable file

This commit is contained in:
Kris Kennaway 2000-08-17 06:25:03 +00:00
parent 4e04ff0f8a
commit 64c614c46c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31697
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -22,12 +22,13 @@ MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
MAN6= gtkballs.6
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gtkballs ${PREFIX}/bin
${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/gtkballs ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/gtkballs.6 ${PREFIX}/man/man6
@${MKDIR} ${PREFIX}/share/gtkballs
${INSTALL_DATA} ${WRKSRC}/gtkballs-data/*.xpm ${PREFIX}/share/gtkballs
${INSTALL_DATA} ${WRKSRC}/score ${PREFIX}/share/gtkballs/score
@${CHMOD} a+rw ${PREFIX}/share/gtkballs/score
@${CHMOD} g+rw ${PREFIX}/share/gtkballs/score
@${CHOWN} root:games ${PREFIX}/share/gtkballs/score
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/gtkballs
.for file in README README.russian TODO