core/systemd to 253.1-3

This commit is contained in:
Kevin Mihelich 2023-03-09 13:37:29 +00:00
parent 7f56801a1b
commit e5990f3630
2 changed files with 76 additions and 41 deletions

View file

@ -8,11 +8,15 @@
# - !distcc - systemd is finding distcc's clang symlink without clang
pkgbase=systemd
pkgname=('systemd' 'systemd-libs' 'systemd-resolvconf' 'systemd-sysvcompat')
pkgname=('systemd'
'systemd-libs'
'systemd-resolvconf'
'systemd-sysvcompat'
'systemd-ukify')
_tag='199399bb283701b6a4aaf5ace49f56f30f38e9a3' # git rev-parse v${_tag_name}
_tag_name=253.1
pkgver="${_tag_name/-/}"
pkgrel=2
pkgrel=3
arch=('x86_64')
url='https://www.github.com/systemd/systemd'
makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf'
@ -52,7 +56,7 @@ sha512sums=('SKIP'
'SKIP'
'3ccf783c28f7a1c857120abac4002ca91ae1f92205dcd5a84aff515d57e706a3f9240d75a0a67cff5085716885e06e62597baa86897f298662ec36a940cf410e'
'f0d933e8c6064ed830dec54049b0a01e27be87203208f6ae982f10fb4eddc7258cb2919d594cbfb9a33e74c3510cfd682f3416ba8e804387ab87d1a217eb4b73'
'c6c30042b9f11c04e4430a4f45cce09c2dcc706bac567d7f8ec93b92ef791cd726d81c5b7d5468b350377f6338fa24d39c1ee8f4e8ce5826a61f4a9d4de4b25b'
'12f3c011a0164d28b092722639fff92c663c18b032d421695b0a72dbf123dd0908e3822087766ee922e131c02126f67ba2e1983c5cc244f5c4884dfed8605d00'
'a8c7e4a2cc9c9987e3c957a1fc3afe8281f2281fffd2e890913dcf00cf704024fb80d86cb75f9314b99b0e03bac275b22de93307bfc226d8be9435497e95b7e6'
'61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648'
'c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5'
@ -185,6 +189,7 @@ package_systemd() {
optdepends=('libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote'
'quota-tools: kernel-level quota management'
'systemd-sysvcompat: symlink package to provide sysvinit binaries'
'systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image'
'polkit: allow administration as unprivileged user'
'python: Unified Kernel Image with ukify'
'curl: systemd-journal-upload, machinectl pull-tar and pull-raw'
@ -223,6 +228,11 @@ package_systemd() {
mv "$pkgdir"/usr/include systemd-libs/include
mv "$pkgdir"/usr/share/man/man3 systemd-libs/man3
# ukify shipped in separate package
install -d -m0755 systemd-ukify/{systemd,man1}
mv "$pkgdir"/usr/lib/systemd/ukify systemd-ukify/systemd/
mv "$pkgdir"/usr/share/man/man1/ukify.1 systemd-ukify/man1/
# manpages shipped with systemd-sysvcompat
rm "$pkgdir"/usr/share/man/man8/{halt,poweroff,reboot,shutdown}.8
@ -310,4 +320,17 @@ package_systemd-sysvcompat() {
done
}
package_systemd-ukify() {
pkgdesc='Combine kernel and initrd into a signed Unified Kernel Image'
license=('GPL2')
provides=('ukify')
depends=('binutils' 'python-pefile' 'systemd')
optdepends=('python-pillow: Show the size of splash image'
'sbsigntools: Sign the embedded kernel')
install -d -m0755 "$pkgdir"/usr/{lib,share/man}
mv systemd-ukify/systemd "$pkgdir"/usr/lib/systemd
mv systemd-ukify/man1 "$pkgdir"/usr/share/man/man1
}
# vim:ft=sh syn=sh et sw=2:

View file

@ -77,47 +77,59 @@ build() {
/usr/lib/systemd/system-generators/systemd-gpt-auto-generator \
/usr/lib/systemd/system-generators/systemd-hibernate-resume-generator
# udev rules and systemd units
# udev rules
map add_udev_rule "$rules" \
50-udev-default.rules \
60-persistent-storage.rules \
64-btrfs.rules \
80-drivers.rules \
99-systemd.rules
50-udev-default.rules \
60-persistent-storage.rules \
64-btrfs.rules \
80-drivers.rules \
99-systemd.rules
# systemd units
map add_systemd_unit \
initrd-cleanup.service \
initrd-fs.target \
initrd-parse-etc.service \
initrd-root-fs.target \
initrd-root-device.target \
initrd-switch-root.service \
initrd-switch-root.target \
initrd-udevadm-cleanup-db.service \
initrd.target \
kmod-static-nodes.service \
local-fs.target \
local-fs-pre.target \
paths.target \
reboot.target \
slices.target \
sockets.target \
swap.target \
systemd-fsck@.service \
systemd-hibernate-resume@.service \
systemd-journald-audit.socket \
systemd-journald-dev-log.socket \
systemd-journald.service \
systemd-modules-load.service \
systemd-pcrphase-initrd.service \
systemd-tmpfiles-setup-dev.service \
systemd-udevd-control.socket \
systemd-udevd-kernel.socket \
systemd-udevd.service \
systemd-udev-trigger.service \
timers.target \
rescue.target \
emergency.target
initrd-cleanup.service \
initrd-fs.target \
initrd-parse-etc.service \
initrd-root-fs.target \
initrd-root-device.target \
initrd-switch-root.service \
initrd-switch-root.target \
initrd-udevadm-cleanup-db.service \
initrd.target \
kmod-static-nodes.service \
local-fs.target \
local-fs-pre.target \
paths.target \
reboot.target \
slices.target \
sockets.target \
swap.target \
systemd-fsck@.service \
systemd-hibernate-resume@.service \
systemd-journald-audit.socket \
systemd-journald-dev-log.socket \
systemd-journald.service \
systemd-modules-load.service \
systemd-pcrphase-initrd.service \
systemd-tmpfiles-setup-dev.service \
systemd-udevd-control.socket \
systemd-udevd-kernel.socket \
systemd-udevd.service \
systemd-udev-trigger.service \
timers.target \
rescue.target \
emergency.target
# add libraries dlopen()ed by tpm2-util
for LIB in tss2-{esys,rc,mu,tcti-'*'}; do
for FILE in $(find /usr/lib/ -maxdepth 1 -name "lib${LIB}.so*"); do
if [[ -L "${FILE}" ]]; then
add_symlink "${FILE}"
else
add_binary "${FILE}"
fi
done
done
add_symlink "/usr/lib/systemd/system/default.target" "initrd.target"
add_symlink "/usr/lib/systemd/system/ctrl-alt-del.target" "reboot.target"