meson.build: make docdir configurable (#8068)
SUSE is using a different docdir, so the path should be configurable
This commit is contained in:
parent
52dca0de99
commit
75aaade16b
|
@ -136,13 +136,17 @@ udevhwdbdir = join_paths(udevlibexecdir, 'hwdb.d')
|
||||||
catalogdir = join_paths(prefixdir, 'lib/systemd/catalog')
|
catalogdir = join_paths(prefixdir, 'lib/systemd/catalog')
|
||||||
kernelinstalldir = join_paths(prefixdir, 'lib/kernel/install.d')
|
kernelinstalldir = join_paths(prefixdir, 'lib/kernel/install.d')
|
||||||
factorydir = join_paths(datadir, 'factory')
|
factorydir = join_paths(datadir, 'factory')
|
||||||
docdir = join_paths(datadir, 'doc/systemd')
|
|
||||||
bootlibdir = join_paths(prefixdir, 'lib/systemd/boot/efi')
|
bootlibdir = join_paths(prefixdir, 'lib/systemd/boot/efi')
|
||||||
testsdir = join_paths(prefixdir, 'lib/systemd/tests')
|
testsdir = join_paths(prefixdir, 'lib/systemd/tests')
|
||||||
systemdstatedir = join_paths(localstatedir, 'lib/systemd')
|
systemdstatedir = join_paths(localstatedir, 'lib/systemd')
|
||||||
catalogstatedir = join_paths(systemdstatedir, 'catalog')
|
catalogstatedir = join_paths(systemdstatedir, 'catalog')
|
||||||
randomseeddir = join_paths(localstatedir, 'lib/systemd')
|
randomseeddir = join_paths(localstatedir, 'lib/systemd')
|
||||||
|
|
||||||
|
docdir = get_option('docdir')
|
||||||
|
if docdir == ''
|
||||||
|
docdir = join_paths(datadir, 'doc/systemd')
|
||||||
|
endif
|
||||||
|
|
||||||
dbuspolicydir = get_option('dbuspolicydir')
|
dbuspolicydir = get_option('dbuspolicydir')
|
||||||
if dbuspolicydir == ''
|
if dbuspolicydir == ''
|
||||||
dbuspolicydir = join_paths(datadir, 'dbus-1/system.d')
|
dbuspolicydir = join_paths(datadir, 'dbus-1/system.d')
|
||||||
|
|
|
@ -134,6 +134,8 @@ option('pamlibdir', type : 'string',
|
||||||
description : 'directory for PAM modules')
|
description : 'directory for PAM modules')
|
||||||
option('pamconfdir', type : 'string',
|
option('pamconfdir', type : 'string',
|
||||||
description : 'directory for PAM configuration ["no" disables]')
|
description : 'directory for PAM configuration ["no" disables]')
|
||||||
|
option('docdir', type : 'string',
|
||||||
|
description : 'documentation directory')
|
||||||
|
|
||||||
option('fallback-hostname', type : 'string', value : 'localhost',
|
option('fallback-hostname', type : 'string', value : 'localhost',
|
||||||
description : 'the hostname used if none configured')
|
description : 'the hostname used if none configured')
|
||||||
|
|
Loading…
Reference in a new issue