summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-07-15 03:35:49 -0400
committerLennart Poettering <lennart@poettering.net>2016-07-15 09:35:49 +0200
commit1071fd0823eb744c097597c62dc92c837df57e20 (patch)
tree60a7287d2522c7f8e9858d90d7a3dc558b4f9a7c
parenta34349e73348d16d0f41910a38f515f78d18d396 (diff)
macros: provide %_systemdgeneratordir and %_systemdusergeneratordir (#3672)
... as requested in https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/DJ7HDNRM5JGBSA4HL3UWW5ZGLQDJ6Y7M/. Adding the macro makes it marginally easier to create generators for outside projects. I opted for "generatordir" and "usergeneratordir" to match %unitdir and %userunitdir. OTOH, "_systemd" prefix makes it obvious that this is related to systemd. "%_generatordir" would be to generic of a name.
-rw-r--r--src/core/macros.systemd.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in
index 2cace3d3ba..028db1cc4a 100644
--- a/src/core/macros.systemd.in
+++ b/src/core/macros.systemd.in
@@ -29,6 +29,8 @@
%_sysusersdir @sysusersdir@
%_sysctldir @sysctldir@
%_binfmtdir @binfmtdir@
+%_systemdgeneratordir @systemgeneratordir@
+%_systemdusergeneratordir @usergeneratordir@
%systemd_requires \
Requires(post): systemd \