Move the rc framework out of sbin/init into libexec/rc.

The reasons for this are forward looking to pkgbase:
 * /sbin/init is a special binary; try not to replace it with
   every package update because an rc script was touched.
   (a follow-up commit will make init its own package)
 * having rc in its own place will allow more easy replacement
   of the rc framework with alternatives, such as openrc.

Discussed with:		brd (during BSDCam), kmoore
Requested by:		cem, bz
PR:			231522
Approved by:		re (gjb)
This commit is contained in:
Bjoern A. Zeeb 2018-10-17 16:49:11 +00:00
parent 6f65800cbb
commit 0696600c41
180 changed files with 19 additions and 11 deletions

View File

@ -13,6 +13,7 @@ SUBDIR= ${_atf} \
${_makewhatis.local} \
${_mknetid} \
${_pppoed} \
rc \
revnetgroup \
${_rlogind} \
rpc.rquotad \

16
libexec/rc/Makefile Normal file
View File

@ -0,0 +1,16 @@
# $FreeBSD$
CONFGROUPS= CONFETC CONFETCEXEC CONFETCDEFAULTS
CONFETCDIR= /etc
CONFETC= network.subr rc rc.initdiskless rc.subr rc.shutdown
CONFETCMODE= 644
CONFETCEXEC= netstart pccard_ether rc.resume rc.suspend
CONFETCEXECDIR= /etc
CONFETCEXECMODE= 755
CONFETCDEFAULTSDIR= /etc/defaults
CONFETCDEFAULTS= rc.conf
PACKAGE=rc
SUBDIR+= rc.d
.include <bsd.prog.mk>

View File

@ -4,6 +4,7 @@
CONFDIR= /etc/rc.d
CONFGROUPS= CONFS
PACKAGE=rc
CONFS= DAEMON \
FILESYSTEMS \

Some files were not shown because too many files have changed in this diff Show More