build: Install daemon in libexecdir

Rather than sbindir, which would have meant it could be in the PATH.
This commit is contained in:
Bastien Nocera
2020-06-27 14:02:32 +02:00
parent e3adea6626
commit af2f3a1055
4 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ Description=IIO Sensor Proxy service
[Service]
Type=dbus
BusName=net.hadess.SensorProxy
ExecStart=@sbindir@/iio-sensor-proxy
ExecStart=@libexecdir@/iio-sensor-proxy
#Uncomment this to enable debug
#Environment="G_MESSAGES_DEBUG=all"

View File

@@ -4,7 +4,7 @@ install_data(
)
data_conf = configuration_data()
data_conf.set('sbindir', sbindir)
data_conf.set('libexecdir', libexecdir)
data_conf.set('geoclue_user', get_option('geoclue-user'))
configure_file(

View File

@@ -23,7 +23,7 @@ common_cflags = cc.get_supported_arguments([
'-Wshadow'
])
sbindir = get_option('sbindir')
libexecdir = get_option('libexecdir')
bindir = get_option('bindir')
dbusconfdir = get_option('sysconfdir') / 'dbus-1' / 'system.d'

View File

@@ -32,7 +32,7 @@ executable('iio-sensor-proxy',
sources,
dependencies: deps,
install: true,
install_dir: sbindir
install_dir: libexecdir
)
executable('fake-input-accelerometer',