[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ports
Subject:    Re: [new] audio/shairport-sync an AirPlay audio player
From:       Stuart Henderson <stu () spacehopper ! org>
Date:       2022-04-28 10:32:13
Message-ID: 1806fba77c8.2869.545c230b3f27d53b49609e7db70685b8 () spacehopper ! org
[Download RAW message or body]

OK.

-- 
  Sent from a phone, apologies for poor formatting.

On 28 April 2022 10:56:10 Paul de Weerd <weerd@weirdnet.nl> wrote:

> On Tue, Apr 26, 2022 at 08:57:18PM +0200, Paul de Weerd wrote:
> | | ok (I have not tested at runtime)
> |
> | I have, it works great!
>
> After some more usage, I now ran into an issue with shairport-sync due
> to it making sndiod inaccessible to the normal user.  So I suggest to
> give the _shairport user its own home dir where you can then copy the
> sndio cookie (like with audio/mpd, I also took the README text from
> there).  I'm now running this and can confirm it works fine.
>
> Any thoughts?
>
> Paul
>
> Index: Makefile
> ===================================================================
> RCS file: /home/OpenBSD/cvs/ports/audio/shairport-sync/Makefile,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 Makefile
> --- Makefile	27 Apr 2022 02:19:25 -0000	1.1.1.1
> +++ Makefile	28 Apr 2022 09:39:21 -0000
> @@ -3,6 +3,7 @@ COMMENT =	AirPlay audio player
> GH_ACCOUNT =	mikebrady
> GH_PROJECT =	shairport-sync
> GH_TAGNAME =	3.3.9
> +REVISION =	0
>
> CATEGORIES =	audio
>
> Index: pkg/PLIST
> ===================================================================
> RCS file: /home/OpenBSD/cvs/ports/audio/shairport-sync/pkg/PLIST,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 PLIST
> --- pkg/PLIST	27 Apr 2022 02:19:25 -0000	1.1.1.1
> +++ pkg/PLIST	28 Apr 2022 09:51:28 -0000
> @@ -1,5 +1,5 @@
> @newgroup _shairport:876
> -@newuser _shairport:876:876::Shairport-sync Account:/var/empty:/sbin/nologin
> +@newuser _shairport:876:876::Shairport-sync 
> Account:/var/spool/shairport-sync:/sbin/nologin
> @rcscript ${RCDIR}/shairport_sync
> @bin bin/shairport-sync
> @man man/man1/shairport-sync.1
> @@ -9,3 +9,4 @@ share/examples/shairport-sync/shairport-
> @owner _shairport
> @group _shairport
> @sample ${SYSCONFDIR}/shairport-sync.conf
> +@sample /var/spool/shairport-sync/
> Index: pkg/README
> ===================================================================
> RCS file: /home/OpenBSD/cvs/ports/audio/shairport-sync/pkg/README,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 README
> --- pkg/README	27 Apr 2022 02:19:25 -0000	1.1.1.1
> +++ pkg/README	28 Apr 2022 09:41:07 -0000
> @@ -7,3 +7,17 @@ boot time, the rc.conf.local(8) pkg_scri
>
>     rcctl enable messagebus avahi_daemon shairport_sync
>     rcctl order messagebus avahi_daemon shairport_sync
> +
> +sndiod(8) concurrent access by shairport-sync(1) and other users
> +================================================================
> +
> +sndiod(8) normally only allows access to audio by a single system user
> +at a time. This is done by generating a random authentication token and
> +storing it in $HOME/.sndio/cookie when a user first accesses audio,
> +providing a limited capability to share with other users by copying
> +the token to their home directory.  See AUTHENTICATION in sndio(7) for
> +more details.
> +
> +If you want to share sndiod(8) access with shairport-sync(1) running as
> +the default _shairport user, you may copy .sndio/cookie from your user's
> +home directory to /var/spool/shairport/.sndio/cookie.
>
> --
>> ++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
> +++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
>                 http://www.weirdnet.nl/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic