CentOS 7 RPM Specfile for liquidsoap
It depends on
lame from the nux dextop repo.
yum install epel-release curl -o /etc/yum.repos.d/liquidsoap.repo \ http://download.opensuse.org/repositories/home:/radiorabe:/liquidsoap/CentOS_7/home:radiorabe:liquidsoap.repo yum install liquidsoap
You might have to install some dependencies explicitly to get all the parts you need to work. This is due to the fact that liquidsoap does some runtime detection and to allow for unbloated installs where advanced features are not needed.
You can run
liquidsoap directly on the command line to verify it is working but will want to run scripts automatically as user
liquidsoap at some stage.
The RaBe liquidsoap distribution comes bundles with an instantiable systemd service file that takes over the job of upstreams upstart config. While this
does not automatically loop over
/etc/liquidsoap and start all the contained scripts, configuring it is rather easy.
# enable and start the bundled example script cp /etc/liquidsoap/radio.liq.example /etc/liquidsoap/radio.liq systemctl enable liquidsoap@radio systemctl start liquidsoap@radio # add an addtional script and start it echo "out(sine())" > /etc/liquidsoap/sine-example.liq systemctl enable liquidsoap@sine-example systemctl start liquidsoap@sine-example
Allow ALSA access for liquidsoap
If your liquidsoap script needs to access ALSA you need to make sure the
liquidsoap user is allowed to access the subsytem.
usermod -G audio -a liquidsoap
You could also create the
liquidsoap user beforehand and ensure that it has access before installing liquidsoap.
If you want to enable
%fdkaac output you will need to provide a library that can be loaded dynamically.
yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm yum install ocaml-fdkaac
After installing the dynamic lib you can check the output of
liquidsoap -v 'out(sine())' for the following line.
2018/09/14 16:46:50 [dynamic.loader:3] Loaded dynamic fdkaac encoder from /usr/lib64/ocaml/fdkaac