restore the init symlink for sysvinit mode

This symlink got lost in the transition to meson.

X-Gentoo-Bug: 850754
X-Gentoo-Bug-URL: https://bugs.gentoo.org/850754
This commit is contained in:
William Hubbs 2022-06-10 10:28:45 -05:00
parent d2b3144070
commit 107b23819d
2 changed files with 10 additions and 3 deletions

View File

@ -226,4 +226,6 @@ meson.add_install_script('tools/meson_runlevels.sh',
get_option('sysvinit') ? 'yes' : 'no') get_option('sysvinit') ? 'yes' : 'no')
meson.add_install_script('tools/meson_final.sh', meson.add_install_script('tools/meson_final.sh',
rc_libexecdir, rc_libexecdir,
os) sbindir,
os,
get_option('sysvinit') ? 'yes' : 'no')

View File

@ -4,10 +4,15 @@ set -e
set -u set -u
rc_libexecdir="$1" rc_libexecdir="$1"
os="$2" sbindir="$2"
os="$3"
sysvinit="$4"
if [ ${os} != Linux ]; then if [ "${os}" != Linux ]; then
install -d "${DESTDIR}/${rc_libexecdir}"/init.d install -d "${DESTDIR}/${rc_libexecdir}"/init.d
fi fi
install -d "${DESTDIR}/${rc_libexecdir}"/tmp install -d "${DESTDIR}/${rc_libexecdir}"/tmp
install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}" install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}"
if [ "${os}" = Linux ] && [ "${sysvinit}" = yes ]; then
ln -s openrc-init "${DESTDIR}/${sbindir}"/init
fi