48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
_commit=4be15079e20c2a48ed1215d5e54a4c10abb9b7fa
|
|
pkgname=runit-rc
|
|
#pkgver=20200825-1 last Artix version to use opentmpfiles before switching to etmpfiles
|
|
pkgver=20200825
|
|
pkgrel=04
|
|
pkgdesc='Artix Linux system initialization and shutdown for runit'
|
|
arch=('x86_64')
|
|
groups=( base )
|
|
url='https://gitea.artixlinux.org/artix/runit-rc'
|
|
backup=('etc/rc/rc.conf')
|
|
makedepends=('git')
|
|
depends=('procps-ng' 'bash' 'opentmpfiles' 'bootlogd' 'eudev')
|
|
provides=('init-rc')
|
|
conflicts=('init-rc')
|
|
source=("git+${url}.git#commit=$_commit"
|
|
rc.conf)
|
|
optdepends=('lvm2-runit: LVM support for runit'
|
|
'cryptsetup-runit: Enable boot support for encrypted partitions')
|
|
|
|
build() {
|
|
cd ${pkgname}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}
|
|
make DESTDIR="${pkgdir}" install-rc
|
|
install -D -m644 "${srcdir}/rc.conf" "${pkgdir}/etc/rc/rc.conf"
|
|
ln -s "/etc/rc/rc.conf" "${pkgdir}/etc/rc.conf"
|
|
### If you want cgroups mounted by the init remove the following line
|
|
### or # ln -s /usr/lib/rc/sv.d/cgroups /etc/rc/sysinit/04-cgroups
|
|
### and they will be mounted on next boot
|
|
rm -rf "${pkgdir}/etc/rc/sysinit/04-cgroups"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('BSD')
|
|
|
|
sha256sums=(SKIP
|
|
9a3f33b93fc702ed1ec4d0200f7a78c1f178c798f12a1b37d308a1f3effe8a6e) # rc.conf
|