update: update systemd-257.8

add 30-systemd-daemon-reload-system.HOOK
This commit is contained in:
2025-12-23 02:27:16 -05:00
parent fab06fdd4a
commit 737298005c
2 changed files with 21 additions and 0 deletions

View File

@@ -5,16 +5,20 @@ homepage="https://www.freedesktop.org/wiki/Software/systemd/"
license=("LGPL-2.1-or-laterC" "C0-1.0" "GPL-2.0-or-later" "MIT-0")
sources=("${pkgname}-${pkgver}.tar.gz"
"${pkgname}-man-pages-${pkgver}.tar.xz"
"30-systemd-daemon-reload-system.HOOK"
)
urls=("https://github.com/systemd/systemd/archive/v${pkgver}/${sources[0]}"
"https://anduin.linuxfromscratch.org/LFS/${sources[1]}"
"30-systemd-daemon-reload-system.HOOK"
)
md5sums=("25fe5d328e22641254761f1baa74cee0"
"a44063e2ec0cf4adfd2ed5c9e9e095c5"
"4074a547dcc72dcde3196face4df5a97"
)
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
cp ${distdir}/${sources[2]} ./
sed -e 's/GROUP="render"/GROUP="video"/' \
-e 's/GROUP="sgx", //' \
-i rules.d/50-udev-default.rules.in
@@ -43,6 +47,8 @@ src_build() {
-D nobody-group=nogroup \
-D sysupdate=disabled \
-D ukify=disabled \
-D default-kill-user-processes=false \
-D default-locale='C.UTF-8' \
-D docdir=/usr/share/doc/systemd-${pkgver}
ninja
@@ -61,6 +67,7 @@ src_check() {
src_install() {
pushd build
DESTDIR=$pkgdir ninja install
leaf_install_hook ../${sources[2]}
install -d -v -m755 ${pkgdir}/usr/share/man
tar -xf ${distdir}/${sources[1]} \
--no-same-owner --strip-components=1 \

View File

@@ -0,0 +1,14 @@
target=(/usr/lib/sysusers.d/*.conf)
triggers=("install" "remove")
operation(){
if systemd-detect-virt --chroot; then
echo >&2 " Skipped: Running in chroot."
exit 0
fi
if ! systemd-notify --booted; then
echo >&2 " Skipped: Current root is not booted."
exit 0
fi
/usr/bin/systemctl --system daemon-reload
}