This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/runit-void/template

55 lines
1.6 KiB
Bash

# Template file for 'runit-void'
pkgname=runit-void
version=20230413
revision=1
build_style=gnu-makefile
short_desc="Void / Evolution Linux runit scripts (partially patched by Tracker-Friendly)"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="CC0-1.0"
homepage="https://github.com/void-linux/void-runit"
distfiles="https://github.com/void-linux/void-runit/archive/refs/tags/${version}.tar.gz"
checksum=1049555eb27c370ec482ab576382ff951c2c33da6e8f5d165b3733c4a6d157cb
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-hvc0/conf
/etc/sv/agetty-hvsi0/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}/locale.conf
vinstall ${FILESDIR}/apparmor 644 /etc/default/
vinstall ${FILESDIR}/09-apparmor.sh 644 /etc/runit/core-services/
vmkdir usr/lib
# 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
rm -rfv ${DESTDIR}/etc/sv/agetty-tty1/conf
}
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
rm -rfv ${DESTDIR}/etc/sv/agetty-tty1/conf
}
}