Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Synthetically generate metadata entries for passwd, spwd...
details: https://anonhg.NetBSD.org/src/rev/06b3e201006e
branches: trunk
changeset: 518114:06b3e201006e
user: perry <perry%NetBSD.org@localhost>
date: Sat Nov 24 21:41:12 2001 +0000
description:
Synthetically generate metadata entries for passwd, spwd.db, pwd.db.
XXX Note that it can easily be argued that these should be generated by
the installer, not shipped in the tar files, but that's for another day.
diffstat:
etc/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 4dce27005a86 -r 06b3e201006e etc/Makefile
--- a/etc/Makefile Sat Nov 24 21:39:20 2001 +0000
+++ b/etc/Makefile Sat Nov 24 21:41:12 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.193 2001/11/20 16:07:59 thorpej Exp $
+# $NetBSD: Makefile,v 1.194 2001/11/24 21:41:12 perry Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@@ -175,6 +175,14 @@
${DESTDIR}/etc
pwd_mkdb -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ \
${DESTDIR}/etc/master.passwd
+.if defined(UNPRIVED)
+ echo "${DESTDIR}/etc/passwd type=file mode=0644 uname=root gname=wheel" \
+ | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+ echo "${DESTDIR}/etc/pwd.db type=file mode=0644 uname=root gname=wheel" \
+ | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+ echo "${DESTDIR}/etc/spwd.db type=file mode=0600 uname=root gname=wheel" \
+ | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+.endif
${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 minfree \
Home |
Main Index |
Thread Index |
Old Index