# $HeadURL$ $LastChangedRevision$ ifndef FACILITY_NSCD_MK FACILITY_NSCD_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-install.mk # Variables mentioned both in pass#1 and pass#0. # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.install: bsdgames.install wbritish.install nscd.install # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) all.facility: nscd.facility nscd.facility: nscd.fix touch $@ # bsdgames contains /usr/games/primes, which is useful for working out # cache sizes, which must be prime numbers. See nscd.conf(5) for details. nscd.fix: bsdgames.install wbritish.install nscd.install # Increase all cache longetivities, increase host cache size, make nothing # persistent across restarts. set -e; \ for X in passwd group hosts services; do \ lineinfile --replace="\\tpositive-time-to-live\\t$$X.*" --text="\\tpositive-time-to-live\\t$$X\\t3600" --file=/etc/nscd.conf; \ done lineinfile --replace="\\tsuggested-size\\t\\thosts.*" --text="\\tsuggested-size\\thosts\\t9973" --file=/etc/nscd.conf # 'nscd -g' (which reports stats) won't work if 'clients' are allowed # to go directly to nscd's cache, rather than asking the nscd server. lineinfile --replace="\\tshared\\t\\t\\thosts.*" --text="\\tshared\\t\\t\\thosts\\tno" --file=/etc/nscd.conf touch $@ # Don't let bsdgames pull in wamerican. bsdgames.install: wbritish.install endif # PCMS_PASS_NUM endif # FACILITY_NSCD_MK