From c799f6ae2ec796e75d399028736c9d70c021dcd7 Mon Sep 17 00:00:00 2001 From: David P Date: Sat, 18 Nov 2017 15:35:46 -0300 Subject: Add runit & update openrc openrc-init has been packaged separately from the openrc package for OpenRC to gain compatibility with other init systems. As of now there's runit and openrc-init which provide and conflict 'init', meaning that those packages have a /sbin/init binary or symlink. Packages which provide 'init' will also go to the 'init' group. Note, however, that if attempting to install that package group all the packages will conflict, so purpose of it is to simply do 'pacman -Sg init' to see a list of the available inits. --- pcr/runit-scripts/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pcr/runit-scripts/PKGBUILD (limited to 'pcr/runit-scripts') diff --git a/pcr/runit-scripts/PKGBUILD b/pcr/runit-scripts/PKGBUILD new file mode 100644 index 000000000..acaddd5ff --- /dev/null +++ b/pcr/runit-scripts/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: David P. +# Maintainer (Artix): Chris Cromer + +_commit=0800961464d5afeb69730e4c9adc6733d26ea031 + +pkgname=runit-scripts +pkgver=20171118 +pkgrel=1 +pkgdesc='Runit initscripts for GNU/Linux' +provides=('runit-init') +conflicts=('runit-init') +url='https://gitlab.com/Megver83/runit-scripts' +license=('GPL3') +arch=('armv7h' 'i686' 'x86_64') +depends=('procps-ng' 'awk' 'sh' 'eudev' 'runit') +optdepends=('openrc: for managing services with OpenRC') +source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/Megver83/runit-scripts/repository/${_commit}/archive.tar.gz") +backup=('etc/runit/rc.conf' + 'etc/runit/rc.local' + 'etc/runit/rc.shutdown') +sha512sums=('46439bfc5293fa1c3cddfff748a65a09c03da5d27dc6288a8904a50fc618934a3bcfab7c32a3dc8fba3e095146855584389ea7731f45947cef6d0d0dd1636921') + +pkgver() { + date +%Y%m%d +} + +build() { + cd ${srcdir} + mv ${pkgname}-${_commit}-${_commit} ${pkgname}-${pkgver} + cd ${pkgname}-${pkgver} + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + sed 's|/sbin|/bin|' -i Makefile + make DESTDIR="${pkgdir}" PREFIX="/usr" install + + # License + mkdir -p "${pkgdir}"/usr/share/licenses/runit-scripts + cp {COPYING,LICENSE} "${pkgdir}"/usr/share/licenses/runit-scripts/ +} -- cgit v1.2.2