mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 18:59:37 +00:00
Generate /var/db/services.db during 'make distribution' so that it is
present during new installs. Update etcupdate and mergemaster to ignore the generated file. Tested by: gjb (release build) MFC after: 1 month
This commit is contained in:
parent
ada0e25d91
commit
08c2799ac3
@ -771,7 +771,7 @@ _nmtree_itools= nmtree
|
||||
ITOOLS= [ awk cap_mkdb cat chflags chmod chown \
|
||||
date echo egrep find grep id install ${_install-info} \
|
||||
ln lockf make mkdir mtree ${_nmtree_itools} mv pwd_mkdb \
|
||||
rm sed sh sysctl test true uname wc ${_zoneinfo}
|
||||
rm sed services_mkdb sh sysctl test true uname wc ${_zoneinfo}
|
||||
|
||||
#
|
||||
# distributeworld
|
||||
|
@ -198,6 +198,8 @@ distribution:
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||
${BIN1} ${DESTDIR}/etc; \
|
||||
cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
|
||||
services_mkdb ${CAP_MKDB_ENDIAN} -o ${DESTDIR}/var/db/services.db \
|
||||
${DESTDIR}/etc/services; \
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
|
||||
${BIN2} ${DESTDIR}/etc; \
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
|
||||
|
@ -213,7 +213,8 @@ build_tree()
|
||||
|
||||
# Purge auto-generated files. Only the source files need to
|
||||
# be updated after which these files are regenerated.
|
||||
rm -f $1/etc/*.db $1/etc/passwd >&3 2>&1 || return 1
|
||||
rm -f $1/etc/*.db $1/etc/passwd $1/var/db/services.db >&3 2>&1 || \
|
||||
return 1
|
||||
|
||||
# Remove empty files. These just clutter the output of 'diff'.
|
||||
find $1 -type f -size 0 -delete >&3 2>&1 || return 1
|
||||
|
@ -699,7 +699,8 @@ case "${RERUN}" in
|
||||
# or spwd.db. Instead, we want to compare the text versions, and run *_mkdb.
|
||||
# Prompt the user to do so below, as needed.
|
||||
#
|
||||
rm -f ${TEMPROOT}/etc/*.db ${TEMPROOT}/etc/passwd
|
||||
rm -f ${TEMPROOT}/etc/*.db ${TEMPROOT}/etc/passwd \
|
||||
${TEMPROOT}/var/db/services.db
|
||||
|
||||
# We only need to compare things like freebsd.cf once
|
||||
find ${TEMPROOT}/usr/obj -type f -delete 2>/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user