summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-09-28 20:01:34 +0200
committerSven Eden <yamakuzure@gmx.net>2018-09-28 20:04:52 +0200
commita672a8d4083d2c8b0b3f623fe0d341e2b1f58182 (patch)
treef46cbd8e470ea65bd16a90834c68c292dc01df57
parent48ed2296c6f7e463d12ff0e0f90e494d27eae239 (diff)
Prep v239: Touch .keep_dir into systemshutdowndir and systemsleepdir.
Package managers like Portage strip empty directories. To ensure that these directories are still installed, we simply touch empty and hidden files into them.
-rw-r--r--src/core/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/meson.build b/src/core/meson.build
index 5e7b6981d..10d29d5e6 100644
--- a/src/core/meson.build
+++ b/src/core/meson.build
@@ -221,6 +221,10 @@ libcore_la_sources = files('''
#endif // 0
meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
+#if 1 /// some package sytems like portage might strip empty directories created for elogind
+meson.add_install_script('sh', '-c', 'touch $DESTDIR@0@/.keep_dir'.format(systemshutdowndir))
+meson.add_install_script('sh', '-c', 'touch $DESTDIR@0@/.keep_dir'.format(systemsleepdir))
+#endif // 1
#if 0 /// UNNEEDED by elogind
# meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
# meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))