void-packages/srcpkgs/runit-void/template
2015-04-02 13:49:59 +02:00

37 lines
1 KiB
Bash

# Template file for 'runit-void'
pkgname=runit-void
version=20150402.1
revision=2
wrksrc="void-runit-${version}"
build_pie=yes
build_style=gnu-makefile
homepage="http://www.voidlinux.eu"
short_desc="Void Linux runit scripts"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Public Domain"
distfiles="https://github.com/voidlinux/void-runit/archive/${version}.tar.gz"
checksum=a61cfaa633fbdf631dac90785e59e53f0bd0151047e4dd27271d10fd712a37c1
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() {
vconf ${XBPS_SRCPKGDIR}/systemd/files/hostname
vconf ${XBPS_SRCPKGDIR}/systemd/files/os-release
vconf ${XBPS_SRCPKGDIR}/systemd/files/locale.conf
# Enable services at post-install time instead.
rm -rf ${DESTDIR}/etc/runit/runsvdir/default
rm -rf ${DESTDIR}/etc/runit/runsvdir/single
}