summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorudeved2015-06-24 15:40:29 +0200
committerudeved2015-06-24 15:40:29 +0200
commit1e629f76b15c43f7a2ee456e668b4148aa052d41 (patch)
treebe9af0d7c34b4792ed800d1c5546b6fa1410bca9
downloadaur-1e629f76b15c43f7a2ee456e668b4148aa052d41.tar.gz
initial commit openrc-desktop
-rw-r--r--.SRCINFO111
-rw-r--r--PKGBUILD182
-rw-r--r--acpid.install16
-rw-r--r--alsa-utils.install16
-rw-r--r--avahi-daemon.initd29
-rw-r--r--avahi-dnsconfd.initd28
-rw-r--r--avahi.install16
-rw-r--r--bluez.install16
-rw-r--r--consolekit.install16
-rw-r--r--displaymanager.install17
-rw-r--r--gpm.install16
-rw-r--r--wpa_supplicant.install16
12 files changed, 479 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..5421b7031236
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,111 @@
+pkgbase = openrc-desktop
+ pkgdesc = OpenRC init scripts
+ pkgver = 20150613
+ pkgrel = 1
+ url = https://github.com/manjaro/packages-openrc
+ arch = any
+ groups = openrc-desktop
+ license = GPL2
+ conflicts = openrc
+ conflicts = openrc-git
+ conflicts = openrc-arch-services-git
+ conflicts = initscripts
+ conflicts = systemd-sysvcompat
+ source = acpid.confd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-conf.d
+ source = acpid.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-power/acpid/files/acpid-2.0.16-init.d
+ source = alsasound.confd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/files/alsasound.confd-r4
+ source = alsasound.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/files/alsasound.initd-r6
+ source = consolekit.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-auth/consolekit/files/consolekit-0.2.rc
+ source = xdm.confd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xdm.confd-4
+ source = xdm.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xdm.initd-11
+ source = xdm-setup.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xdm-setup.initd-1
+ source = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-apps/xinit/files/startDM.sh
+ source = gpm.confd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/gpm/files/gpm.conf.d
+ source = gpm.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/gpm/files/gpm.rc6-2
+ source = rfcomm.confd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/rfcomm-conf.d
+ source = rfcomm.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/rfcomm-init.d-r2
+ source = bluetooth.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/bluez/files/bluetooth-init.d-r3
+ source = wpa_supplicant.confd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d
+ source = wpa_supplicant.initd::http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d
+ source = http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/wpa_supplicant/files/wpa_cli.sh
+ source = avahi-daemon.initd
+ source = avahi-dnsconfd.initd
+ sha256sums = 3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba
+ sha256sums = 980468e6bf96c7677898330cadbcff165b4d15f1197cd544548bd0f8c376983d
+ sha256sums = d1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43
+ sha256sums = 5fdcb0212bf8a4be74f410534534fdda6dd8d57df0d2a6c4a158464f705fed18
+ sha256sums = da849bae527a7a5c257301a99ac3fb5ec2ded48103ec114552ca7d2a24b12e49
+ sha256sums = 9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8
+ sha256sums = 86a17c9ba172481318d5fd51c3aadfdcad9e5d52ed7478379723ce1784061930
+ sha256sums = 942ce5e8d1a0770543b683dcc388bae7619a24eb9741c1cd678ed3df97c01406
+ sha256sums = e7f2d95b3b4b6b5d711f926f8a3b7b0163b4d9e40b40489bcbd1316806e47499
+ sha256sums = 73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8
+ sha256sums = e692e7b97efdd79f6e92fbdaed60f7a71bfd23a82c5561b160b88a7aa50c8461
+ sha256sums = 672498957049fd301f9c9c1dc9fa49430e5e6d3c3f1f3cdce80df3af7d425d08
+ sha256sums = e633ab4690db7d89d8a325bbdff73253cb4e3994c4cc5daa0c81205576bc1d09
+ sha256sums = de7f4a890cf994e1c283251ac5ac6b0aedb29104d708e5e7a77702ac2055dec7
+ sha256sums = 61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90
+ sha256sums = 62a3655ea88b3dfff5243666a4e90d3f0eef6370a7889affb849e178ba4a82b0
+ sha256sums = a60d145a8874b57a944c6775fdf500d03dd1ce73c24357b00d3de37b14620179
+ sha256sums = 876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646
+ sha256sums = e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15
+
+pkgname = acpid-openrc
+ pkgdesc = OpenRC acpid init script
+ install = acpid.install
+ depends = openrc-core
+ depends = acpid
+ backup = etc/conf.d/acpid
+
+pkgname = alsa-utils-openrc
+ pkgdesc = OpenRC alsa-utils init script
+ install = alsa-utils.install
+ depends = openrc-core
+ depends = alsa-utils
+ backup = etc/conf.d/alsasound
+
+pkgname = avahi-openrc
+ pkgdesc = OpenRC avahi init script
+ install = avahi.install
+ depends = avahi
+ depends = dbus-openrc
+
+pkgname = consolekit-openrc
+ pkgdesc = OpenRC consolekit init script
+ install = consolekit.install
+ depends = consolekit
+ depends = dbus-openrc
+
+pkgname = displaymanager-openrc
+ pkgdesc = OpenRC dm init script
+ install = displaymanager.install
+ depends = openrc-core
+ depends = xorg-server
+ depends = xorg-xinit
+ optdepends = consolekit-openrc: consolekit initscript
+ optdepends = dbus-openrc: dbus initscript
+ backup = etc/conf.d/xdm
+
+pkgname = gpm-openrc
+ pkgdesc = OpenRC gpm init script
+ install = gpm.install
+ depends = openrc-core
+ depends = gpm
+ backup = etc/conf.d/gpm
+
+pkgname = bluez-openrc
+ pkgdesc = OpenRC bluez init script
+ install = bluez.install
+ groups = openrc-mobile
+ depends = bluez
+ depends = dbus-openrc
+ backup = etc/conf.d/rfcomm
+
+pkgname = wpa_supplicant-openrc
+ pkgdesc = OpenRC wpa_supplicant init script
+ install = wpa_supplicant.install
+ groups = openrc-mobile
+ depends = openrc-core
+ depends = wpa_supplicant
+ backup = etc/conf.d/wpa_supplicant
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..1750ae760621
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,182 @@
+# Maintainer: artoo <artoo@manjaro.org>
+
+_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=20150613
+pkgrel=1
+pkgdesc="OpenRC init scripts"
+arch=('any')
+url="https://github.com/manjaro/packages-openrc"
+license=('GPL2')
+groups=('openrc-desktop')
+conflicts=('openrc'
+ '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
+}
+
+_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' \
+ -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_acpid-openrc() {
+ pkgdesc="OpenRC acpid init script"
+ depends=('openrc-core' 'acpid')
+ backup=('etc/conf.d/acpid')
+ install=acpid.install
+
+ _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
+
+ _inst_confd 'alsasound'
+ _inst_initd 'alsasound'
+}
+
+package_avahi-openrc() {
+ pkgdesc="OpenRC avahi init script"
+ depends=('avahi' 'dbus-openrc')
+ install=avahi.install
+
+ _inst_initd 'avahi-daemon'
+ _inst_initd 'avahi-dnsconfd'
+}
+
+package_consolekit-openrc() {
+ pkgdesc="OpenRC consolekit init script"
+ depends=('consolekit' 'dbus-openrc')
+ install=consolekit.install
+
+ _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
+
+ _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
+
+ _inst_confd 'gpm'
+ _inst_initd 'gpm'
+}
+
+package_bluez-openrc() {
+ 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-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
+}
diff --git a/acpid.install b/acpid.install
new file mode 100644
index 000000000000..7e309c4939cb
--- /dev/null
+++ b/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/alsa-utils.install b/alsa-utils.install
new file mode 100644
index 000000000000..9a3ca4b942e3
--- /dev/null
+++ b/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/avahi-daemon.initd b/avahi-daemon.initd
new file mode 100644
index 000000000000..3db552903952
--- /dev/null
+++ b/avahi-daemon.initd
@@ -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/avahi-dnsconfd.initd b/avahi-dnsconfd.initd
new file mode 100644
index 000000000000..1389a2889b5c
--- /dev/null
+++ b/avahi-dnsconfd.initd
@@ -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/avahi.install b/avahi.install
new file mode 100644
index 000000000000..c7321831f44e
--- /dev/null
+++ b/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/bluez.install b/bluez.install
new file mode 100644
index 000000000000..d15d088e4488
--- /dev/null
+++ b/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/consolekit.install b/consolekit.install
new file mode 100644
index 000000000000..196d5416d3f9
--- /dev/null
+++ b/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/displaymanager.install b/displaymanager.install
new file mode 100644
index 000000000000..c0212fe61ac4
--- /dev/null
+++ b/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/gpm.install b/gpm.install
new file mode 100644
index 000000000000..827633159203
--- /dev/null
+++ b/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/wpa_supplicant.install b/wpa_supplicant.install
new file mode 100644
index 000000000000..14a951cc9e51
--- /dev/null
+++ b/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}'"
+}