Add build files for several containers containing networking software
This commit is contained in:
24
build/scripts/gmrender.sh
Normal file
24
build/scripts/gmrender.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /build/config
|
||||
set -x
|
||||
|
||||
# GMediaRender dependencies
|
||||
$minimal_apt_get_install libupnp-dev libgstreamer0.10-dev \
|
||||
gstreamer0.10-plugins-base gstreamer0.10-plugins-good \
|
||||
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly \
|
||||
gstreamer0.10-ffmpeg \
|
||||
gstreamer0.10-pulseaudio gstreamer0.10-alsa
|
||||
|
||||
# GMediaRender
|
||||
cd opt
|
||||
git clone https://github.com/hzeller/gmrender-resurrect.git
|
||||
cd gmrender-resurrect
|
||||
autoreconf || automake --add-missing
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
## Runit script
|
||||
mkdir /etc/service/gmrender
|
||||
mv /build/runit/gmrender /etc/service/gmrender/run
|
||||
31
build/scripts/minidlna.sh
Normal file
31
build/scripts/minidlna.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /build/config
|
||||
set -x
|
||||
|
||||
# MiniDLNA dependencies
|
||||
$minimal_apt_get_install gettext libavutil-dev libavcodec-dev libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libFLAC-dev
|
||||
|
||||
export MINIDLNA_VERSION=1.1.1
|
||||
export MINIDLNA_CONFIG=/host/etc/minidlna.conf
|
||||
export MINIDLNA_LOG=/host/var/log/minidlna.log
|
||||
export MINIDLNA_DATA=/host/var/lib/minidlna
|
||||
|
||||
# MiniDLNA
|
||||
cd opt
|
||||
wget http://downloads.sourceforge.net/project/minidlna/minidlna/$MINIDLNA_VERSION/minidlna-$MINIDLNA_VERSION.tar.gz
|
||||
tar xzf minidlna-$MINIDLNA_VERSION.tar.gz
|
||||
cd minidlna-$MINIDLNA_VERSION
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
## Runit script
|
||||
mkdir /etc/service/minidlna
|
||||
mv /build/runit/minidlna /etc/service/minidlna/run
|
||||
|
||||
## Environment variables
|
||||
echo -n $MINIDLNA_VERSION > /etc/container_environment/MINIDLNA_VERSION
|
||||
echo -n $MINIDLNA_CONFIG > /etc/container_environment/MINIDLNA_CONFIG
|
||||
echo -n $MINIDLNA_LOG > /etc/container_environment/MINIDLNA_LOG
|
||||
echo -n $MINIDLNA_DATA > /etc/container_environment/MINIDLNA_DATA
|
||||
24
build/scripts/upnpproxy.sh
Normal file
24
build/scripts/upnpproxy.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source /build/config
|
||||
set -x
|
||||
|
||||
## UPnP Proxy dependency
|
||||
$minimal_apt_get_install uuid-dev
|
||||
|
||||
## UPnP Proxy
|
||||
cd opt
|
||||
git clone git://git.savannah.nongnu.org/upnpproxy.git
|
||||
cd upnpproxy
|
||||
autoreconf || automake --add-missing
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
## Runit script
|
||||
mkdir /etc/service/upnpproxy
|
||||
mv /build/runit/upnpproxy /etc/service/upnpproxy/run
|
||||
|
||||
## Environment variables
|
||||
export UPNPPROXY_CONFIG=/host/etc/upnpproxy.conf
|
||||
echo -n $UPNPPROXY_CONFIG > /etc/container_environment/UPNPPROXY_CONFIG
|
||||
Reference in New Issue
Block a user