41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'runit-void'
|
|
pkgname=runit-void
|
|
version=20170907
|
|
revision=1
|
|
wrksrc="void-runit-${version}"
|
|
build_style=gnu-makefile
|
|
homepage="http://www.voidlinux.eu"
|
|
short_desc="Void Linux runit scripts"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="Public Domain"
|
|
distfiles="https://github.com/voidlinux/void-runit/archive/${version}.tar.gz"
|
|
checksum=bea7393a58894e6f582fbf2093a8a94f0ef52b3e60a7548d9e7b78c7462d4a7c
|
|
|
|
depends="virtual?awk procps-ng runit"
|
|
conf_files="
|
|
/etc/hostname
|
|
/etc/locale.conf
|
|
/etc/rc.conf
|
|
/etc/rc.local
|
|
/etc/rc.shutdown
|
|
/etc/sv/agetty-console/conf
|
|
/etc/sv/agetty-serial/conf
|
|
/etc/sv/agetty-tty1/conf"
|
|
|
|
make_dirs="
|
|
/etc/zzz.d/suspend 0755 root root
|
|
/etc/zzz.d/resume 0755 root root"
|
|
|
|
post_install() {
|
|
vmkdir usr/bin
|
|
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
|
vconf ${FILESDIR}/hostname
|
|
vconf ${FILESDIR}/os-release
|
|
vconf ${FILESDIR}/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
|
|
ln -s runit-init ${DESTDIR}/usr/bin/init
|
|
}
|