sys-apps/systemd: enable sysv compat code
authorMike Gilbert <floppym@gentoo.org>
Sat, 25 Apr 2020 17:32:32 +0000 (13:32 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 25 Apr 2020 17:35:05 +0000 (13:35 -0400)
This enables some useful functionality for people when swapping init
providers. Remove sysv-generator since it doesn't process OpenRC
scripts properly.

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/systemd/systemd-245-r4.ebuild [moved from sys-apps/systemd/systemd-245-r3.ebuild with 99% similarity]
sys-apps/systemd/systemd-9999.ebuild

similarity index 99%
rename from sys-apps/systemd/systemd-245-r3.ebuild
rename to sys-apps/systemd/systemd-245-r4.ebuild
index 0fd4ff855ecc9c2bb7b4bb059a9f082be96a1b52..b686b0a738b6ec02c5ee5b0ac794b5ea1a1f4a80 100644 (file)
@@ -256,8 +256,6 @@ multilib_src_configure() {
                -Dsplit-bin=true
                -Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
                -Drootlibdir="${EPREFIX}/usr/$(get_libdir)"
-               -Dsysvinit-path=
-               -Dsysvrcnd-path=
                # Avoid infinite exec recursion, bug 642724
                -Dtelinit-path="${EPREFIX}/lib/sysvinit/telinit"
                # no deps
@@ -356,6 +354,9 @@ multilib_src_install_all() {
                rm -f "${ED}${rootprefix}"/sbin/resolvconf || die
        fi
 
+       rm "${ED}"/etc/init.d/README || die
+       rm "${ED}${rootprefix}"/lib/systemd/system-generators/systemd-sysv-generator || die
+
        if ! use sysv-utils; then
                rm "${ED}${rootprefix}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die
                rm "${ED}"/usr/share/man/man1/init.1 || die
index dcf64e48a2af8cabfd082708afc8b5d4d7f27ae3..c692b2d9f5dccecdef71c51cfe78fdeaf009b9df 100644 (file)
@@ -255,8 +255,6 @@ multilib_src_configure() {
                -Dsplit-bin=true
                -Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
                -Drootlibdir="${EPREFIX}/usr/$(get_libdir)"
-               -Dsysvinit-path=
-               -Dsysvrcnd-path=
                # Avoid infinite exec recursion, bug 642724
                -Dtelinit-path="${EPREFIX}/lib/sysvinit/telinit"
                # no deps
@@ -355,6 +353,9 @@ multilib_src_install_all() {
                rm -f "${ED}${rootprefix}"/sbin/resolvconf || die
        fi
 
+       rm "${ED}"/etc/init.d/README || die
+       rm "${ED}${rootprefix}"/lib/systemd/system-generators/systemd-sysv-generator || die
+
        if ! use sysv-utils; then
                rm "${ED}${rootprefix}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die
                rm "${ED}"/usr/share/man/man1/init.1 || die