make sure directory to install stuff exists before installing
This commit is contained in:
parent
0594fb5686
commit
e76b286f06
|
@ -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 \
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue