From 19eedbea6b710b0ef1616990611aa11f5fc6d4b6 Mon Sep 17 00:00:00 2001 From: jane400 Date: Sat, 22 Jun 2024 11:50:30 +0200 Subject: [PATCH] systemd/systemd: configure presets for systemd services (MR 5377) (MR 5563) Co-authored-by: Clayton Craft --- extra-repos/systemd/systemd/APKBUILD | 5 ++++- extra-repos/systemd/systemd/systemd-networkd.post-install | 4 ++++ extra-repos/systemd/systemd/systemd-networkd.pre-deinstall | 4 ++++ extra-repos/systemd/systemd/systemd-resolved.post-install | 4 ++++ extra-repos/systemd/systemd/systemd-resolved.pre-deinstall | 4 ++++ extra-repos/systemd/systemd/systemd-timesyncd.post-install | 4 ++++ extra-repos/systemd/systemd/systemd-timesyncd.pre-deinstall | 4 ++++ 7 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 extra-repos/systemd/systemd/systemd-networkd.post-install create mode 100644 extra-repos/systemd/systemd/systemd-networkd.pre-deinstall create mode 100644 extra-repos/systemd/systemd/systemd-resolved.post-install create mode 100644 extra-repos/systemd/systemd/systemd-resolved.pre-deinstall create mode 100644 extra-repos/systemd/systemd/systemd-timesyncd.post-install create mode 100644 extra-repos/systemd/systemd/systemd-timesyncd.pre-deinstall diff --git a/extra-repos/systemd/systemd/APKBUILD b/extra-repos/systemd/systemd/APKBUILD index cecb45ba1..02b018f43 100644 --- a/extra-repos/systemd/systemd/APKBUILD +++ b/extra-repos/systemd/systemd/APKBUILD @@ -5,7 +5,7 @@ pkgname=systemd pkgver=256 _pkgver="musl-v${pkgver//_/-}" -pkgrel=2 +pkgrel=3 pkgdesc="System and service manager" url="https://github.com/systemd/systemd" arch="all !ppc64le !armhf !s390x" # blocked by pmboostrap not supporting @@ -255,6 +255,7 @@ udevd_zcomp() { timesyncd() { pkgdesc="systemd Time Synchronization" + install="$subpkgname.post-install $subpkgname.pre-deinstall" amove etc/systemd/timesyncd.conf amove usr/bin/timedatectl @@ -276,6 +277,7 @@ timesyncd_zcomp() { networkd() { pkgdesc="systemd Network Configuration" + install="$subpkgname.post-install $subpkgname.pre-deinstall" amove usr/bin/networkctl amove etc/systemd/network @@ -309,6 +311,7 @@ networkd_zcomp() { resolved() { pkgdesc="systemd Network Name Resolution" + install="$subpkgname.post-install $subpkgname.pre-deinstall" replaces="resolvconf" provides="resolvconf" diff --git a/extra-repos/systemd/systemd/systemd-networkd.post-install b/extra-repos/systemd/systemd/systemd-networkd.post-install new file mode 100644 index 000000000..7090ed5a1 --- /dev/null +++ b/extra-repos/systemd/systemd/systemd-networkd.post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +. /usr/lib/systemd/systemd-apk-macros.sh +systemd_service_post_install system systemd-networkd diff --git a/extra-repos/systemd/systemd/systemd-networkd.pre-deinstall b/extra-repos/systemd/systemd/systemd-networkd.pre-deinstall new file mode 100644 index 000000000..fd99d8792 --- /dev/null +++ b/extra-repos/systemd/systemd/systemd-networkd.pre-deinstall @@ -0,0 +1,4 @@ +#!/bin/sh + +. /usr/lib/systemd/systemd-apk-macros.sh +systemd_service_pre_deinstall system systemd-networkd diff --git a/extra-repos/systemd/systemd/systemd-resolved.post-install b/extra-repos/systemd/systemd/systemd-resolved.post-install new file mode 100644 index 000000000..2ecb0d279 --- /dev/null +++ b/extra-repos/systemd/systemd/systemd-resolved.post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +. /usr/lib/systemd/systemd-apk-macros.sh +systemd_service_post_install system systemd-resolved diff --git a/extra-repos/systemd/systemd/systemd-resolved.pre-deinstall b/extra-repos/systemd/systemd/systemd-resolved.pre-deinstall new file mode 100644 index 000000000..c3623ded5 --- /dev/null +++ b/extra-repos/systemd/systemd/systemd-resolved.pre-deinstall @@ -0,0 +1,4 @@ +#!/bin/sh + +. /usr/lib/systemd/systemd-apk-macros.sh +systemd_service_pre_deinstall system systemd-resolved diff --git a/extra-repos/systemd/systemd/systemd-timesyncd.post-install b/extra-repos/systemd/systemd/systemd-timesyncd.post-install new file mode 100644 index 000000000..43d4a4dda --- /dev/null +++ b/extra-repos/systemd/systemd/systemd-timesyncd.post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +. /usr/lib/systemd/systemd-apk-macros.sh +systemd_service_post_install system systemd-timesyncd diff --git a/extra-repos/systemd/systemd/systemd-timesyncd.pre-deinstall b/extra-repos/systemd/systemd/systemd-timesyncd.pre-deinstall new file mode 100644 index 000000000..e93dc0238 --- /dev/null +++ b/extra-repos/systemd/systemd/systemd-timesyncd.pre-deinstall @@ -0,0 +1,4 @@ +#!/bin/sh + +. /usr/lib/systemd/systemd-apk-macros.sh +systemd_service_pre_deinstall system systemd-timesyncd