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