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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (artix): Artoo <artoo@artixlinux.org>
# Contributor (arch): Christian Hesse <mail@eworm.de>
# Contributor (arch): Dave Reisner <dreisner@archlinux.org>
# Contributor (arch): Tom Gundersen <teg@jklm.no>
# parabola changes and rationale:
# - support multiple arches
# - branding
_pkgbase=systemd-stable
_alpm=1.6.2 # git rev-parse ${_alpm}
pkgbase=udev
pkgname=('udev' 'libudev' 'esysusers' 'etmpfiles')
pkgdesc='Userspace device file manager'
_tag='4003dd6754e3446691402d3cc389fbfd4faccc90' # git rev-parse v${_tag_name}
_tag_name=255.4
pkgver="${_tag_name/~/}"
pkgrel=2
arch=('x86_64')
arch+=('i686' 'armv7h')
url='https://www.github.com/systemd/systemd'
# license=('GPL-2.0-or-later' 'LGPL-2.1-or-later')
license=('GPL' 'LGPL')
makedepends=('acl' 'gperf' 'hwdata' 'kbd' 'kmod'
'libcap' 'libxcrypt' 'util-linux' 'docbook-xsl'
'git' 'intltool' 'meson' 'python-jinja' 'rsync'
'bash-completion')
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
'A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E' # Luca Boccassi <luca.boccassi@gmail.com>
'9A774DB5DB996C154EBBFBFDA0099A18E29326E1' # Yu Watanabe <watanabe.yu+github@gmail.com>
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
source=("git+https://github.com/systemd/systemd-stable#tag=${_tag}" #?signed
"git+https://github.com/systemd/systemd#tag=v${_tag_name%.*}" #?signed
"git+https://gitea.artixlinux.org/artix/alpm-hooks.git#tag=${_alpm}"
0001-Use-Arch-Linux-device-access-groups.patch
0001-artix-standalone-install.patch
)
sha512sums=('SKIP'
'SKIP'
'SKIP'
'c5845849a8c66cc1192b1f263098b379c983f779c9521771c6dddc5271e75e96672dce4db112895dcd43f129f884353ecbbab4103c704fbd046657f269a324e1'
'c8a14c044504bd6117918a9da0b236519417d41c4ff7959d8642f949199107c767d4337b5f730ea3a7827f6757272836596b0dfbe4785ca550f8008362189193')
_backports=(
)
_reverts=(
)
prepare() {
cd "$_pkgbase"
# add upstream repository for cherry-picking
git remote add -f upstream ../systemd
local _c
for _c in "${_backports[@]}"; do
git log --oneline -1 "${_c}"
git cherry-pick -n "${_c}"
done
for _c in "${_reverts[@]}"; do
git log --oneline -1 "${_c}"
git revert -n "${_c}"
done
# Replace cdrom/dialout/tape groups with optical/uucp/storage
patch -Np1 -i ../0001-Use-Arch-Linux-device-access-groups.patch
patch -Np1 -i ../0001-artix-standalone-install.patch
}
build() {
local _meson_options=() _targets=()
_meson_options+=(
-Dversion-tag="${_tag_name}-${pkgrel}-parabola"
-Dshared-lib-tag="${pkgver}-${pkgrel}"
-Dmode=release
-Dstandalone-binaries=true
-Dsysusers=true
-Dtmpfiles=true
-Dhwdb=true
-Dblkid=enabled
-Dkmod=enabled
-Dgshadow=false
-Dsbat-distro='parabola'
-Dsbat-distro-summary='Parabola GNU/Linux-libre'
-Dsbat-distro-pkgname="${pkgname}"
-Dsbat-distro-version="${pkgver}"
-Dtests=true
-Dlink-udev-shared=false
-Ddefault-keymap='us'
-Dman=enabled
-Dhtml=disabled
-Ddns-servers=''
-Dntp-servers=''
-Defi=false
-Dsysvinit-path=
-Dsysvrcnd-path=
-Ddefault-dnssec=no
-Ddefault-llmnr=no
-Ddefault-mdns=no
-Dadm-group=false
-Danalyze=false
-Dapparmor=disabled
-Daudit=disabled
-Dbacklight=false
-Dbinfmt=false
-Dbootloader=disabled
-Dbzip2=disabled
-Dcoredump=false
-Ddbus=disabled
-Delfutils=disabled
-Denvironment-d=false
-Dfdisk=disabled
-Dgcrypt=disabled
-Dglib=disabled
-Dgnutls=disabled
-Dhibernate=false
-Dhostnamed=false
-Didn=false
-Dima=false
-Dinitrd=false
-Dfirstboot=false
-Dkernel-install=false
-Dldconfig=false
-Dlibcryptsetup=disabled
-Dlibcurl=disabled
-Dlibfido2=disabled
-Dlibidn=disabled
-Dlibidn2=disabled
-Dlibiptc=disabled
-Dlocaled=false
-Dlogind=false
-Dlz4=disabled
-Dmachined=false
-Dmicrohttpd=disabled
-Dnetworkd=false
-Dnscd=false
-Dnss-myhostname=false
-Dnss-resolve=disabled
-Dnss-systemd=false
-Doomd=false
-Dopenssl=disabled
-Dp11kit=disabled
-Dpam=disabled
-Dpcre2=disabled
-Dpolkit=disabled
-Dportabled=false
-Dpstore=false
-Dpwquality=disabled
-Drandomseed=false
-Dresolve=false
-Drfkill=false
-Dseccomp=disabled
-Dsmack=false
-Dstoragetm=false
-Dsysext=false
-Dtimedated=false
-Dtimesyncd=false
-Dtpm=false
-Dqrencode=disabled
-Dquotacheck=false
-Duserdb=false
-Dutmp=false
-Dvconsole=false
-Dvmspawn=disabled
-Dwheel-group=false
-Dxdg-autostart=false
-Dxkbcommon=disabled
-Dxz=disabled
-Dzlib=disabled
-Dzstd=disabled
-Dbpf-framework=disabled
-Dpasswdqc=disabled
-Dselinux=disabled
-Dxenctrl=disabled
-Dlibcryptsetup-plugins=disabled
-Drepart=disabled
-Dsysupdate=disabled
-Dimportd=disabled
-Dhomed=disabled
-Dremote=disabled
-Dnss-mymachines=disabled
-Dukify=disabled
-Dtpm2=disabled
)
artix-meson() { arch-meson "$@" ; } # minimize diff
artix-meson "$_pkgbase" build "${_meson_options[@]}"
_targets+=(
udev:shared_library
src/libudev/libudev.pc
udevadm
{ata_id,cdrom_id,dmi_memory_id,fido_id,iocost,mtd_probe,scsi_id,v4l_id}
rules.d/{50-udev-default,60-persistent-storage,64-btrfs}.rules
udev-hwdb
hwdb.d/60-autosuspend-chromiumos.hwdb
src/udev/udev.pc
man/{libudev.3,udev.conf.5,hwdb.7,udev.7,udevadm.8,iocost.conf.5,systemd-hwdb.8}
esysusers
etmpfiles
sysusers.d/basic.conf
tmpfiles.d/{etc,static-nodes-permissions,var,legacy}.conf
man/{sysusers,tmpfiles}.d.5
man/systemd-{sysusers,tmpfiles}.8
factory/templates/{locale,vconsole}.conf
systemd-detect-virt
systemd-runtest.env
test-libudev
test-libudev-sym
test-udev-builtin
test-udev-device-thread
test-udev-format
test-udev-manager
test-udev-node
test-udev-rules
test-udev-spawn
#test-udev-util
test-fido-id-desc
test-link-config-tables
)
meson compile -C build "${_targets[@]}"
}
check() {
local _tests=()
_tests+=(
udev-rules-check
hwdb-test
test-libudev
test-libudev-sym
test-udev
test-udev-builtin
test-udev-device-thread
test-udev-format
test-udev-manager
test-udev-node
test-udev-rules
test-udev-spawn
#test-udev-util
test-fido-id-desc
test-link-config-tables
dmidecode_HP-Z600
dmidecode_Lenovo-ThinkPad-X280
dmidecode_Lenovo-Thinkcentre-m720s
test-systemd-tmpfiles.standalone
test-sysusers.standalone
#test-tmpfile-util
#test-offline-passwd
)
meson test -C build --print-errorlogs "${_tests[@]}"
}
_inst_man() {
local x="$1" y=${1##*.} man
install -d "${pkgdir}"/usr/share/man/man"$y"
case "$x" in
*sysusers*|*tmpfiles*) man=${x/systemd-/e} ;;
*) man=${x/systemd/udev} ;;
esac
install -vm644 build/man/"$x" "${pkgdir}"/usr/share/man/man"$y/$man"
}
package_udev() {
pkgdesc='Userspace device file manager'
depends=('acl' 'libacl.so' 'bash' 'gcc-libs' 'glibc' 'hwdata'
'kbd' 'kmod' 'libkmod.so' 'libcap' 'libcap.so'
'libudev' 'util-linux' 'libblkid.so')
provides=("udev=$pkgver")
backup=(etc/udev/iocost.conf
etc/udev/udev.conf)
meson install -C build --destdir "$pkgdir" --no-rebuild --tags udev,udev-devel
for m in udev.conf.5 iocost.conf.5 udev.7 udevadm.8 systemd-hwdb.8; do
_inst_man "$m"
done
# pacman hooks
make -C alpm-hooks DESTDIR="${pkgdir}" install_udev
}
package_libudev() {
pkgdesc='udev library for enumerating and introspecting local devices'
depends=('gcc-libs' 'glibc'
'libcap' 'libcap.so')
provides=('libudev.so')
meson install -C build --destdir "$pkgdir" --no-rebuild --tags libudev,libudev-devel
_inst_man "libudev.3"
}
package_esysusers() {
pkgdesc='the sysusers.d binary'
depends=('gcc-libs' 'glibc'
'libcap' 'libcap.so'
'libxcrypt' 'libcrypt.so')
meson install -C build --destdir "$pkgdir" --no-rebuild --tags esysusers
_inst_man "sysusers.d.5"
_inst_man "systemd-sysusers.8"
# pacman hooks
make -C alpm-hooks DESTDIR="${pkgdir}" install_sysusers
}
package_etmpfiles() {
pkgdesc='the tmpfiles.d binary'
depends=('acl' 'libacl.so'
'gcc-libs' 'glibc'
'libcap' 'libcap.so')
meson install -C build --destdir "$pkgdir" --no-rebuild --tags etmpfiles
_inst_man "tmpfiles.d.5"
_inst_man "systemd-tmpfiles.8"
# pacman hooks
make -C alpm-hooks DESTDIR="${pkgdir}" install_tmpfiles
}
|