diff options
-rw-r--r-- | hack/Makefile | 8 | ||||
-rw-r--r-- | larn/Makefile | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/hack/Makefile b/hack/Makefile index 3ef9f739..3abe9ec5 100644 --- a/hack/Makefile +++ b/hack/Makefile @@ -24,6 +24,14 @@ makedefs: makedefs.c ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c 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 \ ${DESTDIR}/var/games/hackdir/perm install -c -o ${BINOWN} -g ${BINGRP} -m 666 /dev/null \ diff --git a/larn/Makefile b/larn/Makefile index d0c1f21a..58d6f814 100644 --- a/larn/Makefile +++ b/larn/Makefile @@ -62,6 +62,14 @@ LDADD= -ltermcap HIDEGAME=hidegame beforeinstall: + @if [ ! -d ${DESTDIR}/usr/share/games/larn ]; then \ + /bin/rm -f ${DESTDIR}/usr/share/games/larn ; \ + mkdir -p ${DESTDIR}/usr/share/games/larn ; \ + chown root.wheel ${DESTDIR}/usr/share/games/larn ; \ + chmod 755 ${DESTDIR}/usr/share/games/larn ; \ + else \ + true ; \ + fi (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ larnmaze larnopts lfortune larn.help \ ${DESTDIR}/usr/share/games/larn) |