mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-07 21:31:42 +02:00
commit
7890baf54a
1 changed files with 52 additions and 5 deletions
47
doc/build.md
47
doc/build.md
|
@ -100,6 +100,53 @@ For additional command line arguments, add in `/etc/rc.conf`:
|
|||
|
||||
Start and stop the server with `sudo service snapserver start` and `sudo service snapserver stop`.
|
||||
|
||||
|
||||
## Gentoo (native)
|
||||
|
||||
Snapcast is available under Gentoo's [Portage](https://wiki.gentoo.org/wiki/Portage) package management system. Portage utilises `USE` flags to determine what components are built on compilation. The availabe options are...
|
||||
|
||||
equery u snapcast
|
||||
[ Legend : U - final flag setting for installation]
|
||||
[ : I - package is installed with flag ]
|
||||
[ Colors : set, unset ]
|
||||
* Found these USE flags for media-sound/snapcast-9999:
|
||||
U I
|
||||
+ - avahi : Build with avahi support
|
||||
+ + client : Build and install Snapcast client component
|
||||
+ - flac : Build with FLAC compression support
|
||||
+ + server : Build and install Snapcast server component
|
||||
- - static-libs : Build static libs
|
||||
- - tremor : Build with TREMOR version of vorbis
|
||||
+ - vorbis : Build with libvorbis support
|
||||
|
||||
|
||||
These can be set either in the [global configuration](https://wiki.gentoo.org/wiki//etc/portage/make.conf#USE) file `/etc/portage/make.conf` or on a per-package basis (as root):
|
||||
|
||||
if [ ! -d "$DIRECTORY" ]; then
|
||||
mkdir /etc/portage/package.use/media-sound
|
||||
fi
|
||||
echo 'media-sound/snapcast client server flac
|
||||
|
||||
If for example you only wish to build the server and *not* the client then preceed the server `USE` flag with `-` i.e.
|
||||
|
||||
echo 'media-sound/snapcast client -server
|
||||
|
||||
Once `USE` flags are configured emerge snapcast as root:
|
||||
|
||||
$ emerge -av snapcast
|
||||
|
||||
|
||||
Starting the client or server depends on whether you are using `systemd` or `openrc`. To start using `openrc`:
|
||||
|
||||
/etc/init.d/snapclient start
|
||||
/etc/init.d/snapserver start
|
||||
|
||||
To enable the serve and client to start under the default run-level:
|
||||
|
||||
rc-update add snapserver default
|
||||
rc-update add snapclient default
|
||||
|
||||
|
||||
## macOS (Native)
|
||||
|
||||
*Warning: macOS support is experimental*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue