snapcast: allow the web interface to be used by setting reasonable default

config values for pkgsrc-based installations
This commit is contained in:
nia 2022-07-06 10:04:46 +00:00
parent 81a89455ad
commit ebdffb2e7c
3 changed files with 15 additions and 5 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.4 2022/07/06 10:02:13 nia Exp $
# $NetBSD: Makefile,v 1.5 2022/07/06 10:04:46 nia Exp $
DISTNAME= snapcast-0.26.0
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=badaix/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@ -31,6 +31,7 @@ SUBST_FILES.etc+= server/etc/snapserver.conf
SUBST_FILES.etc+= server/server_settings.hpp
SUBST_FILES.etc+= server/snapserver.cpp
SUBST_FILES.etc+= server/snapserver.1
SUBST_VARS.etc+= PREFIX
SUBST_VARS.etc+= PKG_SYSCONFDIR
SUBST_VARS.etc+= VARBASE

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.1 2022/07/03 16:09:15 nia Exp $
$NetBSD: distinfo,v 1.2 2022/07/06 10:04:46 nia Exp $
BLAKE2s (snapcast-0.26.0.tar.gz) = e0ef56ee25d30c8536158949c5e5f85b32a8c410303da939ef844bb3dc300012
SHA512 (snapcast-0.26.0.tar.gz) = fc7885e42a11794e33314544083251ffbb91a0cf160c6d4b854c56f57ffe9f38f75c7594478c9edabfe9076959938cd8de891dd456e66202692de664a75cde71
@ -11,7 +11,7 @@ SHA1 (patch-client_player_sun__player.hpp) = d8eeba9f4c16e85833baba95c07f9a06007
SHA1 (patch-client_snapclient.cpp) = d682d4c1de438251d1510d40387e9a0b2bcf926f
SHA1 (patch-common_utils.hpp) = 8184a65459accd76b55e8e9e95d1911439fb4d8a
SHA1 (patch-server_CMakeLists.txt) = 49144e902844bd3308871a625f5da56575904855
SHA1 (patch-server_etc_snapserver.conf) = a740795aa764ffb5870a4d798518a0464ca3517b
SHA1 (patch-server_etc_snapserver.conf) = f274e31ab54d76ea8ce839f5d2d918c111a80604
SHA1 (patch-server_server__settings.hpp) = 50950a4855ecc336dbec146b86935fa18942dc1d
SHA1 (patch-server_snapserver.1) = 3459c6109635d1ad72c1aee92e302088a2317007
SHA1 (patch-server_snapserver.cpp) = 62d5dcbfe369f9095e9b6c695680650f7eb458b6

View file

@ -1,4 +1,4 @@
$NetBSD: patch-server_etc_snapserver.conf,v 1.1 2022/07/03 16:09:15 nia Exp $
$NetBSD: patch-server_etc_snapserver.conf,v 1.2 2022/07/06 10:04:46 nia Exp $
Don't hardcode various paths, allow pkgsrc to substitute them.
@ -22,3 +22,12 @@ Don't hardcode various paths, allow pkgsrc to substitute them.
# - "$HOME/.config/snapserver/" when not running as daemon
#datadir =
@@ -65,7 +65,7 @@
# serve a website from the doc_root location
# disabled if commented or empty
-doc_root = /usr/share/snapserver/snapweb
+doc_root = @PREFIX@/share/snapserver/snapweb
# Hostname or IP under which clients can reach this host
# used to serve cached cover art