Changeset View
Changeset View
Standalone View
Standalone View
head/etc/Makefile
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 | # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
FILESGROUPS= FILES | FILESGROUPS= FILES | ||||
# No need as it is empty and just causes rebuilds since this file does so much. | # No need as it is empty and just causes rebuilds since this file does so much. | ||||
UPDATE_DEPENDFILE= no | UPDATE_DEPENDFILE= no | ||||
.if ${MK_SENDMAIL} != "no" | .if ${MK_SENDMAIL} != "no" | ||||
SUBDIR+=sendmail | SUBDIR+=sendmail | ||||
.endif | .endif | ||||
BIN1= crontab \ | BIN1= crontab \ | ||||
devfs.conf \ | |||||
dhclient.conf \ | dhclient.conf \ | ||||
disktab \ | disktab \ | ||||
fbtab \ | fbtab \ | ||||
gettytab \ | gettytab \ | ||||
group \ | group \ | ||||
hosts \ | hosts \ | ||||
hosts.allow \ | hosts.allow \ | ||||
hosts.equiv \ | hosts.equiv \ | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | .if defined(NO_ROOT) | ||||
( \ | ( \ | ||||
echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel"; \ | echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel"; \ | ||||
echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \ | echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \ | ||||
echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \ | echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \ | ||||
echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \ | echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \ | ||||
echo "./var/db/services.db type=file mode=0644 uname=root gname=wheel"; \ | echo "./var/db/services.db type=file mode=0644 uname=root gname=wheel"; \ | ||||
) | ${METALOG.add} | ) | ${METALOG.add} | ||||
.endif | .endif | ||||
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install | |||||
${_+_}cd ${.CURDIR}/gss; ${MAKE} install | ${_+_}cd ${.CURDIR}/gss; ${MAKE} install | ||||
${_+_}cd ${.CURDIR}/mtree; ${MAKE} install | ${_+_}cd ${.CURDIR}/mtree; ${MAKE} install | ||||
${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap | ${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap | ||||
${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt | ${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt | ||||
${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install | ${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install | ||||
.if ${MK_UNBOUND} != "no" | .if ${MK_UNBOUND} != "no" | ||||
if [ ! -e ${DESTDIR}/etc/unbound ]; then \ | if [ ! -e ${DESTDIR}/etc/unbound ]; then \ | ||||
${INSTALL_SYMLINK} ../var/unbound ${DESTDIR}/etc/unbound; \ | ${INSTALL_SYMLINK} ../var/unbound ${DESTDIR}/etc/unbound; \ | ||||
▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | |||||
.if ${MK_NLS} != "no" | .if ${MK_NLS} != "no" | ||||
set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ | set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ | ||||
while [ $$# -gt 0 ] ; do \ | while [ $$# -gt 0 ] ; do \ | ||||
${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/nls/$$1"; \ | ${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/nls/$$1"; \ | ||||
shift; shift; \ | shift; shift; \ | ||||
done | done | ||||
.endif | .endif | ||||
etc-examples-install: ${META_DEPS} | etc-examples: ${META_DEPS} | ||||
cd ${.CURDIR}; ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 \ | cd ${.CURDIR}; ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 \ | ||||
${BIN1} ${BIN2} nsmb.conf opieaccess \ | ${BIN1} ${BIN2} nsmb.conf opieaccess \ | ||||
${DESTDIR}${SHAREDIR}/examples/etc | ${DESTDIR}${SHAREDIR}/examples/etc | ||||
etc-examples: etc-examples-install | |||||
${_+_}cd ${.CURDIR}/defaults; \ | |||||
${MAKE} ${${MK_STAGING} == "yes":?all:install} \ | |||||
DESTDIR=${DESTDIR}${SHAREDIR}/examples | |||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> | ||||
.if ${MK_INSTALL_AS_USER} == "yes" && ${_uid} != 0 | .if ${MK_INSTALL_AS_USER} == "yes" && ${_uid} != 0 | ||||
MTREE_FILTER= sed -e 's,\([gu]\)name=,\1id=,g' \ | MTREE_FILTER= sed -e 's,\([gu]\)name=,\1id=,g' \ | ||||
-e 's,\(uid=\)[^ ]* ,\1${_uid} ,' \ | -e 's,\(uid=\)[^ ]* ,\1${_uid} ,' \ | ||||
-e 's,\(gid=\)[^ ]* ,\1${_gid} ,' \ | -e 's,\(gid=\)[^ ]* ,\1${_gid} ,' \ | ||||
-e 's,\(uid=\)[^ ]*$$,\1${_uid},' \ | -e 's,\(uid=\)[^ ]*$$,\1${_uid},' \ | ||||
-e 's,\(gid=\)[^ ]*$$,\1${_gid},' | -e 's,\(gid=\)[^ ]*$$,\1${_gid},' | ||||
.else | .else | ||||
MTREE_FILTER= cat | MTREE_FILTER= cat | ||||
.if !defined(NO_FSCHG) | .if !defined(NO_FSCHG) | ||||
MTREE_FSCHG= -i | MTREE_FSCHG= -i | ||||
.endif | .endif | ||||
.endif | .endif |