mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
speakersafetyd: update to 1.1.2, run as non-root
This commit is contained in:
parent
744bcc0979
commit
dd3ec212e6
2 changed files with 17 additions and 4 deletions
|
@ -1,3 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
_user=_speakersafetyd
|
||||||
|
! [ -d /run/speakersafetyd ] && install -m 700 -g $_user -o $_user -d /run/speakersafetyd
|
||||||
|
chown -R $_user:$_user /run/speakersafetyd
|
||||||
|
|
||||||
|
_caps=-all,+sys_nice
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec /usr/bin/speakersafetyd -c /usr/share/speakersafetyd/ -b /var/lib/speakersafetyd/blackbox -m 7
|
exec setpriv --reuid $_user --regid audio --clear-groups \
|
||||||
|
--ambient-caps $_caps \
|
||||||
|
--inh-caps $_caps \
|
||||||
|
--bounding-set $_caps \
|
||||||
|
--no-new-privs -- speakersafetyd -c /usr/share/speakersafetyd/ -b /var/lib/speakersafetyd/blackbox -m 7
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'speakersafetyd'
|
# Template file for 'speakersafetyd'
|
||||||
pkgname=speakersafetyd
|
pkgname=speakersafetyd
|
||||||
version=1.0.2
|
version=1.1.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
hostmakedepends="alsa-lib pkg-config"
|
hostmakedepends="alsa-lib pkg-config"
|
||||||
|
@ -10,8 +10,10 @@ maintainer="dkwo <npiazza@disroot.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/AsahiLinux/speakersafetyd"
|
homepage="https://github.com/AsahiLinux/speakersafetyd"
|
||||||
distfiles="https://github.com/AsahiLinux/speakersafetyd/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/AsahiLinux/speakersafetyd/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=844ae3719c029e826f58c3799b6e358d189b0c42ade7a91f6c35b960cae35919
|
checksum=b3ccbbf4c3ee0da537203186f80eb8f3cc16037bf41f4cd0de50b7cd25dd713f
|
||||||
make_dirs="/var/lib/speakersafetyd/blackbox 0755 root root"
|
|
||||||
|
system_accounts="_speakersafetyd"
|
||||||
|
make_dirs="/var/lib/${pkgname}/blackbox 0700 _${pkgname} _${pkgname}"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
DESTDIR="${DESTDIR}" make install-data
|
DESTDIR="${DESTDIR}" make install-data
|
||||||
|
|
Loading…
Add table
Reference in a new issue