make sure directory for calendar files exists before installing them
This commit is contained in:
parent
303867a1bf
commit
dc9f23f104
|
@ -3,6 +3,14 @@
|
|||
PROG= calendar
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}/usr/share/calendar ]; then \
|
||||
/bin/rm -f ${DESTDIR}/usr/share/calendar ; \
|
||||
mkdir -p ${DESTDIR}/usr/share/calendar ; \
|
||||
chown root.wheel ${DESTDIR}/usr/share/calendar ; \
|
||||
chmod 755 ${DESTDIR}/usr/share/calendar ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${.CURDIR}/calendars/calendar.* ${DESTDIR}/usr/share/calendar
|
||||
|
||||
|
|
Loading…
Reference in New Issue