summaryrefslogtreecommitdiff
path: root/pcr/openrc-desktop/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-08-28 18:02:24 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:14:58 -0300
commit1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d (patch)
treecd5ec6ff95a6a78408332066142206dc83f6dc5a /pcr/openrc-desktop/PKGBUILD
parenta566855682e5a4de24dadc5ff2aa58d21d802728 (diff)
downloadabslibre-1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d.tar.gz
abslibre-1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d.tar.bz2
abslibre-1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d.zip
openrc-desktop-20150828-1: updating version
Diffstat (limited to 'pcr/openrc-desktop/PKGBUILD')
-rw-r--r--pcr/openrc-desktop/PKGBUILD297
1 files changed, 139 insertions, 158 deletions
diff --git a/pcr/openrc-desktop/PKGBUILD b/pcr/openrc-desktop/PKGBUILD
index f7189414e..672f9300e 100644
--- a/pcr/openrc-desktop/PKGBUILD
+++ b/pcr/openrc-desktop/PKGBUILD
@@ -1,202 +1,183 @@
-# Maintainer : freaj <freaj@riseup.net>
-# Maintainer (Manjaro): artoo <artoo@manjaro.org>
-
-# file vars for easy update
-_Cacpi=acpid-2.0.16-conf.d
-_Iacpi=acpid-2.0.16-init.d
-_Calsa=alsasound.confd-r4
-_Ialsa=alsasound.initd-r6
-_Ick=consolekit-0.2.rc
-_Cxdm=xdm.confd-4
-_Ixdm1=xdm.initd-11
-_Ixdm2=xdm-setup.initd-1
-_Sxdm=startDM.sh
-_Cgpm=gpm.conf.d
-_Igpm=gpm.rc6-2
-_Cblue=rfcomm-conf.d
-_Iblue1=rfcomm-init.d-r2
-_Iblue2=bluetooth-init.d-r3
-_Cwpa=wpa_supplicant-conf.d
-_Iwpa=wpa_supplicant-init.d
-_Swpa=wpa_cli.sh
+# Maintainer (Arch): artoo <artoo@manjaro.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_gentoo_uri="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86"
pkgbase=openrc-desktop
pkgname=('acpid-openrc'
- 'alsa-utils-openrc'
- 'avahi-openrc'
- 'consolekit-openrc'
- 'displaymanager-openrc'
- 'gpm-openrc'
- 'bluez-openrc'
- 'wpa_supplicant-openrc')
-pkgver=20150325
+ 'alsa-utils-openrc'
+ 'avahi-openrc'
+ 'consolekit-openrc'
+ 'displaymanager-openrc'
+ 'gpm-openrc'
+ 'bluez-openrc'
+ 'wpa_supplicant-openrc')
+pkgver=20150828
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
url="https://github.com/manjaro/packages-openrc"
license=('GPL2')
-groups=('openrc' 'openrc-desktop')
+groups=('openrc-desktop')
conflicts=('openrc'
- 'openrc-git'
- 'openrc-arch-services-git'
- 'initscripts'
- 'systemd-sysvcompat')
-source=("${_gentoo_uri}/sys-power/acpid/files/${_Cacpi}"
- "${_gentoo_uri}/sys-power/acpid/files/${_Iacpi}"
- "${_gentoo_uri}/media-sound/alsa-utils/files/${_Calsa}"
- "${_gentoo_uri}/media-sound/alsa-utils/files/${_Ialsa}"
- "${_gentoo_uri}/sys-auth/consolekit/files/${_Ick}"
- "${_gentoo_uri}/x11-base/xorg-server/files/${_Cxdm}"
- "${_gentoo_uri}/x11-base/xorg-server/files/${_Ixdm1}"
- "${_gentoo_uri}/x11-base/xorg-server/files/${_Ixdm2}"
- "${_gentoo_uri}/x11-apps/xinit/files/${_Sxdm}"
- "${_gentoo_uri}/sys-libs/gpm/files/${_Cgpm}"
- "${_gentoo_uri}/sys-libs/gpm/files/${_Igpm}"
- 'avahi-daemon'
- 'avahi-dnsconfd'
- "${_gentoo_uri}/net-wireless/bluez/files/${_Cblue}"
- "${_gentoo_uri}/net-wireless/bluez/files/${_Iblue1}"
- "${_gentoo_uri}/net-wireless/bluez/files/${_Iblue2}"
- "${_gentoo_uri}/net-wireless/wpa_supplicant/files/${_Cwpa}"
- "${_gentoo_uri}/net-wireless/wpa_supplicant/files/${_Iwpa}"
- "${_gentoo_uri}/net-wireless/wpa_supplicant/files/${_Swpa}")
+ 'openrc-git'
+ 'openrc-arch-services-git'
+ 'initscripts'
+ 'systemd-sysvcompat')
+source=("acpid.confd::${_gentoo_uri}/sys-power/acpid/files/acpid-2.0.16-conf.d"
+ "acpid.initd::${_gentoo_uri}/sys-power/acpid/files/acpid-2.0.16-init.d"
+ "alsasound.confd::${_gentoo_uri}/media-sound/alsa-utils/files/alsasound.confd-r4"
+ "alsasound.initd::${_gentoo_uri}/media-sound/alsa-utils/files/alsasound.initd-r6"
+ "consolekit.initd::${_gentoo_uri}/sys-auth/consolekit/files/consolekit-0.2.rc"
+ "xdm.confd::${_gentoo_uri}/x11-base/xorg-server/files/xdm.confd-4"
+ "xdm.initd::${_gentoo_uri}/x11-base/xorg-server/files/xdm.initd-11"
+ "xdm-setup.initd::${_gentoo_uri}/x11-base/xorg-server/files/xdm-setup.initd-1"
+ "${_gentoo_uri}/x11-apps/xinit/files/startDM.sh"
+ "gpm.confd::${_gentoo_uri}/sys-libs/gpm/files/gpm.conf.d"
+ "gpm.initd::${_gentoo_uri}/sys-libs/gpm/files/gpm.rc6-2"
+ "rfcomm.confd::${_gentoo_uri}/net-wireless/bluez/files/rfcomm-conf.d"
+ "rfcomm.initd::${_gentoo_uri}/net-wireless/bluez/files/rfcomm-init.d-r2"
+ "bluetooth.initd::${_gentoo_uri}/net-wireless/bluez/files/bluetooth-init.d-r3"
+ "wpa_supplicant.confd::${_gentoo_uri}/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d"
+ "wpa_supplicant.initd::${_gentoo_uri}/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d"
+ "${_gentoo_uri}/net-wireless/wpa_supplicant/files/wpa_cli.sh"
+ 'avahi-daemon.initd'
+ 'avahi-dnsconfd.initd')
+sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
+ '980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d'
+ 'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
+ '5fdcb0212bf8a4be74f410534534fdda6dd8d57df0d2a6c4a158464f705fed18'
+ 'da849bae527a7a5c257301a99ac3fb5ec2ded48103ec114552ca7d2a24b12e49'
+ '9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8'
+ '86a17c9ba172481318d5fd51c3aadfdcad9e5d52ed7478379723ce1784061930'
+ '942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406'
+ 'e7f2d95b3b4b6b5d711f926f8a3b7b0163b4d9e40b40489bcbd1316806e47499'
+ '73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
+ 'e692e7b97efdd79f6e92fbdaed60f7a71bfd23a82c5561b160b88a7aa50c8461'
+ '672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08'
+ 'e633ab4690db7d89d8a325bbdff73253cb4e3994c4cc5daa0c81205576bc1d09'
+ 'de7f4a890cf994e1c283251ac5ac6b0aedb29104d708e5e7a77702ac2055dec7'
+ '61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90'
+ '62a3655ea88b3dfff5243666a4e90d3f0eef6370a7889affb849e178ba4a82b0'
+ 'a60d145a8874b57a944c6775fdf500d03dd1ce73c24357b00d3de37b14620179'
+ '876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
+ 'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15')
pkgver() {
- date +%Y%m%d
+ date +%Y%m%d
}
-_shebang='s|#!/sbin/runscript|#!/usr/bin/openrc-run|'
-_runpath='s|/var/run|/run|g'
-_binpath='s|/usr/sbin|/usr/bin|g'
+_inst_initd(){
+ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
-package_acpid-openrc() {
- pkgdesc="OpenRC acpid init script"
- depends=('openrc-core' 'acpid')
- backup=('etc/conf.d/acpid')
- install=acpid.install
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -e 's|/usr/sbin|/usr/bin|g' \
+ -i ${pkgdir}/etc/init.d/$1
+}
- install -Dm755 "${srcdir}/${_Cacpi}" "${pkgdir}/etc/conf.d/acpid"
- install -Dm755 "${srcdir}/${_Iacpi}" "${pkgdir}/etc/init.d/acpid"
+_inst_confd(){
+ install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
+}
+
+package_acpid-openrc() {
+ pkgdesc="OpenRC acpid init script"
+ depends=('openrc-core' 'acpid')
+ backup=('etc/conf.d/acpid')
+ install=acpid.install
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/acpid"
+ _inst_confd 'acpid'
+ _inst_initd 'acpid'
}
package_alsa-utils-openrc() {
- pkgdesc="OpenRC alsa-utils init script"
- depends=('openrc-core' 'alsa-utils')
- backup=('etc/conf.d/alsasound')
- install=alsa-utils.install
+ pkgdesc="OpenRC alsa-utils init script"
+ depends=('openrc-core' 'alsa-utils')
+ backup=('etc/conf.d/alsasound')
+ install=alsa-utils.install
- install -Dm755 "${srcdir}/${_Calsa}" "${pkgdir}/etc/conf.d/alsasound"
- install -Dm755 "${srcdir}/${_Ialsa}" "${pkgdir}/etc/init.d/alsasound"
-
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/alsasound"
+ _inst_confd 'alsasound'
+ _inst_initd 'alsasound'
}
package_avahi-openrc() {
- pkgdesc="OpenRC avahi init script"
- depends=('avahi' 'dbus-openrc')
- install=avahi.install
+ pkgdesc="OpenRC avahi init script"
+ depends=('avahi' 'dbus-openrc')
+ install=avahi.install
- install -Dm755 "${srcdir}/avahi-daemon" "${pkgdir}/etc/init.d/avahi-daemon"
- install -Dm755 "${srcdir}/avahi-dnsconfd" "${pkgdir}/etc/init.d/avahi-dnsconfd"
+ _inst_initd 'avahi-daemon'
+ _inst_initd 'avahi-dnsconfd'
}
package_consolekit-openrc() {
- pkgdesc="OpenRC consolekit init script"
- depends=('consolekit' 'dbus-openrc')
- install=consolekit.install
-
- install -Dm755 "$srcdir/${_Ick}" "$pkgdir/etc/init.d/consolekit"
+ pkgdesc="OpenRC consolekit init script"
+ depends=('consolekit' 'dbus-openrc')
+ install=consolekit.install
- sed -e "${_shebang}" -e "${_runpath}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/consolekit"
+ _inst_initd 'consolekit'
}
package_displaymanager-openrc() {
- pkgdesc="OpenRC dm init script"
- depends=('openrc-core' 'xorg-server' 'xorg-xinit')
- optdepends=('consolekit-openrc: consolekit initscript'
- 'dbus-openrc: dbus initscript')
- backup=('etc/conf.d/xdm')
- install=displaymanager.install
-
- install -Dm755 "${srcdir}/${_Cxdm}" "${pkgdir}/etc/conf.d/xdm"
- install -Dm755 "${srcdir}/${_Ixdm1}" "${pkgdir}/etc/init.d/xdm"
- install -Dm755 "${srcdir}/${_Ixdm2}" "${pkgdir}/etc/init.d/xdm-setup"
- install -Dm755 "${srcdir}/${_Sxdm}" "${pkgdir}/etc/X11/startDM.sh"
-
- local _p1='s|/etc/profile.env|/etc/profile|g' \
- _p2='s|{ROOTPATH}|{PATH}|g'
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/xdm"
- sed -e "${_shebang}" -i "${pkgdir}/etc/init.d/xdm-setup"
+ pkgdesc="OpenRC dm init script"
+ depends=('openrc-core' 'xorg-server' 'xorg-xinit')
+ optdepends=('consolekit-openrc: consolekit initscript'
+ 'dbus-openrc: dbus initscript')
+ backup=('etc/conf.d/xdm')
+ install=displaymanager.install
+
+ _inst_confd 'xdm'
+ _inst_initd 'xdm'
+ _inst_initd 'xdm-setup'
+
+ install -Dm755 "${srcdir}/startDM.sh" "${pkgdir}/etc/X11/startDM.sh"
+
+ sed -e 's|/etc/profile.env|/etc/profile|g' \
+ -e 's|{ROOTPATH}|{PATH}|g' \
+ -i "${pkgdir}/etc/init.d/xdm"
}
package_gpm-openrc() {
- pkgdesc="OpenRC gpm init script"
- depends=('openrc-core' 'gpm')
- backup=('etc/conf.d/gpm')
- install=gpm.install
-
- install -Dm755 "${srcdir}/${_Cgpm}" "${pkgdir}/etc/conf.d/gpm"
- install -Dm755 "${srcdir}/${_Igpm}" "${pkgdir}/etc/init.d/gpm"
+ pkgdesc="OpenRC gpm init script"
+ depends=('openrc-core' 'gpm')
+ backup=('etc/conf.d/gpm')
+ install=gpm.install
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/gpm"
+ _inst_confd 'gpm'
+ _inst_initd 'gpm'
}
package_bluez-openrc() {
- pkgdesc="OpenRC bluez init script"
- groups=('openrc' 'openrc-mobile')
- depends=('bluez' 'dbus-openrc')
- backup=('etc/conf.d/rfcomm')
- install=bluez.install
-
- install -Dm755 "${srcdir}/${_Cblue}" "${pkgdir}/etc/conf.d/rfcomm"
- install -Dm755 "${srcdir}/${_Iblue1}" "${pkgdir}/etc/init.d/rfcomm"
- install -Dm755 "${srcdir}/${_Iblue2}" "${pkgdir}/etc/init.d/bluetooth"
-
- local _p1='s|/usr/sbin|/usr/lib/bluetooth|g' _p2='s/libexec/lib/'
- sed -e "${_shebang}" -e "${_p1}" -e "${_p2}" -i "${pkgdir}/etc/init.d/bluetooth"
- sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/rfcomm"
+ pkgdesc="OpenRC bluez init script"
+ groups=('openrc-mobile')
+ depends=('bluez' 'dbus-openrc')
+ backup=('etc/conf.d/rfcomm')
+ install=bluez.install
+
+ _inst_confd 'rfcomm'
+ _inst_initd 'rfcomm'
+ _inst_initd 'bluetooth'
+
+ sed -e 's|/usr/sbin|/usr/lib/bluetooth|g' \
+ -e 's/libexec/lib/' \
+ -i "${pkgdir}/etc/init.d/bluetooth"
}
package_wpa_supplicant-openrc() {
- pkgdesc="OpenRC wpa_supplicant init script"
- groups=('openrc' 'openrc-mobile')
- depends=('openrc-core' 'wpa_supplicant')
- backup=('etc/conf.d/wpa_supplicant')
- install=wpa_supplicant.install
-
- install -Dm755 "${srcdir}/${_Cwpa}" "${pkgdir}/etc/conf.d/wpa_supplicant"
- install -Dm755 "${srcdir}/${_Iwpa}" "${pkgdir}/etc/init.d/wpa_supplicant"
- install -Dm755 "${srcdir}/${_Swpa}" "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
-
- sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/wpa_supplicant"
- if [[ -f /etc/os-release ]];then
- . /etc/os-release
- sed -e "s|gentoo-release|${ID}-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
- else
- sed -e 's|gentoo-release|arch-release|' -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
- fi
+ pkgdesc="OpenRC wpa_supplicant init script"
+ groups=('openrc-mobile')
+ depends=('openrc-core' 'wpa_supplicant')
+ backup=('etc/conf.d/wpa_supplicant')
+ install=wpa_supplicant.install
+
+ _inst_confd 'wpa_supplicant'
+ _inst_initd 'wpa_supplicant'
+
+ install -Dm755 "${srcdir}/wpa_cli.sh" "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
+
+ if [[ -f /etc/os-release ]];then
+ . /etc/os-release
+ sed -e "s|gentoo-release|${ID}-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
+ else
+ sed -e 's|gentoo-release|arch-release|' -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
+ fi
}
-
-sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
- '980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d'
- 'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
- '5fdcb0212bf8a4be74f410534534fdda6dd8d57df0d2a6c4a158464f705fed18'
- 'da849bae527a7a5c257301a99ac3fb5ec2ded48103ec114552ca7d2a24b12e49'
- '9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8'
- '86a17c9ba172481318d5fd51c3aadfdcad9e5d52ed7478379723ce1784061930'
- '942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406'
- 'e7f2d95b3b4b6b5d711f926f8a3b7b0163b4d9e40b40489bcbd1316806e47499'
- '73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
- 'e692e7b97efdd79f6e92fbdaed60f7a71bfd23a82c5561b160b88a7aa50c8461'
- '876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
- 'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15'
- '672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08'
- 'e633ab4690db7d89d8a325bbdff73253cb4e3994c4cc5daa0c81205576bc1d09'
- 'de7f4a890cf994e1c283251ac5ac6b0aedb29104d708e5e7a77702ac2055dec7'
- '61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90'
- '62a3655ea88b3dfff5243666a4e90d3f0eef6370a7889affb849e178ba4a82b0'
- 'a60d145a8874b57a944c6775fdf500d03dd1ce73c24357b00d3de37b14620179')