Add support run services_mkdb(8).
Approved by: dougb, imp (mentor) Reviewed by: ume MFC after: 2 weeks
This commit is contained in:
parent
64c68f1c50
commit
2db9a1171c
@ -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
|
||||
'') ;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user