build: install /etc/systemd/{system,user}-generators

Manual page systemd.generators refers to /etc/systemd/{system,user}-generators,
but the paths do not exist, so let's install them.
This commit is contained in:
Topi Miettinen 2019-04-01 23:31:47 +03:00 committed by Zbigniew Jędrzejewski-Szmek
parent 3f8f021541
commit 509276f2b7
2 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,8 @@ networkdir = join_paths(rootprefixdir, 'lib/systemd/network')
pkgincludedir = join_paths(includedir, 'systemd')
systemgeneratordir = join_paths(rootlibexecdir, 'system-generators')
usergeneratordir = join_paths(prefixdir, 'lib/systemd/user-generators')
pkgsysconfsystemgeneratordir = join_paths(pkgsysconfdir, 'system-generators')
pkgsysconfusergeneratordir = join_paths(pkgsysconfdir, 'user-generators')
systemenvgeneratordir = join_paths(prefixdir, 'lib/systemd/system-environment-generators')
userenvgeneratordir = join_paths(prefixdir, 'lib/systemd/user-environment-generators')
systemshutdowndir = join_paths(rootlibexecdir, 'system-shutdown')

View File

@ -211,6 +211,8 @@ meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
meson.add_install_script('sh', '-c', mkdir_p.format(pkgsysconfsystemgeneratordir))
meson.add_install_script('sh', '-c', mkdir_p.format(pkgsysconfusergeneratordir))
meson.add_install_script('sh', '-c',
mkdir_p.format(join_paths(pkgsysconfdir, 'system/multi-user.target.wants')))