diff options
author | Yurii Kolesnykov | 2023-03-09 17:35:00 +0200 |
---|---|---|
committer | Yurii Kolesnykov | 2023-03-09 17:35:53 +0200 |
commit | c6aabd15710006c84bf31c9a91b13f388ca61558 (patch) | |
tree | 2875ebccc037367cd345f87444c2d0acc1c91728 | |
parent | d2f5852b7e73154349cdcf75040411554496d815 (diff) | |
download | aur-c6aabd15710006c84bf31c9a91b13f388ca61558.tar.gz |
sync with testing/systemd
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | initcpio-install-systemd | 88 |
4 files changed, 113 insertions, 58 deletions
@@ -1,6 +1,6 @@ pkgbase = systemd-git pkgdesc = systemd (git version) - pkgver = 253.r62798.7c78a19322 + pkgver = 253.r62988.2208d96623 pkgrel = 1 url = https://www.github.com/systemd/systemd arch = x86_64 @@ -70,7 +70,7 @@ pkgbase = systemd-git sha512sums = SKIP sha512sums = 3ccf783c28f7a1c857120abac4002ca91ae1f92205dcd5a84aff515d57e706a3f9240d75a0a67cff5085716885e06e62597baa86897f298662ec36a940cf410e sha512sums = f0d933e8c6064ed830dec54049b0a01e27be87203208f6ae982f10fb4eddc7258cb2919d594cbfb9a33e74c3510cfd682f3416ba8e804387ab87d1a217eb4b73 - sha512sums = c6c30042b9f11c04e4430a4f45cce09c2dcc706bac567d7f8ec93b92ef791cd726d81c5b7d5468b350377f6338fa24d39c1ee8f4e8ce5826a61f4a9d4de4b25b + sha512sums = 12f3c011a0164d28b092722639fff92c663c18b032d421695b0a72dbf123dd0908e3822087766ee922e131c02126f67ba2e1983c5cc244f5c4884dfed8605d00 sha512sums = a8c7e4a2cc9c9987e3c957a1fc3afe8281f2281fffd2e890913dcf00cf704024fb80d86cb75f9314b99b0e03bac275b22de93307bfc226d8be9435497e95b7e6 sha512sums = 61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648 sha512sums = c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5 @@ -125,9 +125,10 @@ pkgname = systemd-git depends = openssl depends = libcrypto.so depends = libssl.so - optdepends = libmicrohttpd: remote journald capabilities + optdepends = libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote optdepends = quota-tools: kernel-level quota management optdepends = systemd-sysvcompat: symlink package to provide sysvinit binaries + optdepends = systemd-ukify-git: combine kernel and initrd into a signed Unified Kernel Image optdepends = polkit: allow administration as unprivileged user optdepends = python: Unified Kernel Image with ukify optdepends = curl: systemd-journal-upload, machinectl pull-tar and pull-raw @@ -137,9 +138,9 @@ pkgname = systemd-git optdepends = libp11-kit: support PKCS#11 optdepends = tpm2-tss: unlocking LUKS2 volumes with TPM2 provides = nss-myhostname - provides = systemd-tools=253.r62798.7c78a19322 - provides = udev=253.r62798.7c78a19322 - provides = systemd=253.r62798.7c78a19322 + provides = systemd-tools=253.r62988.2208d96623 + provides = udev=253.r62988.2208d96623 + provides = systemd=253.r62988.2208d96623 conflicts = nss-myhostname conflicts = systemd-tools conflicts = udev @@ -177,7 +178,7 @@ pkgname = systemd-libs-git provides = libsystemd provides = libsystemd.so provides = libudev.so - provides = systemd-libs=253.r62798.7c78a19322 + provides = systemd-libs=253.r62988.2208d96623 conflicts = libsystemd conflicts = systemd-libs replaces = libsystemd @@ -188,7 +189,7 @@ pkgname = systemd-resolvconf-git depends = systemd-git provides = openresolv provides = resolvconf - provides = systemd-resolvconf=253.r62798.7c78a19322 + provides = systemd-resolvconf=253.r62988.2208d96623 conflicts = openresolv conflicts = systemd-resolvconf @@ -196,6 +197,18 @@ pkgname = systemd-sysvcompat-git pkgdesc = sysvinit compat for systemd (git version) license = GPL2 depends = systemd-git - provides = systemd-sysvcompat=253.r62798.7c78a19322 + provides = systemd-sysvcompat=253.r62988.2208d96623 conflicts = sysvinit conflicts = systemd-sysvcompat + +pkgname = systemd-ukify-git + pkgdesc = Combine kernel and initrd into a signed Unified Kernel Image (git version) + license = GPL2 + depends = binutils + depends = python-pefile + depends = systemd-git + optdepends = python-pillow: Show the size of splash image + optdepends = sbsigntools: Sign the embedded kernel + provides = ukify + provides = systemd-ukify=253.r62988.2208d96623 + conflicts = systemd-ukify diff --git a/.gitignore b/.gitignore index e3ac5ad9f301..fec2bdefad35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ systemd -src -pkg -*.pkg.* splash-arch.bmp +src +*pkg* *.log @@ -3,9 +3,13 @@ _pkgbase=systemd pkgbase=${_pkgbase}-git -pkgname=('systemd-git' 'systemd-libs-git' 'systemd-resolvconf-git' 'systemd-sysvcompat-git') +pkgname=('systemd-git' + 'systemd-libs-git' + 'systemd-resolvconf-git' + 'systemd-sysvcompat-git' + 'systemd-ukify-git') pkgdesc='systemd (git version)' -pkgver=253.r62798.7c78a19322 +pkgver=253.r62988.2208d96623 pkgrel=1 arch=('x86_64') url='https://www.github.com/systemd/systemd' @@ -39,7 +43,7 @@ source=('git+https://github.com/systemd/systemd' sha512sums=('SKIP' '3ccf783c28f7a1c857120abac4002ca91ae1f92205dcd5a84aff515d57e706a3f9240d75a0a67cff5085716885e06e62597baa86897f298662ec36a940cf410e' 'f0d933e8c6064ed830dec54049b0a01e27be87203208f6ae982f10fb4eddc7258cb2919d594cbfb9a33e74c3510cfd682f3416ba8e804387ab87d1a217eb4b73' - 'c6c30042b9f11c04e4430a4f45cce09c2dcc706bac567d7f8ec93b92ef791cd726d81c5b7d5468b350377f6338fa24d39c1ee8f4e8ce5826a61f4a9d4de4b25b' + '12f3c011a0164d28b092722639fff92c663c18b032d421695b0a72dbf123dd0908e3822087766ee922e131c02126f67ba2e1983c5cc244f5c4884dfed8605d00' 'a8c7e4a2cc9c9987e3c957a1fc3afe8281f2281fffd2e890913dcf00cf704024fb80d86cb75f9314b99b0e03bac275b22de93307bfc226d8be9435497e95b7e6' '61032d29241b74a0f28446f8cf1be0e8ec46d0847a61dadb2a4f096e8686d5f57fe5c72bcf386003f6520bc4b5856c32d63bf3efe7eb0bc0deefc9f68159e648' 'c416e2121df83067376bcaacb58c05b01990f4614ad9de657d74b6da3efa441af251d13bf21e3f0f71ddcb4c9ea658b81da3d915667dc5c309c87ec32a1cb5a5' @@ -147,9 +151,10 @@ package_systemd-git() { replaces=('nss-myhostname' 'systemd-tools' 'udev') conflicts=('nss-myhostname' 'systemd-tools' 'udev') conflicts+=('systemd') - optdepends=('libmicrohttpd: remote journald capabilities' + 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-git: 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' @@ -182,8 +187,16 @@ package_systemd-git() { rmdir "$pkgdir"/var/log/journal/remote # runtime libraries shipped with systemd-libs - install -d -m0755 systemd-libs - mv "$pkgdir"/usr/lib/lib{nss,systemd,udev}*.so* systemd-libs + install -d -m0755 systemd-libs/lib/ + mv "$pkgdir"/usr/lib/lib{nss,systemd,udev}*.so* systemd-libs/lib/ + mv "$pkgdir"/usr/lib/pkgconfig systemd-libs/lib/pkgconfig + 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 @@ -239,8 +252,10 @@ package_systemd-libs-git() { conflicts+=('systemd-libs') replaces=('libsystemd') - install -d -m0755 "$pkgdir"/usr - mv systemd-libs "$pkgdir"/usr/lib + install -d -m0755 "$pkgdir"/usr/share/man + mv systemd-libs/lib "$pkgdir"/usr/lib + mv systemd-libs/include "$pkgdir"/usr/include + mv systemd-libs/man3 "$pkgdir"/usr/share/man/man3 } package_systemd-resolvconf-git() { @@ -278,3 +293,19 @@ package_systemd-sysvcompat-git() { ln -s systemctl "$pkgdir"/usr/bin/$tool done } + +package_systemd-ukify-git() { + pkgdesc='Combine kernel and initrd into a signed Unified Kernel Image' + pkgdesc+=' (git version)' + license=('GPL2') + conflicts=('systemd-ukify') + provides=('ukify') + provides+=("systemd-ukify=$pkgver") + depends=('binutils' 'python-pefile' 'systemd-git') + 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 +} diff --git a/initcpio-install-systemd b/initcpio-install-systemd index c9aa0822b909..ff29d8c54a63 100644 --- a/initcpio-install-systemd +++ b/initcpio-install-systemd @@ -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" |