Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,148 @@
From 7caa9ae9ebf5c4cded5a292701528ff1d5c4946e Mon Sep 17 00:00:00 2001
From: Downtown Allday <downtownallday@gmail.com>
Date: Fri, 3 Apr 2026 09:31:07 -0400
Subject: [PATCH] Fix the following errors: error: no member named 'strerror'
in namespace 'std' error: no member named 'memcpy' in namespace 'std' error:
no member named 'strchr' in namespace 'std'
all of these require <cstring>. see:
https://en.cppreference.com/w/cpp/string/byte/strerror
https://en.cppreference.com/w/cpp/string/byte/memcpy
https://en.cppreference.com/w/cpp/string/byte/strchr
Upstream: https://github.com/gerbera/gerbera/commit/7caa9ae9ebf5c4cded5a292701528ff1d5c4946e
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/config/setup/config_setup_path.cc | 1 +
src/content/inotify/mt_inotify.cc | 1 +
src/iohandler/mem_io_handler.cc | 1 +
src/util/grb_fs.cc | 1 +
src/util/grb_net.cc | 1 +
src/util/string_converter.cc | 1 +
src/util/thread_executor.cc | 1 +
src/util/thread_runner.h | 1 +
src/util/tools.cc | 1 +
src/util/url_utils.cc | 1 +
10 files changed, 10 insertions(+)
diff --git a/src/config/setup/config_setup_path.cc b/src/config/setup/config_setup_path.cc
index cdb7244e4..a10e3c9f2 100644
--- a/src/config/setup/config_setup_path.cc
+++ b/src/config/setup/config_setup_path.cc
@@ -31,6 +31,7 @@
#include "util/logger.h"
#include <pugixml.hpp>
+#include <cstring>
bool ConfigPathSetup::checkPathValue(std::string& optValue, std::string& pathValue) const
{
diff --git a/src/content/inotify/mt_inotify.cc b/src/content/inotify/mt_inotify.cc
index e938e60a1..e140b5f4f 100644
--- a/src/content/inotify/mt_inotify.cc
+++ b/src/content/inotify/mt_inotify.cc
@@ -52,6 +52,7 @@
#include <sys/select.h>
#include <thread>
#include <unistd.h>
+#include <cstring>
#ifdef SOLARIS
#include <sys/filio.h> // FIONREAD
#endif
diff --git a/src/iohandler/mem_io_handler.cc b/src/iohandler/mem_io_handler.cc
index 21e4a1960..ba16a10d7 100644
--- a/src/iohandler/mem_io_handler.cc
+++ b/src/iohandler/mem_io_handler.cc
@@ -35,6 +35,7 @@
#include "mem_io_handler.h" // API
#include "exceptions.h"
+#include <cstring>
MemIOHandler::MemIOHandler(const void* buffer, int length)
: buffer(new char[length])
diff --git a/src/util/grb_fs.cc b/src/util/grb_fs.cc
index cd3e612a7..09c892f2e 100644
--- a/src/util/grb_fs.cc
+++ b/src/util/grb_fs.cc
@@ -30,6 +30,7 @@ Gerbera - https://gerbera.io/
#include <fcntl.h>
#include <fstream>
#include <sstream>
+#include <cstring>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/src/util/grb_net.cc b/src/util/grb_net.cc
index 8986bfa4a..68395e001 100644
--- a/src/util/grb_net.cc
+++ b/src/util/grb_net.cc
@@ -30,6 +30,7 @@ Gerbera - https://gerbera.io/
#include <ifaddrs.h>
#include <netdb.h>
#include <regex>
+#include <cstring>
#ifdef SOLARIS
#include <sys/sockio.h>
diff --git a/src/util/string_converter.cc b/src/util/string_converter.cc
index fa11e1de2..21e2760d9 100644
--- a/src/util/string_converter.cc
+++ b/src/util/string_converter.cc
@@ -42,6 +42,7 @@
#include <array>
#include <vector>
+#include <cstring>
#if FMT_VERSION >= 100202
#include <fmt/ranges.h>
#endif
diff --git a/src/util/thread_executor.cc b/src/util/thread_executor.cc
index 669856272..ca0a1755c 100644
--- a/src/util/thread_executor.cc
+++ b/src/util/thread_executor.cc
@@ -34,6 +34,7 @@
#include "thread_executor.h" // API
#include "util/logger.h"
+#include <cstring>
ThreadExecutor::~ThreadExecutor()
{
diff --git a/src/util/thread_runner.h b/src/util/thread_runner.h
index a2e55f8eb..08dbc8b9c 100644
--- a/src/util/thread_runner.h
+++ b/src/util/thread_runner.h
@@ -36,6 +36,7 @@
#include <mutex>
#include <pthread.h>
#include <thread>
+#include <cstring>
using ThreadProc = std::function<void(void* target)>;
diff --git a/src/util/tools.cc b/src/util/tools.cc
index 2174ff352..cc1877286 100644
--- a/src/util/tools.cc
+++ b/src/util/tools.cc
@@ -43,6 +43,7 @@
#include <queue>
#include <regex>
#include <sstream>
+#include <cstring>
#ifdef __HAIKU__
#define _DEFAULT_SOURCE
diff --git a/src/util/url_utils.cc b/src/util/url_utils.cc
index efb4099ec..3127d53fb 100644
--- a/src/util/url_utils.cc
+++ b/src/util/url_utils.cc
@@ -30,6 +30,7 @@ Gerbera - https://gerbera.io/
#include <fmt/ranges.h>
#endif
#include <sstream>
+#include <cstring>
// URL FORMATTING CONSTANTS
#define URL_UI_PARAM_SEPARATOR '?'

View File

@@ -0,0 +1,47 @@
From 9507706136fde8c324d95d5c84c78bae1703bafc Mon Sep 17 00:00:00 2001
From: Downtown Allday <downtownallday@gmail.com>
Date: Fri, 3 Apr 2026 09:34:00 -0400
Subject: [PATCH] fix the following error: error: no member named 'format' in
namespace 'fmt'
the comment in fmt/core.h says including 'format' via core is deprectated:
// Using fmt::format via fmt/core.h has been deprecated since version 11
// and now requires an explicit opt in.
#ifdef FMT_DEPRECATED_HEAVY_CORE
# include "format.h"
#endif
Upstream: https://github.com/gerbera/gerbera/commit/9507706136fde8c324d95d5c84c78bae1703bafc
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/database/search_handler.h | 2 +-
src/exceptions.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/database/search_handler.h b/src/database/search_handler.h
index ac5afb1b7..c1c99d00d 100644
--- a/src/database/search_handler.h
+++ b/src/database/search_handler.h
@@ -32,7 +32,7 @@
#include "util/tools.h"
#include <algorithm>
-#include <fmt/core.h>
+#include <fmt/format.h>
#include <map>
#include <memory>
#include <tuple>
diff --git a/src/exceptions.h b/src/exceptions.h
index 180e63ad4..e5ed74f3d 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -34,7 +34,7 @@
#ifndef __EXCEPTIONS_H__
#define __EXCEPTIONS_H__
-#include <fmt/core.h>
+#include <fmt/format.h>
#include <stdexcept>
#include <string>

39
package/gerbera/Config.in Normal file
View File

@@ -0,0 +1,39 @@
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_HOST_GCC_AT_LEAST_7 # icu
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++17 filesystem
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR # fmt
select BR2_PACKAGE_CXXOPTS
select BR2_PACKAGE_FMT
select BR2_PACKAGE_ICU
select BR2_PACKAGE_JSONCPP
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
select BR2_PACKAGE_LIBUPNP if !BR2_PACKAGE_LIBNPUPNP
select BR2_PACKAGE_PUGIXML
select BR2_PACKAGE_PUGIXML_XPATH_SUPPORT
select BR2_PACKAGE_SPDLOG
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.
Select BR2_PACKAGE_DUKTAPE if you want to enable JavaScript
for scripting.
https://gerbera.io
comment "gerbera needs a toolchain w/ C++, dynamic library, threads, wchar, gcc >= 8, host gcc >= 7"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_ATOMIC
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_8 || \
!BR2_HOST_GCC_AT_LEAST_7

View File

@@ -0,0 +1,55 @@
#!/bin/sh
DAEMON="gerbera"
PIDFILE="/var/run/$DAEMON.pid"
GERBERA_ARGS="-c /etc/gerbera/config.xml -l /var/log/gerbera.log"
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
# (Re)create home directory
mkdir -p /var/lib/$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

175
package/gerbera/config.xml Normal file
View File

@@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xml-ns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
<!--
See https://gerbera.io or read the docs for more
information on creating and using config.xml configuration 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:7b156a2a-d79e-4763-983b-ae1d13fe0ff4</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>180</alive>
<storage>
<sqlite3 enabled="yes">
<database-file>gerbera.db</database-file>
</sqlite3>
</storage>
<containers enabled="yes">
<container location="/LastAdded" title="Recently Added" sort="-last_updated">
<filter>upnp:class derivedfrom "object.item" and last_updated &gt; "@last7"</filter>
</container>
<container location="/LastModified" title="Recently Modified" sort="-last_modified">
<filter>upnp:class derivedfrom "object.item" and last_modified &gt; "@last7"</filter>
</container>
</containers>
<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>
<virtual-layout type="builtin" />
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<map from="asf" to="video/x-ms-asf" />
<map from="asx" to="video/x-ms-asx" />
<map from="dff" to="audio/x-dff" />
<map from="dsd" to="audio/x-dsd" />
<map from="dsf" to="audio/x-dsf" />
<map from="flv" to="video/x-flv" />
<map from="m2ts" to="video/mp2t" />
<map from="m3u" to="audio/x-mpegurl" />
<map from="m3u8" to="audio/x-mpegurl" />
<map from="m4a" to="audio/mp4" />
<map from="mka" to="audio/x-matroska" />
<map from="mkv" to="video/x-matroska" />
<map from="mp3" to="audio/mpeg" />
<map from="mts" to="video/mp2t" />
<map from="oga" to="audio/ogg" />
<map from="ogg" to="audio/ogg" />
<map from="ogm" to="video/ogg" />
<map from="ogv" to="video/ogg" />
<map from="ogx" to="application/ogg" />
<map from="pls" to="audio/x-scpls" />
<map from="ts" to="video/mp2t" />
<map from="tsa" to="audio/mp2t" />
<map from="tsv" to="video/mp2t" />
<map from="wax" to="audio/x-ms-wax" />
<map from="wm" to="video/x-ms-wm" />
<map from="wma" to="audio/x-ms-wma" />
<map from="wmv" to="video/x-ms-wmv" />
<map from="wmx" to="video/x-ms-wmx" />
<map from="wv" to="audio/x-wavpack" />
<map from="wvx" to="video/x-ms-wvx" />
<!-- 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="application/ogg" to="object.item.audioItem.musicTrack" />
<map from="audio/*" to="object.item.audioItem.musicTrack" />
<map from="image/*" to="object.item.imageItem" />
<map from="video/*" to="object.item.videoItem" />
</mimetype-upnpclass>
<mimetype-contenttype>
<treat mimetype="application/ogg" as="ogg" />
<treat mimetype="audio/L16" as="pcm" />
<treat mimetype="audio/flac" as="flac" />
<treat mimetype="audio/mp4" as="mp4" />
<treat mimetype="audio/mpeg" as="mp3" />
<treat mimetype="audio/ogg" as="ogg" />
<treat mimetype="audio/x-dsd" as="dsd" />
<treat mimetype="audio/x-flac" as="flac" />
<treat mimetype="audio/x-matroska" as="mka" />
<treat mimetype="audio/x-mpegurl" as="playlist" />
<treat mimetype="audio/x-ms-wma" as="wma" />
<treat mimetype="audio/x-scpls" as="playlist" />
<treat mimetype="audio/x-wav" as="pcm" />
<treat mimetype="audio/x-wavpack" as="wv" />
<treat mimetype="image/jpeg" as="jpg" />
<treat mimetype="image/png" as="png" />
<treat mimetype="video/mkv" as="mkv" />
<treat mimetype="video/mp4" as="mp4" />
<treat mimetype="video/mpeg" as="mpeg" />
<treat mimetype="video/x-matroska" as="mkv" />
<treat mimetype="video/x-mkv" as="mkv" />
<treat mimetype="video/x-ms-asf" as="asf" />
<treat mimetype="video/x-ms-asx" as="playlist" />
<treat mimetype="video/x-msvideo" as="avi" />
</mimetype-contenttype>
<mimetype-dlnatransfermode>
<map from="application/ogg" to="Streaming" />
<map from="application/x-srt" to="Background" />
<map from="audio/*" to="Streaming" />
<map from="image/*" to="Interactive" />
<map from="srt" to="Background" />
<map from="text/*" to="Background" />
<map from="video/*" to="Streaming" />
</mimetype-dlnatransfermode>
<contenttype-dlnaprofile>
<map from="asf" to="VC_ASF_AP_L2_WMA" />
<map from="avi" to="AVI" />
<map from="dsd" to="DSF" />
<map from="flac" to="FLAC" />
<map from="jpg" to="JPEG_LRG" />
<map from="mka" to="MKV" />
<map from="mkv" to="MKV" />
<map from="mp3" to="MP3" />
<map from="mp4" to="AVC_MP4_EU" />
<map from="mpeg" to="MPEG_PS_PAL" />
<map from="ogg" to="OGG" />
<map from="pcm" to="LPCM" />
<map from="png" to="PNG_LRG" />
<map from="wma" to="WMAFULL" />
</contenttype-dlnaprofile>
</mappings>
</import>
<transcoding enabled="no">
<mimetype-profile-mappings>
<transcode mimetype="application/ogg" using="vlcmpeg" />
<transcode mimetype="audio/ogg" using="ogg2mp3" />
<transcode mimetype="video/x-flv" using="vlcmpeg" />
</mimetype-profile-mappings>
<profiles>
<profile name="ogg2mp3" enabled="no" type="external">
<mimetype>audio/mpeg</mimetype>
<accept-url>no</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>no</accept-ogg-theora>
<agent command="ffmpeg" arguments="-y -i %in -f mp3 %out" />
<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>

View File

@@ -0,0 +1,3 @@
# Locally computed:
sha256 6b89d0c416b6d98e34634e5b1121f340315d60b088e9e6b2fca423488760030f gerbera-3.2.1.tar.gz
sha256 cae4138373be41fd2be75faf41ce7efbcf49fb17d0e05ad1c51cc01ac335b9b6 LICENSE.md

150
package/gerbera/gerbera.mk Normal file
View File

@@ -0,0 +1,150 @@
################################################################################
#
# gerbera
#
################################################################################
GERBERA_VERSION = 3.2.1
GERBERA_SITE = $(call github,gerbera,gerbera,v$(GERBERA_VERSION))
GERBERA_LICENSE = GPL-2.0
GERBERA_LICENSE_FILES = LICENSE.md
GERBERA_DEPENDENCIES = \
cxxopts \
fmt \
icu \
jsoncpp \
host-pkgconf \
pugixml \
spdlog \
sqlite \
util-linux \
zlib
GERBERA_CONF_OPTS = -DWITH_DEBUG=OFF
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_9)$(BR2_OPTIMIZE_S),yy)
GERBERA_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -O2"
endif
# Uses __atomic_fetch_add_4
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
GERBERA_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
endif
ifeq ($(BR2_PACKAGE_DUKTAPE),y)
GERBERA_DEPENDENCIES += duktape
GERBERA_CONF_OPTS += -DWITH_JS=ON
else
GERBERA_CONF_OPTS += -DWITH_JS=OFF
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_LIBMATROSKA),y)
GERBERA_DEPENDENCIES += libmatroska
GERBERA_CONF_OPTS += -DWITH_MATROSKA=ON
else
GERBERA_CONF_OPTS += -DWITH_MATROSKA=OFF
endif
# Either libupnp or libnpupnp are guaranteed to be enabled
ifeq ($(BR2_PACKAGE_LIBNPUPNP),y)
GERBERA_DEPENDENCIES += libnpupnp
GERBERA_CONF_OPTS += -DWITH_NPUPNP=ON
else
GERBERA_DEPENDENCIES += libupnp
GERBERA_CONF_OPTS += -DWITH_NPUPNP=OFF
endif
ifeq ($(BR2_PACKAGE_LIBPQXX),y)
GERBERA_DEPENDENCIES += libpqxx
GERBERA_CONF_OPTS += -DWITH_PGSQL=ON
else
GERBERA_CONF_OPTS += -DWITH_PGSQL=OFF
endif
ifeq ($(BR2_PACKAGE_MARIADB),y)
GERBERA_DEPENDENCIES += mariadb
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
ifeq ($(BR2_PACKAGE_LIBZIPPP),y)
GERBERA_DEPENDENCIES += libzip libzippp
GERBERA_CONF_OPTS += -DWITH_ZIP=ON
else
GERBERA_CONF_OPTS += -DWITH_ZIP=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
$(eval $(cmake-package))