pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/gerbera gerbera: import version 1.9.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e257fc4ec60
branches:  trunk
changeset: 373185:6e257fc4ec60
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Tue Feb 08 06:26:49 2022 +0000

description:
gerbera: import version 1.9.2

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 was originally based on MediaTomb.

diffstat:

 multimedia/gerbera/DESCR                                       |    5 +
 multimedia/gerbera/Makefile                                    |   95 +++++
 multimedia/gerbera/PLIST                                       |   87 +++++
 multimedia/gerbera/distinfo                                    |    8 +
 multimedia/gerbera/files/config.xml.in                         |  170 ++++++++++
 multimedia/gerbera/files/gerbera.desktop.in                    |    9 +
 multimedia/gerbera/files/gerbera.sh                            |   26 +
 multimedia/gerbera/options.mk                                  |   47 ++
 multimedia/gerbera/patches/patch-src_main.cc                   |   15 +
 multimedia/gerbera/patches/patch-src_util_logger.h             |   36 ++
 multimedia/gerbera/patches/patch-src_util_string__converter.cc |   15 +
 11 files changed, 513 insertions(+), 0 deletions(-)

diffs (truncated from 557 to 300 lines):

diff -r d5a6b3b6c00d -r 6e257fc4ec60 multimedia/gerbera/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gerbera/DESCR  Tue Feb 08 06:26:49 2022 +0000
@@ -0,0 +1,5 @@
+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 was originally based on MediaTomb.
diff -r d5a6b3b6c00d -r 6e257fc4ec60 multimedia/gerbera/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gerbera/Makefile       Tue Feb 08 06:26:49 2022 +0000
@@ -0,0 +1,95 @@
+# $NetBSD: Makefile,v 1.1 2022/02/08 06:26:49 khorben Exp $
+
+GITHUB_PROJECT=        gerbera
+GITHUB_TAG=    v1.9.2
+DISTNAME=      v1.9.2
+PKGNAME=       ${GITHUB_PROJECT}-${DISTNAME:S,^v,,}
+CATEGORIES=    multimedia
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=gerbera/}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/gerbera/gerbera/
+COMMENT=       UPnP Media Server
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+
+USE_CMAKE=     yes
+
+GCC_REQD=      8
+
+RCD_SCRIPTS=   gerbera
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+=   VARBASE
+
+GERBERA_USER?= gerbera
+GERBERA_GROUP?=        gerbera
+
+PKG_GROUPS=    ${GERBERA_GROUP}
+PKG_USERS=     ${GERBERA_USER}:${GERBERA_GROUP}
+
+PKG_GECOS.${GERBERA_USER}=     Gerbera Server
+PKG_HOME.${GERBERA_USER}=      ${VARBASE}/gerbera
+
+PKG_SYSCONFSUBDIR=     gerbera
+EGDIR=                 ${PREFIX}/share/examples/gerbera
+CONF_FILES_PERMS+=     ${EGDIR}/config.xml ${PKG_SYSCONFDIR}/config.xml \
+                       ${GERBERA_USER} ${GERBERA_GROUP} 0640
+
+FILES_SUBST+=          PKG_HOME=${PKG_HOME.${GERBERA_USER}:Q}
+FILES_SUBST+=          GERBERA_GROUP=${GERBERA_GROUP}
+FILES_SUBST+=          GERBERA_USER=${GERBERA_USER}
+FILES_SUBST+=          PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+
+GERBERA_HOME=          ${PKG_HOME.${GERBERA_USER}}
+
+SUBST_CLASSES+=                config
+SUBST_FILES.config=    config.xml gerbera.desktop
+SUBST_VARS.config=     GERBERA_HOME PREFIX OPSYS
+SUBST_STAGE.config=    pre-configure
+
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/examples/gerbera
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+
+CHECK_SHLIBS_SUPPORTED=        no
+
+post-extract:
+       ${CP} ${FILESDIR}/config.xml.in ${WRKSRC}/config.xml
+       ${CP} ${FILESDIR}/gerbera.desktop.in ${WRKSRC}/gerbera.desktop
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/config.xml ${DESTDIR}${EGDIR}/config.xml
+       ${INSTALL_DATA} ${WRKSRC}/gerbera.desktop \
+               ${DESTDIR}${PREFIX}/share/applications/gerbera.desktop
+.if ${PKGMANDIR} != "share/man"
+       ${MV} ${DESTDIR}${PREFIX}/share/man/man1/gerbera.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gerbera.1
+.endif
+
+.include "options.mk"
+
+.include "../../audio/taglib/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.if !empty(PKGSRC_COMPILER:M*gcc*)
+.  include "../../devel/libatomic/buildlink3.mk"
+.endif
+.include "../../devel/libebml/buildlink3.mk"
+.include "../../devel/libinotify/buildlink3.mk"
+.include "../../devel/libuuid/buildlink3.mk"
+.include "../../devel/spdlog/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/libexif/buildlink3.mk"
+.include "../../net/libupnp/buildlink3.mk"
+.include "../../sysutils/file/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../textproc/fmtlib/buildlink3.mk"
+.include "../../textproc/pugixml/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d5a6b3b6c00d -r 6e257fc4ec60 multimedia/gerbera/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gerbera/PLIST  Tue Feb 08 06:26:49 2022 +0000
@@ -0,0 +1,87 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/08 06:26:49 khorben Exp $
+bin/gerbera
+man/man1/gerbera.1
+share/applications/gerbera.desktop
+share/examples/gerbera/config.xml
+share/gerbera/js/common.js
+share/gerbera/js/import.js
+share/gerbera/js/playlists.js
+share/gerbera/mysql-upgrade.xml
+share/gerbera/mysql.sql
+share/gerbera/sqlite3-upgrade.xml
+share/gerbera/sqlite3.sql
+share/gerbera/web/README.md
+share/gerbera/web/assets/theme/colors.css
+share/gerbera/web/assets/theme/gerbera-logo-white.png
+share/gerbera/web/assets/theme/gerbera.css
+share/gerbera/web/cds.xml
+share/gerbera/web/cm.xml
+share/gerbera/web/disabled.html
+share/gerbera/web/favicon.ico
+share/gerbera/web/gerbera-config-expert.json
+share/gerbera/web/gerbera-config-minimal.json
+share/gerbera/web/gerbera-config-standard.json
+share/gerbera/web/icons/mt-icon120.bmp
+share/gerbera/web/icons/mt-icon120.jpg
+share/gerbera/web/icons/mt-icon120.png
+share/gerbera/web/icons/mt-icon32.bmp
+share/gerbera/web/icons/mt-icon32.jpg
+share/gerbera/web/icons/mt-icon32.png
+share/gerbera/web/icons/mt-icon48.bmp
+share/gerbera/web/icons/mt-icon48.jpg
+share/gerbera/web/icons/mt-icon48.png
+share/gerbera/web/index.html
+share/gerbera/web/js/gerbera-app.module.js
+share/gerbera/web/js/gerbera-auth.module.js
+share/gerbera/web/js/gerbera-autoscan.module.js
+share/gerbera/web/js/gerbera-clients.module.js
+share/gerbera/web/js/gerbera-config.module.js
+share/gerbera/web/js/gerbera-items.module.js
+share/gerbera/web/js/gerbera-menu.module.js
+share/gerbera/web/js/gerbera-trail.module.js
+share/gerbera/web/js/gerbera-tree.module.js
+share/gerbera/web/js/gerbera-tweak.module.js
+share/gerbera/web/js/gerbera-updates.module.js
+share/gerbera/web/js/jquery.gerbera.autoscan.js
+share/gerbera/web/js/jquery.gerbera.clients.js
+share/gerbera/web/js/jquery.gerbera.config.js
+share/gerbera/web/js/jquery.gerbera.editor.js
+share/gerbera/web/js/jquery.gerbera.items.js
+share/gerbera/web/js/jquery.gerbera.toast.js
+share/gerbera/web/js/jquery.gerbera.trail.js
+share/gerbera/web/js/jquery.gerbera.tree.js
+share/gerbera/web/js/jquery.gerbera.tweak.js
+share/gerbera/web/js/md5.js
+share/gerbera/web/mr_reg.xml
+share/gerbera/web/vendor/bootstrap/css/bootstrap-grid.css
+share/gerbera/web/vendor/bootstrap/css/bootstrap-grid.css.map
+share/gerbera/web/vendor/bootstrap/css/bootstrap-grid.min.css
+share/gerbera/web/vendor/bootstrap/css/bootstrap-grid.min.css.map
+share/gerbera/web/vendor/bootstrap/css/bootstrap-reboot.css
+share/gerbera/web/vendor/bootstrap/css/bootstrap-reboot.css.map
+share/gerbera/web/vendor/bootstrap/css/bootstrap-reboot.min.css
+share/gerbera/web/vendor/bootstrap/css/bootstrap-reboot.min.css.map
+share/gerbera/web/vendor/bootstrap/css/bootstrap.css
+share/gerbera/web/vendor/bootstrap/css/bootstrap.css.map
+share/gerbera/web/vendor/bootstrap/css/bootstrap.min.css
+share/gerbera/web/vendor/bootstrap/css/bootstrap.min.css.map
+share/gerbera/web/vendor/bootstrap/js/bootstrap.js
+share/gerbera/web/vendor/bootstrap/js/bootstrap.js.map
+share/gerbera/web/vendor/bootstrap/js/bootstrap.min.js
+share/gerbera/web/vendor/bootstrap/js/bootstrap.min.js.map
+share/gerbera/web/vendor/font-awesome/css/font-awesome.css
+share/gerbera/web/vendor/font-awesome/css/font-awesome.min.css
+share/gerbera/web/vendor/font-awesome/fonts/FontAwesome.otf
+share/gerbera/web/vendor/font-awesome/fonts/fontawesome-webfont.eot
+share/gerbera/web/vendor/font-awesome/fonts/fontawesome-webfont.svg
+share/gerbera/web/vendor/font-awesome/fonts/fontawesome-webfont.ttf
+share/gerbera/web/vendor/font-awesome/fonts/fontawesome-webfont.woff
+share/gerbera/web/vendor/font-awesome/fonts/fontawesome-webfont.woff2
+share/gerbera/web/vendor/jquery/jquery-3.5.1.min.js
+share/gerbera/web/vendor/jquery/jquery-ui.min.js
+share/gerbera/web/vendor/js-cookie.js
+share/gerbera/web/vendor/lato/LICENCE.md
+share/gerbera/web/vendor/lato/lato-v14-latin-ext_latin-regular.woff
+share/gerbera/web/vendor/lato/lato-v14-latin-ext_latin-regular.woff2
+share/gerbera/web/vendor/popper/popper.js
+share/gerbera/web/vendor/tether/tether.min.js
diff -r d5a6b3b6c00d -r 6e257fc4ec60 multimedia/gerbera/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gerbera/distinfo       Tue Feb 08 06:26:49 2022 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2022/02/08 06:26:49 khorben Exp $
+
+BLAKE2s (gerbera/v1.9.2.tar.gz) = 1c1a47d6bddc58a3c4c97a1392ecfe5fed5a999889978e9032e0bf1ac713cce7
+SHA512 (gerbera/v1.9.2.tar.gz) = 91c7215b0bae000d4d8b29797947b29609e81c9387547e199936ce385ef679048a7554d24cd80ab73fc83c4288b29fc4928a23add6f67a1da05501c87afdf7a3
+Size (gerbera/v1.9.2.tar.gz) = 3671452 bytes
+SHA1 (patch-src_main.cc) = 2b17435822e244638deaaa51771149a3797e9c74
+SHA1 (patch-src_util_logger.h) = 162ece8bd495402bdcd512f38129de7a66aead19
+SHA1 (patch-src_util_string__converter.cc) = c040b049e5e3015a681cdd5fe2e0f5b50114a55b
diff -r d5a6b3b6c00d -r 6e257fc4ec60 multimedia/gerbera/files/config.xml.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gerbera/files/config.xml.in    Tue Feb 08 06:26:49 2022 +0000
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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 configuration files.
+    -->
+  <server>
+    <ui enabled="yes" show-tooltips="yes">
+      <accounts enabled="no" session-timeout="30">
+        <account user="gerbera" password="gerbera" />
+      </accounts>
+    </ui>
+    <name>Gerbera (@OPSYS@)</name>
+    <udn/>
+    <home>@GERBERA_HOME@</home>
+    <webroot>@PREFIX@/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>
+      <mysql enabled="no">
+        <host>localhost</host>
+        <username>gerbera</username>
+        <database>gerbera</database>
+      </mysql>
+    </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>
+      <ffmpegthumbnailer enabled="no">
+        <thumbnail-size>128</thumbnail-size>
+        <seek-percentage>5</seek-percentage>
+        <filmstrip-overlay>yes</filmstrip-overlay>
+        <workaround-bugs>no</workaround-bugs>
+        <image-quality>8</image-quality>
+      </ffmpegthumbnailer>
+      <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">
+    <magic-file>magic.file</magic-file>
+    <scripting script-charset="UTF-8">
+      <common-script>@PREFIX@/share/gerbera/js/common.js</common-script>
+      <playlist-script>@PREFIX@/share/gerbera/js/playlists.js</playlist-script>
+      <virtual-layout type="builtin">
+        <import-script>@PREFIX@/share/gerbera/js/import.js</import-script>
+      </virtual-layout>
+    </scripting>
+    <mappings>
+      <extension-mimetype ignore-unknown="no">
+        <map from="asf" to="video/x-ms-asf" />
+        <map from="asx" to="video/x-ms-asf" />
+        <map from="dff" to="audio/x-dsd" />
+        <map from="dsf" to="audio/x-dsd" />
+        <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" />



Home | Main Index | Thread Index | Old Index