summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-09 20:15:44 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-09 20:15:44 +0100
commit607df95be184308b6bb7a5534f04109c67c039c3 (patch)
tree2a27e386284dfd9b5f31d48cd085709544793b23
parent2e60ecb2f760936552f9d6db32d6ecf828b3c322 (diff)
pkconfig: export full search path as .pc variable
-rw-r--r--src/path-lookup.c2
-rw-r--r--systemd.pc.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/path-lookup.c b/src/path-lookup.c
index f094969ada..1a21ca078a 100644
--- a/src/path-lookup.c
+++ b/src/path-lookup.c
@@ -181,6 +181,8 @@ int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
return -ENOMEM;
} else
if (!(p->unit_path = strv_new(
+ /* If you modify this you also want to modify
+ * systemdsystemunitpath= in systemd.pc.in! */
"/dev/.systemd/system",
SYSTEM_CONFIG_UNIT_PATH,
"/etc/systemd/system",
diff --git a/systemd.pc.in b/systemd.pc.in
index 204991309b..e939293a4c 100644
--- a/systemd.pc.in
+++ b/systemd.pc.in
@@ -11,6 +11,7 @@ systemdsystemunitdir=@systemunitdir@
systemduserunitdir=@pkgdatadir@/user
systemdsystemconfdir=@pkgsysconfdir@/system
systemduserconfdir=@pkgsysconfdir@/user
+systemdsystemunitpath=/dev/.systemd/system:${systemdsystemconfdir}:/etc/systemd/system:/usr/local/share/systemd/system:/usr/share/systemd/system:/lib/systemd/system:${systemdsystemunitdir}
Name: systemd
Description: systemd System and Service Manager