diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-03-23 11:58:01 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-03-23 11:58:01 -0300 |
commit | 1988c77fae4e3c3e762d1d361249e21622f548cf (patch) | |
tree | 5c0b658d83f23533b7c43758468b5282cd1ead68 /pcr/openrc-base/PKGBUILD | |
parent | 5333f9d3db9e5e7a174d4028107246338c1094eb (diff) | |
parent | 63dda12e2f3cdba9df1605f8ca845bf3ffcf416f (diff) | |
download | abslibre-1988c77fae4e3c3e762d1d361249e21622f548cf.tar.gz abslibre-1988c77fae4e3c3e762d1d361249e21622f548cf.tar.bz2 abslibre-1988c77fae4e3c3e762d1d361249e21622f548cf.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/openrc-base/PKGBUILD')
-rw-r--r-- | pcr/openrc-base/PKGBUILD | 269 |
1 files changed, 269 insertions, 0 deletions
diff --git a/pcr/openrc-base/PKGBUILD b/pcr/openrc-base/PKGBUILD new file mode 100644 index 000000000..9519fb572 --- /dev/null +++ b/pcr/openrc-base/PKGBUILD @@ -0,0 +1,269 @@ +# Maintainer : freaj <freaj@riseup.net> +# Maintainer (Manjaro): artoo <artoo@manjaro.org> + +_Icron1=cronie-1.3-initd +_Icron2=anacron-1.0-initd +_Ccrypt=1.0.6-dmcrypt.confd +_Icrypt=1.5.1-dmcrypt.rc +_Idbus=dbus.initd +_Inscd=nscd +_Cdm=device-mapper.conf-1.02.22-r3 +_Idm1=device-mapper.rc-2.02.105-r2 +_Idm2=dmeventd.initd-2.02.67-r1 +_Clvm=lvm.confd-2.02.28-r2 +_Ilvm1=lvm.rc-2.02.105-r2 +_Ilvm2=lvm-monitoring.initd-2.02.105-r2 +_Ilvm3=lvmetad.initd-2.02.105-r2 +_Cmdadm=mdadm.confd +_Imdadm=mdadm.rc +_Idhcpcd=dhcpcd.initd +_Cmdraid=mdraid.confd +_Imdraid=mdraid.rc +_Ieudev=udev-postmount + +_gentoo_uri="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86" + + +# set false if you want building without eudev(leaving systemd) +_is_eudev=true + +pkgbase=openrc-base +_pkgname=('cronie-openrc' + 'cryptsetup-openrc' + 'dbus-openrc' + 'dhcpcd-openrc' + 'device-mapper-openrc' + 'glibc-openrc' + 'inetutils-openrc' + 'lvm2-openrc' + 'mdadm-openrc') +if ${_is_eudev};then + pkgname=( ${_pkgname[@]} 'eudev-openrc') +else + pkgname=( ${_pkgname[@]} ) +fi +pkgver=20150215 +pkgrel=1 +pkgdesc="OpenRC init scripts" +arch=('any') +url="https://github.com/manjaro/packages-openrc" +license=('GPL2') +groups=('openrc' 'openrc-base') +conflicts=('initscripts' + 'systemd-sysvcompat' + 'openrc' + 'openrc-git' + 'openrc-sysvinit') +source=("${_gentoo_uri}/sys-process/cronie/files/${_Icron1}" + "${_gentoo_uri}/sys-process/cronie/files/${_Icron2}" + "${_gentoo_uri}/sys-fs/cryptsetup/files/${_Ccrypt}" + "${_gentoo_uri}/sys-fs/cryptsetup/files/${_Icrypt}" + "${_gentoo_uri}/sys-apps/dbus/files/${_Idbus}" + "${_gentoo_uri}/sys-libs/glibc/files/${_Inscd}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Cdm}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Idm1}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Idm2}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Clvm}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Ilvm1}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Ilvm2}" + "${_gentoo_uri}/sys-fs/lvm2/files/${_Ilvm3}" + "${_gentoo_uri}/sys-fs/mdadm/files/${_Cmdadm}" + "${_gentoo_uri}/sys-fs/mdadm/files/${_Imdadm}" + "${_gentoo_uri}/sys-fs/mdadm/files/${_Cmdraid}" + "${_gentoo_uri}/sys-fs/mdadm/files/${_Imdraid}" + "${_gentoo_uri}/net-misc/dhcpcd/files/${_Idhcpcd}" + "${_gentoo_uri}/sys-fs/eudev/files/${_Ieudev}" + 'inetutils.confd' + 'inetutils.initd') + +_shebang='s|#!/sbin/runscript|#!/usr/bin/openrc-run|' +_runpath='s|/var/run|/run|g' +_binpath=('s|/usr/sbin|/usr/bin|g' 's|/sbin|/usr/bin|g') + +pkgver() { + date +%Y%m%d +} + +package_cronie-openrc() { + pkgdesc="OpenRC cronie init script" + groups=('openrc' 'openrc-base' 'openrc-desktop') + depends=('openrc-core' 'cronie') + provides=('openrc-cron') + conflicts=('fcron' + 'fcron-openrc' + 'openrc' + 'openrc-git' + 'openrc-arch-services-git' + 'initscripts' + 'systemd-sysvcompat') + backup=('etc/init.d/cronie') + install=cronie.install + + install -Dm755 "${srcdir}/${_Icron1}" "${pkgdir}/etc/init.d/cronie" + install -Dm755 "${srcdir}/${_Icron2}" "${pkgdir}/etc/init.d/anacron" + + for f in ${pkgdir}/etc/init.d/*; do + sed -e "${_shebang}" \ + -e "${_binpath[0]}" \ + -e "${_runpath}" \ + -i $f + done +} + +package_dhcpcd-openrc() { + pkgdesc="OpenRC dhcpcd init script" + groups=('openrc' 'openrc-base' 'openrc-desktop') + depends=('openrc-core' 'dhcpcd') + install=dhcpcd.install + + install -Dm755 "${srcdir}/${_Idhcpcd}" "${pkgdir}/etc/init.d/dhcpcd" + + sed -e "${_shebang}" \ + -e "${_binpath[1]}" \ + -e "${_runpath}" \ + -i "${pkgdir}/etc/init.d/dhcpcd" +} + +package_dbus-openrc() { + pkgdesc="OpenRC dbus init script" + groups=('openrc' 'openrc-base' 'openrc-desktop') + depends=('openrc-core' 'dbus') + install=dbus.install + + install -Dm755 "${srcdir}/${_Idbus}" "${pkgdir}/etc/init.d/dbus" + + local _p1='s|dbus.pid|dbus/pid|g' + sed -e "${_shebang}" -e "${_runpath}" \ + -e "${_p1}" \ + -i "${pkgdir}/etc/init.d/dbus" +} + +package_device-mapper-openrc() { + pkgdesc="OpenRC device-mapper init script" + depends=('openrc-core' 'device-mapper') + backup=('etc/conf.d/device-mapper') + install=device-mapper.install + + install -Dm755 "${srcdir}/${_Cdm}" "${pkgdir}/etc/conf.d/device-mapper" + install -Dm755 "${srcdir}/${_Idm1}" "${pkgdir}/etc/init.d/device-mapper" + install -Dm755 "${srcdir}/${_Idm2}" "${pkgdir}/etc/init.d/dmeventd" + + for f in ${pkgdir}/etc/init.d/*; do + sed -e "${_shebang}" \ + -e "${_binpath[1]}" \ + -e "${_runpath}" \ + -i $f + done +} + +package_cryptsetup-openrc() { + pkgdesc="OpenRC cryptsetup init script" + depends=('device-mapper-openrc' 'cryptsetup') + backup=('etc/conf.d/dmcrypt') + install=cryptsetup.install + + install -Dm755 "${srcdir}/${_Ccrypt}" "${pkgdir}/etc/conf.d/dmcrypt" + install -Dm755 "${srcdir}/${_Icrypt}" "${pkgdir}/etc/init.d/dmcrypt" + + sed -e "${_shebang}" \ + -e "${_binpath[0]}" \ + -e "${_runpath}" \ + -i "${pkgdir}/etc/init.d/dmcrypt" +} + +package_glibc-openrc() { + pkgdesc="OpenRC nscd init script" + depends=('openrc-core' 'glibc') + optdepends=('openldap-openrc' + 'bind-openrc') + install=glibc.install + + install -Dm755 "${srcdir}/${_Inscd}" "${pkgdir}/etc/init.d/nscd" + + sed -e "${_shebang}" \ + -e "${_binpath[0]}" \ + -e "${_runpath}" \ + -i "${pkgdir}/etc/init.d/nscd" +} + +package_inetutils-openrc() { + pkgdesc="OpenRC ftpd init script" + depends=('openrc-core' 'inetutils') + backup=('etc/conf.d/ftpd') + install=inetutils.install + + install -Dm755 "${srcdir}/inetutils.confd" "${pkgdir}/etc/conf.d/ftpd" + install -Dm755 "${srcdir}/inetutils.initd" "${pkgdir}/etc/init.d/ftpd" +} + +package_lvm2-openrc() { + pkgdesc="OpenRC lvm2 init script" + depends=('device-mapper-openrc' 'lvm2') + backup=('etc/conf.d/lvm') + install=lvm2.install + + install -Dm755 "${srcdir}/${_Clvm}" "${pkgdir}/etc/conf.d/lvm" + install -Dm755 "${srcdir}/${_Ilvm1}" "${pkgdir}/etc/init.d/lvm" + install -Dm755 "${srcdir}/${_Ilvm2}" "${pkgdir}/etc/init.d/lvm-monitoring" + install -Dm755 "${srcdir}/${_Ilvm3}" "${pkgdir}/etc/init.d/lvmetad" + + for f in ${pkgdir}/etc/init.d/*; do + sed -e "${_shebang}" \ + -e "${_binpath[1]}" \ + -e "${_runpath}" \ + -i $f + done +} + +package_mdadm-openrc() { + pkgdesc="OpenRC mdadm init script" + depends=('openrc-core' 'mdadm') + optdepends=('bind-openrc') + backup=('etc/conf.d/mdadm') + install=mdadm.install + + install -Dm755 "${srcdir}/${_Cmdadm}" "${pkgdir}/etc/conf.d/mdadm" + install -Dm755 "${srcdir}/${_Imdadm}" "${pkgdir}/etc/init.d/mdadm" + + install -Dm755 "${srcdir}/${_Cmdraid}" "${pkgdir}/etc/conf.d/mdraid" + install -Dm755 "${srcdir}/${_Imdraid}" "${pkgdir}/etc/init.d/mdraid" + + sed -e "${_shebang}" \ + -e "${_runpath}" \ + -i "${pkgdir}/etc/init.d/mdadm" + sed -e "${_shebang}" \ + -i "${pkgdir}/etc/init.d/mdraid" +} + +package_eudev-openrc(){ + pkgdesc="OpenRC eudev postmount script" + groups=('eudev-base') + depends=('openrc-core' 'eudev') + install=eudev.install + + install -Dm755 "${srcdir}/${_Ieudev}" "${pkgdir}/etc/init.d/udev-postmount" + + sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/udev-postmount" +} + +sha256sums=('292a7b20fe33bd027357475fea6aa1194afa7e5c1c47a85299db945b9d1c847e' + '7ff283ee8b492929d33831461b72e872fe9d3a98344cf39af442f575875b0132' + '9696d70a49296113a9ae3dff1b023b859df984bfb3572426ba199a630b628ce8' + '1010666cfb3cd2c662032c3e8f3c2aec35316fc376d0ce30f2c821b581ae2c6d' + '98e37b8b6ed25004e48c5855d74c9361eea06d3fee13cefcc0ed10ccf452aa01' + '6165db3a2fcb251d4f3655c0461e018ce9c92a37f7f22a8fd2b75178b5435bc8' + '57777904f12a35617e5a4193c964ebb32396452487fd02353e71e16e7b46bc22' + '036b6de05e6cbd921a667d6fc6b01d30c8f9b720e1a0d0e2453ecd62d32573fb' + '0c051388991ba69afbf2f6baf36ba227d7c26fc8f0d7588d8de76d9a74886d79' + '28370c089c39c248d7ded0960b8d8a9256bada44d44c22ce3cec87d512ef6844' + 'a5754ffa0a05a0c29a9f6b5acf1b21dd313581fd6156c1ef722dc620e0114676' + 'd7655cadd3a3a9d3683a540413365310ca9503c38fd21a9bfccec40630ca72f1' + '60accb4b6114753232f2db0adf3fc3f46d4459bfedf79b888801a13c55d79fa9' + 'ec55674955af7a31da51b8b72b599e8519809287dad796a9b16155bcba471b79' + '3073b14619cb7b2c99c33f2d6cfd1e59ce5557899bffebaa65fa52f3caffadc7' + '1b7918c4bdd024607bcb49d7cea0a77cb70502d2fbb4dbe07024bb5b5699c8e0' + '73303ec32b7010c7f6d4fd66dde1a5baea07e73c79d3e516dce31000abdb4089' + '72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492' + '0220e949b1f31832a205021c0a8615e77b27b73b7c9b16ef4a61bbd2774aeecb' + '59fe1aa68c43f4958afc397a0d6b35da263a20fcdb457005123a0d64cb1f7477' + '7f46e5e9ac9f204fb1564560c506a5bb4cede8823b89e3f1844e4f8be258e9ef') |