summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-16 11:31:48 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-16 11:31:48 +0000
commit2808c145dffefca7be1c42de87f010f6edaf1ed6 (patch)
tree2a2a0460b1f17747f3be512cd4db6bc27d97f99b
parentDon't install directories writable to wheel (diff)
Make this setgid games and remove a world-writable file.
Notes
Notes: svn path=/head/; revision=31683
-rw-r--r--games/cosmo/Makefile2
-rw-r--r--games/cosmo/files/patch-aa15
2 files changed, 13 insertions, 4 deletions
diff --git a/games/cosmo/Makefile b/games/cosmo/Makefile
index b41551c7bddb..31940cb14e63 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 8ed299f51f38..1d4a0ec0daa7 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