From a7cc30a62955e44e02091ad8f7c1ab5d5544d3c4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 30 Jul 2018 11:41:38 -0400 Subject: pcr/runit-scripts: Adjust to work with new runit - provides/conflicts=('init'), not 'runit-init' - don't provide /etc/runit/runsvdir/current as a package file - do provide the /usr/bin/init->runit-init symlink While we're at it: - depend on generic 'udev' instead of 'eudev' - Use git sources to have a sane pkgver() function - move a sed command to prepare() - provides/conflicts=('openrc-pid1'), since it launches openrc if it's installed --- pcr/runit-scripts/runit.install | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pcr/runit-scripts/runit.install (limited to 'pcr/runit-scripts/runit.install') diff --git a/pcr/runit-scripts/runit.install b/pcr/runit-scripts/runit.install new file mode 100644 index 000000000..609fd90ae --- /dev/null +++ b/pcr/runit-scripts/runit.install @@ -0,0 +1,7 @@ +#!/hint/bash + +post_install() { + if ! test -L etc/runit/runsvdir/current; then + ln -sfvT default etc/runit/runsvdir/current + fi +} -- cgit v1.2.3