Move fbtab, login.conf, and motd to usr.bin/login/

Approved by:	Approved by: re (gjb), bapt (mentor), will (mentor)
Differential Revision:	https://reviews.freebsd.org/D16947
This commit is contained in:
brd 2018-08-30 15:52:03 +00:00
parent 2502ba9b74
commit d2d1433635
5 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,6 @@ SUBDIR+=sendmail
BIN1= crontab \
dhclient.conf \
disktab \
fbtab \
gettytab \
group \
hosts \
@ -24,9 +23,7 @@ BIN1= crontab \
libalias.conf \
libmap.conf \
login.access \
login.conf \
mac.conf \
motd \
netconfig \
networks \
nsswitch.conf \
@ -117,7 +114,6 @@ distribution:
cd ${.CURDIR}; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${BIN1} ${DESTDIR}/etc; \
cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
@ -127,7 +123,6 @@ distribution:
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
.if defined(NO_ROOT)
( \
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/pwd.db type=file mode=0644 uname=root gname=wheel"; \
echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \

View File

@ -3,6 +3,7 @@
.include <src.opts.mk>
CONFS= fbtab login.conf motd
PROG= login
SRCS= login.c login_fbtab.c
CFLAGS+=-DLOGALL
@ -22,4 +23,12 @@ BINMODE=4555
PRECIOUSPROG=
.endif
.include <bsd.endian.mk>
afterinstallconfig:
cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf
.if defined(NO_ROOT) && defined(METALOG)
echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel" | \
cat -l >> ${METALOG}
.endif
.include <bsd.prog.mk>