diff options
author | kris <kris@FreeBSD.org> | 2000-05-01 10:06:57 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-05-01 10:06:57 +0800 |
commit | 44f48e0a4290c55b306be21f138e88ff01c06274 (patch) | |
tree | b34c2af234e14d1705a0f3b87093656c8f16e579 /games/golddig/files | |
parent | 01c379311234f94a160f56dbf9a06fe4870771db (diff) | |
download | freebsd-ports-gnome-44f48e0a4290c55b306be21f138e88ff01c06274.tar.gz freebsd-ports-gnome-44f48e0a4290c55b306be21f138e88ff01c06274.tar.zst freebsd-ports-gnome-44f48e0a4290c55b306be21f138e88ff01c06274.zip |
Install setgid games, not setuid root.
Diffstat (limited to 'games/golddig/files')
-rw-r--r-- | games/golddig/files/patch-ad | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/games/golddig/files/patch-ad b/games/golddig/files/patch-ad new file mode 100644 index 000000000000..9612f4ae2402 --- /dev/null +++ b/games/golddig/files/patch-ad @@ -0,0 +1,31 @@ +--- Makefile.orig Sun Apr 30 18:59:40 2000 ++++ Makefile Sun Apr 30 19:01:22 2000 +@@ -34,23 +34,25 @@ + all: ${GAME} ${EDITOR} + + install: all +- -mkdir ${LIB} ++ -mkdir -m 0664 ${LIB} + cp ${GAME} ${EDITOR} ${BIN} + # The next line sets up the level files so that anyone can edit all of + # the levels. Remove this line to have better security. +- chmod 4755 ${BIN}/${EDITOR} ++ chmod 2755 ${BIN}/${EDITOR} ++ chown root:games ${BIN}/${EDITOR} + touch ${LIB}/scores + # Allow anyone to modify the high score file. An alternative is to + # change the mode bits of ${GAME} to be 4755. + chmod 666 ${LIB}/scores + cp goldlev* default ${LIB} ++ chown -R root:games ${LIB} + cp golddig.p ${MAN}/golddig.${MANEXT} + + update: all + cp ${GAME} ${EDITOR} ${BIN} + # The next line sets up the level files so that anyone can edit all of + # the levels. Remove this line to have better security. +- chmod 4755 ${BIN}/${EDITOR} ++ chmod 2755 ${BIN}/${EDITOR} + + clean: + rm -f *.o *~ bitmap/*~ core ${GAME} ${EDITOR} |