install mtree always

okay deraadt@
This commit is contained in:
espie 2010-03-23 21:31:02 +00:00
parent 02fec6424a
commit fcf0571868
2 changed files with 15 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.114 2005/12/02 01:17:20 deraadt Exp $
# $OpenBSD: Makefile,v 1.115 2010/03/23 21:31:02 espie Exp $
#
# For more information on building in tricky environments, please see
@ -59,6 +59,7 @@ includes:
beforeinstall:
cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs
cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} install-mtree
cd ${.CURDIR}/include && exec ${MAKE} includes
afterinstall:

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.286 2010/02/22 15:15:54 claudio Exp $
# $OpenBSD: Makefile,v 1.287 2010/03/23 21:31:02 espie Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
MTREEDIR= /etc/mtree
NOOBJ=
@ -49,6 +50,16 @@ GZIPEXT=
all clean cleandir depend etc install lint:
install-mtree:
${INSTALL} -c -o root -g wheel -m 600 ${.CURDIR}/mtree/special \
${DESTDIR}${MTREEDIR}
${INSTALL} -c -o root -g wheel -m 444 ${.CURDIR}/mtree/4.4BSD.dist \
${DESTDIR}${MTREEDIR}
${INSTALL} -c -o root -g wheel -m 444 ${.CURDIR}/mtree/BSD.local.dist \
${DESTDIR}${MTREEDIR}
${INSTALL} -c -o root -g wheel -m 444 ${.CURDIR}/mtree/BSD.x11.dist \
${DESTDIR}${MTREEDIR}
.ifndef DESTDIR
distribution-etc-root-var distribution distrib-dirs release:
@echo setenv DESTDIR before doing that!
@ -129,15 +140,6 @@ distribution-etc-root-var: distrib-dirs
cd amd; \
${INSTALL} -c -o root -g wheel -m 644 master.sample \
${DESTDIR}/etc/amd
cd mtree; \
${INSTALL} -c -o root -g wheel -m 600 special \
${DESTDIR}/etc/mtree; \
${INSTALL} -c -o root -g wheel -m 444 4.4BSD.dist \
${DESTDIR}/etc/mtree; \
${INSTALL} -c -o root -g wheel -m 444 BSD.local.dist \
${DESTDIR}/etc/mtree; \
${INSTALL} -c -o root -g wheel -m 444 BSD.x11.dist \
${DESTDIR}/etc/mtree
cd ppp; \
${INSTALL} -c -o root -g wheel -m 600 chap-secrets \
${DESTDIR}/etc/ppp; \
@ -307,7 +309,7 @@ update-moduli:
) > moduli
.PHONY: distribution-etc-root-var distribution distrib-dirs \
release allarchs kernels release-sets m4
release allarchs kernels release-sets m4 install-mtree
SUBDIR+= etc.alpha etc.amd64 etc.armish etc.aviion etc.hp300 etc.hppa
SUBDIR+= etc.hppa64 etc.i386 etc.landisk etc.loongson etc.luna88k