Revert parts of r337849 and r337857
This fixes the build and I will redo these changes as part of a future review that organizes them differently. The way I tried to do it here could be done better. Sorry for the noise. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16737
This commit is contained in:
+1
-11
@@ -8,11 +8,8 @@
|
|||||||
|
|
||||||
.include <src.opts.mk>
|
.include <src.opts.mk>
|
||||||
|
|
||||||
CONFGROUPS= ETC ROOT
|
CONFGROUPS= ETC
|
||||||
ETC= csh.cshrc csh.login csh.logout
|
ETC= csh.cshrc csh.login csh.logout
|
||||||
ROOT= dot.cshrc
|
|
||||||
ROOTDIR= /root
|
|
||||||
ROOTNAME= .cshrc
|
|
||||||
PACKAGE=runtime
|
PACKAGE=runtime
|
||||||
TCSHDIR= ${SRCTOP}/contrib/tcsh
|
TCSHDIR= ${SRCTOP}/contrib/tcsh
|
||||||
.PATH: ${TCSHDIR}
|
.PATH: ${TCSHDIR}
|
||||||
@@ -153,11 +150,4 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h ${BUILD
|
|||||||
sort >> ${.TARGET}
|
sort >> ${.TARGET}
|
||||||
@echo '#endif /* _h_tc_const */' >> ${.TARGET}
|
@echo '#endif /* _h_tc_const */' >> ${.TARGET}
|
||||||
|
|
||||||
beforeinstall:
|
|
||||||
rm -f ${DESTDIR}/.cshrc
|
|
||||||
|
|
||||||
afterinstallconfig:
|
|
||||||
sed -i "" -e 's;/bin/sh;/bin/csh;' ${DESTDIR}/etc/master.passwd
|
|
||||||
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|||||||
+1
-9
@@ -3,9 +3,7 @@
|
|||||||
|
|
||||||
.include <src.opts.mk>
|
.include <src.opts.mk>
|
||||||
|
|
||||||
CONFS= dot.profile profile
|
CONFS= profile
|
||||||
CONFSDIR_dot.profile= /root
|
|
||||||
CONFSNAME_dot.profile= .profile
|
|
||||||
PACKAGE=runtime
|
PACKAGE=runtime
|
||||||
PROG= sh
|
PROG= sh
|
||||||
INSTALLFLAGS= -S
|
INSTALLFLAGS= -S
|
||||||
@@ -63,10 +61,4 @@ token.h: mktokens
|
|||||||
HAS_TESTS=
|
HAS_TESTS=
|
||||||
SUBDIR.${MK_TESTS}+= tests
|
SUBDIR.${MK_TESTS}+= tests
|
||||||
|
|
||||||
beforeinstall:
|
|
||||||
rm -f ${DESTDIR}/.profile
|
|
||||||
|
|
||||||
afterinstallconfig:
|
|
||||||
${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|||||||
@@ -135,6 +135,10 @@ distribution:
|
|||||||
${DESTDIR}/etc/services;
|
${DESTDIR}/etc/services;
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${MK_TCSH} == "no"
|
||||||
|
sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
|
||||||
|
.endif
|
||||||
|
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
|
||||||
.if defined(NO_ROOT)
|
.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"; \
|
||||||
@@ -172,6 +176,18 @@ distribution:
|
|||||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
dot.k5login ${DESTDIR}/root/.k5login;
|
dot.k5login ${DESTDIR}/root/.k5login;
|
||||||
.endif
|
.endif
|
||||||
|
cd ${.CURDIR}/root; \
|
||||||
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
|
dot.profile ${DESTDIR}/root/.profile; \
|
||||||
|
rm -f ${DESTDIR}/.profile; \
|
||||||
|
${INSTALL_LINK} ${DESTDIR}/root/.profile ${DESTDIR}/.profile
|
||||||
|
.if ${MK_TCSH} != "no"
|
||||||
|
cd ${.CURDIR}/root; \
|
||||||
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
|
dot.cshrc ${DESTDIR}/root/.cshrc; \
|
||||||
|
rm -f ${DESTDIR}/.cshrc; \
|
||||||
|
${INSTALL_LINK} ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${MK_MAIL} != "no"
|
.if ${MK_MAIL} != "no"
|
||||||
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
root::0:0::0:0:Charlie &:/root:/bin/sh
|
root::0:0::0:0:Charlie &:/root:/bin/csh
|
||||||
toor:*:0:0::0:0:Bourne-again Superuser:/root:
|
toor:*:0:0::0:0:Bourne-again Superuser:/root:
|
||||||
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
|
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
|
||||||
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
|
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
|
||||||
|
|||||||
Reference in New Issue
Block a user