2022-03-09 00:00:03 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2022-10-31 12:43:19 +01:00
|
|
|
# Build Icecast from source
|
|
|
|
apt-get install -q -y --no-install-recommends \
|
|
|
|
build-essential libxml2 libxslt1-dev libvorbis-dev libssl-dev libcurl4-openssl-dev openssl
|
2022-03-09 00:00:03 +01:00
|
|
|
|
2023-01-11 02:34:16 +01:00
|
|
|
mkdir -p /bd_build/stations/icecast_build
|
|
|
|
cd /bd_build/stations/icecast_build
|
|
|
|
|
2023-03-23 01:28:20 +01:00
|
|
|
curl -fsSL https://github.com/karlheyes/icecast-kh/archive/refs/tags/icecast-2.4.0-kh20.3.tar.gz \
|
2023-01-22 02:10:59 +01:00
|
|
|
-o icecast.tar.gz
|
|
|
|
tar -xvzf icecast.tar.gz --strip-components=1
|
|
|
|
|
|
|
|
# git clone https://github.com/karlheyes/icecast-kh.git .
|
|
|
|
# git checkout 3b04a78133b7c4b8f879b55e83c139532976de87
|
2022-10-31 12:43:19 +01:00
|
|
|
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
2023-01-11 02:34:16 +01:00
|
|
|
# Remove build tools
|
2023-01-30 11:13:25 +01:00
|
|
|
apt-get remove --purge -y build-essential libxslt1-dev libvorbis-dev libssl-dev libcurl4-openssl-dev
|
2023-01-11 02:34:16 +01:00
|
|
|
|
|
|
|
# Copy AzuraCast Icecast customizations
|
2023-01-11 04:59:56 +01:00
|
|
|
mkdir -p /bd_build/stations/icecast_customizations
|
|
|
|
cd /bd_build/stations/icecast_customizations
|
|
|
|
|
2023-01-22 02:10:59 +01:00
|
|
|
# git clone https://github.com/AzuraCast/icecast-kh-custom-files.git .
|
|
|
|
|
|
|
|
curl -fsSL https://github.com/AzuraCast/icecast-kh-custom-files/archive/refs/tags/2023-01-21.tar.gz \
|
|
|
|
-o custom-files.tar.gz
|
|
|
|
tar -xvzf custom-files.tar.gz --strip-components=1
|
2023-01-11 04:59:56 +01:00
|
|
|
|
|
|
|
cp -r web/* /usr/local/share/icecast/web
|