diff options
author | kris <kris@FreeBSD.org> | 2000-08-16 11:31:48 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-08-16 11:31:48 +0000 |
commit | 4bcfbf50f5a0c96eaf232eeadaa40c8be091487a (patch) | |
tree | 514cb27a07336457458052cfe5c849d55645b3bf | |
parent | 7821894dc3bf52ffc39b83d9cb924057da908392 (diff) | |
download | FreeBSD-ports-4bcfbf50f5a0c96eaf232eeadaa40c8be091487a.zip FreeBSD-ports-4bcfbf50f5a0c96eaf232eeadaa40c8be091487a.tar.gz |
Make this setgid games and remove a world-writable file.
-rw-r--r-- | games/cosmo/Makefile | 2 | ||||
-rw-r--r-- | games/cosmo/files/patch-aa | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/games/cosmo/Makefile b/games/cosmo/Makefile index b41551c..31940cb 100644 --- a/games/cosmo/Makefile +++ b/games/cosmo/Makefile @@ -26,5 +26,7 @@ NO_INSTALL_MANPAGES= yes post-install: ${INSTALL_DATA} ${WRKSRC}/cosmorc ${PREFIX}/lib/X11/cosmo ${INSTALL_DATA} ${_DISTDIR}/moon.tif.gz ${PREFIX}/lib/X11/cosmo + ${CHOWN} root:games ${PREFIX}/bin/cosmo + ${CHMOD} g+s ${PREFIX}/bin/cosmo .include <bsd.port.mk> diff --git a/games/cosmo/files/patch-aa b/games/cosmo/files/patch-aa index 8ed299f..1d4a0ec 100644 --- a/games/cosmo/files/patch-aa +++ b/games/cosmo/files/patch-aa @@ -1,9 +1,10 @@ ---- Imakefile.orig Sat May 11 16:06:00 1996 -+++ Imakefile Sat Jan 15 04:54:08 2000 -@@ -1,14 +1,14 @@ +--- Imakefile.orig Sat May 11 00:06:00 1996 ++++ Imakefile Wed Aug 16 04:24:28 2000 +@@ -1,14 +1,15 @@ -BINDIR = /usr/local/games +XCOMM BINDIR = /usr/local/games PAD = # -DUSE_PAD ++CHOWN = /usr/sbin/chown CHMOD = /bin/chmod MKDIR = /bin/mkdir @@ -19,7 +20,7 @@ LOCAL_LIBRARIES = $(XLIB) TAR = /bin/tar -@@ -27,7 +27,7 @@ +@@ -27,11 +28,12 @@ install:: @if [ -d $(DATADIR) ]; then echo cosmodir exists, not created.;\ @@ -28,3 +29,9 @@ $(CHMOD) 711 $(DATADIR) @if [ -f $(DATAFILE) ]; then echo ranking file exists, not created.;\ else echo > $(DATAFILE); fi +- $(CHMOD) 666 $(DATAFILE) ++ $(CHOWN) root:games $(DATAFILE) ++ $(CHMOD) 664 $(DATAFILE) + + pack:: + $(TAR) cfz cosmo.tgz *.c *.h Imakefile chara.dat *.doc |