mumble: improve murmur package

* add qt5-plugin-sqlite to dependencies
otherwise, running mumble-server with the default configuration fails
<F>2022-05-21 19:47:53.080 ServerDB: Database driver QSQLITE not available

* add a system service
* remove murmur-user-wrapper
This commit is contained in:
Michal Vasilek 2022-05-21 22:01:38 +02:00
parent caf768154d
commit ac6adbc971
4 changed files with 30 additions and 5 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec logger -p daemon.notice -t murmur

View File

@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
exec chpst -u_murmur:_murmur mumble-server -fg -ini ${CONFIG_FILE:-/etc/murmur.ini} ${OPTS}

View File

@ -0,0 +1,11 @@
--- a/scripts/murmur.ini
+++ b/scripts/murmur.ini
@@ -13,7 +13,7 @@
; Path to database. If blank, will search for
; murmur.sqlite in default locations or create it if not found.
-database=
+database=/var/lib/murmur/murmur.sqlite
; Murmur defaults to using SQLite with its default rollback journal.
; In some situations, using SQLite's write-ahead log (WAL) can be

View File

@ -29,18 +29,25 @@ build_options_default="jack portaudio"
export CMAKE_GENERATOR="Unix Makefiles"
post_install() {
vbin ${wrksrc}/scripts/murmur-user-wrapper
vsconf scripts/murmur.ini
rm -f ${DESTDIR}/usr/share/man/man1/murmur-user-wrapper.1
vconf scripts/murmur.ini
vsv mumble-server
ln -sf murmurd.1 ${DESTDIR}/usr/share/man/man1/mumble-server.1
vlicense LICENSE
}
murmur_package() {
system_accounts="_murmur"
_murmur_homedir="/var/lib/murmur"
make_dirs="/var/lib/murmur 0750 _murmur _murmur"
conf_files="/etc/murmur.ini"
depends="qt5-plugin-sqlite"
short_desc+=" - Server software (mumble-server)"
pkg_install() {
vmove etc/sv/mumble-server
vmove etc/murmur.ini
vmove usr/bin/mumble-server
vmove usr/bin/murmur-user-wrapper
vmove usr/share/man/man1/murmur-user-wrapper.1
vmove usr/share/man/man1/mumble-server.1
vmove usr/share/man/man1/murmurd.1
vmove usr/share/examples/mumble/murmur.ini
}
}