Add support run services_mkdb(8).

Approved by:	dougb, imp (mentor)
Reviewed by:	ume
MFC after:	2 weeks
This commit is contained in:
Norikatsu Shigemura 2010-05-04 11:25:04 +00:00
parent 64c68f1c50
commit 2db9a1171c

View File

@ -849,6 +849,9 @@ mm_install () {
/etc/login.conf)
NEED_CAP_MKDB=yes
;;
/etc/services)
NEED_SERVICES_MKDB=yes
;;
/etc/master.passwd)
do_install_and_rm 600 "${1}" "${DESTDIR}${INSTALL_DIR}"
NEED_PWD_MKDB=yes
@ -1278,6 +1281,17 @@ case "${NEED_CAP_MKDB}" in
;;
esac
case "${NEED_SERVICES_MKDB}" in
'') ;;
*)
echo ''
echo "*** You installed a services file, so make sure that you run"
echo " '/usr/sbin/services_mkdb -q -o ${DESTDIR}/var/db/services.db ${DESTDIR}/etc/services'"
echo " to rebuild your services database"
run_it_now "/usr/sbin/services_mkdb -q -o ${DESTDIR}/var/db/services.db ${DESTDIR}/etc/services"
;;
esac
case "${NEED_PWD_MKDB}" in
'') ;;
*)