jobcore/jobo66/PKGBUILD
2023-10-17 20:11:59 +03:00

53 lines
2.3 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 |---------------------------------------
pkgname=jobo66
pkgdesc="installs minimal s6 & 66 needed software equivalent to the runit setup on joborun to boot w/ s6/66 and provide user level service supervision"
pkgver=0.1.1
pkgrel=03
makedepends=(glibc sh)
groups=('s6-suite' 'jobo66')
backup=('etc/66/jobo66.txt')
conflicts=(opensysusers) # obsysusers takes over what opensysusers does with runit alone
optdepends=('lvm2-66serv: lvm service'
'openntpd-66serv: an alternative to ntp'
'dhcpcd-66serv: works well with wpa_supplicant'
'ntpclient-66serv: a very small but effective ntp service by Skarnet')
source=(jobo66.txt)
install=jobo66.install
package() {
depends=(skalibs execline s6 s6-dns s6-linux-utils s6-networking s6-portable-utils s6-rc
oblibs 66 66-tools boot-66serv boot@-66serv ntpd-66serv dhclient-66serv
wpa_supplicant-66serv tty@-66serv joborun66 obsysusers opentmpfiles
boot-user@-66serv dbus-66serv xdg-user-dirs-66serv consolekit-66serv
console-tracker@-66serv consolekit2 )
install -Dm 0644 $srcdir/jobo66.txt $pkgdir/etc/66/jobo66.txt
mkdir -p $pkgdir/usr/bin
## replaces runit functionality when opensysusers is replaced by obsysusers
ln -s /usr/bin/obsysusers $pkgdir/usr/bin/sysusers
# post-install/post-upgrade in jobo66 makes sure that the directory and contents
# if existing belong to s6log:log and not root:root
# This must be a bug in 66 allowing some process under some conditions to allow
# root to write into the directory
mkdir -p $pkgdir/var/log/66
}
# See the observice repository (pkg -Sl observice) for all the Obarun service files available
# See also additional or more minimalistic and runit like services for 66 from mobinmob
# https://codeberg.org/mobinmob/66-voidlinux and https://osdn.net/projects/avyssos/
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('ISC')
sha256sums=(39c75848713bb50f782844bb790dc2ec76b104fe15c2e272ee622a559319220e) # jobo66.txt
## aafe54bb284711920cee20f30a650abd489b46f86afe6864b64c33c14a481828 jobo66-0.1.1-03-x86_64.pkg.tar.lz