53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
# Template file for 'runit-void'
|
|
pkgname=runit-void
|
|
version=20190906
|
|
revision=1
|
|
wrksrc="void-runit-${version}"
|
|
build_style=gnu-makefile
|
|
homepage="https://github.com/void-linux/void-runit"
|
|
short_desc="Void Linux runit scripts"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Public Domain"
|
|
distfiles="https://github.com/void-linux/void-runit/archive/${version}.tar.gz"
|
|
checksum=9e1027c07124ff4efad63bef74b9f1ae0659e43f9d4e7cfde996be271706570c
|
|
|
|
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
|
|
vinstall ${FILESDIR}/apparmor 644 /etc/default/
|
|
vinstall ${FILESDIR}/09-apparmor.sh 644 /etc/runit/core-services/
|
|
# 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
|
|
}
|
|
|
|
runit-void-apparmor_package() {
|
|
short_desc+=" - AppArmor initialization"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
conf_files="/etc/default/apparmor"
|
|
pkg_install() {
|
|
vmove etc/default/apparmor
|
|
vmove etc/runit/core-services/09-apparmor.sh
|
|
}
|
|
}
|