charon-nm: Use better default directory for D-Bus policy file

Also makes it configurable via configure script.  Depending on `$datadir` is
not ideal as package maintainers might set that to a custom value.  Depending
on `$datarootdir` might have been better, the default if pkg-config fails is
now based on that.

References #3339.
This commit is contained in:
Tobias Brunner
2020-02-21 09:46:13 +01:00
parent 658b6df4d8
commit cfed3a87ee
2 changed files with 18 additions and 3 deletions
+2 -3
View File
@@ -23,7 +23,6 @@ charon_nm_LDADD = \
$(top_builddir)/src/libcharon/libcharon.la \
-lm $(PTHREADLIB) $(ATOMICLIB) $(DLLIB) ${nm_LIBS}
dbusservicedir = $(datadir)/dbus-1/system.d
dbusservice_DATA = nm-strongswan-service.conf
dbuspolicy_DATA = nm-strongswan-service.conf
EXTRA_DIST = $(dbusservice_DATA)
EXTRA_DIST = $(dbuspolicy_DATA)