Changeset View
Changeset View
Standalone View
Standalone View
head/etc/Makefile
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
.if !defined(DESTDIR) | .if !defined(DESTDIR) | ||||
@echo "set DESTDIR before running \"make ${.TARGET}\"" | @echo "set DESTDIR before running \"make ${.TARGET}\"" | ||||
@false | @false | ||||
.endif | .endif | ||||
cd ${.CURDIR}; \ | cd ${.CURDIR}; \ | ||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ | ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ | ||||
${BIN1} ${DESTDIR}/etc; \ | ${BIN1} ${DESTDIR}/etc; \ | ||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ | ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ | ||||
master.passwd nsmb.conf ${DESTDIR}/etc; | master.passwd ${DESTDIR}/etc; | ||||
.if ${MK_TCSH} == "no" | .if ${MK_TCSH} == "no" | ||||
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd | sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd | ||||
.endif | .endif | ||||
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd | pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd | ||||
.if defined(NO_ROOT) | .if defined(NO_ROOT) | ||||
( \ | ( \ | ||||
echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \ | echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \ | ||||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | .if ${MK_NLS} != "no" | ||||
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: ${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 \ | ${BIN1} ${BIN2} \ | ||||
${DESTDIR}${SHAREDIR}/examples/etc | ${DESTDIR}${SHAREDIR}/examples/etc | ||||
.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 |