Finishing renaming of cached into nscd. etc/rc.d and usr.sbin/Makefile

updated. Note added to UPDATING.

Approved by:	re (kensmith, bmah), brooks (mentor)
This commit is contained in:
Michael Bushkov 2007-09-28 10:38:08 +00:00
parent 69041a97a0
commit c97fe77db3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172377
5 changed files with 35 additions and 8 deletions

View File

@ -21,6 +21,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 7.x IS SLOW:
developers choose to disable these features on build machines
to maximize performance.
20070928:
The caching daemon (cached) was renamed to nscd. nscd.conf
configuration file should be used instead of cached.conf and
nscd_enable, nscd_pidfile and nscd_flags options should be used
instead of cached_enable, cached_pidfile and cached_flags in
rc.conf.
20070704:
The new IPsec code is now compiled in using the IPSEC option. The
IPSEC option now requires "device crypto" be defined in your kernel

View File

@ -495,7 +495,6 @@ sendmail_rebuild_aliases="NO" # Run newaliases if necessary (YES/NO).
auditd_enable="NO" # Run the audit daemon.
auditd_program="/usr/sbin/auditd" # Path to the audit daemon.
auditd_flags="" # Which options to pass to the audit daemon.
cached_enable="NO" # Run the nsswitch caching daemon.
cron_enable="YES" # Run the periodic job daemon.
cron_program="/usr/sbin/cron" # Which cron executable to run (if enabled).
cron_dst="YES" # Handle DST transitions intelligently (YES/NO)
@ -503,6 +502,7 @@ cron_flags="" # Which options to pass to the cron daemon.
lpd_enable="NO" # Run the line printer daemon.
lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different one.
lpd_flags="" # Flags to lpd (if enabled).
nscd_enable="NO" # Run the nsswitch caching daemon.
chkprintcap_enable="NO" # Run chkprintcap(8) before running lpd.
chkprintcap_flags="-d" # Create missing directories by default.
dumpdev="AUTO" # Device to crashdump to (device name, AUTO, or NO).

View File

@ -48,7 +48,7 @@ FILES+= sshd
.endif
.if ${MK_NS_CACHING} != "no"
FILES+= cached
FILES+= nscd
.endif
FILESDIR= /etc/rc.d

View File

@ -8,7 +8,7 @@
# BEFORE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable cached:
# Add the following lines to /etc/rc.conf to enable nscd:
#
# nscd_enable="YES"
#
@ -24,9 +24,29 @@ command=/usr/sbin/nscd
extra_commands="flush"
flush_cmd="${command} -I all"
nscd_enable=${nscd_enable:-"NO"}
nscd_pidfile=${nscd_pidfile:-"/var/run/nscd.pid"}
nscd_flags=${nscd_flags:-""}
# usage: _nscd_set_option <option name> <default value>
#
_nscd_set_option() {
local _optname _defoptval _nscd_opt_val _cached_opt_val
_optname=$1
_defoptval=$2
_nscd_opt_val=$(eval "echo \$nscd_${_optname}")
_cached_opt_val=$(eval "echo \$cached_${_optname}")
if [ -n "$_cached_opt_val" -a "$_nscd_opt_val" != "$_defoptval" ]; then
warn "You should use nscd_${_optname} instead of" \
"cached_${_optname}"
setvar "nscd_${_optname}" "$_cached_opt_val"
else
setvar "nscd_${_optname}" "${_nscd_opt_val:-$_defoptval}"
fi
}
load_rc_config $name
_nscd_set_option "enable" "NO"
_nscd_set_option "pidfile" "/var/run/nscd.pid"
_nscd_set_option "flags" ""
run_rc_command "$1"

View File

@ -27,7 +27,6 @@ SUBDIR= ac \
bsnmpd \
${_btxld} \
burncd \
${_cached} \
cdcontrol \
chkgrp \
chown \
@ -109,6 +108,7 @@ SUBDIR= ac \
ngctl \
nghook \
nologin \
${_nscd} \
ntp \
${_nvram} \
${_ofwdump} \
@ -275,7 +275,7 @@ _lpr= lpr
.if ${MK_NS_CACHING} != "no"
.if ${MK_LIBTHR} != "no" || \
(${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no")
_cached= cached
_nscd= nscd
.endif
.endif