Bump buildroot to 2019.02
This commit is contained in:
27
bsp/buildroot/package/gerbera/Config.in
Normal file
27
bsp/buildroot/package/gerbera/Config.in
Normal file
@@ -0,0 +1,27 @@
|
||||
config BR2_PACKAGE_GERBERA
|
||||
bool "gerbera"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17 optional
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_PACKAGE_LIBUPNP # libupnp18
|
||||
select BR2_PACKAGE_EXPAT
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_LIBUPNP18
|
||||
select BR2_PACKAGE_SQLITE
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
A free media server.
|
||||
Stream your media to devices on your home network.
|
||||
|
||||
https://gerbera.io
|
||||
|
||||
comment "gerbera needs a toolchain w/ C++, threads, gcc >= 7"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
depends on !BR2_PACKAGE_LIBUPNP
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
52
bsp/buildroot/package/gerbera/S99gerbera
Normal file
52
bsp/buildroot/package/gerbera/S99gerbera
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON="gerbera"
|
||||
PIDFILE="/var/run/$NAME.pid"
|
||||
|
||||
GERBERA_ARGS="-c /etc/gerbera/config.xml -l /var/log/gerbera.log"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -m -b -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
|
||||
-- $GERBERA_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
rm -f "$PIDFILE"
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart)
|
||||
"$1";;
|
||||
reload)
|
||||
# Restart, since there is no true "reload" feature.
|
||||
restart;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
139
bsp/buildroot/package/gerbera/config.xml
Normal file
139
bsp/buildroot/package/gerbera/config.xml
Normal file
@@ -0,0 +1,139 @@
|
||||
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
|
||||
<!--
|
||||
See http://gerbera.io or read the docs for more
|
||||
information on creating and using config.xml configration files.
|
||||
-->
|
||||
<server>
|
||||
<ui enabled="yes" show-tooltips="yes">
|
||||
<accounts enabled="no" session-timeout="30">
|
||||
<account user="gerbera" password="gerbera"/>
|
||||
</accounts>
|
||||
</ui>
|
||||
<name>Gerbera</name>
|
||||
<udn>uuid:ac20d9b6-5c82-48e6-80de-436965fbe1d7</udn>
|
||||
<home>/var/lib/gerbera</home>
|
||||
<webroot>/usr/share/gerbera/web</webroot>
|
||||
<!--
|
||||
How frequently (in seconds) to send ssdp:alive advertisements.
|
||||
Minimum alive value accepted is: 62
|
||||
|
||||
The advertisement will be sent every (A/2)-30 seconds,
|
||||
and will have a cache-control max-age of A where A is
|
||||
the value configured here. Ex: A value of 62 will result
|
||||
in an SSDP advertisement being sent every second.
|
||||
-->
|
||||
<alive>1800</alive>
|
||||
<storage>
|
||||
<sqlite3 enabled="yes">
|
||||
<database-file>gerbera.db</database-file>
|
||||
</sqlite3>
|
||||
</storage>
|
||||
<protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
|
||||
<!--
|
||||
Uncomment the lines below to get rid of jerky avi playback on the
|
||||
DSM320 or to enable subtitles support on the DSM units
|
||||
-->
|
||||
<!--
|
||||
<custom-http-headers>
|
||||
<add header="X-User-Agent: redsonic"/>
|
||||
</custom-http-headers>
|
||||
|
||||
<manufacturerURL>redsonic.com</manufacturerURL>
|
||||
<modelNumber>105</modelNumber>
|
||||
-->
|
||||
<!-- Uncomment the line below if you have a Telegent TG100 -->
|
||||
<!--
|
||||
<upnp-string-limit>101</upnp-string-limit>
|
||||
-->
|
||||
<extended-runtime-options>
|
||||
<mark-played-items enabled="no" suppress-cds-updates="yes">
|
||||
<string mode="prepend">*</string>
|
||||
<mark>
|
||||
<content>video</content>
|
||||
</mark>
|
||||
</mark-played-items>
|
||||
</extended-runtime-options>
|
||||
</server>
|
||||
<import hidden-files="no">
|
||||
<scripting script-charset="UTF-8">
|
||||
<virtual-layout type="builtin"/>
|
||||
</scripting>
|
||||
<mappings>
|
||||
<extension-mimetype ignore-unknown="no">
|
||||
<map from="mp3" to="audio/mpeg"/>
|
||||
<map from="ogx" to="application/ogg"/>
|
||||
<map from="ogv" to="video/ogg"/>
|
||||
<map from="oga" to="audio/ogg"/>
|
||||
<map from="ogg" to="audio/ogg"/>
|
||||
<map from="ogm" to="video/ogg"/>
|
||||
<map from="asf" to="video/x-ms-asf"/>
|
||||
<map from="asx" to="video/x-ms-asf"/>
|
||||
<map from="wma" to="audio/x-ms-wma"/>
|
||||
<map from="wax" to="audio/x-ms-wax"/>
|
||||
<map from="wmv" to="video/x-ms-wmv"/>
|
||||
<map from="wvx" to="video/x-ms-wvx"/>
|
||||
<map from="wm" to="video/x-ms-wm"/>
|
||||
<map from="wmx" to="video/x-ms-wmx"/>
|
||||
<map from="m3u" to="audio/x-mpegurl"/>
|
||||
<map from="pls" to="audio/x-scpls"/>
|
||||
<map from="flv" to="video/x-flv"/>
|
||||
<map from="mkv" to="video/x-matroska"/>
|
||||
<map from="mka" to="audio/x-matroska"/>
|
||||
<!-- Uncomment the line below for PS3 divx support -->
|
||||
<!-- <map from="avi" to="video/divx"/> -->
|
||||
<!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
|
||||
<!-- <map from="avi" to="video/avi"/> -->
|
||||
</extension-mimetype>
|
||||
<mimetype-upnpclass>
|
||||
<map from="audio/*" to="object.item.audioItem.musicTrack"/>
|
||||
<map from="video/*" to="object.item.videoItem"/>
|
||||
<map from="image/*" to="object.item.imageItem"/>
|
||||
<map from="application/ogg" to="object.item.audioItem.musicTrack"/>
|
||||
</mimetype-upnpclass>
|
||||
<mimetype-contenttype>
|
||||
<treat mimetype="audio/mpeg" as="mp3"/>
|
||||
<treat mimetype="application/ogg" as="ogg"/>
|
||||
<treat mimetype="audio/ogg" as="ogg"/>
|
||||
<treat mimetype="audio/x-flac" as="flac"/>
|
||||
<treat mimetype="audio/x-ms-wma" as="wma"/>
|
||||
<treat mimetype="audio/x-wavpack" as="wv"/>
|
||||
<treat mimetype="image/jpeg" as="jpg"/>
|
||||
<treat mimetype="audio/x-mpegurl" as="playlist"/>
|
||||
<treat mimetype="audio/x-scpls" as="playlist"/>
|
||||
<treat mimetype="audio/x-wav" as="pcm"/>
|
||||
<treat mimetype="audio/L16" as="pcm"/>
|
||||
<treat mimetype="video/x-msvideo" as="avi"/>
|
||||
<treat mimetype="video/mp4" as="mp4"/>
|
||||
<treat mimetype="audio/mp4" as="mp4"/>
|
||||
<treat mimetype="video/x-matroska" as="mkv"/>
|
||||
<treat mimetype="audio/x-matroska" as="mka"/>
|
||||
</mimetype-contenttype>
|
||||
</mappings>
|
||||
</import>
|
||||
<transcoding enabled="no">
|
||||
<mimetype-profile-mappings>
|
||||
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
|
||||
<transcode mimetype="application/ogg" using="vlcmpeg"/>
|
||||
<transcode mimetype="application/ogg" using="oggflac2raw"/>
|
||||
<transcode mimetype="audio/x-flac" using="oggflac2raw"/>
|
||||
</mimetype-profile-mappings>
|
||||
<profiles>
|
||||
<profile name="oggflac2raw" enabled="no" type="external">
|
||||
<mimetype>audio/L16</mimetype>
|
||||
<accept-url>no</accept-url>
|
||||
<first-resource>yes</first-resource>
|
||||
<accept-ogg-theora>no</accept-ogg-theora>
|
||||
<agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
|
||||
<buffer size="1048576" chunk-size="131072" fill-size="262144"/>
|
||||
</profile>
|
||||
<profile name="vlcmpeg" enabled="no" type="external">
|
||||
<mimetype>video/mpeg</mimetype>
|
||||
<accept-url>yes</accept-url>
|
||||
<first-resource>yes</first-resource>
|
||||
<accept-ogg-theora>yes</accept-ogg-theora>
|
||||
<agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
|
||||
<buffer size="14400000" chunk-size="512000" fill-size="120000"/>
|
||||
</profile>
|
||||
</profiles>
|
||||
</transcoding>
|
||||
</config>
|
||||
3
bsp/buildroot/package/gerbera/gerbera.hash
Normal file
3
bsp/buildroot/package/gerbera/gerbera.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 5e40971c519eb322fe0111754cafa12d99c47c2ae7d0f9f1aebb19b06e74a912 gerbera-v1.3.0.tar.gz
|
||||
sha256 cae4138373be41fd2be75faf41ce7efbcf49fb17d0e05ad1c51cc01ac335b9b6 LICENSE.md
|
||||
114
bsp/buildroot/package/gerbera/gerbera.mk
Normal file
114
bsp/buildroot/package/gerbera/gerbera.mk
Normal file
@@ -0,0 +1,114 @@
|
||||
################################################################################
|
||||
#
|
||||
# gerbera
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GERBERA_VERSION = v1.3.0
|
||||
GERBERA_SITE = $(call github,gerbera,gerbera,$(GERBERA_VERSION))
|
||||
GERBERA_LICENSE = GPL-2.0
|
||||
GERBERA_LICENSE_FILES = LICENSE.md
|
||||
GERBERA_DEPENDENCIES = \
|
||||
expat \
|
||||
host-pkgconf \
|
||||
libupnp18 \
|
||||
sqlite \
|
||||
util-linux \
|
||||
zlib
|
||||
GERBERA_CONF_OPTS = \
|
||||
-DWITH_DEBUG=OFF \
|
||||
-DWITH_JS=OFF
|
||||
|
||||
# Uses __atomic_fetch_add_4
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
GERBERA_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EXIV2),y)
|
||||
GERBERA_DEPENDENCIES += exiv2
|
||||
GERBERA_CONF_OPTS += -DWITH_EXIV2=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_EXIV2=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
||||
GERBERA_DEPENDENCIES += ffmpeg
|
||||
GERBERA_CONF_OPTS += -DWITH_AVCODEC=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_AVCODEC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FILE),y)
|
||||
GERBERA_DEPENDENCIES += file
|
||||
GERBERA_CONF_OPTS += -DWITH_MAGIC=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_MAGIC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
GERBERA_DEPENDENCIES += libcurl
|
||||
GERBERA_CONF_OPTS += -DWITH_CURL=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_CURL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
||||
GERBERA_DEPENDENCIES += libexif
|
||||
GERBERA_CONF_OPTS += -DWITH_EXIF=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_EXIF=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
GERBERA_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
||||
GERBERA_DEPENDENCIES += mysql
|
||||
GERBERA_CONF_OPTS += -DWITH_MYSQL=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_MYSQL=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
GERBERA_DEPENDENCIES += systemd
|
||||
GERBERA_CONF_OPTS += -DWITH_SYSTEMD=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_SYSTEMD=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_TAGLIB),y)
|
||||
GERBERA_DEPENDENCIES += taglib
|
||||
GERBERA_CONF_OPTS += -DWITH_TAGLIB=ON
|
||||
else
|
||||
GERBERA_CONF_OPTS += -DWITH_TAGLIB=OFF
|
||||
endif
|
||||
|
||||
# gerbera does not provide a default configuration file, it can be
|
||||
# created during run time through --create-config:
|
||||
# http://docs.gerbera.io/en/latest/config-overview.html#generating-configuration
|
||||
# However, to have a correct home directory and UDN, install it ourself
|
||||
define GERBERA_INSTALL_CONFIGURATION
|
||||
$(INSTALL) -D -m 0644 package/gerbera/config.xml \
|
||||
$(TARGET_DIR)/etc/gerbera/config.xml
|
||||
endef
|
||||
|
||||
GERBERA_POST_INSTALL_TARGET_HOOKS += GERBERA_INSTALL_CONFIGURATION
|
||||
|
||||
define GERBERA_USERS
|
||||
gerbera -1 gerbera -1 * /var/lib/gerbera - - Gerbera user
|
||||
endef
|
||||
|
||||
define GERBERA_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/gerbera/S99gerbera \
|
||||
$(TARGET_DIR)/etc/init.d/S99gerbera
|
||||
endef
|
||||
|
||||
# gerbera.service is installed by cmake in $(TARGET_DIR)/usr/lib/systemd/system
|
||||
define GERBERA_INSTALL_INIT_SYSTEMD
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -sf ../../../../usr/lib/systemd/system/gerbera.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/gerbera.service
|
||||
endef
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user