Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: Mike Gilbert <floppym@g.o>
Subject: [gentoo-dev] [PATCH 2/3] systemd.eclass: add systemd_get_sleepdir
Date: Mon, 10 Oct 2022 15:35:07
Message-Id: 20221010153355.197970-3-floppym@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/3] systemd.eclass improvements by Mike Gilbert
1 Closes: https://bugs.gentoo.org/873172
2 Signed-off-by: Mike Gilbert <floppym@g.o>
3 ---
4 eclass/systemd.eclass | 8 ++++++++
5 1 file changed, 8 insertions(+)
6
7 diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
8 index 9e9a9b0cf20..fbed387e0ca 100644
9 --- a/eclass/systemd.eclass
10 +++ b/eclass/systemd.eclass
11 @@ -132,6 +132,14 @@ systemd_get_systempresetdir() {
12 _systemd_get_dir systemdsystempresetdir /lib/systemd/system-preset
13 }
14
15 +# @FUNCTION: systemd_get_sleepdir
16 +# @DESCRIPTION:
17 +# Output the path for the system sleep directory.
18 +systemd_get_sleepdir() {
19 + debug-print-function ${FUNCNAME} "${@}"
20 + _systemd_get_dir systemdsleepdir /lib/systemd/system-sleep
21 +}
22 +
23 # @FUNCTION: systemd_dounit
24 # @USAGE: <unit>...
25 # @DESCRIPTION:
26 --
27 2.37.3