diff options
author | David P <megver83@parabola.nu> | 2017-11-18 15:35:46 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2017-11-18 15:35:54 -0300 |
commit | c799f6ae2ec796e75d399028736c9d70c021dcd7 (patch) | |
tree | 0d6d80b5b8bfada2b5a219e937ccd51df83b0469 /pcr/runit-scripts | |
parent | 537adb86225271d3e895cdb8e75b193196c0d6aa (diff) | |
download | abslibre-c799f6ae2ec796e75d399028736c9d70c021dcd7.tar.gz abslibre-c799f6ae2ec796e75d399028736c9d70c021dcd7.tar.bz2 abslibre-c799f6ae2ec796e75d399028736c9d70c021dcd7.zip |
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.
Diffstat (limited to 'pcr/runit-scripts')
-rw-r--r-- | pcr/runit-scripts/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
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. <megver83@parabola.nu> +# Maintainer (Artix): Chris Cromer <chris@cromer.cl> + +_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/ +} |