bluealsa: slightly tweak rc file

This commit is contained in:
Steffen Nurpmeso 2021-03-18 19:03:13 +01:00
parent 4b64b0cec6
commit 30cdb6c8ed
3 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,7 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF36MBXVh7iFE7IsH6tIlMkV9POdMaR2pFpiC9WxQTmOdSEKtQ89kZyIlUbhi4kAF3xDGPNWN7U1fEiT3+VCdhYA4=
SHA256 (Pkgfile) = 7b0e9db380bd901887b058ccba45a4894ab352dfba44c15d08d8d8cbdb35db12
RWSagIOpLGJF37OPJrNTjQsSiTbIQXTyyLHke7Rda+jyA/wzhsLf4A03UKQ0nquGOfuXF3wESfXuJh6esN+xxMsGUA2Q/v8HpAI=
SHA256 (Pkgfile) = d0ebdf5fc14ecf90bd861eb17967161d280f9f1c2e68d7fa0daae1319f4625c2
SHA256 (.footprint) = a1ec2cab3b6db9ed7c973fec4a346d4cc1f1a489618664a156bfa4f19d1d49bd
SHA256 (bluez-alsa-3.0.0.tar.gz) = 8b9bc36be922c10c6628ddf84b13dfadfeb3ab0bcf72bad842c66f3120abc6b2
SHA256 (bluealsa) = 2250cf2e34ac81f43e5ebd1741e421a69bceb2932b736a0d25c0e97f13fe33ae
SHA256 (bluealsa.rc) = 4dc58ddb3cd97103ab17fbe82269a7a313e4a552eece97a8aafe147d65ab36cf
SHA256 (bluealsa.conf) = 85751bb2dbda79b22ce4572e2165dcb0843e292676a781db2c2a5bcc60f840b0

View File

@ -12,7 +12,7 @@ release=2
source=(
https://github.com/Arkq/${rname}/archive/\
v${version}/${rname}-${version}.tar.gz
bluealsa bluealsa.conf)
bluealsa.rc bluealsa.conf)
build() {
cd ${rname}-${version}
@ -23,7 +23,7 @@ build() {
make all
make DESTDIR="${PKG}" install
install -D -m 0755 "${SRC}"/bluealsa "${PKG}"/etc/rc.d/${name}
install -D -m 0755 "${SRC}"/bluealsa.rc "${PKG}"/etc/rc.d/${name}
install -D -m 0644 "${SRC}"/bluealsa.conf \
"${PKG}"/etc/dbus-1/system.d/${name}.conf
}

View File

@ -1,14 +1,15 @@
#!/bin/sh
#@ bluez-alsa startup script.
#@ Likely requires <- bluetoothd <- dbus
#@ Likely requires <- bluetoothd [<- dbus]
RD=/run
PID=${RD}/bluealsa.pid
SSD=/sbin/start-stop-daemon
PROG=/usr/bin/bluealsa
PID=/run/bluealsa.pid
RUNDIR=/run/bluealsa
OPTS=-S
case $1 in
case "${1}" in
start)
exec "${SSD}" --start --background --make-pidfile --pidfile "${PID}" \
--exec "${PROG}" -- ${OPTS}
@ -18,7 +19,7 @@ stop)
--exec "${PROG}"
;;
restart)
"${0}" stop
"${SSD}" --status --pidfile "${PID}" --exec "${PROG}" && "${0}" stop
exec "${0}" start
;;
status)
@ -33,6 +34,6 @@ status)
exit ${e}
;;
*)
echo "usage: $0 start|stop|restart|status"
echo "usage: ${0} start|stop|restart|status"
;;
esac