We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

changeset 200:69881ed76bc6

updated emby-server+
author gsnerf <gsnerf@gsnerf.de>
date Mon, 24 Apr 2017 19:09:25 +0200
parents 707579bb0dfc
children cbb5cf71be86 6836bb33aa2a
files media-tv/emby-server/Manifest media-tv/emby-server/emby-server-3.2.13.0.ebuild
diffstat 2 files changed, 114 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/media-tv/emby-server/Manifest	Sun Mar 19 13:52:50 2017 +0100
+++ b/media-tv/emby-server/Manifest	Mon Apr 24 19:09:25 2017 +0200
@@ -27,6 +27,7 @@
 DIST 3.1.2.tar.gz 41765969 SHA256 9139a8ce91e6fa35b2bbe622df15df8de26d41e4b07ea9140c6b8850d35ed8a1 SHA512 5244bc0929225e844fb5f39114e9e2210e9fea61882f1dc0fe44a9df5a0657111df428fa4bca2e11276593bffdecf8be568fd50a3f87fde02d04295c0a5dcac7 WHIRLPOOL e8347ed0914bfad30e1cbb69b62200871ac98460646ab00dcaff06520cb6738fc9dd693e9cb65ce12523c71dac5aff343c10920bea0c4245e0e783d0b831dbd0
 DIST 3.1.5.tar.gz 41454188 SHA256 12b54f42b73a0f20ff9d6bcae5c2081e16286df49932ab55813290327cdb89fd SHA512 4668f7c8dc18c784b67421324171b9aee1f3541fef976ec5b9cf9bfec8c4ccd3cec823500eb11eb6f770bab68cb3681c17867c834240223f0af54fffeaab091b WHIRLPOOL c7a085300a6d3aeb84924292e5459244218fa6da945046fdf70b1fbf144f506c3f15b51e5ac28f4cdab47a8122369f3da0627c99c8bc86f6a55bd7fc3b841f72
 DIST 3.2.0.tar.gz 40676748 SHA256 f411930c635a5e3860d19a8cd62ea199c452d4fba58d93ee39de4bd3b3294dba SHA512 f3b70ce3963fa02db9befa57b32f1a4b6efc636ecfb1fb4e00eb7cbb78327c90a1678c4d981a3389e2f7213b79ae6f9729fec90a264e91452264967b1cb2a5d8 WHIRLPOOL 814c893c78534103137b9b1cfe1f429ad72503b815945ee3bbb55da4bc7d6523a07e6be7d91ce3ff1be4e16e73d5b3c358ab5b25cf030f381cb2a78969ea642a
+DIST 3.2.13.0.tar.gz 46992878 SHA256 1e6edc6ecfd23cfec397dfabfd83cc4ce11d6e92a93703eedee9d1e3ff87d9d8 SHA512 ba252765b51b3933085ff445d843c6653b68ceda320cbac63e8896b6074c543d61565aff3b74ddd20117a3f62924bc49e541758c97524cec8d742d31226ba0df WHIRLPOOL b147274d7db1c7298534502a60d7c1203675ae577d30fb95f09a71185f32092778c3b15028f8313bf1a2b4985bff08f59a3d75c3a4b64a6d0c957711779bd55b
 DIST 3.2.5.tar.gz 46521369 SHA256 b310ce7a91a577b995569cbe57d73b5bd8029744faba765b00b470345b7caf48 SHA512 886e1c36fb8401239d1196d5706ea9ac52aafb6bdfcd1dd1b7c2341842dafd97d39fa37426ef346dec4b8e5fe0811fa7da4845754cd8adba30685550b099248e WHIRLPOOL 7ddbb6d339913ac7fe56337925ef12d740cd6a7c901f8f4aab93e8133dd12196f90e5e241b9fd7eea4398ea70ca1f20520384ba705417ae1db4439c0407acae7
 DIST 3.2.7.tar.gz 46472876 SHA256 50f57575dea4d5ea8c64afd2a8e9dfa535918400ee8fea593359c09cf74bece3 SHA512 5358d10761b6be68c1d2ed5e81626d0c99c97e49f73e3b8aa8afd1311445bd9ff7bab0b335a0b929ded166b31c866653395bcd6ac5587c51d6bb56a92a75ec66 WHIRLPOOL d4b346927030e56c73abfc3d8dcc1067e302a345d66397bbccf08c3651720de4e27616f76ff83b2e6f0ad8b646335d910f6c09485592ffd70bd1dc62b072d11c
 DIST 3.2.8.tar.gz 46475083 SHA256 b3afee84546c3f610f0016af6ad2f5cea1ec3f662d866665753612732efcc58a SHA512 e61f91464e02c246047e38e43b209fc8af09c040633a7425515fddee5a8bccdf4b76cf988c6c1783a1283da08ce86b1b6abece8dd7c7ee132595ac42d057a989 WHIRLPOOL 2ccf7fb5467de42e7a0845847e27cb3929ff29289fa9fe028b0a41308f1654f22c54eb2e1f85722b57a35c9fb742d438c5cebf7090c99fdcc7a2c821579b6d8e
@@ -59,6 +60,7 @@
 EBUILD emby-server-3.1.2.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
 EBUILD emby-server-3.1.5.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
 EBUILD emby-server-3.2.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
+EBUILD emby-server-3.2.13.0.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
 EBUILD emby-server-3.2.5.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
 EBUILD emby-server-3.2.7.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
 EBUILD emby-server-3.2.8.ebuild 3966 SHA256 ea80f17937b3b402c585563f74a4e60d14d14733b1a78e80ad09ae38989cfb35 SHA512 61c4c14d1f0cd5732ae14d3162bacf60510560ae678fc956b1eb8684ff5b9366ffe95f03d258f64e54b0af883a97aa59649b9be91dde08dcd8ec1654a78bad3f WHIRLPOOL 7e4d288429211ad89daf787f0ac726d21631b4f6a5d44a9ec00383d2cc43e9f589474988d6868c55ebd0c7da91ac829cf26c4a61f0c8c4928a8ab2059153b5fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.2.13.0.ebuild	Mon Apr 24 19:09:25 2017 +0200
@@ -0,0 +1,112 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user git-r3
+
+DESCRIPTION="Emby Server (formerly known as MediaBrowser Server) is a software that indexes a lot of different kinds of media and allows for them to be retrieved and played through the DLNA protocol on any device capable of processing them."
+HOMEPAGE="http://emby.media/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+SRC_URI="https://github.com/MediaBrowser/Emby/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-4.6.0
+	>=media-video/ffmpeg-2[vpx]
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0
+	dev-dotnet/referenceassemblies-pcl"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/emby-server"
+DATA_DIR="/var/lib/emby-server"
+STARTUP_LOG="/var/log/emby-server_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/emby-server"
+
+# INSTALL
+# #######################################################################################################
+
+pkg_setup() {
+	einfo "creating user for Emby"
+	enewgroup emby
+	enewuser emby -1 /bin/bash ${INSTALL_DIR} "emby"
+}
+
+# gentoo expects a specific subfolder in the working directory for the extracted source, so simply extracting won't work here
+src_unpack() {
+        unpack ${A}
+        mv Emby-${PV} emby-server-${PV}
+}
+
+src_prepare() {
+	MAGICKWAND=$(ldconfig -p | grep MagickWand.*.so$ | cut -d" " -f4)
+	MAGICKWAND=${MAGICKWAND##*/}
+	einfo "adapting to imagemagick library to: ${MAGICKWAND}"
+	sed -i -e "s/\"libMagickWand-6.Q8.so\"/\"${MAGICKWAND}\"/" MediaBrowser.Server.Mono/ImageMagickSharp.dll.config || die "could not update libMagickWand reference!"
+}
+
+
+src_compile() {
+	einfo "updating root certificates for mono certificate store"
+	mozroots --import --sync
+	einfo "now actually compile"
+	xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" MediaBrowser.Mono.sln || die "building failed"
+}
+
+src_install() {
+	einfo "preparing startup scripts"
+	newinitd "${FILESDIR}"/emby-server.init_3  ${PN}
+	newconfd "${FILESDIR}"/emby-server.conf ${PN}
+
+	einfo "preparing startup log file"
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown emby:emby ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -oemby -gemby
+	dodir ${INSTALL_DIR}
+	cp -R ${S}/MediaBrowser.Server.Mono/bin/Release\ Mono/* ${D}${INSTALL_DIR}/ || die "install failed, possibly compile did not succeed earlier?"
+	chown emby:emby -R ${D}${INSTALL_DIR}
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_postinst() {
+	einfo "emby-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by Emby can be found at ${DATA_DIR} after the first start."
+	einfo ""
+
+	if [[ -d "/usr/lib/mediabrowser-server" || -h "/usr/lib/mediabrowser-server" ]]; then
+		ewarn "ATTENTION: You seem to have moved from the former mediabrowser-server package:"
+		ewarn "don't forget to migrate your original data directory before the first start!"
+		ewarn "To do that move"
+		ewarn "     /usr/lib/mediabrowser-server"
+		ewarn "to"
+		ewarn "     ${DATA_DIR}"
+		ewarn "and change owner status from mediabrowser:mediabrowser to emby:emby!"
+		ewarn "     chown -R emby:emby ${DATA_DIR}"
+	fi
+
+	if [[ -d "/usr/lib/emby-server" || -h "/usr/lib/emby-server"  ]]; then
+		ewarn "ATTENTION: You seem to have existing program data at /usr/lib/emby-server!"
+		ewarn "Please move that folder to ${DATA_DIR} before the first start and make sure the folder is owned by emby:emby"
+		ewarn "The folder /usr/lib/emby-server will be repurposed in one of the next releases, so make sure to clean that directory up!"
+	fi
+}
+
+# UNINSTALL
+# #######################################################################################################
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}