60bce7c6d9
While we don't support prefix being != /usr, and this is hardcoded
all over the place, variables in pkg-config file are expected
to have overridable base directory.
This is important for at least the following two use cases:
- Installing projects to non-FHS package-specific prefixes for Nix-style
package managers. Of course, it is then their responsibility
to ensure systemd can find the service files.
- Installing to local path for development purposes.
This is a compromise between running a program from a build directory,
and running it fully installed to system prefix.
You will not want to write to system prefix in either case.
For more information, see also
https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/
Fixes https://github.com/systemd/systemd/issues/18082
Partially reverts 6e65df89c3
102 lines
3.6 KiB
PkgConfig
102 lines
3.6 KiB
PkgConfig
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# Names with prefixes are preferred, and the run-together names should be
|
|
# considered deprecated (though there is no plan to remove them). New names
|
|
# shall have underscores.
|
|
|
|
prefix=/usr
|
|
root_prefix=@rootprefix_noslash@
|
|
rootprefix=${root_prefix}
|
|
sysconf_dir=@sysconfdir@
|
|
sysconfdir=${sysconf_dir}
|
|
|
|
systemd_util_dir=${root_prefix}/lib/systemd
|
|
systemdutildir=${systemd_util_dir}
|
|
|
|
systemd_system_unit_dir=${rootprefix}/lib/systemd/system
|
|
systemdsystemunitdir=${systemd_system_unit_dir}
|
|
|
|
systemd_system_preset_dir=${rootprefix}/lib/systemd/system-preset
|
|
systemdsystempresetdir=${systemd_system_preset_dir}
|
|
|
|
systemd_user_unit_dir=${prefix}/lib/systemd/user
|
|
systemduserunitdir=${systemd_user_unit_dir}
|
|
|
|
systemd_user_preset_dir=${prefix}/lib/systemd/user-preset
|
|
systemduserpresetdir=${systemd_user_preset_dir}
|
|
|
|
systemd_system_conf_dir=${sysconfdir}/systemd/system
|
|
systemdsystemconfdir=${systemd_system_conf_dir}
|
|
|
|
systemd_user_conf_dir=${sysconfdir}/systemd/user
|
|
systemduserconfdir=${systemd_user_conf_dir}
|
|
|
|
systemd_system_unit_path=${systemd_system_conf_dir}:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:${systemd_system_unit_dir}:/usr/lib/systemd/system:/lib/systemd/system
|
|
systemdsystemunitpath=${systemd_system_unit_path}
|
|
|
|
systemd_user_unit_path=${systemd_user_conf_dir}:/etc/systemd/user:/run/systemd/user:/usr/local/lib/systemd/user:/usr/local/share/systemd/user:${systemd_user_unit_dir}:/usr/lib/systemd/user:/usr/share/systemd/user
|
|
systemduserunitpath=${systemd_user_unit_path}
|
|
|
|
systemd_system_generator_dir=${root_prefix}/lib/systemd/system-generators
|
|
systemdsystemgeneratordir=${systemd_system_generator_dir}
|
|
|
|
systemd_user_generator_dir=${prefix}/lib/systemd/user-generators
|
|
systemdusergeneratordir=${systemd_user_generator_dir}
|
|
|
|
systemd_system_generator_path=/run/systemd/system-generators:/etc/systemd/system-generators:/usr/local/lib/systemd/system-generators:${systemd_system_generator_dir}
|
|
systemdsystemgeneratorpath=${systemd_system_generator_path}
|
|
|
|
systemd_user_generator_path=/run/systemd/user-generators:/etc/systemd/user-generators:/usr/local/lib/systemd/user-generators:${systemd_user_generator_dir}
|
|
systemdusergeneratorpath=${systemd_user_generator_path}
|
|
|
|
systemd_sleep_dir=${root_prefix}/lib/systemd/system-sleep
|
|
systemdsleepdir=${systemd_sleep_dir}
|
|
|
|
systemd_shutdown_dir=${root_prefix}/lib/systemd/system-shutdown
|
|
systemdshutdowndir=${systemd_shutdown_dir}
|
|
|
|
tmpfiles_dir=${prefix}/lib/tmpfiles.d
|
|
tmpfilesdir=${tmpfiles_dir}
|
|
|
|
sysusers_dir=${rootprefix}/lib/sysusers.d
|
|
sysusersdir=${sysusers_dir}
|
|
|
|
sysctl_dir=${rootprefix}/lib/sysctl.d
|
|
sysctldir=${sysctl_dir}
|
|
|
|
binfmt_dir=${rootprefix}/lib/binfmt.d
|
|
binfmtdir=${binfmt_dir}
|
|
|
|
modules_load_dir=${rootprefix}/lib/modules-load.d
|
|
modulesloaddir=${modules_load_dir}
|
|
|
|
catalog_dir=${prefix}/lib/systemd/catalog
|
|
catalogdir=${catalog_dir}
|
|
|
|
system_uid_max=@SYSTEM_UID_MAX@
|
|
systemuidmax=${system_uid_max}
|
|
system_gid_max=@SYSTEM_GID_MAX@
|
|
systemgidmax=${system_gid_max}
|
|
|
|
dynamic_uid_min=@dynamicuidmin@
|
|
dynamicuidmin=${dynamic_uid_min}
|
|
dynamic_uid_max=@dynamicuidmax@
|
|
dynamicuidmax=${dynamic_uid_max}
|
|
|
|
container_uid_base_min=@containeruidbasemin@
|
|
containeruidbasemin=${container_uid_base_min}
|
|
container_uid_base_max=@containeruidbasemax@
|
|
containeruidbasemax=${container_uid_base_max}
|
|
|
|
Name: systemd
|
|
Description: systemd System and Service Manager
|
|
URL: @PROJECT_URL@
|
|
Version: @PROJECT_VERSION@
|