commit: 192cb2edeb4d08a1216a35821ef16a3d2588302e
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 29 03:32:04 2023 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Apr 29 03:32:04 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=192cb2ed
sys-apps/systemd: install legacy.conf tmpfiles snippet
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
sys-apps/systemd/files/legacy.conf | 3 +++
sys-apps/systemd/{systemd-253.3.ebuild => systemd-253.3-r1.ebuild} | 3 +++
sys-apps/systemd/systemd-9999.ebuild | 3 +++
3 files changed, 9 insertions(+)
diff --git a/sys-apps/systemd/files/legacy.conf
b/sys-apps/systemd/files/legacy.conf
new file mode 100644
index 000000000000..2d322e886960
--- /dev/null
+++ b/sys-apps/systemd/files/legacy.conf
@@ -0,0 +1,3 @@
+# Based on legacy.conf from systemd
+d /run/lock
+L /var/lock - - - - ../run/lock
diff --git a/sys-apps/systemd/systemd-253.3.ebuild
b/sys-apps/systemd/systemd-253.3-r1.ebuild
similarity index 99%
rename from sys-apps/systemd/systemd-253.3.ebuild
rename to sys-apps/systemd/systemd-253.3-r1.ebuild
index 885075d2a96a..291e51240b56 100644
--- a/sys-apps/systemd/systemd-253.3.ebuild
+++ b/sys-apps/systemd/systemd-253.3-r1.ebuild
@@ -359,6 +359,9 @@ multilib_src_install_all() {
einstalldocs
dodoc "${FILESDIR}"/nsswitch.conf
+ insinto /usr/lib/tmpfiles.d
+ doins "${FILESDIR}"/legacy.conf
+
if ! use resolvconf; then
rm -f "${ED}${rootprefix}/${sbin}"/resolvconf || die
fi
diff --git a/sys-apps/systemd/systemd-9999.ebuild
b/sys-apps/systemd/systemd-9999.ebuild
index 04abcb6fb4bf..595551b2bfaf 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -358,6 +358,9 @@ multilib_src_install_all() {
einstalldocs
dodoc "${FILESDIR}"/nsswitch.conf
+ insinto /usr/lib/tmpfiles.d
+ doins "${FILESDIR}"/legacy.conf
+
if ! use resolvconf; then
rm -f "${ED}${rootprefix}/${sbin}"/resolvconf || die
fi