blob: c737f3046b55d4811bf261b6677cc3f22ff6b6b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
# Maintainer (Artix): artoo <artoo@cromnix.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_url="https://raw.githubusercontent.com/gentoo/gentoo/master"
_sed_args=(-e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g')
prefix=true
$_prefix && _sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g')
pkgbase=openrc-desktop
pkgname=('acpid-openrc'
'alsa-utils-openrc'
'avahi-openrc'
'bluez-openrc'
'displaymanager-openrc'
'elogind-openrc'
'gpm-openrc'
'networkmanager-openrc'
'wpa_supplicant-openrc')
pkgver=20170927
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
url="https://github.com/artix-linux"
license=('GPL2')
groups=('openrc-desktop')
conflicts=('systemd-sysvcompat')
source=("acpid.confd::${_url}/sys-power/acpid/files/acpid-2.0.16-conf.d"
"acpid.initd::${_url}/sys-power/acpid/files/acpid-2.0.26-init.d"
"alsasound.confd::${_url}/media-sound/alsa-utils/files/alsasound.confd-r4"
"alsasound.initd::${_url}/media-sound/alsa-utils/files/alsasound.initd-r6"
'avahi-daemon.initd'
'avahi-dnsconfd.initd'
"rfcomm.initd::${_url}/net-wireless/bluez/files/rfcomm-init.d-r2"
"bluetooth.initd::${_url}/net-wireless/bluez/files/bluetooth-init.d-r4"
"xdm.confd::${_url}/x11-base/xorg-server/files/xdm.confd-4"
"xdm.initd::${_url}/x11-base/xorg-server/files/xdm.initd-11"
"xdm-setup.initd::${_url}/x11-base/xorg-server/files/xdm-setup.initd-1"
"${_url}/x11-apps/xinit/files/startDM.sh"
'xdg-user-dirs'
"elogind.confd::${_url}/sys-auth/elogind/files/elogind.conf"
"elogind.initd::${_url}/sys-auth/elogind/files/elogind.init"
"gpm.confd::${_url}/sys-libs/gpm/files/gpm.conf.d"
"gpm.initd::${_url}/sys-libs/gpm/files/gpm.rc6-2"
"NetworkManager.confd::${_url}/net-misc/networkmanager/files/conf.d.NetworkManager"
"NetworkManager.initd::${_url}/net-misc/networkmanager/files/init.d.NetworkManager-r1"
'10-openrc-status'
"wpa_supplicant.confd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d"
"wpa_supplicant.initd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d"
"${_url}/net-wireless/wpa_supplicant/files/wpa_cli.sh")
sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
'5dcf5721a129b3782c13fc453853c390c34e2ad4ee00706388ce014454b063ee'
'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
'cf67ba1c4bd13cc6fafdebab40b3e84d09f5b6ec768ed2dcf0ec53d9be296ba4'
'876788303553fe773e64917f76f0208f5e8adf7b91d4af24aa9d6a68a147d646'
'e128576d72981e402ff106bb481108ab6d5ba941ab1b0f5f53e96a7831fc1d15'
'0bd7f4a3e05c781f4cd24ef7d6702fbd7e621100bcd1e281f0ee15bb134f96b5'
'7fef67f1f0965aa08fd65408d2cd8c3fcefaec0ef627a2a0e1f1372c15e011b2'
'9d26b72bb28611a60a6b9f942b8d8cfe47b59f926be89af9709b5912668344d8'
'2ae57ee506eeb15eaa8f06b6a8f1d29fd007e33558c506bbf7640d16c4a67d50'
'e37a9353ed848f35ac7b07d1398466a18741fd1de075a6cb971e1c28088d791d'
'f343f87c5c89aa1b7112ec946c4df06b25e541d488405f4d98bedbeddd30bd32'
'f0f27de23d849b2fa4ebf59e448b5a843b577d14dc2c1070e228999091fa7f5e'
'ad651e0c6cd456cc0209802ac878a7c08e69435f0428ded4ad116d11f728b2dd'
'982423a88eea889c194123ecffbdea03d8f94ca497b7b32bd86fdf20a81680c7'
'73e7483fdc4b12ab4225a4cb13bbe7da71b07b9e69b17e3a6a4c63cb5e2287c8'
'b48fd8ef0c4e64ca3f3ada72e8e2148a276f86bf3cbb1a165504058bd15385c1'
'4594573f01fe5e04b6dde4525796acf909158591bdcefd662ec23fe0d1c3e1bd'
'861445d46e8863dca26a91018da3dd9fee6a64467a93e7512774dfd88914539d'
'1535237db113a76261d6f1ce0b24a55e956934b0c1c59e9fd624f621961327b6'
'61ec59007f66ac5bacc0aa095d1f2ccbc977a687038e161a463d1727223d5a90'
'98985142371d39ea6294d757e85a3d3fc9fc21718063afbf81869e1d2ca648a7'
'f3aa34b99a90213c53496f8ea014c487266338791f3526043a7fd97adc651fc6')
pkgver() {
date +%Y%m%d
}
_inst_initd(){
install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
sed ${_sed_args[@]} -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' 'acpid')
backup=('etc/conf.d/acpid')
_inst_confd 'acpid'
_inst_initd 'acpid'
}
package_alsa-utils-openrc() {
pkgdesc="OpenRC alsa-utils init script"
depends=('openrc' 'alsa-utils')
backup=('etc/conf.d/alsasound')
_inst_confd 'alsasound'
_inst_initd 'alsasound'
}
package_avahi-openrc() {
pkgdesc="OpenRC avahi init script"
depends=('avahi' 'dbus-openrc')
_inst_initd 'avahi-daemon'
_inst_initd 'avahi-dnsconfd'
}
package_bluez-openrc() {
pkgdesc="OpenRC bluez init script"
depends=('bluez' 'dbus-openrc')
_inst_initd 'rfcomm'
_inst_initd 'bluetooth'
sed -e 's|/usr/libexec|/usr/lib|g' \
-i "${pkgdir}/etc/init.d/bluetooth"
}
package_displaymanager-openrc() {
pkgdesc="OpenRC dm init script"
depends=('xorg-server' 'xorg-xinit' 'eudev-openrc')
optdepends=('elogind-openrc: elogind 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' \
-e 's|use consolekit dbus xfs|use consolekit dbus xfs elogind|' \
-i "${pkgdir}/etc/init.d/xdm"
install -D ${srcdir}/xdg-user-dirs "$pkgdir/etc/X11/xinit/xinitrc.d/xdg-user-dirs"
}
package_elogind-openrc() {
pkgdesc="OpenRC elogind init script"
depends=('elogind' 'dbus-openrc' 'eudev-openrc')
conflicts=('consolekit-openrc')
# replaces=('consolekit-openrc')
_inst_confd 'elogind'
_inst_initd 'elogind'
sed -e 's|/usr/libexec|/usr/lib|' \
-e 's|/var/run|/run|' \
-i "${pkgdir}/etc/conf.d/elogind"
}
package_gpm-openrc() {
pkgdesc="OpenRC gpm init script"
depends=('openrc' 'gpm')
backup=('etc/conf.d/gpm')
_inst_confd 'gpm'
_inst_initd 'gpm'
}
package_networkmanager-openrc() {
pkgdesc="OpenRC networkmanager init script"
depends=('dbus-openrc' 'networkmanager')
conflicts=('networkmanager-consolekit')
# optdepends=('elogind-openrc: elogind initscript')
backup=('etc/conf.d/NetworkManager')
_inst_confd 'NetworkManager'
_inst_initd 'NetworkManager'
install -Dm755 "${srcdir}/10-openrc-status" "${pkgdir}/etc/NetworkManager/dispatcher.d/10-openrc-status"
sed -e 's|use consolekit|use consolekit elogind|' \
-i "${pkgdir}/etc/init.d/NetworkManager"
}
package_wpa_supplicant-openrc() {
pkgdesc="OpenRC wpa_supplicant init script"
depends=('openrc' 'wpa_supplicant')
backup=('etc/conf.d/wpa_supplicant')
_inst_confd 'wpa_supplicant'
_inst_initd 'wpa_supplicant'
install -Dm755 "${srcdir}/wpa_cli.sh" "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
sed -e "s|gentoo-release|parabola-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
}
|