runit-void: move to usr/bin.

This commit is contained in:
Juan RP 2015-06-02 12:30:40 +02:00
parent 3cb777e4e7
commit 6f315dcf6d
2 changed files with 10 additions and 2 deletions

View File

@ -15,5 +15,11 @@ post)
[ -e /etc/sv/agetty-tty${f}/down ] || ln -sf /etc/sv/agetty-tty$f etc/runit/runsvdir/default
done
[ -e etc/sv/udevd/run ] && ln -sf /etc/sv/udevd etc/runit/runsvdir/default
if [ -d usr/sbin -a ! -L usr/sbin ]; then
for f in init shutdown halt reboot poweroff; do
ln -sr ../bin/$f usr/sbin/$f
done
fi
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'runit-void'
pkgname=runit-void
version=20150602.1
revision=1
revision=2
wrksrc="void-runit-${version}"
build_pie=yes
build_style=gnu-makefile
@ -28,6 +28,8 @@ make_dirs="
/etc/zzz.d/resume 0755 root root"
post_install() {
vmkdir usr/bin
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
vconf ${XBPS_SRCPKGDIR}/systemd/files/hostname
vconf ${XBPS_SRCPKGDIR}/systemd/files/os-release
vconf ${XBPS_SRCPKGDIR}/systemd/files/locale.conf
@ -35,5 +37,5 @@ 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 /usr/bin/runit-init ${DESTDIR}/usr/sbin/init
ln -s /usr/bin/runit-init ${DESTDIR}/usr/bin/init
}