From 255307f962c8c6bdd2fa4195773eef960fd6b87e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Apr 2015 18:24:59 +0200 Subject: [PATCH] runit-void: create default runlevel symlink at post-install time. --- srcpkgs/runit-void/INSTALL | 1 + srcpkgs/runit-void/template | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/runit-void/INSTALL b/srcpkgs/runit-void/INSTALL index 34c5d9f871a..15e71754803 100644 --- a/srcpkgs/runit-void/INSTALL +++ b/srcpkgs/runit-void/INSTALL @@ -8,6 +8,7 @@ post) ln -sf /etc/sv/sulogin etc/runit/runsvdir/single mkdir -p etc/runit/runsvdir/default + ln -sf default etc/runit/runsvdir/current for f in 1 2 3 4 5 6; do [ -e /etc/sv/agetty-tty${f}/down ] || ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default done diff --git a/srcpkgs/runit-void/template b/srcpkgs/runit-void/template index b717c96d5bd..1130abaebac 100644 --- a/srcpkgs/runit-void/template +++ b/srcpkgs/runit-void/template @@ -1,7 +1,7 @@ # Template file for 'runit-void' pkgname=runit-void version=20150407 -revision=1 +revision=2 wrksrc="void-runit-${version}" build_pie=yes build_style=gnu-makefile @@ -32,6 +32,7 @@ post_install() { vconf ${XBPS_SRCPKGDIR}/systemd/files/os-release vconf ${XBPS_SRCPKGDIR}/systemd/files/locale.conf # Enable services at post-install time instead. + rm -f ${DESTDIR}/etc/runit/runsvdir/current rm -rf ${DESTDIR}/etc/runit/runsvdir/default rm -rf ${DESTDIR}/etc/runit/runsvdir/single }