diff options
author | brooks <brooks@FreeBSD.org> | 2013-01-29 22:17:58 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-01-29 22:17:58 +0000 |
commit | 1a89a21cbd61e82e4c1a20a42cb30342e26ef1a6 (patch) | |
tree | 2bf04924ba8f1646aa92b928679934680e0bde69 /etc/Makefile | |
parent | a8142ddc534e9291c974ada3864a6dc5b87de4eb (diff) | |
download | FreeBSD-src-1a89a21cbd61e82e4c1a20a42cb30342e26ef1a6.zip FreeBSD-src-1a89a21cbd61e82e4c1a20a42cb30342e26ef1a6.tar.gz |
Log the addition of login.conf.db, passwd, pwd.db, and spwd.db via cat -l.
Make cat a bootstrap tool to facilitate this.
Diffstat (limited to 'etc/Makefile')
-rw-r--r-- | etc/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/etc/Makefile b/etc/Makefile index 164cbd4..dfa9953 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -180,6 +180,10 @@ CAP_MKDB_ENDIAN?= PWD_MKDB_ENDIAN?= .endif +.if defined(NO_ROOT) +METALOG.add?= cat -l >> ${METALOG} +.endif + distribution: .if !defined(DESTDIR) @echo "set DESTDIR before running \"make ${.TARGET}\"" @@ -201,6 +205,14 @@ distribution: .endif pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ ${DESTDIR}/etc/master.passwd +.if defined(NO_ROOT) + ( \ + echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel"; \ + echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \ + echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \ + echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \ + ) | ${METALOG.add} +.endif .if ${MK_ATF} != "no" ${_+_}cd ${.CURDIR}/atf; ${MAKE} install .endif @@ -336,9 +348,9 @@ distrib-dirs: test "$$d" == "/" && d=""; \ d=${DISTBASE}$$d; \ shift; \ - ${ECHO} "${MTREE_CMD} -C -f $$m | sed s#^\.#.$$d# >>" \ - "${METALOG}" ; \ - ${MTREE_CMD} -C -f $$m | sed s#^\.#.$$d# >> ${METALOG} ; \ + ${ECHO} "${MTREE_CMD} -C -f $$m | sed s#^\.#.$$d# |" \ + "${METALOG.add}" ; \ + ${MTREE_CMD} -C -f $$m | sed s#^\.#.$$d# | ${METALOG.add} ; \ done; true .endif ${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys |