diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-06-23 03:13:28 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-06-23 03:13:28 -0500 |
commit | 6f1180f35fee220f92044e8f8a0a220ff308b295 (patch) | |
tree | b6899369633ce3051d62f9f4cd5d81217f158d35 /pcr/openrc-base/PKGBUILD | |
parent | c2575baf97c888d66a7fef69a84b5718dbab28c9 (diff) | |
download | abslibre-6f1180f35fee220f92044e8f8a0a220ff308b295.tar.gz abslibre-6f1180f35fee220f92044e8f8a0a220ff308b295.tar.bz2 abslibre-6f1180f35fee220f92044e8f8a0a220ff308b295.zip |
{cronie,cryptsetup,dbus,device,dhcpcd,glibc,inetutils,lvm2,mdadm}-openrc-20150613-1: updating version
Diffstat (limited to 'pcr/openrc-base/PKGBUILD')
-rw-r--r-- | pcr/openrc-base/PKGBUILD | 272 |
1 files changed, 103 insertions, 169 deletions
diff --git a/pcr/openrc-base/PKGBUILD b/pcr/openrc-base/PKGBUILD index 69296e2a7..476235c28 100644 --- a/pcr/openrc-base/PKGBUILD +++ b/pcr/openrc-base/PKGBUILD @@ -1,141 +1,126 @@ -# 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 +# Maintainer (Arch): artoo <artoo@manjaro.org> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> +# Contributor: freaj <freaj@riseup.net> _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=20150323 +pkgname=('cronie-openrc' + 'cryptsetup-openrc' + 'dbus-openrc' + 'dhcpcd-openrc' + 'device-mapper-openrc' + 'glibc-openrc' + 'inetutils-openrc' + 'lvm2-openrc' + 'mdadm-openrc') +pkgver=20150613 pkgrel=1 pkgdesc="OpenRC init scripts" arch=('any') url="https://github.com/manjaro/packages-openrc" license=('GPL2') -groups=('openrc' 'openrc-base') +groups=('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') + 'systemd-sysvcompat' + 'openrc' + 'openrc-git' + 'openrc-sysvinit') +source=("cronie.initd::${_gentoo_uri}/sys-process/cronie/files/cronie-1.3-initd" + "dmcrypt.confd::${_gentoo_uri}/sys-fs/cryptsetup/files/1.6.7-dmcrypt.confd" + "dmcrypt.initd::${_gentoo_uri}/sys-fs/cryptsetup/files/1.6.7-dmcrypt.rc" + "dbus.initd::${_gentoo_uri}/sys-apps/dbus/files/dbus.initd" + "nscd.initd::${_gentoo_uri}/sys-libs/glibc/files/nscd" + "device-mapper.confd::${_gentoo_uri}/sys-fs/lvm2/files/device-mapper.conf-1.02.22-r3" + "device-mapper.initd::${_gentoo_uri}/sys-fs/lvm2/files/device-mapper.rc-2.02.105-r2" + "dmeventd.initd::${_gentoo_uri}/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1" + "lvm.confd::${_gentoo_uri}/sys-fs/lvm2/files/lvm.confd-2.02.28-r2" + "lvm.initd::${_gentoo_uri}/sys-fs/lvm2/files/lvm.rc-2.02.105-r2" + "lvm-monitoring.initd::${_gentoo_uri}/sys-fs/lvm2/files/lvm-monitoring.initd-2.02.105-r2" + "lvmetad.initd::${_gentoo_uri}/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2" + "mdadm.confd::${_gentoo_uri}/sys-fs/mdadm/files/mdadm.confd" + "mdadm.initd::${_gentoo_uri}/sys-fs/mdadm/files/mdadm.rc" + "mdraid.confd::${_gentoo_uri}/sys-fs/mdadm/files/mdraid.confd" + "mdraid.initd::${_gentoo_uri}/sys-fs/mdadm/files/mdraid.rc" + "dhcpcd.initd::${_gentoo_uri}/net-misc/dhcpcd/files/dhcpcd.initd" + 'ftpd.confd' + 'ftpd.initd') +sha256sums=('292a7b20fe33bd027357475fea6aa1194afa7e5c1c47a85299db945b9d1c847e' + '3d933a54abe62a547294b83208dbf5d7615d9c7f380d6504c91fff3620530803' + '4bec4e67e2447a4472eecdd2fb31325b4dd558e1fe283683f86707629b9d192d' + '98e37b8b6ed25004e48c5855d74c9361eea06d3fee13cefcc0ed10ccf452aa01' + '6165db3a2fcb251d4f3655c0461e018ce9c92a37f7f22a8fd2b75178b5435bc8' + '57777904f12a35617e5a4193c964ebb32396452487fd02353e71e16e7b46bc22' + '036b6de05e6cbd921a667d6fc6b01d30c8f9b720e1a0d0e2453ecd62d32573fb' + '0c051388991ba69afbf2f6baf36ba227d7c26fc8f0d7588d8de76d9a74886d79' + '28370c089c39c248d7ded0960b8d8a9256bada44d44c22ce3cec87d512ef6844' + 'a5754ffa0a05a0c29a9f6b5acf1b21dd313581fd6156c1ef722dc620e0114676' + 'd7655cadd3a3a9d3683a540413365310ca9503c38fd21a9bfccec40630ca72f1' + '60accb4b6114753232f2db0adf3fc3f46d4459bfedf79b888801a13c55d79fa9' + 'ec55674955af7a31da51b8b72b599e8519809287dad796a9b16155bcba471b79' + '3073b14619cb7b2c99c33f2d6cfd1e59ce5557899bffebaa65fa52f3caffadc7' + 'b489ced10391d4295bb8ca29e128b0d4217c290f1b4e37b05f5a9275048d289d' + '003b2c832909f1b89ffd283fb02d2712791d922394e201de0e42c0b463b2b1bd' + '72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492' + '59fe1aa68c43f4958afc397a0d6b35da263a20fcdb457005123a0d64cb1f7477' + '7f46e5e9ac9f204fb1564560c506a5bb4cede8823b89e3f1844e4f8be258e9ef') 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|/var/run|/run|g' \ + -i ${pkgdir}/etc/init.d/$1 +} + +_inst_confd(){ + install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 +} + package_cronie-openrc() { pkgdesc="OpenRC cronie init script" - groups=('openrc' 'openrc-base' 'openrc-desktop') + groups=('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') + '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" + _inst_initd 'cronie' - for f in ${pkgdir}/etc/init.d/*; do - sed -e "${_shebang}" \ - -e "${_binpath[0]}" \ - -e "${_runpath}" \ - -i $f - done + sed -e 's|/usr/sbin|/usr/bin|g' -i ${pkgdir}/etc/init.d/cronie } package_dhcpcd-openrc() { pkgdesc="OpenRC dhcpcd init script" - groups=('openrc' 'openrc-base' 'openrc-desktop') + groups=('openrc-base' 'openrc-desktop') depends=('openrc-core' 'dhcpcd') install=dhcpcd.install - install -Dm755 "${srcdir}/${_Idhcpcd}" "${pkgdir}/etc/init.d/dhcpcd" + _inst_initd 'dhcpcd' - sed -e "${_shebang}" \ - -e "${_binpath[1]}" \ - -e "${_runpath}" \ - -i "${pkgdir}/etc/init.d/dhcpcd" + sed -e 's|/sbin|/usr/bin|g' -i "${pkgdir}/etc/init.d/dhcpcd" } package_dbus-openrc() { pkgdesc="OpenRC dbus init script" - groups=('openrc' 'openrc-base' 'openrc-desktop') + groups=('openrc-base' 'openrc-desktop') depends=('openrc-core' 'dbus') install=dbus.install - install -Dm755 "${srcdir}/${_Idbus}" "${pkgdir}/etc/init.d/dbus" + _inst_initd 'dbus' - local _p1='s|dbus.pid|dbus/pid|g' - sed -e "${_shebang}" -e "${_runpath}" \ - -e "${_p1}" \ - -i "${pkgdir}/etc/init.d/dbus" + sed -e 's|dbus.pid|dbus/pid|g' -i "${pkgdir}/etc/init.d/dbus" } package_device-mapper-openrc() { @@ -144,15 +129,12 @@ package_device-mapper-openrc() { 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" + _inst_confd 'device-mapper' + _inst_initd 'device-mapper' + _inst_initd 'dmeventd' for f in ${pkgdir}/etc/init.d/*; do - sed -e "${_shebang}" \ - -e "${_binpath[1]}" \ - -e "${_runpath}" \ - -i $f + sed -e 's|/sbin|/usr/bin|g' -i $f done } @@ -162,13 +144,10 @@ package_cryptsetup-openrc() { 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" + _inst_confd 'dmcrypt' + _inst_initd 'dmcrypt' - sed -e "${_shebang}" \ - -e "${_binpath[0]}" \ - -e "${_runpath}" \ - -i "${pkgdir}/etc/init.d/dmcrypt" + sed -e 's|/usr/sbin|/usr/bin|g' -i "${pkgdir}/etc/init.d/dmcrypt" } package_glibc-openrc() { @@ -178,12 +157,9 @@ package_glibc-openrc() { 'bind-openrc') install=glibc.install - install -Dm755 "${srcdir}/${_Inscd}" "${pkgdir}/etc/init.d/nscd" + _inst_initd 'nscd' - sed -e "${_shebang}" \ - -e "${_binpath[0]}" \ - -e "${_runpath}" \ - -i "${pkgdir}/etc/init.d/nscd" + sed -e 's|/usr/sbin|/usr/bin|g' -i "${pkgdir}/etc/init.d/nscd" } package_inetutils-openrc() { @@ -192,8 +168,8 @@ package_inetutils-openrc() { 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" + _inst_confd 'ftpd' + _inst_initd 'ftpd' } package_lvm2-openrc() { @@ -202,16 +178,13 @@ package_lvm2-openrc() { 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" + _inst_confd 'lvm' + _inst_initd 'lvm' + _inst_initd 'lvm-monitoring' + _inst_initd 'lvmetad' for f in ${pkgdir}/etc/init.d/*; do - sed -e "${_shebang}" \ - -e "${_binpath[1]}" \ - -e "${_runpath}" \ - -i $f + sed -e 's|/sbin|/usr/bin|g' -i $f done } @@ -222,48 +195,9 @@ package_mdadm-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" + _inst_confd 'mdadm' + _inst_initd 'mdadm' - sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/udev-postmount" + _inst_confd 'mdraid' + _inst_initd 'mdraid' } - -sha256sums=('292a7b20fe33bd027357475fea6aa1194afa7e5c1c47a85299db945b9d1c847e' - '7ff283ee8b492929d33831461b72e872fe9d3a98344cf39af442f575875b0132' - '9696d70a49296113a9ae3dff1b023b859df984bfb3572426ba199a630b628ce8' - '1010666cfb3cd2c662032c3e8f3c2aec35316fc376d0ce30f2c821b581ae2c6d' - '98e37b8b6ed25004e48c5855d74c9361eea06d3fee13cefcc0ed10ccf452aa01' - '6165db3a2fcb251d4f3655c0461e018ce9c92a37f7f22a8fd2b75178b5435bc8' - '57777904f12a35617e5a4193c964ebb32396452487fd02353e71e16e7b46bc22' - '036b6de05e6cbd921a667d6fc6b01d30c8f9b720e1a0d0e2453ecd62d32573fb' - '0c051388991ba69afbf2f6baf36ba227d7c26fc8f0d7588d8de76d9a74886d79' - '28370c089c39c248d7ded0960b8d8a9256bada44d44c22ce3cec87d512ef6844' - 'a5754ffa0a05a0c29a9f6b5acf1b21dd313581fd6156c1ef722dc620e0114676' - 'd7655cadd3a3a9d3683a540413365310ca9503c38fd21a9bfccec40630ca72f1' - '60accb4b6114753232f2db0adf3fc3f46d4459bfedf79b888801a13c55d79fa9' - 'ec55674955af7a31da51b8b72b599e8519809287dad796a9b16155bcba471b79' - '3073b14619cb7b2c99c33f2d6cfd1e59ce5557899bffebaa65fa52f3caffadc7' - '1b7918c4bdd024607bcb49d7cea0a77cb70502d2fbb4dbe07024bb5b5699c8e0' - '73303ec32b7010c7f6d4fd66dde1a5baea07e73c79d3e516dce31000abdb4089' - '72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492' - '0220e949b1f31832a205021c0a8615e77b27b73b7c9b16ef4a61bbd2774aeecb' - '59fe1aa68c43f4958afc397a0d6b35da263a20fcdb457005123a0d64cb1f7477' - '7f46e5e9ac9f204fb1564560c506a5bb4cede8823b89e3f1844e4f8be258e9ef') |