diff options
author | mycroft <mycroft@NetBSD.org> | 1993-12-02 03:11:32 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1993-12-02 03:11:32 +0000 |
commit | 671aa2b3749751c2245c45f90106a73ee7392be5 (patch) | |
tree | f95bbfaa7fbc2431597e52d8007261a9da131227 /hack/Makefile | |
parent | 1c12287131d94d97a43442c4e787449541bbf342 (diff) | |
download | bsdgames-darwin-671aa2b3749751c2245c45f90106a73ee7392be5.tar.gz bsdgames-darwin-671aa2b3749751c2245c45f90106a73ee7392be5.tar.zst bsdgames-darwin-671aa2b3749751c2245c45f90106a73ee7392be5.zip |
From: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
Fix various permissions problems in /var/games/hackdir, and use `install -d'.
Diffstat (limited to 'hack/Makefile')
-rw-r--r-- | hack/Makefile | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/hack/Makefile b/hack/Makefile index 7d9101f5..43488b81 100644 --- a/hack/Makefile +++ b/hack/Makefile @@ -1,5 +1,5 @@ # from: @(#)Makefile 5.10 (Berkeley) 12/8/90 -# $Id: Makefile,v 1.10 1993/11/08 04:45:28 cgd Exp $ +# $Id: Makefile,v 1.11 1993/12/02 03:11:32 mycroft Exp $ PROG= hack CFLAGS+=-I. @@ -30,17 +30,11 @@ makedefs: makedefs.c ${CC} ${CFLAGS} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c ${LDADD} beforeinstall: - @if [ ! -d ${DESTDIR}/var/games/hackdir ]; then \ - /bin/rm -f ${DESTDIR}/var/games/hackdir ; \ - mkdir -p ${DESTDIR}/var/games/hackdir ; \ - chown games.games ${DESTDIR}/var/games/hackdir ; \ - chmod 755 ${DESTDIR}/var/games/hackdir ; \ - else \ - true ; \ - fi - install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \ + install -d -m 755 -o games -g games ${DESTDIR}/var/games/hackdir + install -d -m 700 -o games -g games ${DESTDIR}/var/games/hackdir/save + install -c -o games -g games -m 600 /dev/null \ ${DESTDIR}/var/games/hackdir/perm - install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \ + install -c -o games -g games -m 600 /dev/null \ ${DESTDIR}/var/games/hackdir/record install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/help \ ${.CURDIR}/hh ${.CURDIR}/data ${DESTDIR}/var/games/hackdir |