Destination = $(DSTROOT)/private/etc
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/Common.make
SubDirs =
install::
$(_v) for subdir in $(SubDirs); do \
(cd "$$subdir" && $(MAKE) $@ Destination="$(Destination)/$$subdir"); \
done
install:: install-sysconf install-files
install-sysconf:
@echo "Installing $(Destination)"
$(_v) $(INSTALL_DIRECTORY) "$(Destination)"
$(_v) $(INSTALL_FILE) -c -m 644 afpovertcp.cfg "$(Destination)/afpovertcp.cfg"
$(_v) $(INSTALL_FILE) -c -m 644 /dev/null "$(Destination)/find.codes"
$(_v) $(INSTALL_FILE) -c -m 644 ftpusers "$(Destination)/ftpusers"
$(_v) $(INSTALL_FILE) -c -m 644 fstab.hd "$(Destination)/fstab.hd"
$(_v) $(INSTALL_FILE) -c -m 644 gettytab "$(Destination)/gettytab"
$(_v) $(INSTALL_FILE) -c -m 644 /dev/null "$(Destination)/hosts.lpd"
$(_v) $(INSTALL_FILE) -c -m 644 /dev/null "$(Destination)/hosts.equiv"
$(_v) $(INSTALL_FILE) -c -m 644 kern_loader.conf "$(Destination)/kern_loader.conf"
$(_v) $(INSTALL_FILE) -c -m 644 motd "$(Destination)/motd"
$(_v) $(INSTALL_FILE) -c -m 644 /dev/null "$(Destination)/rmtab"
$(_v) $(INSTALL_FILE) -c -m 644 shells "$(Destination)/shells"
$(_v) $(INSTALL_FILE) -c -m 644 syslog.conf "$(Destination)/syslog.conf"
ifeq "$(RC_RELEASE)" "Darwin"
$(_v) cat ttys | sed -e 's/^console/ $(_v) chmod 644 "$(Destination)/ttys" ; chown root:wheel "$(Destination)/ttys"
else
$(_v) $(INSTALL_FILE) -c -m 644 ttys "$(Destination)/ttys"
endif
$(_v) $(INSTALL_FILE) -c -m 644 /dev/null "$(Destination)/xtab"
$(_v) $(LN) -s /var/run/resolv.conf "$(Destination)"
install-files:
$(_v) $(INSTALL_FILE) -c -m 644 group "$(Destination)/group"
$(_v) $(INSTALL_FILE) -c -m 644 hosts "$(Destination)/hosts"
$(_v) $(INSTALL_FILE) -c -m 600 master.passwd "$(Destination)/master.passwd"
$(_v) $(INSTALL_FILE) -c -m 644 networks "$(Destination)/networks"
$(_v) $(INSTALL_FILE) -c -m 644 passwd "$(Destination)/passwd"
$(_v) $(INSTALL_FILE) -c -m 644 protocols "$(Destination)/protocols"
$(_v) $(INSTALL_FILE) -c -m 644 rpc "$(Destination)/rpc"
$(_v) $(INSTALL_FILE) -c -m 644 services "$(Destination)/services"