aports/openrc/APKBUILD-openrc.common

35 lines
736 B
Plaintext

pkgname=redxen-openrc-$_svcname
url="https://git.redxen.eu/RedXen/aports"
arch="noarch"
license="none"
depends="openrc redxen-config-$_svcname"
pkgdesc="RedXen service config for $_svcname"
source="runfile conffile"
options="!check"
builddir="$srcdir"
package_rc_level() {
mkdir -p "$pkgdir"/etc/runlevels/$_grpname
ln -s /etc/init.d/$_svcname.redxen "$pkgdir"/etc/runlevels/$_grpname
}
package_rc_svc() {
install -Dm755 runfile "$pkgdir"/etc/init.d/$_svcname.redxen
}
link_rc_svc() {
mkdir -p "$pkgdir"/etc/init.d
ln -s $_svcname "$pkgdir"/etc/init.d/$_svcname.redxen
}
package_rc_config() {
install -Dm644 conffile "$pkgdir"/etc/conf.d/$_svcname.redxen
}
package() {
package_rc_level
package_rc_svc
package_rc_config
}