diff --git a/srcpkgs/runit-void/INSTALL b/srcpkgs/runit-void/INSTALL new file mode 100644 index 0000000000..43123c016e --- /dev/null +++ b/srcpkgs/runit-void/INSTALL @@ -0,0 +1,14 @@ +case "${ACTION}" in +post) + # Enable default services: + # - agetty-tty[1-4] (default) + # - sulogin (single) + mkdir -p etc/runit/runsvdir/single + ln -sf /etc/sv/sulogin etc/runit/runsvdir/single + + mkdir -p etc/runit/runsvdir/default + for f in 1 2 3 4; do + ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default + done + ;; +esac diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template index c61b0dad5a..0b205316bf 100644 --- a/srcpkgs/runit-void/template +++ b/srcpkgs/runit-void/template @@ -1,6 +1,6 @@ # Template file for 'runit-void' pkgname=runit-void -version=20150117 +version=20150127 revision=1 build_style=gnu-makefile homepage="http://www.voidlinux.eu" @@ -22,4 +22,7 @@ post_install() { vconf ${XBPS_SRCPKGDIR}/systemd/files/hostname vconf ${XBPS_SRCPKGDIR}/systemd/files/os-release vconf ${XBPS_SRCPKGDIR}/systemd/files/locale.conf + # Enable services at post-install time instead. + rm -rf ${DESTDIR}/etc/runit/runsvdir/default + rm -rf ${DESTDIR}/etc/runit/runsvdir/single }