summaryrefslogtreecommitdiff
path: root/include/rpcd/plugin.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-12-03 23:36:35 +0100
committerJo-Philipp Wich <jo@mein.io>2021-12-08 20:09:24 +0100
commit75a96dc281d4e3652655155e85ea04abcffcb5e9 (patch)
tree29381b438ca1ed0777e8a040201b811d5d389aeb /include/rpcd/plugin.h
parentd11ffe9383ae0ec34836421926364b24c1d891ca (diff)
downloadrpcd-75a96dc281d4e3652655155e85ea04abcffcb5e9.tar.gz
build: honour CMake install prefix in hardcoded paths
Search plugins, ACL ressources and other data files relative to the compile time CMAKE_INSTALL_PREFIX instead of hardcoding `/usr`. Also ensure that plugin libraries are installed into the lib/rpcd subdir. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include/rpcd/plugin.h')
-rw-r--r--include/rpcd/plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rpcd/plugin.h b/include/rpcd/plugin.h
index 363c0d7..b795f0e 100644
--- a/include/rpcd/plugin.h
+++ b/include/rpcd/plugin.h
@@ -39,10 +39,10 @@
#include <rpcd/session.h>
/* location of plugin executables */
-#define RPC_PLUGIN_DIRECTORY "/usr/libexec/rpcd"
+#define RPC_PLUGIN_DIRECTORY INSTALL_PREFIX "/libexec/rpcd"
/* location of plugin libraries */
-#define RPC_LIBRARY_DIRECTORY "/usr/lib/rpcd"
+#define RPC_LIBRARY_DIRECTORY INSTALL_PREFIX "/lib/rpcd"
struct rpc_daemon_ops {
bool (*session_access)(const char *sid, const char *scope,