Move all sh and csh files into bin/sh/ or bin/csh/
This simplifies pkgbase by migrating these to CONFS so they are properly tagged as config files. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16708
This commit is contained in:
parent
5298a3d72f
commit
553d7626fc
@ -8,6 +8,11 @@
|
|||||||
|
|
||||||
.include <src.opts.mk>
|
.include <src.opts.mk>
|
||||||
|
|
||||||
|
CONFGROUPS= ETC ROOT
|
||||||
|
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}
|
||||||
@ -44,7 +49,8 @@ MLINKS= csh.1 tcsh.1
|
|||||||
|
|
||||||
LIBADD= termcapw crypt
|
LIBADD= termcapw crypt
|
||||||
|
|
||||||
LINKS= ${BINDIR}/csh ${BINDIR}/tcsh
|
LINKS= ${BINDIR}/csh ${BINDIR}/tcsh \
|
||||||
|
/root/.cshrc /.cshrc
|
||||||
|
|
||||||
CLEANFILES= ${GENHDRS} gethost csh.1
|
CLEANFILES= ${GENHDRS} gethost csh.1
|
||||||
|
|
||||||
@ -148,4 +154,11 @@ 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/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
|
||||||
|
pwd_mkdb -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
.include <src.opts.mk>
|
.include <src.opts.mk>
|
||||||
|
|
||||||
|
CONFS= dot.profile profile
|
||||||
|
CONFSDIR_dot.profile= /root
|
||||||
|
CONFSNAME_dot.profile= .profile
|
||||||
PACKAGE=runtime
|
PACKAGE=runtime
|
||||||
PROG= sh
|
PROG= sh
|
||||||
INSTALLFLAGS= -S
|
INSTALLFLAGS= -S
|
||||||
@ -34,6 +37,7 @@ WFORMAT=0
|
|||||||
|
|
||||||
CLEANFILES+= mknodes mksyntax
|
CLEANFILES+= mknodes mksyntax
|
||||||
CLEANFILES+= ${GENSRCS} ${GENHDRS}
|
CLEANFILES+= ${GENSRCS} ${GENHDRS}
|
||||||
|
LINKS= /root/.profile /.profile
|
||||||
|
|
||||||
build-tools: mknodes mksyntax
|
build-tools: mknodes mksyntax
|
||||||
|
|
||||||
@ -60,4 +64,7 @@ token.h: mktokens
|
|||||||
HAS_TESTS=
|
HAS_TESTS=
|
||||||
SUBDIR.${MK_TESTS}+= tests
|
SUBDIR.${MK_TESTS}+= tests
|
||||||
|
|
||||||
|
beforeinstall:
|
||||||
|
rm -f ${DESTDIR}/.profile
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
24
etc/Makefile
24
etc/Makefile
@ -33,7 +33,6 @@ BIN1= crontab \
|
|||||||
networks \
|
networks \
|
||||||
nsswitch.conf \
|
nsswitch.conf \
|
||||||
phones \
|
phones \
|
||||||
profile \
|
|
||||||
protocols \
|
protocols \
|
||||||
rc.bsdextended \
|
rc.bsdextended \
|
||||||
rc.firewall \
|
rc.firewall \
|
||||||
@ -88,10 +87,6 @@ SSL= ${SRCTOP}/crypto/openssl/apps/openssl.cnf
|
|||||||
BIN1+= rc.sendmail
|
BIN1+= rc.sendmail
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${MK_TCSH} != "no"
|
|
||||||
BIN1+= csh.cshrc csh.login csh.logout
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${MK_WIRELESS} != "no"
|
.if ${MK_WIRELESS} != "no"
|
||||||
BIN1+= regdomain.xml
|
BIN1+= regdomain.xml
|
||||||
.endif
|
.endif
|
||||||
@ -145,10 +140,6 @@ 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"; \
|
||||||
@ -190,20 +181,7 @@ 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; \
|
|
||||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
|
||||||
dot.login ${DESTDIR}/root/.login; \
|
|
||||||
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 \
|
||||||
${ETCMAIL} ${DESTDIR}/etc/mail
|
${ETCMAIL} ${DESTDIR}/etc/mail
|
||||||
|
Loading…
Reference in New Issue
Block a user