svn commit: r208365 - stable/8/usr.sbin/mergemaster
Norikatsu Shigemura
nork at FreeBSD.org
Thu May 20 22:12:37 UTC 2010
Author: nork
Date: Thu May 20 22:12:36 2010
New Revision: 208365
URL: http://svn.freebsd.org/changeset/base/208365
Log:
MFC r207612:
Add support run services_mkdb(8).
Approved by: dougb, imp (mentor)
Reviewed by: ume
Modified:
stable/8/usr.sbin/mergemaster/mergemaster.sh
Directory Properties:
stable/8/usr.sbin/mergemaster/ (props changed)
Modified: stable/8/usr.sbin/mergemaster/mergemaster.sh
==============================================================================
--- stable/8/usr.sbin/mergemaster/mergemaster.sh Thu May 20 21:07:58 2010 (r208364)
+++ stable/8/usr.sbin/mergemaster/mergemaster.sh Thu May 20 22:12:36 2010 (r208365)
@@ -851,6 +851,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
@@ -1280,6 +1283,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
'') ;;
*)
More information about the svn-src-stable
mailing list