aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1993-07-20 01:23:28 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1993-07-20 01:23:28 +0000
commit64784fa9e894cd8a5801bdd1fad6b0439073f5fe (patch)
tree9a9182869f789d60ebba714ae36498755fc0d9f8 /etc
parentbb5d729efef8f01fedb08a8ad2bb91c089035857 (diff)
downloadsrc-64784fa9e894cd8a5801bdd1fad6b0439073f5fe.tar.gz
src-64784fa9e894cd8a5801bdd1fad6b0439073f5fe.zip
Since pwd_mkdb always works in /etc no matter what I added pwd.db and
spwd.db that are created from the template master.passwd to src/etc so that a build distribution can populate /etc correctly. This is a work around until a better solution can be found.
Notes
Notes: svn path=/head/; revision=163
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 83a63196fc60..5fa85a271b10 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -35,7 +35,14 @@ distribution: distrib-dirs
install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc
install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
- (cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)
+ #
+ # This is broken, it always does /etc. It IGNORES the $DESTDIR for
+ # where to write the spwd.db pwd.db files.
+ #(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)
+ #
+ # Work around for above problem.
+ install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc
+ install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc
install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
(cd ${DESTDIR}/dev; sh MAKEDEV all)