[oe-commits] [meta-openembedded] 35/58: gerbera: Add recipe

git at git.openembedded.org git at git.openembedded.org
Tue Sep 12 22:00:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 2e670a45ebdeaafd47411c1731c6a13befff2990
Author: Fabien Lahoudere <fabien.lahoudere at collabora.co.uk>
AuthorDate: Fri Sep 8 15:34:15 2017 +0200

    gerbera: Add recipe
    
    Gerbera is a UPnP media server which allows you to stream your digital media
    through your home network and consume it on a variety of UPnP compatible devices.
    
    Gerbera is based on MediaTomb 12.1 which is dead upstream, so this is an attempt
    to kick it back into life.
    
    Signed-off-by: Fabien Lahoudere <fabien.lahoudere at collabora.co.uk>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../gerbera/files/gerbera.service                  | 13 +++++++++
 .../recipes-multimedia/gerbera/gerbera_git.bb      | 34 ++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/meta-multimedia/recipes-multimedia/gerbera/files/gerbera.service b/meta-multimedia/recipes-multimedia/gerbera/files/gerbera.service
new file mode 100644
index 0000000..1b5a3ad
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/gerbera/files/gerbera.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Start Gerbera, an UPnP media server
+After=multi-user.target network-online.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/bin/gerbera
+Environment='HOME=/root'
+Type=simple
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb b/meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb
new file mode 100644
index 0000000..2bbedc0
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/gerbera/gerbera_git.bb
@@ -0,0 +1,34 @@
+Description = "Gerbera - An UPnP media server"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=25cdec9afe3f1f26212ead6bd2f7fac8"
+
+SRC_URI = "git://github.com/v00d00/gerbera.git;protocol=https \
+	   file://gerbera.service "
+
+
+# Modify these as desired
+PV = "1.0+git${SRCPV}"
+SRCREV = "4435b165d121195aefd67d0287f7f9349e181d45"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "expat zlib curl libupnp e2fsprogs sqlite3 taglib "
+RDEPENDS_${PN} = "expat zlib curl libupnp e2fsprogs taglib "
+
+SYSTEMD_SERVICE_${PN} = "gerbera.service"
+SYSTEMD_AUTO_ENABLE = "enable"
+
+inherit cmake systemd
+
+EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_TAGLIB=FALSE -DWITH_MAGIC=FALSE -DWITH_EXIF=FALSE -DLIBUUID_INCLUDE_DIRS=${WORKDIR}/recipe-sysroot/usr/include -DLIBUUID_LIBRARIES=-luuid"
+
+do_install_append() {
+	install -d ${D}/root/.config/
+	install -d ${D}${systemd_system_unitdir}
+        install -m 0644 ${WORKDIR}/gerbera.service ${D}${systemd_system_unitdir}/
+}
+
+FILES_${PN} += " /root/.config/ \
+	         ${systemd_system_unitdir}/* \
+"
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list