summaryrefslogtreecommitdiff
path: root/audio/snapcast/patches/patch-server_server__settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/snapcast/patches/patch-server_server__settings.hpp')
-rw-r--r--audio/snapcast/patches/patch-server_server__settings.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/snapcast/patches/patch-server_server__settings.hpp b/audio/snapcast/patches/patch-server_server__settings.hpp
new file mode 100644
index 00000000000..16bfe48671c
--- /dev/null
+++ b/audio/snapcast/patches/patch-server_server__settings.hpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-server_server__settings.hpp,v 1.1 2022/07/03 16:09:15 nia Exp $
+
+Don't hardcode various paths, allow pkgsrc to substitute them.
+
+--- server/server_settings.hpp.orig 2021-12-22 17:40:36.000000000 +0000
++++ server/server_settings.hpp
+@@ -30,7 +30,7 @@ struct ServerSettings
+ struct Server
+ {
+ int threads{-1};
+- std::string pid_file{"/var/run/snapserver/pid"};
++ std::string pid_file{"@VARBASE@/run/snapserver/pid"};
+ std::string user{"snapserver"};
+ std::string group{""};
+ std::string data_dir{""};