60 lines
2.1 KiB
Bash
60 lines
2.1 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
# We thank both the Artix and Void Linux developer teams for the inspiration and work
|
|
|
|
#src-url="https://git.disroot/org/joborun/runit-rc"
|
|
_url="https://git.disroot.org/joborun-pkg/repos/src/branch/main"
|
|
#https://git.disroot.org/joborun-pkg/repos/src/branch/main/runit-rc-20230911.tar.xz
|
|
pkgname=runit-rc
|
|
pkgver=20240911
|
|
pkgrel=01
|
|
pkgdesc='Joborun Linux system initialization and shutdown for runit'
|
|
backup=('etc/rc/rc.conf' 'etc/rc.conf' )
|
|
makedepends=(git)
|
|
provides=('init-rc')
|
|
conflicts=('init-rc')
|
|
#source=("$_url/$pkgname-$pkgver.tar.xz")
|
|
source=("git+https://git.disroot.org/joborun/runit-rc.git"
|
|
"binfmt.sh") # this is borrowed from open-rc project and artix
|
|
install=runit-rc.install
|
|
|
|
build() {
|
|
cd ${pkgname}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}
|
|
depends=('procps-ng' 'bash' 'runit' 'eudev')
|
|
optdepends=('artix-socklog: Small and secure syslogd replacement for use with Runit'
|
|
'bootlogd: Bootlogd extracted from sysvinit')
|
|
|
|
make DESTDIR="${pkgdir}" install-rc
|
|
|
|
ln -s "/etc/rc/rc.conf" "${pkgdir}/etc/rc.conf"
|
|
|
|
### If you do want cgroups mounted by the init, comment the following line
|
|
rm -rf "${pkgdir}/etc/rc/sysinit/04-cgroups"
|
|
### or # ln -s /usr/lib/rc/sv.d/cgroups /etc/rc/sysinit/04-cgroups
|
|
### and they will be mounted on next boot
|
|
# iputils-specific configuration
|
|
mkdir -p "$pkgdir/usr/lib/sysctl.d"
|
|
mkdir -p "$pkgdir/usr/lib/rc"
|
|
echo "net.ipv4.ping_group_range = 0 2147483647" > "$pkgdir/usr/lib/sysctl.d/55-iputils.conf"
|
|
install -D -m 755 ../binfmt.sh -t "$pkgdir/usr/lib/jobo/"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('BSD')
|
|
|
|
sha256sums=(SKIP
|
|
1667ec3ce502e9e3c19c21e5b6ca63465a6f0d80bcbcd176c4b698ae55e98894) # binfmt.sh
|
|
|
|
## 3c654673a53e95a0db64a79de501a42760d06785ff2a102d81b4ef8384911635 runit-rc-20240911-01-x86_64.pkg.tar.lz
|