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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207612
@ -849,6 +849,9 @@ mm_install () {
|
|||||||
/etc/login.conf)
|
/etc/login.conf)
|
||||||
NEED_CAP_MKDB=yes
|
NEED_CAP_MKDB=yes
|
||||||
;;
|
;;
|
||||||
|
/etc/services)
|
||||||
|
NEED_SERVICES_MKDB=yes
|
||||||
|
;;
|
||||||
/etc/master.passwd)
|
/etc/master.passwd)
|
||||||
do_install_and_rm 600 "${1}" "${DESTDIR}${INSTALL_DIR}"
|
do_install_and_rm 600 "${1}" "${DESTDIR}${INSTALL_DIR}"
|
||||||
NEED_PWD_MKDB=yes
|
NEED_PWD_MKDB=yes
|
||||||
@ -1278,6 +1281,17 @@ case "${NEED_CAP_MKDB}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
case "${NEED_PWD_MKDB}" in
|
||||||
'') ;;
|
'') ;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user