2019-03-02 02:53:43 +00:00
|
|
|
diff --git a/data/meson.build b/data/meson.build
|
2019-05-17 03:45:38 +01:00
|
|
|
index c189753..12c10cb 100644
|
2018-12-20 17:46:05 +00:00
|
|
|
--- a/data/meson.build
|
|
|
|
+++ b/data/meson.build
|
2019-03-02 02:53:43 +00:00
|
|
|
@@ -7,7 +7,7 @@ if get_option('enable-backend')
|
2018-12-20 17:46:05 +00:00
|
|
|
conf.set('demo_agent', '')
|
|
|
|
endif
|
|
|
|
|
2019-03-02 02:53:43 +00:00
|
|
|
- conf_dir = join_paths(sysconfdir, 'geoclue')
|
2018-12-20 17:46:05 +00:00
|
|
|
+ conf_dir = join_paths(sysconfdir_install, 'geoclue')
|
|
|
|
configure_file(output: 'geoclue.conf',
|
|
|
|
input: 'geoclue.conf.in',
|
|
|
|
configuration: conf,
|
2019-05-17 03:45:38 +01:00
|
|
|
@@ -16,7 +16,7 @@ if get_option('enable-backend')
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('libexecdir', libexecdir)
|
|
|
|
conf.set('dbus_srv_user', get_option('dbus-srv-user'))
|
|
|
|
- conf.set('sysconfdir', sysconfdir)
|
|
|
|
+ conf.set('sysconfdir', sysconfdir_install)
|
|
|
|
|
|
|
|
service_dir = join_paths(datadir, 'dbus-1', 'system-services')
|
|
|
|
configure_file(output: 'org.freedesktop.GeoClue2.service',
|
|
|
|
@@ -33,7 +33,7 @@ if get_option('enable-backend')
|
2018-12-20 17:46:05 +00:00
|
|
|
# DBus Service policy file
|
|
|
|
dbus_service_dir = get_option('dbus-sys-dir')
|
2019-03-02 02:53:43 +00:00
|
|
|
if dbus_service_dir == ''
|
|
|
|
- dbus_service_dir = join_paths(sysconfdir, 'dbus-1', 'system.d')
|
2018-12-20 17:46:05 +00:00
|
|
|
+ dbus_service_dir = join_paths(sysconfdir_install, 'dbus-1', 'system.d')
|
|
|
|
endif
|
|
|
|
configure_file(output: 'org.freedesktop.GeoClue2.conf',
|
|
|
|
input: 'org.freedesktop.GeoClue2.conf.in',
|
2019-03-02 02:53:43 +00:00
|
|
|
diff --git a/demo/meson.build b/demo/meson.build
|
2019-05-17 03:45:38 +01:00
|
|
|
index 1427fbe..2623f16 100644
|
2018-12-20 17:46:05 +00:00
|
|
|
--- a/demo/meson.build
|
|
|
|
+++ b/demo/meson.build
|
2019-05-17 03:45:38 +01:00
|
|
|
@@ -54,7 +54,7 @@ if get_option('demo-agent')
|
2018-12-20 17:46:05 +00:00
|
|
|
install_dir: desktop_dir)
|
|
|
|
|
|
|
|
# Also install in the autostart directory.
|
2019-03-02 02:53:43 +00:00
|
|
|
- autostart_dir = join_paths(sysconfdir, 'xdg', 'autostart')
|
|
|
|
+ autostart_dir = join_paths(sysconfdir_install, 'xdg', 'autostart')
|
2018-12-20 17:46:05 +00:00
|
|
|
meson.add_install_script('install-file.py',
|
|
|
|
desktop_file.full_path(),
|
2019-03-02 02:53:43 +00:00
|
|
|
autostart_dir)
|
|
|
|
diff --git a/meson.build b/meson.build
|
2019-05-17 03:45:38 +01:00
|
|
|
index fde6fa3..39b7b0a 100644
|
2018-12-20 17:46:05 +00:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2019-03-02 02:53:43 +00:00
|
|
|
@@ -12,7 +12,11 @@ gclue_api_version='2.0'
|
2018-12-20 17:46:05 +00:00
|
|
|
datadir = join_paths(get_option('prefix'), get_option('datadir'))
|
2019-03-02 02:53:43 +00:00
|
|
|
includedir = join_paths(get_option('prefix'), get_option('includedir'))
|
|
|
|
libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
|
|
|
|
-sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
|
2018-12-20 17:46:05 +00:00
|
|
|
+if get_option('sysconfdir_install') != ''
|
|
|
|
+ sysconfdir_install = join_paths(get_option('prefix'), get_option('sysconfdir_install'))
|
|
|
|
+else
|
|
|
|
+ sysconfdir_install = get_option('sysconfdir')
|
|
|
|
+endif
|
2019-03-02 02:53:43 +00:00
|
|
|
localedir = join_paths(datadir, 'locale')
|
2018-12-20 17:46:05 +00:00
|
|
|
|
2019-03-02 02:53:43 +00:00
|
|
|
header_dir = 'libgeoclue-' + gclue_api_version
|
2019-05-17 03:45:38 +01:00
|
|
|
@@ -29,7 +33,7 @@ conf.set_quoted('PACKAGE_URL', 'https://gitlab.freedesktop.org/geoclue/geoclue/w
|
|
|
|
conf.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/geoclue/geoclue/issues/new')
|
2019-03-02 02:53:43 +00:00
|
|
|
conf.set_quoted('TEST_SRCDIR', meson.source_root() + '/data/')
|
|
|
|
conf.set_quoted('LOCALEDIR', localedir)
|
|
|
|
-conf.set_quoted('SYSCONFDIR', sysconfdir)
|
|
|
|
+conf.set_quoted('SYSCONFDIR', get_option('sysconfdir'))
|
|
|
|
conf.set10('GCLUE_USE_3G_SOURCE', get_option('3g-source'))
|
|
|
|
conf.set10('GCLUE_USE_CDMA_SOURCE', get_option('cdma-source'))
|
|
|
|
conf.set10('GCLUE_USE_MODEM_GPS_SOURCE', get_option('modem-gps-source'))
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
|
|
index 83bc60e..b726329 100644
|
2018-12-20 17:46:05 +00:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
2019-03-02 02:53:43 +00:00
|
|
|
@@ -34,3 +34,6 @@ option('systemd-system-unit-dir',
|
2018-12-20 17:46:05 +00:00
|
|
|
option('dbus-srv-user',
|
|
|
|
type: 'string', value: 'root',
|
|
|
|
description: 'The user (existing) as which the service will run')
|
|
|
|
+option('sysconfdir_install',
|
|
|
|
+ type: 'string', value: '',
|
|
|
|
+ description: 'sysconfdir to use during installation')
|