diff options
author | David P <megver83@openmailbox.org> | 2017-03-21 19:35:42 -0300 |
---|---|---|
committer | David P <megver83@openmailbox.org> | 2017-03-21 19:35:42 -0300 |
commit | 5632a5f23e4691d6ce1ee7a94e48cb8687fb365f (patch) | |
tree | 33bc0efba01f99feea4f57c0a88b9124816ee1c3 /pcr | |
parent | 7be1bec46c7407a88973d4d07122b55f0f4f7dd7 (diff) | |
download | abslibre-5632a5f23e4691d6ce1ee7a94e48cb8687fb365f.tar.gz abslibre-5632a5f23e4691d6ce1ee7a94e48cb8687fb365f.tar.bz2 abslibre-5632a5f23e4691d6ce1ee7a94e48cb8687fb365f.zip |
Re-added consolekit-openrc and cgmanager-openrc
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/openrc-ck/PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pcr/openrc-ck/PKGBUILD b/pcr/openrc-ck/PKGBUILD new file mode 100644 index 000000000..13ce46a80 --- /dev/null +++ b/pcr/openrc-ck/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: artoo <artoo@manjaro.org> + +_url="https://raw.githubusercontent.com/gentoo/gentoo/master" + +pkgbase=openrc-ck +pkgname=('cgmanager-openrc' + 'consolekit-openrc') + +pkgver=20170311 +pkgrel=3 +pkgdesc="OpenRC init scripts" +arch=('any') +url="https://github.com/manjaro/packages-openrc" +license=('GPL2') +# groups=('openrc-desktop') +conflicts=('systemd-sysvcompat') +source=("consolekit.initd::${_url}/sys-auth/consolekit/files/consolekit-1.0.0.initd" + "cgproxy.initd::${_url}/app-admin/cgmanager/files/cgproxy.initd-r1" + "cgmanager.initd::${_url}/app-admin/cgmanager/files/cgmanager.initd-r1") +sha256sums=('c5e8db4e9d390bcaebcf203127a99b16d888a576d873920bd42dc56d20fa90c8' + '97220fa0af6dcaa9d2cb726620ee3de8e216e55bab37cea40e5ed010ed637e35' + 'f162685428a6593630daf5d636c198caf4992843ced977dc6d7288b7559a062c') + +pkgver() { + date +%Y%m%d +} + +_inst_initd(){ + install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 + + sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \ + -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|' \ + -e 's|/var/run|/run|g' \ + -e 's|/usr/sbin|/usr/bin|g' \ + -i ${pkgdir}/etc/init.d/$1 +} + +_inst_confd(){ + install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 +} + +package_cgmanager-openrc() { + pkgdesc="OpenRC cgmanager init script" + depends=('openrc' 'cgmanager') + + _inst_initd 'cgproxy' + _inst_initd 'cgmanager' +} + +package_consolekit-openrc() { + pkgdesc="OpenRC consolekit init script" + depends=('consolekit' 'dbus-openrc' 'cgmanager-openrc' 'udev-openrc') + + _inst_initd 'consolekit' +} |