Drop rc_sys definition from build system
This commit is contained in:
parent
04db6c3d39
commit
32c506a4c8
15
README
15
README
@ -12,7 +12,6 @@ LIBNAME=lib64
|
||||
DESTDIR=/tmp/openrc-image
|
||||
MKPAM=pam
|
||||
MKPKGCONFIG=no
|
||||
MKRCSYS=prefix
|
||||
MKSELINUX=yes
|
||||
MKSTATICLIBS=no
|
||||
MKTERMCAP=ncurses
|
||||
@ -34,20 +33,6 @@ LOCAL_PREFIX should be set when to where user maintained packages are.
|
||||
Only set LOCAL_PREFIX if different from PKG_PREFIX.
|
||||
PREFIX should be set when OpenRC is not installed to /.
|
||||
|
||||
MKRCSYS should be set only if you need to specify a default system
|
||||
subtype. The subtype should be set to match the type of environment the
|
||||
file is installed into, not the virtualization the environment is
|
||||
capable of handling. Here is a list of subtypes and their meanings.
|
||||
|
||||
jail FreeBSD jail
|
||||
lxc Linux container
|
||||
openvz Linux OpenVZ
|
||||
prefix Linux and *BSD prefix system
|
||||
uml UsermodeLinux
|
||||
vserver Linux vserver
|
||||
xen0 Linux and NetBSD xen0 Domain
|
||||
xenU Linux and NetBSD xenU Domain
|
||||
|
||||
If any of the following files exist then we do not overwrite them
|
||||
/etc/devd.conf
|
||||
/etc/rc
|
||||
|
@ -24,14 +24,5 @@ SED_EXTRA= ${SED_EXTRA-${OS}}
|
||||
|
||||
include ${MK}/scripts.mk
|
||||
|
||||
# We can't use "ifndef" here because that treats set-but-empty
|
||||
# as not-set which is not what we want
|
||||
MKRCSYS ?= automagicplease
|
||||
ifeq (${MKRCSYS},automagicplease)
|
||||
# If the user isn't picking a default, then have the
|
||||
# config go with runtime automagic detection #357247
|
||||
rc.conf: SED_EXTRA += -e '/^rc_sys=""/s:^:\#:'
|
||||
MKRCSYS =
|
||||
endif
|
||||
rc.conf: rc.conf.in rc.conf.${OS}
|
||||
${SED} ${SED_REPLACE} ${SED_EXTRA} $^ > $@
|
||||
|
@ -10,5 +10,5 @@
|
||||
#
|
||||
# This should be set to the value representing the environment this file is
|
||||
# PRESENTLY in, not the virtualization the environment is capable of.
|
||||
rc_sys="@RC_SYS_DEFAULT@"
|
||||
#rc_sys=""
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#
|
||||
# This should be set to the value representing the environment this file is
|
||||
# PRESENTLY in, not the virtualization the environment is capable of.
|
||||
rc_sys="@RC_SYS_DEFAULT@"
|
||||
#rc_sys=""
|
||||
|
||||
# This is the number of tty's used in most of the rc-scripts (like
|
||||
# consolefont, numlock, etc ...)
|
||||
|
@ -11,5 +11,5 @@
|
||||
#
|
||||
# This should be set to the value representing the environment this file is
|
||||
# PRESENTLY in, not the virtualization the environment is capable of.
|
||||
rc_sys="@RC_SYS_DEFAULT@"
|
||||
#rc_sys=""
|
||||
|
||||
|
@ -12,7 +12,7 @@ _PKG_SED:= $(shell ${_PKG_SED_SH})
|
||||
_LCL_SED_SH= if test "${PREFIX}" = "${LOCAL_PREFIX}"; then echo "-e 's:@LOCAL_PREFIX@::g'"; else echo "-e 's:@LOCAL_PREFIX@:${LOCAL_PREFIX}:g'"; fi
|
||||
_LCL_SED:= $(shell ${_LCL_SED_SH})
|
||||
|
||||
SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' -e 's:@RC_SYS_DEFAULT@:${MKRCSYS}:g' ${_PKG_SED} ${_LCL_SED}
|
||||
SED_REPLACE= -e 's:@SHELL@:${SH}:g' -e 's:@LIB@:${LIBNAME}:g' -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g' -e 's:@PREFIX@:${PREFIX}:g' ${_PKG_SED} ${_LCL_SED}
|
||||
|
||||
# Tweak our shell scripts
|
||||
%.sh: %.sh.in
|
||||
|
Loading…
Reference in New Issue
Block a user