summaryrefslogtreecommitdiff
path: root/pcr/openrc-desktop
diff options
context:
space:
mode:
authorfreaj <freaj@riseup.net>2015-03-25 19:27:34 +0100
committerfreaj <freaj@riseup.net>2015-03-25 19:27:34 +0100
commitf955ecf3f6bc9af1733c4a12e27c5fac6d7d7d7f (patch)
treed857191f9f7bbe86cd63c2f8d4c3429af500a30e /pcr/openrc-desktop
parentcc8df1c56153a2f6e703daff8fcdad469a9d2afa (diff)
downloadabslibre-f955ecf3f6bc9af1733c4a12e27c5fac6d7d7d7f.tar.gz
abslibre-f955ecf3f6bc9af1733c4a12e27c5fac6d7d7d7f.tar.bz2
abslibre-f955ecf3f6bc9af1733c4a12e27c5fac6d7d7d7f.zip
openrc-desktop-20150325-1: add new package to [pcr]
Diffstat (limited to 'pcr/openrc-desktop')
-rw-r--r--pcr/openrc-desktop/PKGBUILD202
-rw-r--r--pcr/openrc-desktop/acpid.install16
-rw-r--r--pcr/openrc-desktop/alsa-utils.install16
-rw-r--r--pcr/openrc-desktop/avahi-daemon29
-rw-r--r--pcr/openrc-desktop/avahi-dnsconfd28
-rw-r--r--pcr/openrc-desktop/avahi.install16
-rw-r--r--pcr/openrc-desktop/bluez.install16
-rw-r--r--pcr/openrc-desktop/consolekit.install16
-rw-r--r--pcr/openrc-desktop/displaymanager.install17
-rw-r--r--pcr/openrc-desktop/gpm.install16
-rw-r--r--pcr/openrc-desktop/wpa_supplicant.install16
11 files changed, 388 insertions, 0 deletions
diff --git a/pcr/openrc-desktop/PKGBUILD b/pcr/openrc-desktop/PKGBUILD
new file mode 100644
index 000000000..f7189414e
--- /dev/null
+++ b/pcr/openrc-desktop/PKGBUILD
@@ -0,0 +1,202 @@
+# 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
+
+_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
+pkgrel=1
+pkgdesc="OpenRC init scripts"
+arch=('any')
+url="https://github.com/manjaro/packages-openrc"
+license=('GPL2')
+groups=('openrc' '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}")
+
+pkgver() {
+ 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'
+
+package_acpid-openrc() {
+ pkgdesc="OpenRC acpid init script"
+ depends=('openrc-core' 'acpid')
+ backup=('etc/conf.d/acpid')
+ install=acpid.install
+
+ install -Dm755 "${srcdir}/${_Cacpi}" "${pkgdir}/etc/conf.d/acpid"
+ install -Dm755 "${srcdir}/${_Iacpi}" "${pkgdir}/etc/init.d/acpid"
+
+ sed -e "${_shebang}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/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
+
+ 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"
+}
+
+package_avahi-openrc() {
+ 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"
+}
+
+package_consolekit-openrc() {
+ pkgdesc="OpenRC consolekit init script"
+ depends=('consolekit' 'dbus-openrc')
+ install=consolekit.install
+
+ install -Dm755 "$srcdir/${_Ick}" "$pkgdir/etc/init.d/consolekit"
+
+ sed -e "${_shebang}" -e "${_runpath}" -e "${_binpath}" -i "${pkgdir}/etc/init.d/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"
+}
+
+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"
+
+ sed -e "${_shebang}" -e "${_binpath}" -e "${_runpath}" -i "${pkgdir}/etc/init.d/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"
+}
+
+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
+}
+
+sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
+ '980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d'
+ 'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
+ '5fdcb0212bf8a4be74f410534534fdda6dd8d57df0d2a6c4a158464f705fed18'
+ 'da849bae527a7a5c257301a99ac3fb5ec2ded48103ec114552ca7d2a24b12e49'
+ '9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8'
+ '86a17c9ba172481318d5fd51c3aadfdcad9e5d52ed7478379723ce1784061930'
+ '942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406'
+ 'e7f2d95b3b4b6b5d711f926f8a3b7b0163b4d9e40b40489bcbd1316806e47499'
+ '73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
+ 'e692e7b97efdd79f6e92fbdaed60f7a71bfd23a82c5561b160b88a7aa50c8461'
+ '876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
+ 'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15'
+ '672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08'
+ 'e633ab4690db7d89d8a325bbdff73253cb4e3994c4cc5daa0c81205576bc1d09'
+ 'de7f4a890cf994e1c283251ac5ac6b0aedb29104d708e5e7a77702ac2055dec7'
+ '61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90'
+ '62a3655ea88b3dfff5243666a4e90d3f0eef6370a7889affb849e178ba4a82b0'
+ 'a60d145a8874b57a944c6775fdf500d03dd1ce73c24357b00d3de37b14620179')
diff --git a/pcr/openrc-desktop/acpid.install b/pcr/openrc-desktop/acpid.install
new file mode 100644
index 000000000..7e309c493
--- /dev/null
+++ b/pcr/openrc-desktop/acpid.install
@@ -0,0 +1,16 @@
+_svc="acpid"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/alsa-utils.install b/pcr/openrc-desktop/alsa-utils.install
new file mode 100644
index 000000000..9a3ca4b94
--- /dev/null
+++ b/pcr/openrc-desktop/alsa-utils.install
@@ -0,0 +1,16 @@
+_svc="alsasound"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/avahi-daemon b/pcr/openrc-desktop/avahi-daemon
new file mode 100644
index 000000000..3db552903
--- /dev/null
+++ b/pcr/openrc-desktop/avahi-daemon
@@ -0,0 +1,29 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+depend() {
+ before netmount nfsmount
+ use net
+ need dbus
+}
+
+start() {
+ ebegin "Starting avahi-daemon"
+ /usr/bin/avahi-daemon -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi-daemon"
+ /usr/bin/avahi-daemon -k
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi-daemon"
+ /usr/bin/avahi-daemon -r
+ eend $?
+}
diff --git a/pcr/openrc-desktop/avahi-dnsconfd b/pcr/openrc-desktop/avahi-dnsconfd
new file mode 100644
index 000000000..1389a2889
--- /dev/null
+++ b/pcr/openrc-desktop/avahi-dnsconfd
@@ -0,0 +1,28 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+depend() {
+ need avahi-daemon
+ use net
+}
+
+start() {
+ ebegin "Starting avahi-dnsconfd"
+ /usr/bin/avahi-dnsconfd -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi-dnsconfd"
+ /usr/bin/avahi-dnsconfd -k
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi-dnsconfd"
+ /usr/bin/avahi-dnsconfd -r
+ eend $?
+}
diff --git a/pcr/openrc-desktop/avahi.install b/pcr/openrc-desktop/avahi.install
new file mode 100644
index 000000000..c7321831f
--- /dev/null
+++ b/pcr/openrc-desktop/avahi.install
@@ -0,0 +1,16 @@
+_svc="avahi-dnsconfd"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/bluez.install b/pcr/openrc-desktop/bluez.install
new file mode 100644
index 000000000..d15d088e4
--- /dev/null
+++ b/pcr/openrc-desktop/bluez.install
@@ -0,0 +1,16 @@
+_svc="bluetooth"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/consolekit.install b/pcr/openrc-desktop/consolekit.install
new file mode 100644
index 000000000..196d5416d
--- /dev/null
+++ b/pcr/openrc-desktop/consolekit.install
@@ -0,0 +1,16 @@
+_svc="consolekit"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/displaymanager.install b/pcr/openrc-desktop/displaymanager.install
new file mode 100644
index 000000000..c0212fe61
--- /dev/null
+++ b/pcr/openrc-desktop/displaymanager.install
@@ -0,0 +1,17 @@
+_svc="xdm"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> Edit /etc/conf.d/xdm to set DM."
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/gpm.install b/pcr/openrc-desktop/gpm.install
new file mode 100644
index 000000000..827633159
--- /dev/null
+++ b/pcr/openrc-desktop/gpm.install
@@ -0,0 +1,16 @@
+_svc="gpm"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
diff --git a/pcr/openrc-desktop/wpa_supplicant.install b/pcr/openrc-desktop/wpa_supplicant.install
new file mode 100644
index 000000000..14a951cc9
--- /dev/null
+++ b/pcr/openrc-desktop/wpa_supplicant.install
@@ -0,0 +1,16 @@
+_svc="wpa_supplicant"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}