New comment by st3r4g on void-packages repository https://github.com/void-linux/void-packages/pull/29115#issuecomment-787429396 Comment: Looks like this works (tested on a fakeroot for now): ``` diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template index c495a45a3d..86b0cc58e3 100644 --- a/srcpkgs/runit-void/template +++ b/srcpkgs/runit-void/template @@ -1,7 +1,7 @@ # Template file for 'runit-void' pkgname=runit-void version=20200720 -revision=1 +revision=2 wrksrc="void-runit-${version}" build_style=gnu-makefile short_desc="Void Linux runit scripts" @@ -28,9 +28,21 @@ make_dirs=" /etc/zzz.d/suspend 0755 root root /etc/zzz.d/resume 0755 root root" +alternatives=" + void-init:init:/usr/bin/runit-init + void-init:halt:/usr/bin/halt-runit + void-init:poweroff:/usr/bin/poweroff-runit + void-init:reboot:/usr/bin/reboot-runit + void-init:shutdown:/usr/bin/shutdown-runit +" + post_install() { vmkdir usr/bin mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin + mv ${DESTDIR}/usr/bin/halt ${DESTDIR}/usr/bin/halt-runit + mv ${DESTDIR}/usr/bin/poweroff ${DESTDIR}/usr/bin/poweroff-runit + mv ${DESTDIR}/usr/bin/reboot ${DESTDIR}/usr/bin/reboot-runit + mv ${DESTDIR}/usr/bin/shutdown ${DESTDIR}/usr/bin/shutdown-runit vconf ${FILESDIR}/hostname vconf ${FILESDIR}/os-release vconf ${FILESDIR}/locale.conf @@ -40,7 +52,6 @@ post_install() { rm -f ${DESTDIR}/etc/runit/runsvdir/current rm -rf ${DESTDIR}/etc/runit/runsvdir/default rm -rf ${DESTDIR}/etc/runit/runsvdir/single - ln -s runit-init ${DESTDIR}/usr/bin/init } runit-void-apparmor_package() { ``` the files are being replaced by symlinks correctly.