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

changeset 131:693255175934

merge
author Daniel Neugebauer <dneuge@energiequant.de>
date Mon, 28 Mar 2016 21:12:10 +0200
parents 2ce94546a682 (current diff) 56f8a6108f7d (diff)
children fa6d2de366ac
files dev-python/celery/Manifest dev-python/celery/celery-2.2.10.ebuild dev-python/kombu/Manifest dev-python/kombu/kombu-1.5.1.ebuild dev-python/py-bcrypt/Manifest dev-python/py-bcrypt/py-bcrypt-0.2.ebuild dev-python/webob/Manifest dev-python/webob/webob-1.0.8.ebuild dev-vcs/rhodecode/Manifest dev-vcs/rhodecode/rhodecode-1.3.6.ebuild
diffstat 66 files changed, 4693 insertions(+), 221 deletions(-) [+]
line wrap: on
line diff
--- a/dev-python/celery/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-DIST celery-2.2.10.tar.gz 1502041 RMD160 86b71987a524f8dd80925df793dc78536752a030 SHA1 17b2f27915c581e60264706ec12e1926aadec99d SHA256 dc6379c9bd0d799ed44e6a905d54b29fc0c7a514152e366bb3ef939e03291ab6
-EBUILD celery-2.2.10.ebuild 1091 RMD160 01fe1cf50860c2cf1a3acebc4f3804166f679860 SHA1 a02d13c74011288b58105d5dd9aaeed1990bd982 SHA256 92b632276e78a95817efcf638813508d38018c71891b7cff09e520dd2a2d6962
--- a/dev-python/celery/celery-2.2.10.ebuild	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils
-
-DESCRIPTION="Celery is an open source asynchronous task queue/job queue based on distributed message passing."
-HOMEPAGE="http://www.celeryproject.org/ http://pypi.python.org/pypi/celery"
-
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-# dependencies are likely to be incomplete or not restrictive enough
-# this library ebuild has been added for rhodecode which may have restricted them in
-# another way, you are encouraged to submit corrections to gentoo-overlay@megacoffee.net
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-DEPEND=">=dev-python/kombu-1.1.2
-	<dev-python/kombu-2.0.0
-	dev-python/setuptools"
-
-LICENSE="BSD-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT_PYTHON_ABIS="3.*"
-
-# NOTE: the official ebuilds for later versions of Celery contain some more steps
--- a/dev-python/kombu/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-DIST kombu-1.5.1.tar.gz 243413 RMD160 c1001faf00b68772b3c6695ba671d0e5aa020f0d SHA1 fb17dffd1aa85a7a825a11e53851e20a659a1cc3 SHA256 ae526adae2dd89c07f4f63fe3c4312d62c7c4a79b3aaeb32d5bf944cb0ac6e6f
-EBUILD kombu-1.5.1.ebuild 978 RMD160 0dd41a4cd2a8cf5bf8f238dd4742694de93f0d32 SHA1 8461fdd82da333bf4f747d033e01a7040d8c3648 SHA256 5158cafa425d98c2b292fada631ccbba9dd7f7e892a18725e98f3e45e7eb68ff
--- a/dev-python/kombu/kombu-1.5.1.ebuild	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils
-
-DESCRIPTION="AMQP Messaging Framework for Python"
-HOMEPAGE="http://kombu.readthedocs.org/ https://github.com/ask/kombu"
-
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  
-# dependencies are likely to be incomplete or not restrictive enough
-# this library ebuild has been added for rhodecode which may have restricted them in    
-# another way, you are encouraged to submit corrections to gentoo-overlay@megacoffee.net
-# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-DEPEND="dev-python/setuptools"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT_PYTHON_ABIS="3.*"
-
-# NOTE: the official ebuilds for later versions of Celery contain some more steps
-
--- a/dev-python/py-bcrypt/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-DIST py-bcrypt-0.2.tar.gz 16804 RMD160 c04c6d623dbbd633b57aa76271a5cc93fb2f2426 SHA1 8fbcf01794557c6f9b37ce3a9c296fb8d2d24650 SHA256 86a798053e41620e64c41b9d6cfd820ac4a564ed4030a5fb177b9daef6bbacba
-EBUILD py-bcrypt-0.2.ebuild 452 RMD160 7eaa0a4651b3a8b0e8c6351d52979e0093809c29 SHA1 20d794a215cf1bb174396ec9a6cd92a3f3b0a240 SHA256 9beb8d2c08fdf4ed4f39acb766933ad626107ce0fe8c6802fb792ec799b796bf
--- a/dev-python/py-bcrypt/py-bcrypt-0.2.ebuild	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils
-
-DESCRIPTION="a Python wrapper to bcrypt"
-HOMEPAGE="http://code.google.com/p/py-bcrypt/"
-
-SRC_URI="http://py-bcrypt.googlecode.com/files/py-bcrypt-0.2.tar.gz"
-
-DEPEND="dev-python/setuptools"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT_PYTHON_ABIS="3.*"
--- a/dev-python/webob/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-DIST WebOb-1.0.8.zip 194699 RMD160 e0264867521e1bd9a0aee295f45f5e2da5061889 SHA1 aa31465748763f3a516a60e814eaf5a34e369b4b SHA256 fe771def02bd7857b5519bdf3ae4ea7ea4ebb7d2f5fa10953c8d4535b0ccb2b5
-EBUILD webob-1.0.8.ebuild 1307 RMD160 0cc05047bacdc0291c00579d579e85dd3d8def82 SHA1 dd72482203a65a21ae70d349bdf0bfb793657f24 SHA256 ef32dc6fa0196430abe2d054dadd9bbff93027d37c2381a27e217eb09792dfee
--- a/dev-python/webob/webob-1.0.8.ebuild	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/webob/webob-1.0.7.ebuild,v 1.6 2011/07/20 22:42:44 halcy0n Exp $
-
-EAPI="3"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.*"
-DISTUTILS_SRC_TEST="nosetests"
-
-inherit distutils eutils
-
-MY_PN="WebOb"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="WSGI request and response object"
-HOMEPAGE="http://pythonpaste.org/webob/ http://pypi.python.org/pypi/WebOb"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-IUSE="doc test"
-
-DEPEND="app-arch/unzip
-	dev-python/setuptools
-	doc? ( dev-python/sphinx )
-	test? ( dev-python/webtest )"
-RDEPEND=""
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-	distutils_src_prepare
-}
-
-src_compile() {
-	distutils_src_compile
-
-	if use doc; then
-		einfo "Generation of documentation"
-		"$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed"
-	fi
-}
-
-src_install() {
-	distutils_src_install
-
-	if use doc; then
-		pushd build/sphinx/html > /dev/null
-		insinto /usr/share/doc/${PF}/html
-		doins -r [a-z]* _static || die "Installation of documentation failed"
-		popd > /dev/null
-	fi
-}
--- a/dev-vcs/rhodecode/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-DIST edfff9f37916389144d3a3644d0a7d7adfd79b11.zip 2240778 RMD160 5f6fb2737678b31b137b6c473bcf5f1916d75b98 SHA1 ddcc0d789cf55dbd11db3026ec1fd9f35e8b9ecb SHA256 c7203c1cb5a771acc7b89a5a1d06748db9619ce1b7fcfcb94107d0d712dc7961
-EBUILD rhodecode-1.3.6.ebuild 1695 RMD160 1a9fe5c32676ecc7b393169446cc528e3e08694f SHA1 d74daf3fb1c475ecbec983187c4b3cb37587b9b0 SHA256 6af7c3f2f888d50f560f26b8bbbde7643b2a3802fc07e259f15273bf28f937cd
--- a/dev-vcs/rhodecode/rhodecode-1.3.6.ebuild	Sun Aug 10 22:33:43 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="2"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit distutils
-
-DESCRIPTION="a web-based frontend and middleware to Mercurial repositories"
-HOMEPAGE="http://rhodecode.org/"
-
-#SRC_URI="https://secure.rhodecode.org/rhodecode/archive/edfff9f37916389144d3a3644d0a7d7adfd79b11.zip?subrepos=true"
-SRC_URI="https://secure.rhodecode.org/rhodecode/archive/edfff9f37916389144d3a3644d0a7d7adfd79b11.zip"
-
-DEPEND=">=dev-vcs/mercurial-2.2.1
-        <dev-vcs/mercurial-2.3
-        dev-python/pastescript
-	dev-python/setuptools
-	
-	=dev-python/pylons-1.0
-	=dev-python/beaker-1.6.3
-	=dev-python/webhelpers-1.3
-	=dev-python/formencode-1.2.4
-	=dev-python/sqlalchemy-0.7.6
-	=dev-python/mako-0.7.0
-	>=dev-python/pygments-1.4
-	>=dev-python/whoosh-2.4.0
-	<dev-python/whoosh-2.5
-	dev-python/Babel
-	>=dev-python/python-dateutil-1.5
-	<dev-python/python-dateutil-2.0
-	>=dev-python/dulwich-0.8.5
-	<dev-python/dulwich-0.9.0
-	=dev-python/webob-1.0.8
-	=dev-python/markdown-2.1.1
-	=dev-python/docutils-0.8.1
-	=dev-python/simplejson-2.5.2
-	
-	>=dev-python/pyparsing-1.5.0
-	<dev-python/pyparsing-2.0.0
-	
-	dev-python/py-bcrypt
-	=dev-python/celery-2.2.10
-	<dev-python/celery-3
-	>=dev-python/anyjson-0.3.1
-	>=dev-python/amqplib-1.0
-"
-
-LICENSE="AGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RESTRICT_PYTHON_ABIS="3.*"
-
-ACTUALDIR="rhodecode-edfff9f37916"
-
-distutils_src_compile_pre_hook() {
-	cd ${ACTUALDIR}
-}
-
-distutils_src_install_pre_hook() {
-	cd ${ACTUALDIR}
-}
-
-pkg_postinst() {
-	einfo "You need to setup RhodeCode according to the instructions at:"
-	einfo "    http://packages.python.org/RhodeCode/setup.html"
-}
--- a/media-libs/blackmagic-desktop-video/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ b/media-libs/blackmagic-desktop-video/Manifest	Mon Mar 28 21:12:10 2016 +0200
@@ -1,2 +1,3 @@
+AUX 9-8-strict-prototypes.patch 600 SHA256 bdd692ad335f6b66f88149e52d59ee59e8401e0eb36234a3d175cccc04ccad91 SHA512 1c6ac8c6e8d97e1c428f720695831101568a51ebb47aaa346eef5fadca15bd9bc36ab1884156c1de5474f70b153097b04e7939c710c13338a7a9ed69086441ea WHIRLPOOL 34204ad2e7e3c18ee129876bbd93f0c22e94344694672ccb465ec8dfeae380ecc2f35a9e68fd33fef4745fde85cd3a2381ee7787361fbe1da155a2ac5ee97031
 DIST Blackmagic_Desktop_Video_Linux_9.8.tar.gz 141900528 SHA256 6977360490c806f9952028d50bc10782d5878e5d42bd7c0f5eb070b3b6e1116c SHA512 af4ccd5f9732633c4b3756766cd54c3329bf9edeb640462bb316e9c2b782550399806973a51e51c52fa47eaa018a11889b343cc3c1531282cc6524c6f630fce1 WHIRLPOOL 6497d43c147db98e433edb3639a666b1f39036c44fe317f835407458924969ca0ae1741c577bb7b92853cc720eb0fd6cda09aca820c8222adcbfe66bd9540fb9
-EBUILD blackmagic-desktop-video-9.8.ebuild 4123 SHA256 a7fc2c6539e7c4979f05500e15124755b2eb61ffd1d4896be00284ea50cfb330 SHA512 7842ea6c8a26c0cf0f1281e412eece5ace31ca9fd097f34354258c1a422d5f5499d91466851e2a7c3f2fd86ef775ee3ee7432351ad97abc3d83265818bd6d683 WHIRLPOOL 98b26e805ee6f8259dcfaba8bc3dfef1c818b3d7a4545448f83bc53c33aeae1d489a1a7d3000b51c06a2d4df72ce83ea856cbb173fdc4f08b918d4f9469dc4a3
+EBUILD blackmagic-desktop-video-9.8.ebuild 4164 SHA256 95301cff3c1901ef3ade16d0e043b5354c53f5795cf56950b0f5f07678a9054a SHA512 5028ba85c878f41baad35457aa75c3f785768ca3759519caafd9c90b73c181712b83ba5dd48d3ddf65583ef7e32b88db673ce4840af237ce9ae1f0e19189765c WHIRLPOOL 70d6a04f80dbfd2131e8d2845c4b909dbfb932c9aa88198b5ed97d947780584a7f0e0cd21370f0bbd038df0a72d99f7fe7a71f607394814bfd4e4475d4ad876f
--- a/media-libs/blackmagic-desktop-video/blackmagic-desktop-video-9.8.ebuild	Sun Aug 10 22:33:43 2014 +0200
+++ b/media-libs/blackmagic-desktop-video/blackmagic-desktop-video-9.8.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -48,7 +48,7 @@
 }
 
 src_prepare() {
-	return
+	epatch "${FILESDIR}/9-8-strict-prototypes.patch"
 }
 
 src_compile() {
@@ -121,7 +121,7 @@
 	einfo " # grep VmallocUsed /proc/meminfo"
 	einfo ""
 	einfo "We are reloading udev rules now..."
-	/sbin/udevadm control --reload-rules || einfo " ... failed, you may want to check this before rebooting!"
+	/bin/udevadm control --reload-rules || einfo " ... failed, you may want to check this before rebooting!"
 }
 
 pkg_postrm() {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-libs/blackmagic-desktop-video/files/9-8-strict-prototypes.patch	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,11 @@
+--- a/blackmagic-desktop-video-9.8/usr/src/desktopvideo-9.8a2/blackmagic_iml.h	2014-10-19 15:27:24.042563486 +0200
++++ b/blackmagic-desktop-video-9.8/usr/src/desktopvideo-9.8a2/blackmagic_iml.h	2014-10-19 15:27:43.826053672 +0200
+@@ -42,7 +42,7 @@
+ 
+ /* Init and Startup */
+ extern int blackmagic_ioctl_private(void *, void *, unsigned int, unsigned long);
+-extern void *dl_alloc_driver();
++extern void *dl_alloc_driver(void);
+ extern int dl_start_driver(void *, void *, unsigned int* flags);
+ extern void *dl_create_and_init_user_client(void *, void *);
+ extern void dl_release_user_client(void *);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-libs/libwebp/Manifest	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,2 @@
+DIST libwebp-0.4.1.tar.gz 966358 SHA256 00b646e6f66550a8faa998711fe70aabee9ed3bc562a8437c89042901674d027 SHA512 0b2e61aa431292f2f7616f4e2f3bfe20d0b596a875b6d6e4e11ba4c7ce2709815bd936d5402ffc3c927732cb2b28c8d46c2411b25c82442b5adfa631c8548676 WHIRLPOOL e3faab32355b75d04f61e02cf2039a6d6b3111a1cf1c6ad3877ce653d4cb830ffabc9541b14e98e125754b2f083a61bc2eabec279e29cecebe806a865b079f26
+EBUILD libwebp-0.4.1.ebuild 2005 SHA256 23d5494cb1bd980236fb14c09c3f417edcc32075a01297148418c12391528605 SHA512 61027ea88d8be0354fa960437cf14a4cbe30519b938783cf64766a5ca6da2d4b893b483f39b0778475a67a23567353f1b159fb426065bfe8c2cadb986bba328d WHIRLPOOL b9471ec1d93317afb4b3278ab26585a7a972e627dd6771e84b044214907c1dea94cc1237bfaaeaef67aa4d7b3796aa072474b3dfab25feac5f831668a29a7a61
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-libs/libwebp/libwebp-0.4.1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,67 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libwebp/libwebp-0.4.0.ebuild,v 1.15 2014/04/28 17:45:42 mgorny Exp $
+
+EAPI=5
+inherit eutils libtool multilib-minimal
+
+DESCRIPTION="A lossy image compression format"
+HOMEPAGE="http://code.google.com/p/webp/"
+SRC_URI="http://downloads.webmproject.org/releases/webp/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/5" # subslot = libwebp soname version
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~m68k-mint"
+IUSE="experimental gif +jpeg opengl +png static-libs swap-16bit-csp tiff"
+
+# TODO: dev-lang/swig bindings in swig/ subdirectory
+RDEPEND="gif? ( media-libs/giflib:= )
+	jpeg? ( virtual/jpeg:0= )
+	opengl? (
+		media-libs/freeglut
+		virtual/opengl
+		)
+	png? ( media-libs/libpng:0= )
+	tiff? ( media-libs/tiff:0= )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="mirror"
+
+ECONF_SOURCE=${S}
+
+src_prepare() {
+	# This is conflicting with `usex` later on, upstream is using ac_cv_ wrong
+	# If modifying configure.ac, eautoreconf is required because of "Maintainer mode"
+	sed -i -e '/unset ac_cv_header_GL_glut_h/d' configure || die
+
+	# Fix libtool relinking, bug 499270.
+	elibtoolize
+}
+
+multilib_src_configure() {
+	# Only used for gif2webp binary wrt #486646
+	local build_gif2webp=$(usex gif)
+	multilib_is_native_abi || build_gif2webp=no
+
+	ac_cv_header_gif_lib_h=${build_gif2webp} \
+	ac_cv_header_jpeglib_h=$(usex jpeg) \
+	ac_cv_header_png_h=$(usex png) \
+	ac_cv_header_GL_glut_h=$(usex opengl) \
+	ac_cv_header_tiffio_h=$(usex tiff) \
+		econf \
+			$(use_enable static-libs static) \
+			$(use_enable swap-16bit-csp) \
+			$(use_enable experimental) \
+			--enable-libwebpmux \
+			--enable-libwebpdemux \
+			--enable-libwebpdecoder
+}
+
+multilib_src_install() {
+	emake DESTDIR="${D}" install
+}
+
+multilib_src_install_all() {
+	prune_libtool_files
+	dodoc AUTHORS ChangeLog doc/*.txt NEWS README{,.mux}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-plugins/gimp-dds/Manifest	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,2 @@
+DIST gimp-dds-3.0.1.tar.bz2 470026 SHA256 6e53df3b8b98c55f22fa7ea2c3ed17478626c924b24c69d499f5d813c3c2788a SHA512 0fbace84175b83d60803a3277044adf259af89d1ae7678277dd186a01336c0fd430490cdd8726c32dc5d66a17b957261007e223bba73ea14ceea14ba8d54c5b9 WHIRLPOOL ca4627f504ebc76080ebe5b4ee62bf7007bcb5136c2260b4b377c0cec061d46f23fe9477c1b1f5f5c15abbc0e437dda7d342603cb7dec55a23e9e8cf1d5e9365
+EBUILD gimp-dds-3.0.1.ebuild 1077 SHA256 08ee02aa13c32adf62b0b382a482a086424fb80e0e7135ac7a851d479068da64 SHA512 4fca6d87285ed8548ea5ad8ee014e872312f26f04ee7f280e13436f55b6cd7d256a7e71da20bc98e5baad63f67655c020287370d978543e01ce5d0f23364956b WHIRLPOOL b711e50bcd760d7983197f0b7ef1c8304454717afdd4892b06fec34181fe0639d430251d3f2451e051cfcb645986c3bc3c080f6413510d485647f893308644cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-plugins/gimp-dds/gimp-dds-3.0.1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="DirectDraw Surface (DDS) format plugin for Gimp 2"
+HOMEPAGE="http://code.google.com/p/gimp-dds/"
+SRC_URI="http://gimp-dds.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=media-gfx/gimp-2.8
+	 <media-gfx/gimp-2.9"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+src_prepare() {
+	sed -e 's:CFLAGS=.*\$(:CFLAGS+=\$(:' \
+	    -e 's:LDFLAGS=:LDFLAGS+=:' \
+		-i Makefile || die
+
+	# Fixing incorrect $(LD) usage
+	# http://code.google.com/p/gimp-normalmap/issues/detail?id=1
+	sed -e 's:\t$(LD) :\t$(CC) :' \
+		-i Makefile || die
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+	exeinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
+	doexe dds || die "Installation failed"
+
+	# No need to install the gimp-dds.odt or the images, as they have the same
+	# content as the gimp-dds.pdf
+	dodoc README TODO doc/gimp-dds.pdf || die
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/Manifest	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,50 @@
+AUX emby-server.conf 322 SHA256 e830272092f843f91c370bb6a929247af92b211f735a831d20adaad611738612 SHA512 d260f1f6de4af9110e94831b84d756f042ac140fc96640fff06cdaebf4974685f712380afd0cb819f60bcc02bb38c664afcbd6989b65e487494f99bb9a225ac8 WHIRLPOOL eeb0819813a346d67899271f7ff8aa5401d14528d4866025b0cf030c3e67da73609c655e6cd52823098aeb8474896aff6cb43335925e3c6206ffaaf951c81de1
+AUX emby-server.init_2 1033 SHA256 4bb0fe86afa09e1ed65b47f23b8b001f4ecb9da6e0a2c26b64fd492b1fa0f722 SHA512 52ec07f40109e574818f2417e5e9593c5e8890a94aab5e88c4cb8d0c599d4825d167cc5adb57a6dfe657050dffee2e8f329c7cbef1aa653d84bfbada8080be16 WHIRLPOOL 0981b7a6c1a0cf2d0e4cad6253975a8e77b1b70e773fe54fee93525d8e8f14e8c8f8c4a26f212a836c69e19fb077b20f43ea391bd6de520ff52fc4165afbbd35
+AUX initd_1 1085 SHA256 bb18bb92069d149d817b1253617c42e820dcbfdb6f9bf6cbbe5428b89904e2d7 SHA512 d842dfb42c926b0be11d950b71ba91fd56906cfda018d4be401da4aed509e1c3fa9fb0c8516d053a3de29f50651e81420341fd3e032131ae4deb5b0f735aa5ec WHIRLPOOL 8c3a3b4a2ba8ac1db26afed4a936712ff45704be0bac7ee1a4ca67d32b2b5f370ff0b059686e92b0ff3a76895a48510819d7bb35270bfdb1c79b95bcf125a7aa
+DIST 3.0.5572.0.tar.gz 55425944 SHA256 2c9a58469092e6d46168b9c882867644966345ef30e8cc198ea4f0e9a6728662 SHA512 77b038e2d6a0c71891fb79c5b0d5246d8ac13c619c5338e059f015625fcf08b6f87be055c95932abb8be55ee16ace8582ec881289e15219858a92ae0c9b10c43 WHIRLPOOL a16f7bd9d1f1267944a3ca2f5d19337301a3523cfc1099acccd15ba9777b477f65c9e417e4c6d025310291eb2a0b16fca912e2afda87049b16b49f8a4c9c70ac
+DIST 3.0.5588.1.tar.gz 55500278 SHA256 68ae462c5dc274c93988f2466c2bb9e7258d7c1420fc380864c7ff0ef22d6577 SHA512 802a535364dcd3f20b61ab47afab8c6ac7c30043428d618585236c2c64ac6747e6c1bff80673d7a7cbebcf44cfe6164908115cb68d0871ff552e92e8882f6d4c WHIRLPOOL 9417cc717d276d8de62e8adbe24674a72ce629efacc8f7fcd14b67054cd84c40fa754e278bea63c03106fe78c5c39c9ff42ffce91b37108b6b03c0be0fc7056a
+DIST 3.0.5597.1.tar.gz 55621872 SHA256 07bc45a3a00b071b8402b6c06b16a8b88f27c5992deaba24612f72c4150defe5 SHA512 614c5e2c9a52851e35bd8c8547b49270f4a64e59a0ecb52e99857e545e75d6e818e84ab4fa5d0450d308ab3d3623e639c1dc3e6d1de62c8252ffe0c486d91b8f WHIRLPOOL eab8e42875d2b5b7d6952c7a9fda9ae8cf7402ff2e77916e081a5df0a943fcc0969bb2b022aaf07ee93a636161e955c80cdd463d49e96fddee795bb4b38c6b7f
+DIST 3.0.5607.2.tar.gz 55790148 SHA256 e130613535b5adb5184880893fe8a9bc51f7abb5a773542230b45d2abddd4fdd SHA512 6b99581964185294b4522362744a080626124658b55c2529ff028afe5c93d1cdb0ff8c8600eef2990e8f8e1183937d09a1b3e86fda9da4d0b12c17123b5839c7 WHIRLPOOL 75c459cdd8cef4f811624acec2c00220fafa579bc0b3ae6c77df132771ac3a979289c45d1382c51310a6da06a6750b0438b52fbd270f4a26b9a60b1e6bba9c38
+DIST 3.0.5621.3.tar.gz 55800580 SHA256 d6414dba65f6dbf31658a7d11b7e3fc5b9e0df9c043df50bfd4f5375b76ea922 SHA512 57e0ea016558f909243ad1cab3b31c54e89d2d0c6bde9ba035a5d07133b7f9a32fceea5a945d52766450372cc4fe35e26b48a52fdfab825c8f391fa388d856cf WHIRLPOOL 06af57a3dfa62d8bb07d9994b90623b9f93e1b96828fc5f8a3b5d6b583800b9b6a95c90dfd901790e772be3e23b884abd2c11581e6981ec4a9885efe1785db26
+DIST 3.0.5621.4.tar.gz 55800806 SHA256 3610811788c50e2d242909702da8ea005f5b8ae9bd65751fc6fc821144b9b832 SHA512 7eb92003665e3733bfef1abae370c9e6fcadeaef3098c8541a5e79ae9e1f233edba0f5914a8fe59f325879103145700a9adb1beecac669b0eb1d8b114499ca63 WHIRLPOOL 0c9717b9d5486156754aa066a914f1ce5b9a2a87d4694937a714ed9941d9b74d3f21fe4eda0f4d575b1e647bb4003ac30703a8c2b1b9fa823686c72bb7919746
+DIST 3.0.5641.4.tar.gz 54577043 SHA256 f6037906d374f0be67777d1c2daa0db418fe8bb51221a31638f78da61bd96c30 SHA512 07d5a033824bf0bfa0b29b1cba40139de9def271d1e7643abc9fb3adc716289eb840fefbb76d01e93abe100197732e1fca168a568563f4106fb467f7eeba9005 WHIRLPOOL df45c70f66f2428391862000436eed60bb083c7ffcbdeb40bcd84a61edfce63bea50b699a43fbb53ed09df23607f2cc406c5a1ed41d32a00f24afb45c6a265e6
+DIST 3.0.5675.1.tar.gz 56487439 SHA256 afb3755ba9eebd8da5c5cdb3db4f4625dc2eee75de8dc0904ac9cbf8da4d2ad2 SHA512 dfb730c1a9aedd2669a4b7f60fa879cca6f44aa182e7d6baba6054e3dcfc25d271723f54812238627f5b8e7ac176f53c6fdc56c4c92b50d6969155a56c69cd2b WHIRLPOOL 54b520eb9195b4b281a2ca31b1081538465ffae85a466642a59b03d565501979cad986a126fda0c139e3cc02cf2d29fe2d036abae3f320d068d59efab7d0d4b0
+DIST 3.0.5724.4.tar.gz 56292088 SHA256 79d0b17ca5022ad3283c1034f5a8c3bd68dedc97f2cb9507d553f5e91b1cc53e SHA512 cb9334c1a52f10557226340a63f25205725690d5838e7fa65767c14d61ceb34374429a9fb3a37be853c526193d3a1a008c3cca6b3a732daf2f131ea657b1a37d WHIRLPOOL 6f295db892463f022d9ed847193dff37229151ed84468fc049a6226b8615bbca15a41e26960be9d9ac94997a80826e1bb0d8bb779514565051e31b17e0de8964
+DIST 3.0.5724.5.tar.gz 56288829 SHA256 eeb782bf117e1fede5c234d10617d5eec8a3ab6b0cd84f9b1bfc6dd6f6a97b7b SHA512 6a830531ceace1336e2041c90e14f909d284367dbec5ced10427b39ad81cfb5032a5ede60d1ed4f1eadbd84589dd6d838c93a748c1b583f006bb9c80641b0bae WHIRLPOOL df6eb3979173e46881fab21d1a2f0268b86fbe043392dfe3b48c351bca2ea19b0bf645e947e26b8f7ff56b5b36103525266848034d7a9d31a4871f95b4204388
+DIST 3.0.5724.6.tar.gz 56293236 SHA256 295791cfffb76572eb20d0ba9c065f9db7ec765b0775613aab82ebeebb0868c5 SHA512 e85f8d8d6e06c6a58c08827f5ddcc320ff29c2c753386c1a144a36f98bf6b44c0bc064cf93811987d2f856fbbdaaa6d2ee3fd068365004d0d216fd1d82c071c7 WHIRLPOOL e3324b774ada6e1b3e7141b2f721a49f188931e47dd37241d4ae61ce057706f072be67470d17c28822847e8e8b0b1a78952d55753af31c3d164900ced1be8aa1
+DIST 3.0.5781.0.tar.gz 59106067 SHA256 9ac1fe782653c2c089dffa8cdc0d73b05b8c4fd8dd3c0ee7e3278428750f9066 SHA512 092f4b36f8ec7d1373b4808731c24c3d6473c31661e9493cd873c4aa0beba53a0556d372d58bd03c1b8598477e10e90553d03a19d88abe79af87ff9d082e7e5d WHIRLPOOL 96947569a074153288d773fa85665909dc36d3b9cd390f571fc81de28d51aba2cfb2fb65de84dc7544d8933e3f6377bd3116ce0ef7701ccb21ccb52c6b0b8b09
+DIST 3.0.5781.1.tar.gz 59103564 SHA256 6c555d89c90a9ced9b909b493912dc15bf2abd6bb8c22685437edb645808ac93 SHA512 84b771a5270ea8db7f872df1496732d02b5d15a532b08fb886e5ab98d348db93cd0b3a4183efdeaf32b1dd4c53e1284f3aa3695f4d678ba3180dd7eca0dc0d06 WHIRLPOOL 0f71994df5089f5bd11dc5cce4ea5e965ad376bf0719424085fba32a9d7673d46a3f01e488548f8b1648fb2f8d0e43850ccd42c01b95a60af699eddc53b146f9
+DIST 3.0.5781.2.tar.gz 59105858 SHA256 ac4c99aad97ad2eb3e478906c2824599a37fae23136bfa98577fbeee08973ab8 SHA512 e0cda1b0a9fc55acbfcef078eda58245a59612b44f56f6375c20e33881ae979c9575111fe29b5eea48a24a3af83ffd40e38a876c2919272a356cc58aab6f9d7e WHIRLPOOL fe2d98eb33589beb44bc1ec30c9bfd127b3a5eb6ee36c5e821b4d69858d8606c9256a1e3fed5ae07f3ee947033fa5f502a62a65f2cc05fd66f793d0b506b3a7b
+DIST 3.0.5781.3.tar.gz 59130420 SHA256 9c99d327b28e123253f86170fa6ae5e4a4fe8d0afca48c759cc158bcb7d196b3 SHA512 ddb5d0baa6c255116ba90eae1fcfc413ed5359bd1a478cf9fa78a174b3a9888d66d4d9f2b1ef284f7d2a8116a2e9c86652c6602d180657f0b884b53f11af2ca1 WHIRLPOOL 7cd3342a94ebb60255ae3d90effe3a08836be86df081b8c41047593e0a32474f6bb729ad7576e91ef71abeea49f1f4b4cd0be9068fc39951190144a1ef479b65
+DIST 3.0.5781.4.tar.gz 59185952 SHA256 e6bfc875308dda5c9be38444a45fa0f5c6295abba73647e8d7b31b12c3c13200 SHA512 a8fff6b2ee10c13f85f88a948c4c1311825447d34548b003086e88a20aca86a3d3ba0daab8e92db3c66b5c2c3daf83df62ddef91903b2dde9aff1b32b6c60300 WHIRLPOOL d1958a2b70c19a25b64dcb752846d93d1c3400f5f740c6eae6d918823fa53f312855a1c6362a4bcd8c9dc2c0d62887f38c628b0c1c6317217fde2c04d79432b5
+DIST 3.0.5781.8.tar.gz 46730910 SHA256 2daf580ee10265164adb6fcbf3e9f22f49b099d8a13fd0dc9cc36b1ccac82bdf SHA512 a90214499d32235a223832397e773132c37af6fbb1a4663646eeac349c13ef7e95e05d5dd1df8bd27d06366258916d4b72e791fa6c3cab4695366c8c40a522b6 WHIRLPOOL 7fe5be8542fdd040bad304a9c2a8e13052194d7018d94f356cc4009bd6acfce5201ce697720bbcd362b303fa0878bacabd39bd5300f476457f9876f9a1616c6d
+DIST 3.0.5782.0.tar.gz 46743302 SHA256 08a23bdf0b0f609abf960374e53a144bcec63c55367915072e6f668fbbec6cda SHA512 a85f3d334bfca8dee9ab76661996c6028bbee4a073e88265cd4af613930357fd346a0893ee9505b782cde292bcb0313e6356cc6b7a722f8430483bef010c1b35 WHIRLPOOL fe0b111a566708855ddf564c5194d4289af104150c1ef5d87dec8dfd574796d21fee1904fd0a0bb3d225e8333a3b21a159e3917d1f807f25631e498f98bdbed5
+DIST 3.0.5786.tar.gz 47115211 SHA256 8bfe50c48984fc353ee90b98fb36e9a223a22055716930ab0990837a0755f08c SHA512 2e210eb838660cedbc227044ea2626cb4ed0c9e909eecfd367728bf3d611dcf0e1e39c6a0a1cdf8a9f88c1f5b35817533465f2358fd13cc289e1efb414d0a031 WHIRLPOOL 674866c9d3c0c9d92feb5e69ebc3c45853a1907cf2c103bb11c0c47ee308f1141d7d7f02f09b2a5313e757c8cc9556615af7bd05d929440d9d5d5529f93f444d
+DIST 3.0.5818.tar.gz 54420860 SHA256 8530117373e9a7fb2a11bdae968469b553953cb5c3eacb6b0acc96b338250691 SHA512 d378ad24a0e2abbb73f3c6dec2a8e8b7c0db02f04101f954a194e88e2afd888f851b321b547a8e1d7c8e25930117de36d36edb98c3c4ee927d9792fe0a4016b9 WHIRLPOOL f9f60b0602e3b0527b6ac1ee21b7d9908ad216021a8b67a719b91de52b499b2ed889b96ebdd93abb43e5c181e74253d5fe4324b64d5e3c117694f44dab6aa476
+DIST 3.0.5871.tar.gz 47805521 SHA256 abe0da011a9d365ae224096c8f9847f387f8e2342c470d77e10fb52e5eedf77b SHA512 cf170e2a83293a77fc41f482aa8cb02e5666a7d91571a04950e52c3b5802be42715f8cec5971d56e786de3098ee954e9373e0d91ce27d883eae0df8e978c9ac5 WHIRLPOOL 684e76a7abdb5e762a14bc80ef80d5dda23e21cb021d3a07ee9722b35177756c6696bb4345d86bc9a1dd2833a9b5da9152bc558ce298a900cb3fad364be42aff
+DIST 3.0.5882.tar.gz 46968741 SHA256 8282a570f98eddb7bb423a55e061562003e9a0ac63e9e933a4cd7999c5aef32e SHA512 630dc26f2a6c02a52b82fade5803b9741bde08ca50afd7520fdac9632a78f54edf8e2b645d7f0d717e95d1a7a19b8e4195a87c945042d739ca4d1f1f7d57a956 WHIRLPOOL 4752e011b0a28b0794b82c074dd951409e305f5b21f0767fed9ae00ea59812bf8b19c6d514774d1fc51644be5ec882e328afb3129f05184a9a5836d65c89f66c
+EBUILD emby-server-3.0.5572.0-r1.ebuild 3248 SHA256 ce1e4839154a5f3d28ac195ff057b28e41167960dff400f8e64c94f5f59e0b76 SHA512 66c71f47f4ea3a6d0ae5ed6ef51186e87ea5ec245f027006701bb862cd2b634e135b6de09fa98f9143b2ed8535bf169b8ebd82793f450247a5c2cac2253e6fb5 WHIRLPOOL 5e667fe917dc2e05c6d4b3acaeff2eebc20459a32f78597d4b59cb9403306d206ca1a7dfbf9c6279c412acfdba81be4efbc08dee263f6e2493df836e143b917e
+EBUILD emby-server-3.0.5572.0-r2.ebuild 3962 SHA256 454b4d0807ad75f3507c424eedc6fe3accfcaa91b0ae640fb8151add5857699a SHA512 7000759f30a80e6947c8e985e44803d99eddd54a719a1a6928039ffd03258997108014fda4314192b54282bac8efb13e99d34404db420e42ff2e97fc8c54acc3 WHIRLPOOL a1ea56ab84b26320af5880f1ea2058a158ea37371bd57aee6349c74c636acdf71f6441c3c1440e8012c3728071296b483d67598dc6a5123f2b14ca366487df4e
+EBUILD emby-server-3.0.5572.0.ebuild 2909 SHA256 72a45277fbbca7c20813af53f5ac72225e592952cd4fb0bfb128946cc87e2d2b SHA512 1393f63d757e1be38e3a88a28da9785e858518dc830743f5d5d946f0cf84126dff225c2c01cd0ed0f6706ba0ae98c17ce41b484a8e3d5fc7c40dbe610ffff53d WHIRLPOOL d3e09ff060f5239725f2efb35243d112a220056e4cf0e09c912f3af02a3503e9fc141e11e2b2b3b6a6569348d1767d5e7cc6b6812ac333340b8bca063320d900
+EBUILD emby-server-3.0.5588.1.ebuild 3962 SHA256 454b4d0807ad75f3507c424eedc6fe3accfcaa91b0ae640fb8151add5857699a SHA512 7000759f30a80e6947c8e985e44803d99eddd54a719a1a6928039ffd03258997108014fda4314192b54282bac8efb13e99d34404db420e42ff2e97fc8c54acc3 WHIRLPOOL a1ea56ab84b26320af5880f1ea2058a158ea37371bd57aee6349c74c636acdf71f6441c3c1440e8012c3728071296b483d67598dc6a5123f2b14ca366487df4e
+EBUILD emby-server-3.0.5597.1.ebuild 3962 SHA256 454b4d0807ad75f3507c424eedc6fe3accfcaa91b0ae640fb8151add5857699a SHA512 7000759f30a80e6947c8e985e44803d99eddd54a719a1a6928039ffd03258997108014fda4314192b54282bac8efb13e99d34404db420e42ff2e97fc8c54acc3 WHIRLPOOL a1ea56ab84b26320af5880f1ea2058a158ea37371bd57aee6349c74c636acdf71f6441c3c1440e8012c3728071296b483d67598dc6a5123f2b14ca366487df4e
+EBUILD emby-server-3.0.5607.2.ebuild 3985 SHA256 58270d884817491ff66ffba5c89d65802e5119755888c471aec2d35633f5c446 SHA512 6bb7be8b18f1409e3f719a75a95cc92a35c624baff5d9f635ed03ffd96017674e3c46ed9cbde6a9d5a9bfa6c825a9d6f819d4abcf457f049d4ef3153a9944fce WHIRLPOOL 723e247ec06e546bd3148c067c86ee38a7360bf58220e5c0a619b9f162c1d523742d86e71b82180b79ce8a3203a08f6236ba02c89f2a8d87485fd95dd2292de7
+EBUILD emby-server-3.0.5621.3.ebuild 3985 SHA256 58270d884817491ff66ffba5c89d65802e5119755888c471aec2d35633f5c446 SHA512 6bb7be8b18f1409e3f719a75a95cc92a35c624baff5d9f635ed03ffd96017674e3c46ed9cbde6a9d5a9bfa6c825a9d6f819d4abcf457f049d4ef3153a9944fce WHIRLPOOL 723e247ec06e546bd3148c067c86ee38a7360bf58220e5c0a619b9f162c1d523742d86e71b82180b79ce8a3203a08f6236ba02c89f2a8d87485fd95dd2292de7
+EBUILD emby-server-3.0.5621.4.ebuild 4116 SHA256 64cae69cfac7340885ea83d9438e5f016d6ac99b75a83ddd02e87e386529faa8 SHA512 bcc35b748f815c1fada8c80a341f6988dcba4b45d7ed7f88680006a7f207ebdff4865750a47db8d11d9fac3e9d5bed7e84dc172d8a1d8a7a9421bb7c26915189 WHIRLPOOL 24653bfc3e9748c2c193dfcdcb65f1a4f2044cd7517ce6b9ad07d5ade3cccf4af6a3a95ac11f2053cb709c583fec4e3b6c9140247ce87310ffece311df4d135f
+EBUILD emby-server-3.0.5641.4.ebuild 4116 SHA256 64cae69cfac7340885ea83d9438e5f016d6ac99b75a83ddd02e87e386529faa8 SHA512 bcc35b748f815c1fada8c80a341f6988dcba4b45d7ed7f88680006a7f207ebdff4865750a47db8d11d9fac3e9d5bed7e84dc172d8a1d8a7a9421bb7c26915189 WHIRLPOOL 24653bfc3e9748c2c193dfcdcb65f1a4f2044cd7517ce6b9ad07d5ade3cccf4af6a3a95ac11f2053cb709c583fec4e3b6c9140247ce87310ffece311df4d135f
+EBUILD emby-server-3.0.5675.1.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5724.4.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5724.5.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5724.6.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5781.0.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5781.1.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5781.2.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5781.3.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5781.4.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5781.8.ebuild 4100 SHA256 b7e637339ba68f179ee5aa694223cce076769822d5a3a63726d849bdb35b61f6 SHA512 c92b420fe86e13ae121b4b0af12de6135715ce68185633d10c819d46d89f2c9eef9a501b6cdd1617f88fd724d139f450875ea6e7bb26fc1d9856722a39245a63 WHIRLPOOL 462227dae187bfb58760dfd6b37ccf413b1135f094f4f863e523c8d48c58cabbdcbc437f13a3e45a14f5a195454450768c0b77bdb676ab9c30f5b121119965f3
+EBUILD emby-server-3.0.5782.0.ebuild 4069 SHA256 0be380acbe647afce39322fa62336b819df28146b93f11e3990d800a1b1dbe24 SHA512 3ed676d9c65df2683b98aad092b6ab6567ba132da1d38536c94a41085423dfd755911b84d06cd8bd1b82887c585f38d458930842810c2cb996619ec82703bc25 WHIRLPOOL e3d11503f341bbf3d41ef57017bfe61081268f18a54595f0026fe7ab5153ae4e570fd2c1aee78d477e2cfdfa8ad157298529c99653b4663fa700a6e09bbb9ea4
+EBUILD emby-server-3.0.5786.ebuild 4069 SHA256 0be380acbe647afce39322fa62336b819df28146b93f11e3990d800a1b1dbe24 SHA512 3ed676d9c65df2683b98aad092b6ab6567ba132da1d38536c94a41085423dfd755911b84d06cd8bd1b82887c585f38d458930842810c2cb996619ec82703bc25 WHIRLPOOL e3d11503f341bbf3d41ef57017bfe61081268f18a54595f0026fe7ab5153ae4e570fd2c1aee78d477e2cfdfa8ad157298529c99653b4663fa700a6e09bbb9ea4
+EBUILD emby-server-3.0.5818.ebuild 4069 SHA256 0be380acbe647afce39322fa62336b819df28146b93f11e3990d800a1b1dbe24 SHA512 3ed676d9c65df2683b98aad092b6ab6567ba132da1d38536c94a41085423dfd755911b84d06cd8bd1b82887c585f38d458930842810c2cb996619ec82703bc25 WHIRLPOOL e3d11503f341bbf3d41ef57017bfe61081268f18a54595f0026fe7ab5153ae4e570fd2c1aee78d477e2cfdfa8ad157298529c99653b4663fa700a6e09bbb9ea4
+EBUILD emby-server-3.0.5871.ebuild 4069 SHA256 0be380acbe647afce39322fa62336b819df28146b93f11e3990d800a1b1dbe24 SHA512 3ed676d9c65df2683b98aad092b6ab6567ba132da1d38536c94a41085423dfd755911b84d06cd8bd1b82887c585f38d458930842810c2cb996619ec82703bc25 WHIRLPOOL e3d11503f341bbf3d41ef57017bfe61081268f18a54595f0026fe7ab5153ae4e570fd2c1aee78d477e2cfdfa8ad157298529c99653b4663fa700a6e09bbb9ea4
+EBUILD emby-server-3.0.5882.ebuild 4069 SHA256 0be380acbe647afce39322fa62336b819df28146b93f11e3990d800a1b1dbe24 SHA512 3ed676d9c65df2683b98aad092b6ab6567ba132da1d38536c94a41085423dfd755911b84d06cd8bd1b82887c585f38d458930842810c2cb996619ec82703bc25 WHIRLPOOL e3d11503f341bbf3d41ef57017bfe61081268f18a54595f0026fe7ab5153ae4e570fd2c1aee78d477e2cfdfa8ad157298529c99653b4663fa700a6e09bbb9ea4
+EBUILD emby-server-9999.ebuild 3079 SHA256 61f90ec7c2d49d3ebeb5887201542572a27b543e99bf3cd3f6c89609d9ea4f6c SHA512 1febd22bfe38090668cc391fbebee8cd5a71f9ec678a224a9ed0bf29f76a9940c3016b7d20b5209d9e8d871cdd185c0ab0f2642ce4653407497233f1e3b9207e WHIRLPOOL f598d558a94bc20193cd0cb1fde156ae38043eddcf85a5f5440408c18e21c68c56f50bd758515a90b676d41f99bb72f6c6b7a0bc4cd6fe28cfb5cdfdfafda76f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5572.0-r1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,95 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/emby-server"
+DATA_DIR="/usr/lib/emby-server"
+STARTUP_LOG="/var/log/emby-server_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/emby-server"
+
+# 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 MediaBrowser-${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}"/initd_1  ${PN}
+	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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for Emby"
+	enewgroup emby
+	enewuser emby -1 /bin/bash ${INSTALL_DIR} "emby" --system
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+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 ""
+	ewarn "ATTENTION: If you moved from the former mediabrowser-server package don't forget to  migrate"
+	ewarn "your original data directory before the first start! To do that move"
+	ewarn "     /usr/lib/mediabrowser-server"
+	ewarn "to"
+	ewarn "     /usr/lib/emby-server"
+	ewarn "and change owner status from mediabrowser:mediabrowser to emby:emby!"
+	ewarn "     chown -R emby:emby /usr/lib/emby-server"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5572.0-r2.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,114 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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"
+	fi
+}
+
+# UNINSTALL
+# #######################################################################################################
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5572.0.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,88 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/emby-server"
+DATA_DIR="/usr/lib/emby-server"
+STARTUP_LOG="/var/log/emby-server_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/emby-server"
+
+# 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 MediaBrowser-${PV} emby-server-${PV}
+}
+
+
+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}"/initd_1  ${PN}
+	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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for Emby"
+	enewgroup emby
+	enewuser emby -1 /bin/bash ${INSTALL_DIR} "emby" --system
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+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 ""
+	ewarn "ATTENTION: If you moved from the former mediabrowser-server package don't forget to  migrate"
+	ewarn "your original data directory before the first start! To do that move"
+	ewarn "     /usr/lib/mediabrowser-server"
+	ewarn "to"
+	ewarn "     /usr/lib/emby-server"
+	ewarn "and change owner status from mediabrowser:mediabrowser to emby:emby!"
+	ewarn "     chown -R emby:emby /usr/lib/emby-server"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5588.1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,114 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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"
+	fi
+}
+
+# UNINSTALL
+# #######################################################################################################
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5597.1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,114 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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"
+	fi
+}
+
+# UNINSTALL
+# #######################################################################################################
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5607.2.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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"
+	fi
+}
+
+# UNINSTALL
+# #######################################################################################################
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5621.3.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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"
+	fi
+}
+
+# UNINSTALL
+# #######################################################################################################
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5621.4.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5641.4.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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/MediaBrowser/archive/${PV}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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 MediaBrowser-${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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5675.1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5724.4.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5724.5.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5724.6.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5781.0.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5781.1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5781.2.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5781.3.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5781.4.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5781.8.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,116 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5782.0.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5786.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5818.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5871.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-3.0.5882.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# 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-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server
+	>=dev-db/sqlite-3.0.0"
+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" --system
+}
+
+# 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_2  ${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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	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
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/emby-server-9999.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,90 @@
+# 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="-* ~9999"
+EGIT_REPO_URI="https://github.com/MediaBrowser/Emby/"
+EGIT_BRANCH="dev"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/mediabrowser-server"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/emby-server"
+DATA_DIR="/usr/lib/emby-server"
+STARTUP_LOG="/var/log/emby-server_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/emby-server"
+
+src_prepare() {
+        MAGICKWAND=$(ldconfig -p | grep MagickWand.*.so$ | cut -d" " -f4)
+        MAGICKWAND=${MAGICKWAND##*/}
+        einfo "adapting to imagemagick library: ${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}"/initd_1  ${PN}
+	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}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/libwebp
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for Emby"
+	enewgroup emby
+	enewuser emby -1 /bin/bash ${INSTALL_DIR} "emby" --system
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Emby Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+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 ""
+	ewarn "ATTENTION: If you moved from the former mediabrowser-server package don't forget to  migrate"
+	ewarn "your original data directory before the first start! To do that move"
+	ewarn "     /usr/lib/mediabrowser-server"
+	ewarn "to"
+	ewarn "     /usr/lib/emby-server"
+	ewarn "and change owner status from mediabrowser:mediabrowser to emby:emby!"
+	ewarn "     chown -R emby:emby /usr/lib/emby-server"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/files/emby-server.conf	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,8 @@
+# this is the place where emby stores it's files
+PROGRAMDATA="/var/lib/emby-server"
+
+# the user emby-server should be started as, be aware:
+# - this is username and groupname as well
+# - the folder defined in PROGRAMDATA needs to be owned by that user
+# - /opt/emby-server needs be readable by this user!
+EXEC_USER="emby"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/files/emby-server.init_2	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+
+PIDFILE="/tmp/emby-server.pid"
+#EXEC="mono-service2 -d /opt/emby-server/ -m emby-server -n emby-server /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA}"
+#EXEC="/opt/emby-server/start.sh"
+EXEC="./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA} -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe"
+EXEC_DIR="/opt/emby-server/"
+LOG_FILE="/var/log/emby-server_start.log"
+
+start() {
+        ebegin "Starting Emby-Server"
+        # we are starting the service (-x):
+        # - in background with the given pid file (-m -p -b)
+        # - as a specific user (-u)
+        #start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -x ${EXEC} -1 ${LOG_FILE} -2 ${LOG_FILE}
+	start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -1 ${LOG_FILE} -2 ${LOG_FILE} -x mono -- ${EXEC}
+        eend $?
+}
+
+stop() {
+        ebegin "Stopping Emby-Server"
+        start-stop-daemon -K -p ${PIDFILE}
+        eend $?
+}
+
+restart() {
+        stop
+        sleep 3
+        start
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/emby-server/files/initd_1	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+
+PIDFILE="/tmp/emby-server.pid"
+PROGRAMDATA="/usr/lib/emby-server"
+#EXEC="mono-service2 -d /opt/emby-server/ -m emby-server -n emby-server /opt/emby-server/MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA}"
+#EXEC="/opt/emby-server/start.sh"
+EXEC="./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA} -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe"
+EXEC_DIR="/opt/emby-server/"
+EXEC_USER="emby"
+LOG_FILE="/var/log/emby-server_start.log"
+
+start() {
+        ebegin "Starting Emby-Server"
+        # we are starting the service (-x):
+        # - in background with the given pid file (-m -p -b)
+        # - as a specific user (-u)
+        #start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -x ${EXEC} -1 ${LOG_FILE} -2 ${LOG_FILE}
+	start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -1 ${LOG_FILE} -2 ${LOG_FILE} -x mono -- ${EXEC}
+        eend $?
+}
+
+stop() {
+        ebegin "Stopping Emby-Server"
+        start-stop-daemon -K -p ${PIDFILE}
+        eend $?
+}
+
+restart() {
+        stop
+        sleep 3
+        start
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/Manifest	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,16 @@
+AUX initd_1 1174 SHA256 7f63e4ef3b0ab9cd1bb4a74dc3536e82d8ee10bfaff4359439b31e1279fddc4c SHA512 6c875e4e0ae3723ebdbda2fd92047302bcf396099f1e54c90906431daf038e1b2b2cd21a8b426a5bd989ac3737c349f669a4420b9d44c8121955468ab7dd9d2c WHIRLPOOL 6388511cf775b102dbbb70f750949a889493596d1064d3d1b4b491c9374806ef4cde6e0271f1e2999945bd8b0892c3367db6d556fbe8a4df801f1764df18c8ee
+AUX start.sh 119 SHA256 4ac00ddd852e98f10160c8cdccea36fa61afff518d0741b027b42c97c58dd82d SHA512 7219fa596ddcdb9e62661b47cf3ac2d74e47bbfe7a5a2d58d5fe049e85215dee405dd8d065edaa81856f83eeed62e384c8f3538cf89de903c3f41b6e7d7b3dfb WHIRLPOOL 727702d83be0e7b2cffaf476a7aaa25a6d262c6d2516eaa07f0f1e59bcb2ceec8afc3ec51957c81e8528b0ed96d71bff0050bd575c6378cde533b6bc55d0fbcd
+AUX system_libraries_1.patch 1476 SHA256 683481112bb5af7d6bfa9506d4989bfa7e3ceafd9d7d3cffc6057655b21aa303 SHA512 3798f3965be45891f1c5394ea30191f11df518ff29e6e9a004e9f97f1aaab3fe975506f6157026e74657ea1c7c51796168035dd67c1816030b9fd53857c3c7a6 WHIRLPOOL 5a62ea761dd52fdb9a4699a6a2110c05128679da8648405925038c1b71ab1717906b3857cadd459588b898e0cb764c98784320becfaa1186efd4b20e98c1b7e1
+AUX system_libraries_2.patch 696 SHA256 aa7e691ccd8d63bfa330e93061d14ced061b388efc7642b493dab5cad8e7d47f SHA512 3a9f9a1311ba9914554951cca452bd208a6bfb8fd32cf785bc3dc73c2ebd425d400d33201523a0813ef83954f5c6b8038cd8ba89fea9c362d59f420badcad316 WHIRLPOOL 5648fbc2ae426a2f242e6b3359e814097fc263ea037d7d50c71174297c61fb4e2a29f8498f7a6d8410b23ec973196e28a7a694c43e43041b5aef7792ad646518
+DIST 0e553d393aa2dea420b8478d2576362330da07de.zip 49592330 SHA256 b21614f8fcff18eca9b015f9e91b1956774e8973e03d7283c70e781c60681135 SHA512 586ddd786090fb6b8cf3505d129e239c2036841b812f2084722de7e0359fda9ba3584a76194e37075c941204124cb0764738c1670e88b77064d4a5a454d84d2b WHIRLPOOL 8562f5b2824bb3c7b84e2ebead8e3fee5d85d93de40e84077013473005b4db02cfb8c59491a9de0fe64607e5aeaa761ce66812c7548a4162b87ddf86f385d855
+DIST 3.0.5518.7.zip 50925664 SHA256 b0d08c1ca6c9c2bf3c5d55272fde75b94076ec53d62c751b841acc5ccc881be2 SHA512 eebfc42fdbe0a0c1dab5a0ad46883cfd2793dcac3a53124c87c2633136f4989167013d063bc6dd971355e3bfd7a86863844551b9ecd157d24bc5b1855257bc8c WHIRLPOOL 0e43fa9597282e2f04b693ad487407545f4faa5ab8b563f3a7681bd8925d8ccbec6cdc78c069a87858c1b87fb4ce43d89d281c929a181f67626bae8ee05d17dd
+DIST 3.0.5572.0.zip 56907963 SHA256 ba1e7a360fc7704b481103b352c490986b2d74375c9c545fc802eaeedfedd4b5 SHA512 7e6ad0e570842841cc07ccd1c3c5210e442d87a59071a6b0b0ffca68058ad0cfa0001da3d478fb84a889237be250c32fc656d69a2451778f45876917aed1a71d WHIRLPOOL ba6bffdb94555ee731ac90704c8168100cb78a0d07234f62a330153bc5dba4ec113ddfa2f07abc74740e66e299a40251bf7a251255c5acfb3e453bde224a4ed7
+DIST 80200363d2b6f60a89f09cbe3b939fc56eba3f7a.zip 35478733 SHA256 5a9ea06260ffaddbb96f0ce61ef2d597743a8e8a6cb13a507134b748890f9fa9 SHA512 1d1e9a87874afdd5249f113fadded5ab15dce1860500007040d12e4c38045bc12164176a08ad20b759b0c34e6bd0b44a3ceb3dc1e2ace36f2c7c1c1ad15e698a WHIRLPOOL bb1a17e7b2f505e55ce0bc439121ee6139eae6f89fdfc22f9ce8357a1457b3727d5d99ff0eb90357a249e20a4db649e9b008f83e6f4c9fde2b6e99b4208472bb
+DIST c70ca517a1f450d28439cd45b9389bbb926a4adb.zip 51208862 SHA256 79a7f9f2d5e600a7b45cf3a5688805b939f533c61e8ec8d55b1d96c5ee94e9d4 SHA512 52b5c40ef4cf6279bc0a59e7c6f22b3898c3c8a7b47840426b4d863063de44a0e3cda731b1ee517fc6be738cd3bb5b671b2dd32e49a2ce21a7aafe0767cceefb WHIRLPOOL 2cbcbcfa7d6b84b7b9e86090fbb2a307efc127d2374da49c8058ad158fbe497a2728b48c6dfaaa80211dbd2f78530ef9190308c79c3fa551648604e4cd104410
+EBUILD mediabrowser-server-3.0.5390.ebuild 4085 SHA256 0167c3779838b98e48ead0ab9c422663734aa8efee888de74d8ef3148168cd1a SHA512 8112c10e36b1ad42f42ed4c1879abbaf37ad2145935849d2490572e91450d0be27ef958675d86b29a6559db0ad8f50f7833ae9be67ddd4ca4f906e3a1cee9cd1 WHIRLPOOL e88367784cd3378ddff0d8c650ddf4221166451b6d383850ccc6e1b67dfda72ee1f39e5aa90e9f6e81f739daaeae15532acc248219646a06b43b0f7e6bc6e44f
+EBUILD mediabrowser-server-3.0.5395.ebuild 4089 SHA256 04cf164c4c37c984293c51753cf949cf290e67cec0a7018ada748a0d8f58c162 SHA512 9f76b838765023ea3b1fd8ec7dd5e72b371e554999aaed1d6de807f7f1f4510085e88171dc818b5abf3dc57a94f4c45307490bac9c5c6992f1d461bf2f854f4c WHIRLPOOL 544070d66edd35284b1166362b5effd4e991338d5200e86ebde91c4ff8d46c3e68e024e307bceb5394ab83c76ca629bffbef501c5e94dcc0ee0ee7d3365e5fef
+EBUILD mediabrowser-server-3.0.5490.2.ebuild 4092 SHA256 b796f7e6e7d27bc46345c6f75a64a5c3c4b272a610d3b36e211a311a1b6c1795 SHA512 3291e92dd6fe0dd0b3c37294718bc3593dd54707c2a5e8451bb978f1080f0254a83133e094bd2c6daab53c633abbfeb4e49095b02cdfa9018bccec0c33a27349 WHIRLPOOL 1b8a80137855d2ffd4fc04000b6450e2b0e0ffbd2ebe19e3eb99901f24b7ec9ee74acf439068a480b11d6b4c7c61a85ff8d11f5bb0b1defbf29a9db940d281de
+EBUILD mediabrowser-server-3.0.5518.7.ebuild 3908 SHA256 0c10c1f9652c6c5a5f33f6422b134008e89ee96b9f8f4b2dbf91670fc20f6380 SHA512 07815ad4e541da99f0f9e9b47ef5afa7ad5882ca99fe223e60ad4f26cc3dcd88e28f8ff958b0012b43bc073bb709ece19b0134419fe65b35ab655d524bfbfc49 WHIRLPOOL ee0ef39404ef0ab8922bfcfe4cebdff49b751ddb5ec220d3087b2c07a5b396da3c317140b677ab2df584e7b12170b11589ee679ef0f233adf5f7d7b1e31baeeb
+EBUILD mediabrowser-server-3.0.5572.0-r1.ebuild 4175 SHA256 936d8ee86841c2b01bd4d10f6d6f2ba26e490b2e82502da96d045751601335eb SHA512 9a014ca042b8e197a5698cbb041667bcfd354dfa925abefec21fe717d93389b957a33813e8fa23e977c34c6cc2cc06f99dd098405250c42f078e7ab9a7e2f874 WHIRLPOOL cc5eac901c9c4716a03479dbfaf3fdf94afca15afda8e3c1ee35148b9a6c8cbdcb01d05a779d2b71d198cd834824c163091fc81133a8a0a73650cc76c733d8e0
+EBUILD mediabrowser-server-3.0.5572.0.ebuild 3809 SHA256 251fae9bd7702b0633161e701172c7ebea06dfdf28255b098107b78c285851ac SHA512 6ff9e6b6414a0fba84a5fb6a11fd1fe392ce549a4210ef1d9809230d5ec643ba45825de8a075e0e5341b86e4408246665c39a950660bf1cd31758afe33ed5075 WHIRLPOOL 65f0b46bb9a7b3f0bccb065e3561186b9a3d57680c3eab1e04ea9f241ad42a9069a431784b6963b8c08507ef95c22f51366e2cb1377927cd00de3b3b0a1bf0a6
+EBUILD mediabrowser-server-9999.ebuild 3047 SHA256 8031da4ba41bef0fe96e654f59302b9a4c0fc220fd42147ed3e8761e99e8c225 SHA512 4e15dc6088094c55c48353deedb1bb75747bd592321bd70a2217b27df390bbe3b8561d758873b8e90a3063cae39320e0144143f282aa99fcc31304a73084bfbd WHIRLPOOL 03276940cce1beb8f29823c7a9b8331fb11e04fbd1829367ec5cb15cebf53224fc415fa110a6a8a5e3fcfd7aba049b78f15584cba17a576528cd44c0bd35023e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/files/initd_1	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+
+PIDFILE="/tmp/mediabrowser-server.pid"
+PROGRAMDATA="/usr/lib/mediabrowser-server"
+#EXEC="mono-service2 -d /opt/mediabrowser-server/ -m mediabrowser-server -n mediabrowser-server /opt/mediabrowser-server/MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA}"
+#EXEC="/opt/mediabrowser-server/start.sh"
+EXEC="./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA} -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe"
+EXEC_DIR="/opt/mediabrowser-server/"
+EXEC_USER="mediabrowser"
+LOG_FILE="/var/log/mediabrowser_start.log"
+
+start() {
+        ebegin "Starting MediaBrowser-Server"
+        # we are starting the service (-x):
+        # - in background with the given pid file (-m -p -b)
+        # - as a specific user (-u)
+        #start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -x ${EXEC} -1 ${LOG_FILE} -2 ${LOG_FILE}
+	start-stop-daemon -S -m -p $PIDFILE -b -u ${EXEC_USER} -d ${EXEC_DIR} -1 ${LOG_FILE} -2 ${LOG_FILE} -x mono -- ${EXEC}
+        eend $?
+}
+
+stop() {
+        ebegin "Stopping MediaBrowser-Server"
+        start-stop-daemon -K -p ${PIDFILE}
+        eend $?
+}
+
+restart() {
+        stop
+        sleep 3
+        start
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/files/start.sh	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,4 @@
+#!/bin/sh
+PROGRAMDATA="/usr/lib/mediabrowser-server/"
+mono ./MediaBrowser.Server.Mono.exe -programdata ${PROGRAMDATA}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/files/system_libraries_1.patch	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,24 @@
+diff --git a/MediaBrowser.Server.Mono/Imazen.WebP.dll.config b/MediaBrowser.Server.Mono/Imazen.WebP.dll.config
+index 1ebdf8a..f5b127e 100644
+--- a/MediaBrowser.Server.Mono/Imazen.WebP.dll.config
++++ b/MediaBrowser.Server.Mono/Imazen.WebP.dll.config
+@@ -1,6 +1,4 @@
+ <configuration>
+-  <dllmap dll="libwebp" target="./libwebp/linux/lib/libwebp.so" os="linux" wordsize="32"/>
+-  <dllmap dll="libwebp" target="./libwebp/linux/lib64/libwebp.so" os="linux" wordsize="64"/>
+   <dllmap dll="libwebp" target="./libwebp/osx/libwebp.5.dylib" os="osx"/>
+-  <dllmap dll="libwebp" target="libwebp.so" os="linux" cpu="!x86,!x86_64"/>
++  <dllmap dll="libwebp" target="libwebp.so" os="linux"/>
+ </configuration>
+diff --git a/MediaBrowser.Server.Mono/MediaBrowser.MediaInfo.dll.config b/MediaBrowser.Server.Mono/MediaBrowser.MediaInfo.dll.config
+index ab6cdb1..fe0f27d 100644
+--- a/MediaBrowser.Server.Mono/MediaBrowser.MediaInfo.dll.config
++++ b/MediaBrowser.Server.Mono/MediaBrowser.MediaInfo.dll.config
+@@ -1,6 +1,4 @@
+ <configuration>
+-  <dllmap dll="MediaInfo" target="./MediaInfo/linux/lib/libmediainfo.so" os="linux" wordsize="32"/>
+-  <dllmap dll="MediaInfo" target="./MediaInfo/linux/lib64/libmediainfo.so" os="linux" wordsize="64"/>
+   <dllmap dll="MediaInfo" target="./MediaInfo/osx/libmediainfo.dylib" os="osx"/>
+-  <dllmap dll="MediaInfo" target="libmediainfo.so" os="linux" cpu="!x86,!x86_64"/>
++  <dllmap dll="MediaInfo" target="libmediainfo.so" os="linux" />
+ </configuration>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/files/system_libraries_2.patch	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,12 @@
+diff --git a/MediaBrowser.Server.Mono/Imazen.WebP.dll.config b/MediaBrowser.Server.Mono/Imazen.WebP.dll.config
+index 1ebdf8a..f5b127e 100644
+--- a/MediaBrowser.Server.Mono/Imazen.WebP.dll.config
++++ b/MediaBrowser.Server.Mono/Imazen.WebP.dll.config
+@@ -1,6 +1,4 @@
+ <configuration>
+-  <dllmap dll="libwebp" target="./libwebp/linux/lib/libwebp.so" os="linux" wordsize="32"/>
+-  <dllmap dll="libwebp" target="./libwebp/linux/lib64/libwebp.so" os="linux" wordsize="64"/>
+   <dllmap dll="libwebp" target="./libwebp/osx/libwebp.5.dylib" os="osx"/>
+-  <dllmap dll="libwebp" target="libwebp.so" os="linux" cpu="!x86,!x86_64"/>
++  <dllmap dll="libwebp" target="libwebp.so" os="linux"/>
+ </configuration>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-3.0.5390.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,118 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+#EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/"
+#EGIT_REPO_URI="https://github.com/gsnerf/MediaBrowser/"
+REVISION="c70ca517a1f450d28439cd45b9389bbb926a4adb"
+SRC_URI="https://github.com/MediaBrowser/MediaBrowser/archive/${REVISION}.zip"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=dev-dotnet/libgdiplus-2.10
+	media-video/ffmpeg[vpx]
+	>=media-libs/libmediainfo-0.7
+	>=media-libs/libwebp-0.4.1[jpeg]"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+# 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 MediaBrowser-${REVISION} mediabrowser-server-${PV}
+}
+
+# we don't want to use the third party drivers, so we patch the config files to use system ones instead
+# attention: do NOT remove the third party libraries before compiling as the build process might fail!
+src_prepare() {
+	epatch "${FILESDIR}/system_libraries_1.patch"
+}
+
+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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/libwebp
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+#pkg_preinst() {
+	#cd ${D}
+	#einfo "preparing compiled package for install"
+	#mkdir -p opt/mediabrowser-server
+	#cp -R  ${WORKDIR}/${P}/MediaBrowser.Server.Mono/bin/Release\ Mono/* opt/mediabrowser-server/ || die
+	#cp ${FILESDIR}/start.sh opt/mediabrowser-server/start.sh
+	#chown mediabrowser:mediabrowser -R opt/mediabrowser-server
+	#chmod 755 opt/mediabrowser-server/start.sh
+
+	#einfo "adding init script"
+	#mkdir -p etc/init.d
+	#cp "${FILESDIR}"/initd_1 etc/init.d/mediabrowser-server
+	#chmod 755 etc/init.d/mediabrowser-server
+	#mkdir -p var/log
+	#touch var/log/mediabrowser_start.log
+	#chown mediabrowser:mediabrowser var/log/mediabrowser_start.log
+
+	#einfo "preparing data directory"
+	#mkdir -p usr/lib/mediabrowser-server
+	#chown mediabrowser:mediabrowser usr/lib/mediabrowser-server
+
+	#einfo "Stopping running instances of MediaBrowser Server for actual install"
+	#if [ -e "${INIT_SCRIPT}" ]; then
+	#	${INIT_SCRIPT} stop
+	#fi
+#}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-3.0.5395.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,118 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+#EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/"
+#EGIT_REPO_URI="https://github.com/gsnerf/MediaBrowser/"
+REVISION="80200363d2b6f60a89f09cbe3b939fc56eba3f7a"
+SRC_URI="https://github.com/MediaBrowser/MediaBrowser/archive/${REVISION}.zip"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=dev-dotnet/libgdiplus-2.10
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	>=media-libs/libwebp-0.4.1[jpeg]"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+# 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 MediaBrowser-${REVISION} mediabrowser-server-${PV}
+}
+
+# we don't want to use the third party drivers, so we patch the config files to use system ones instead
+# attention: do NOT remove the third party libraries before compiling as the build process might fail!
+src_prepare() {
+	epatch "${FILESDIR}/system_libraries_2.patch"
+}
+
+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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/libwebp
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+#pkg_preinst() {
+	#cd ${D}
+	#einfo "preparing compiled package for install"
+	#mkdir -p opt/mediabrowser-server
+	#cp -R  ${WORKDIR}/${P}/MediaBrowser.Server.Mono/bin/Release\ Mono/* opt/mediabrowser-server/ || die
+	#cp ${FILESDIR}/start.sh opt/mediabrowser-server/start.sh
+	#chown mediabrowser:mediabrowser -R opt/mediabrowser-server
+	#chmod 755 opt/mediabrowser-server/start.sh
+
+	#einfo "adding init script"
+	#mkdir -p etc/init.d
+	#cp "${FILESDIR}"/initd_1 etc/init.d/mediabrowser-server
+	#chmod 755 etc/init.d/mediabrowser-server
+	#mkdir -p var/log
+	#touch var/log/mediabrowser_start.log
+	#chown mediabrowser:mediabrowser var/log/mediabrowser_start.log
+
+	#einfo "preparing data directory"
+	#mkdir -p usr/lib/mediabrowser-server
+	#chown mediabrowser:mediabrowser usr/lib/mediabrowser-server
+
+	#einfo "Stopping running instances of MediaBrowser Server for actual install"
+	#if [ -e "${INIT_SCRIPT}" ]; then
+	#	${INIT_SCRIPT} stop
+	#fi
+#}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-3.0.5490.2.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,118 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+#EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/"
+#EGIT_REPO_URI="https://github.com/gsnerf/MediaBrowser/"
+REVISION="0e553d393aa2dea420b8478d2576362330da07de"
+SRC_URI="https://github.com/MediaBrowser/MediaBrowser/archive/${REVISION}.zip"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=dev-dotnet/libgdiplus-2.10
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	>=media-libs/libwebp-0.4.1[jpeg]"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+# 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 MediaBrowser-${REVISION} mediabrowser-server-${PV}
+}
+
+# we don't want to use the third party drivers, so we patch the config files to use system ones instead
+# attention: do NOT remove the third party libraries before compiling as the build process might fail!
+#src_prepare() {
+#	epatch "${FILESDIR}/system_libraries_2.patch"
+#}
+
+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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/libwebp
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+#pkg_preinst() {
+	#cd ${D}
+	#einfo "preparing compiled package for install"
+	#mkdir -p opt/mediabrowser-server
+	#cp -R  ${WORKDIR}/${P}/MediaBrowser.Server.Mono/bin/Release\ Mono/* opt/mediabrowser-server/ || die
+	#cp ${FILESDIR}/start.sh opt/mediabrowser-server/start.sh
+	#chown mediabrowser:mediabrowser -R opt/mediabrowser-server
+	#chmod 755 opt/mediabrowser-server/start.sh
+
+	#einfo "adding init script"
+	#mkdir -p etc/init.d
+	#cp "${FILESDIR}"/initd_1 etc/init.d/mediabrowser-server
+	#chmod 755 etc/init.d/mediabrowser-server
+	#mkdir -p var/log
+	#touch var/log/mediabrowser_start.log
+	#chown mediabrowser:mediabrowser var/log/mediabrowser_start.log
+
+	#einfo "preparing data directory"
+	#mkdir -p usr/lib/mediabrowser-server
+	#chown mediabrowser:mediabrowser usr/lib/mediabrowser-server
+
+	#einfo "Stopping running instances of MediaBrowser Server for actual install"
+	#if [ -e "${INIT_SCRIPT}" ]; then
+	#	${INIT_SCRIPT} stop
+	#fi
+#}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-3.0.5518.7.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,115 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+SRC_URI="https://github.com/MediaBrowser/MediaBrowser/archive/${PV}.zip"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=dev-dotnet/libgdiplus-2.10
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	>=media-libs/libwebp-0.4.1[jpeg]"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+# 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 MediaBrowser-${PV} mediabrowser-server-${PV}
+}
+
+# we don't want to use the third party drivers, so we patch the config files to use system ones instead
+# attention: do NOT remove the third party libraries before compiling as the build process might fail!
+#src_prepare() {
+#	epatch "${FILESDIR}/system_libraries_2.patch"
+#}
+
+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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/libwebp
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+#pkg_preinst() {
+	#cd ${D}
+	#einfo "preparing compiled package for install"
+	#mkdir -p opt/mediabrowser-server
+	#cp -R  ${WORKDIR}/${P}/MediaBrowser.Server.Mono/bin/Release\ Mono/* opt/mediabrowser-server/ || die
+	#cp ${FILESDIR}/start.sh opt/mediabrowser-server/start.sh
+	#chown mediabrowser:mediabrowser -R opt/mediabrowser-server
+	#chmod 755 opt/mediabrowser-server/start.sh
+
+	#einfo "adding init script"
+	#mkdir -p etc/init.d
+	#cp "${FILESDIR}"/initd_1 etc/init.d/mediabrowser-server
+	#chmod 755 etc/init.d/mediabrowser-server
+	#mkdir -p var/log
+	#touch var/log/mediabrowser_start.log
+	#chown mediabrowser:mediabrowser var/log/mediabrowser_start.log
+
+	#einfo "preparing data directory"
+	#mkdir -p usr/lib/mediabrowser-server
+	#chown mediabrowser:mediabrowser usr/lib/mediabrowser-server
+
+	#einfo "Stopping running instances of MediaBrowser Server for actual install"
+	#if [ -e "${INIT_SCRIPT}" ]; then
+	#	${INIT_SCRIPT} stop
+	#fi
+#}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-3.0.5572.0-r1.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,118 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user git-r3
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+SRC_URI="https://github.com/MediaBrowser/MediaBrowser/archive/${PV}.zip"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/emby-server"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+# 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 MediaBrowser-${PV} mediabrowser-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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+#pkg_preinst() {
+	#cd ${D}
+	#einfo "preparing compiled package for install"
+	#mkdir -p opt/mediabrowser-server
+	#cp -R  ${WORKDIR}/${P}/MediaBrowser.Server.Mono/bin/Release\ Mono/* opt/mediabrowser-server/ || die
+	#cp ${FILESDIR}/start.sh opt/mediabrowser-server/start.sh
+	#chown mediabrowser:mediabrowser -R opt/mediabrowser-server
+	#chmod 755 opt/mediabrowser-server/start.sh
+
+	#einfo "adding init script"
+	#mkdir -p etc/init.d
+	#cp "${FILESDIR}"/initd_1 etc/init.d/mediabrowser-server
+	#chmod 755 etc/init.d/mediabrowser-server
+	#mkdir -p var/log
+	#touch var/log/mediabrowser_start.log
+	#chown mediabrowser:mediabrowser var/log/mediabrowser_start.log
+
+	#einfo "preparing data directory"
+	#mkdir -p usr/lib/mediabrowser-server
+	#chown mediabrowser:mediabrowser usr/lib/mediabrowser-server
+
+	#einfo "Stopping running instances of MediaBrowser Server for actual install"
+	#if [ -e "${INIT_SCRIPT}" ]; then
+	#	${INIT_SCRIPT} stop
+	#fi
+#}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+	einfo ""
+	ewarn "ATTENTION: This package is renamed to emby-server in the following releases!"
+	ewarn "Make sure to remove mediabrowser-server and reinstall with emby-server shortly!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-3.0.5572.0.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,112 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user git-r3
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~arm ~amd64 ~x86"
+SRC_URI="https://github.com/MediaBrowser/MediaBrowser/archive/${PV}.zip"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/emby-server"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+# 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 MediaBrowser-${PV} mediabrowser-server-${PV}
+}
+
+
+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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+#pkg_preinst() {
+	#cd ${D}
+	#einfo "preparing compiled package for install"
+	#mkdir -p opt/mediabrowser-server
+	#cp -R  ${WORKDIR}/${P}/MediaBrowser.Server.Mono/bin/Release\ Mono/* opt/mediabrowser-server/ || die
+	#cp ${FILESDIR}/start.sh opt/mediabrowser-server/start.sh
+	#chown mediabrowser:mediabrowser -R opt/mediabrowser-server
+	#chmod 755 opt/mediabrowser-server/start.sh
+
+	#einfo "adding init script"
+	#mkdir -p etc/init.d
+	#cp "${FILESDIR}"/initd_1 etc/init.d/mediabrowser-server
+	#chmod 755 etc/init.d/mediabrowser-server
+	#mkdir -p var/log
+	#touch var/log/mediabrowser_start.log
+	#chown mediabrowser:mediabrowser var/log/mediabrowser_start.log
+
+	#einfo "preparing data directory"
+	#mkdir -p usr/lib/mediabrowser-server
+	#chown mediabrowser:mediabrowser usr/lib/mediabrowser-server
+
+	#einfo "Stopping running instances of MediaBrowser Server for actual install"
+	#if [ -e "${INIT_SCRIPT}" ]; then
+	#	${INIT_SCRIPT} stop
+	#fi
+#}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+	einfo ""
+	ewarn "ATTENTION: This package is renamed to emby-server in the following releases!"
+	ewarn "Make sure to remove mediabrowser-server and reinstall with emby-server shortly!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/mediabrowser-server/mediabrowser-server-9999.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,87 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils user git-r3
+
+DESCRIPTION="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://mediabrowser.tv/"
+KEYWORDS="-* ~9999"
+EGIT_REPO_URI="https://github.com/MediaBrowser/MediaBrowser/"
+EGIT_BRANCH="dev"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+RESTRICT="mirror test"
+
+RDEPEND=">=dev-lang/mono-3.2.7
+	>=media-video/ffmpeg-2[vpx]
+	>=media-libs/libmediainfo-0.7
+	media-gfx/imagemagick[jpeg,jpeg2k,webp,png]
+	!media-tv/emby-server"
+DEPEND="app-arch/unzip ${RDEPEND}"
+
+INSTALL_DIR="/opt/mediabrowser-server"
+DATA_DIR="/usr/lib/mediabrowser-server"
+STARTUP_LOG="/var/log/mediabrowser_start.log"
+INIT_SCRIPT="${ROOT}/etc/init.d/mediabrowser-server"
+
+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}"/initd_1  ${PN}
+	dodir /var/log/
+	touch ${D}${STARTUP_LOG}
+	chown mediabrowser:mediabrowser ${D}${STARTUP_LOG}
+
+	einfo "installing compiled files"
+	diropts -omediabrowser -gmediabrowser
+	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 mediabrowser:mediabrowser -R ${D}${INSTALL_DIR}
+
+	# as we use the system libraries, we delete the local ones now as we couldn't do it before
+	rm -R ${D}${INSTALL_DIR}/libwebp
+	rm -R ${D}${INSTALL_DIR}/MediaInfo
+
+	einfo "prepare data directory"
+	dodir ${DATA_DIR}
+}
+
+pkg_setup() {
+	einfo "creating user for MediaBrowser"
+	enewgroup mediabrowser
+	enewuser mediabrowser -1 /bin/bash ${INSTALL_DIR} "mediabrowser" --system
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_postinst() {
+	einfo "MediaBrowser-server was installed to ${INSTALL_DIR}, to start please use the init script provided."
+	einfo "All data generated and used by MediaBrowser can be found at ${DATA_DIR} after the first start."
+	einfo ""
+	einfo "If you just updated from an earlier version make sure to restart the service!"
+	einfo ""
+	ewarn "ATTENTION: This package is renamed to emby-server in the following releases!"
+	ewarn "Make sure to remove mediabrowser-server and reinstall with emby-server shortly!"
+}
--- a/media-tv/plex-media-server/Manifest	Sun Aug 10 22:33:43 2014 +0200
+++ b/media-tv/plex-media-server/Manifest	Mon Mar 28 21:12:10 2016 +0200
@@ -3,6 +3,18 @@
 AUX plex-media-server-startup_fix.patch 4420 SHA256 ff5b092907a24f533cb72a517e4c5ec717ca64271d4d99a38aae4695e3e39c14 SHA512 7f01a5e5b3253b74639a868818e40c57e4a803db07d765e0e762275a0ddc8793a625752acce1bff6a70050622ed3386243e722b7f908c882ba9ec3057148955f WHIRLPOOL 2a8c95a4ae87701e3d283e4951ec3ec5d145dbbcc3f4e8eec9bebf6272deca721fc419b348fb216e4573c91a3d48fd9d32a930965b816981d40c5e1970869f2b
 AUX pms_initd_1 592 SHA256 0975b95c166bedbfda3f138e45e2bd0633d524c29ab452966e9fcbc6d2415be0 SHA512 29b0e5d45364b73f9d162a813e574c892ec4f252829fd9b4143ad7e16e2e32852fbf1a8d81476900da0dbf9d3935c98800554df9fac816b8f3c3edd2137dfbff WHIRLPOOL 7089bf5a1cbbbf1fe79a26c0a50dec3ee30fdc576f16f0814e0afdf8869d22e5b7be3c62c7f907918c7fcd5021ed051b93d5c50cc81d1473c6fdb206386d2cec
 AUX start_pms_1.patch 764 SHA256 47f92d85d31041d8fe64e732385ae7fa423779e2db1745af7129486fc26a1f82 SHA512 87552834e7ff08987b5f00998d949a2ad836d65d94289de7e1b73b19d4b2205659b7e60d926b3e08154f1f2ebc9230a7839af92bf31ed21b3883483879ff180f WHIRLPOOL 733ba1fa1b60bfab7d6e31269f4f738d516d28a3a45a837daa1daea0e59e9886f736fd36033500782baf918ce0cc6db09b2c45dd24d75ae1cd23f0ca69705fe1
+DIST plexmediaserver_0.9.11.7.803-87d0708_amd64.deb 120064606 SHA256 b2af6db4608280eabdda18da8a34d1d9bac0b3cb2e78381af25cb78129385273 SHA512 295f262c87255d0a94b2e51581347b74a25c4981f971806775aa9196e0199b4b591cdc38c56322d107545a34718e2a79fbdd3f3886ad01e2643ab0639641b469 WHIRLPOOL 3692c851c1d786c686bc7e815df3a9559daff7dacb48da135d925861bcaad15797720a64290d0c12c18b0d834c818f6ec279b4c16e7bc8088841c1db4bffa327
+DIST plexmediaserver_0.9.11.7.803-87d0708_i386.deb 107886292 SHA256 09f2fe1b071864210309887df60feef0b0a554de66976e1717a4dfc7d54ee9e2 SHA512 43cee30e93362f219f9627d4c8b58583dcbf0d9ddff4d3aa7097afdb6711ba4d4de9fd0e7e52d0cd9481b85621c4c9b61ef0219d7107a3c30049b214ab316ab8 WHIRLPOOL 4697215df314513787f27654c275b05b9326ef397218996e5d98e8057cd7f9440ba85be75dc41a7c17e975299a458da95153d83c99b65e658eb954cb2c7d65f8
+DIST plexmediaserver_0.9.12.11.1406-8403350_amd64.deb 127116924 SHA256 6cadaf6381b4c03b65a98866c25dfda53b8b373fcb08219e3ea3de8e783251fd SHA512 b7da8b48fe60836e87e36b0f53e298a50403a8d1f21f9710018aa0d8bc74b913f9f9de3ba6627b0acac01c9518a11bb6b0aef1707035b7aeeb081fbcdf9e20f7 WHIRLPOOL 2ee5768848d61773d46ddfc58c3afdfaf061f94e4a03a498b271f33fd75494222a9218466231e2bb3d2be8b8640e909752619ef357592521c9b9bbbf7b544062
+DIST plexmediaserver_0.9.12.11.1406-8403350_i386.deb 113426824 SHA256 09989e0738595f61cd1440cd8b5a10dac6a20a8501daba1f964eedb74e70cc38 SHA512 71b934e8577a23d8b5a1ec13df11669a30c08835844be51707de4176645f3e220e97214bca7ba6e473f5b375e02350fecac26533acdcb0749b6c6fc42ca9ea5a WHIRLPOOL 1e26bf7f9afd7ccb56f56a2cb5b36985988cceecfd3412e777a47cb7e207f7254e9965136a2be1189f7bc65d9bc478537b0263ebf3c6e484cd35bde9e5996905
+DIST plexmediaserver_0.9.12.18.1520-6833552_amd64.deb 127274658 SHA256 91154abc456c26179afe6e7fef09bad8cbe002f5e0908072ea09be797cc8b661 SHA512 2e81e3fe16e86fca4bc18da4d8acf60b94ec12d3919342f5715d9325ee7671cd39dc0320854c3c7b301a0fd29dd5566566de38e44249427b1eb97aa373380ace WHIRLPOOL 70305be1e5e2f0d39468ee5cd0e6eb2d21913de954bbc0cbefb844fc3d737fe6f1dcef23b168e638c581c0834e31acf0a12bbece9a2d08137b09f159e726239f
+DIST plexmediaserver_0.9.12.18.1520-6833552_i386.deb 113574872 SHA256 83b65659ec4fb3dcc8c43f8a1595ba1b62d17fa8d1f45438e6c0df7af3aa96d7 SHA512 ad977a85af970e33a3a496b2dcd24c48ed9ae88a99ac46d397c55b34542bcf3eaa4c92592a66a9f7aff7975ddf51a4e9710890be3f75cbfbd717602a47ae5013 WHIRLPOOL e2e638dea34240ccf185c4cf88a0115a6445f40242842bc414687fe76904911ecba9352acb36842e5574c092e81b24f6d22a8eb0c92621416978bd2896d683fa
+DIST plexmediaserver_0.9.12.19.1537-f38ac80_amd64.deb 127267970 SHA256 3df6c79093927df1c99e95fc5e49217f9ad65e5e1ed804e9a095efa8935787c4 SHA512 fb0151507e805e59c92ef2a328d2dd0932db0dd624d431c68ee409a38e76b4947f55a3a62cce1acb5647f1cacb19cde62d70ac8081f1acd71c42952b89d6e8ba WHIRLPOOL 71a434d7afd08bd5e0cac61db82f003c3e5085efafa7bc4127e92d6b0d61b45a7c9d004be9bf5f5e333e70268f5f15761552cb0bb9f07b981e30169389716556
+DIST plexmediaserver_0.9.12.19.1537-f38ac80_i386.deb 113574214 SHA256 8d7af56dd8d469accdc201ced330bd934fe1ef2860c3789fddc257fdb94d410f SHA512 26c49c5143ff0ce787dd2781c2ea657c9d5e79cbd1dca0ac0b2db1047f1bbc6924b67b4f6498c5168bb837f8bc56a8e1c057df9e7346ed00c7bd616139a0a20d WHIRLPOOL 0e4ec6174b122c10a2315274c4d76ae8d33316ded378d406e1314a775da7a83af2577fd3e70d080c93da107a54f9cf52bc725b432b2eb956109252ebe158c0c6
+DIST plexmediaserver_0.9.12.4.1192-9a47d21_amd64.deb 127794506 SHA256 e014827dcfc3bbf4e8a0f977f129296f57c75e8a324c488f1f09e027eb09d9cf SHA512 c4a9812e42fe4e0078d95df4a820dd359ec6fa82fb741ff7d30fe8074febbb74b3937bcb032d4207dec65ac14a622179bf08ac8cb7eddf814ed625302d7ba976 WHIRLPOOL 1e702a594cd6b9947f0c7a9f88f5665d6b3308c94d95581255c9eae316987600ad933c356735e2bb7fa949c773cd5dedb4e85b7707fb083109af9c3e3425a3ef
+DIST plexmediaserver_0.9.12.4.1192-9a47d21_i386.deb 114109972 SHA256 cf52bffc27b2dc91f3caacc5314c5483f5804dedaf21c0c8de33bb859b026a5f SHA512 b28dedfe8cc9ef41a412d279c67912083c2ecc09eb2eae41d0255bf04edd09c6103d23a9b9bc0df7584b9a20c5a44b70c1339eb829904a8fe99c2519c1ead829 WHIRLPOOL f30994b609947c40872b71200b2559adc135f0b0bb4e9cfd7d6eb2d0811eb5f892f2bd80850c35601b2df9ff5143680d355efd08d54dd150ca7da2417691e89a
+DIST plexmediaserver_0.9.15.2.1663-7efd046_amd64.deb 128067006 SHA256 99dc174b6f5ddd276feed6c629c4be7ecc78cbee000ef4f2b7544534be515140 SHA512 05b4614359d99ed49bc1cea0926a65ebfc98a094cdd67e2e331ab159e46ee192d6c6d6f04ddbc72c633aeb525be8dd5852104ba950db46c92feb054fd0aaad17 WHIRLPOOL a3f0cdfc673a5feb032065df2fed3c19005355665482c20d53af87d8dfda4cb3722a9c8acc4d1e8663ba31fe2485836ccf11242c62b83afddebac8df87bc303d
+DIST plexmediaserver_0.9.15.2.1663-7efd046_i386.deb 114358086 SHA256 b449cc1293edc1bfee9f081defa77556e7c0e12072a34c4e183923c4228b2004 SHA512 44eb689b9e6b6304d0470c96375af961653b683354e71f03ce4583fc6e2c893349a47180aff129d7befee8fbe1f66f08f11e204211a2ebc0f87e5ba5bcffe8ed WHIRLPOOL 87c82022884dc5e8ffe1ab93a8aa2f8886a7f562de3e7bc22b2f48e286ec88957909bf3e8160b8cb314fcfebaf3d1674fb865635e50b4642799eed790c92a09b
 DIST plexmediaserver_0.9.3.5ubuntu1_amd64.deb 57612284 SHA256 6faa001061cc408361702d380f1219c66a3f1842642d8bf996f99a8aa74f73e0
 DIST plexmediaserver_0.9.3.5ubuntu1_i386.deb 57584476 SHA256 d54e948d4aca89d9348a69829169756e861463024cbdd5c4448307f508cdbda5
 DIST plexmediaserver_0.9.5.2-7a18da4_amd64.deb 56473538 SHA256 1c66fe886f3dd4e8f0850d2f9cf6bddde29c0daa4c00b81e1fa97d2c390acd51
@@ -53,10 +65,18 @@
 DIST plexmediaserver_0.9.8.6.175-88ffbb2_i386.deb 66817224 SHA256 c82f690f81de38f1f1aa7e4ee938ffbb43343800cd2e28dcf0a8b581a04bd8cc SHA512 e049c88e089d9d13e350f3fff1f61193dbe0939619ad95c887856257126594b55a2169110cea56f7dfd4d97eff87590eb211486a91dbf87d5995e0fae98e96fd WHIRLPOOL 2b5bca432d9493d55188d087904180fa452aa0159b63644cd25e8b943c1616b450e46abe8ae655f35a114b3c1eea6c3e29d44c2fed54f7c32074a1972ec918b6
 DIST plexmediaserver_0.9.9.12.504-3e7f93c_amd64.deb 66882638 SHA256 40afda28cfe67dd794aef3119bad24072cfa272bc6c1482ed6743921aad76ef2 SHA512 75f41df7478481dd4e4f7b4194f6f59290051922c4eaadf6eed53296fd0a61b4d4f5c918539b3d46fc0c7f06d62c0203a978be4a188eba711e2f7f1a7cf6046d WHIRLPOOL ed0929c55e9669a5d6931dc04687c538630f2cbd72b0ec1c9a0a851b85fb25b56f8adee0e5712e6c1508bd835454e82c5eca6b1743e253344c2cc3dc2f1d7196
 DIST plexmediaserver_0.9.9.12.504-3e7f93c_i386.deb 65443800 SHA256 166d064d05c99e34cd9a6f58181b13f992ca3f18ed09db0b0846a433383c660a SHA512 78c79ae399603b159658027f471efbec39d66f77c90e13ff20c28c212a3995e3ffb5f3aae005e76a87534640f4ed7297f3afe51763ae4d0a7bd9f6ff08978678 WHIRLPOOL 858312ba763321ab1aa53326e8c3b2390bd588948d6eae1a794ad93d6803b3e6be17ab18da971e7929e8b0799b11b444b9e23d990373a37d9693c9ccdfecd265
+DIST plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb 69200620 SHA256 d4058c71e05285c645c9cdd1a9c60ca2c748239b11e005035a86e66db0576303 SHA512 66a3787344b67a83c773ff87b19c84feb0226b665a2d5596db62de17819d6d6648c21a169841d374281008b8da291a709ef140492fff1cb3382e57852cd0a734 WHIRLPOOL 0331c7a78ffc3eb43900101752363358f9ac1352ec84192f8c59ecb0b9b08875c68e19634f54c10d8185e137ede7720987c5036a0e2aabd2021cf8458f01e954
+DIST plexmediaserver_0.9.9.14.531-7eef8c6_i386.deb 67625904 SHA256 24e4837f529d1e951de4f63d93cc20380f44c8166d0c8940979bcce110d557b6 SHA512 448d08071e4d54b0d478aa7bce09d0fb33a4ffd04e7bda289af0d7321e724bc321db114ed232741f92a85f6f4ad035b68108a836b75090f7781743b6fc00744d WHIRLPOOL e4de84267688e2ea1920f89aaade686e9e4ff0f7f12014c1baabef0db5ad09b1c54f8101f3f7c78cdd680980a2b13929eefbbf9ccae4d873b9d310a4dcc9bb42
 DIST plexmediaserver_0.9.9.5.411-da1d892_amd64.deb 69740762 SHA256 a3d34a6e67c31a3a4228fb685b9b167bbbf2b587e0ec7d3418a72dfef073a0ba SHA512 e3f1e18df9476c21ab08845c2394b98e7a9a9d98d03a677a2783ea4d4f59a6d1df0fd558a67ba762186fe6ae0b8bd701e06174be656bf01f2c778ef732332ddd WHIRLPOOL 7fbea456aaabe306498eedbbc37b86166bb447d4aa4a6c19fc074be646ad8e56acdced9bfcbf92123b8e2306a9e7578cad03d51611e60198c38bc5aae0651801
 DIST plexmediaserver_0.9.9.5.411-da1d892_i386.deb 68294804 SHA256 8a682e8079442a2fb0ab7a3d6854f6685afc9d1493ac717887b8b367c66a402f SHA512 94a69684d65ffdb7cd6c0d609b5fe33621228a4dc961a98800c4b96ab15843dfd1fe543459f2a2c0ef856a0e4bafc3b40d3ee0eda4aa599c47835f82e6c66991 WHIRLPOOL a55a7c3bae7864477abe47397a42f075d57da00209cc010b4269304b1820c78b73f2bbd97543da41d05642fdd44c4efac9ff5a8b68002e329e7d6510af897024
 DIST plexmediaserver_0.9.9.7.429-f80a8d6_amd64.deb 69772210 SHA256 227898f1d4f0cddfd38fd057579dc05bb7412dbb90167f262cab4625e69c2ce7 SHA512 d0a0523017616aba346e6e2bc1c9a4cdef4b5925437a7c983062cdeeee98f0ef97ee25eb92abc6c28f99adbb05771c3d9cb6874097a9db27d8843d82537ee4bc WHIRLPOOL 7ebc0e43e203829154a8b83f443259de6c16771d55a77e3407852e98afcbcc167663de0637ca79b994810c652cc7bdce8a06b184d3bf99f6e281d77d1ec062ce
 DIST plexmediaserver_0.9.9.7.429-f80a8d6_i386.deb 68330174 SHA256 11ead9337aa2cc114bf27be3275c3f9ec06c6d35aa220fbfeafb786c879f2c63 SHA512 fc89d911344d2590fc9b32ec2cb0baac82af3df9ef0f087d4b7260e9c7bdc7a8aeb86c99cc5b3f1402407f85b9894d9d3dc2c6b73933d43d03aeb55aa938ce2d WHIRLPOOL 8cf5e45bf62161c2905fb1a3e182d2354a7651774580f79018bfcb0367543b967b2d6b4265f36b8b987bf7bed2715c2f68c02306c17489843d5b56f673745067
+EBUILD plex-media-server-0.9.11.7.ebuild 3612 SHA256 b718002b5d8c0020036aad016ef5b8568cd0335d96edbe330a57d2e7b83046f7 SHA512 2ccbc773227529e5bb81e4503e9c220e61799684f25b6269c3f4a0c535e77e7ba3456aaf32288513e899afb0a83cad152f41176d2985f10668687a3f232ccc66 WHIRLPOOL 1d6396320cd459eb7a84097b3d812816f3cbc13502e108ed585aa068e075d9f5c456de48c56edc5dcd4bc0c906aa2602631fe365ceaecdbdee1d57d720d4f421
+EBUILD plex-media-server-0.9.12.11.ebuild 3613 SHA256 2207fc7bdc1d616dc4d2c00f9762b1ab82918a576fd1e83458f04927d7b61f99 SHA512 7e750acf2705454bf4e483da783dc7b9df2d260611ee504647f0de1ea4b254e4950b7a48a58823f258f43fea458073e59ec3e368ddc4ee83fd614b8d4eb85b4a WHIRLPOOL 067ad9920e74f8ef9f976eff27d853225fbe9dbdf15cc64aeadca0fec7bc415ab84e7f576bcbf2db9126c2e07d5fb17f46fea7d8c383b4354a6dd0ae67be716d
+EBUILD plex-media-server-0.9.12.18.ebuild 3613 SHA256 0391c86597835cedc5ec66461e85c5db4190c5d72ca4d7e66014eac8083e5339 SHA512 94ac9f8f5c33432cbef2f915a949fd1f5a3ef1e8bb4091deb6e4f7252859457776e8e4c2dddf45b2a4fbfa5f7076bcbfac02fc38137903838fbf1f4c441bd79b WHIRLPOOL ff810e20fcd2762c72dad8d065a7d36865c41cde8cadb4b5cf63271f5a0df63a74dfd411b69c119facc89b9a3a33e98805274b127c0fc7a1a15fcac2bc817c66
+EBUILD plex-media-server-0.9.12.19.ebuild 3613 SHA256 0b2799d6877125c56496be85c09ba3ff28768bc3ecd6e99650f2f34ec239b270 SHA512 cf5a4ccadd83f38040afe141920a7b3f35b8ee7696920098a96d1b2e313cd5459c4e73f23645b997537a334293830e649efa4ea8cfd6bbcf0d0d745c3ee5da14 WHIRLPOOL b60ffd53e4cbc9def668a25a2c387aa2b2d0986fc3849f56cf79c38e9ca486df1208dacca677079d2ac38644f3605b5ac877b83b2d81e8b59fb8e25724d543c0
+EBUILD plex-media-server-0.9.12.4.ebuild 3613 SHA256 577731599108d80e2b83f776598c662824f0dff9109247a2d1ba783229c4dd17 SHA512 b9867260845b9102796ee14a11cba382950e7941cf85d5f0d98f5a36ee9e84e2d1d527bb1dd34073a4c99d2862a53bb7fe2a4bcf96fa0c19a88562b2486b4ba6 WHIRLPOOL ebe281b78a337b397fd11077077972ebe6a02852d22ec8a60d2ad4ac0132c5f5209c8bc6f971c9df45f3bf784606390916470d2264e1d9522c255986f4ef2ce0
+EBUILD plex-media-server-0.9.15.2.ebuild 3613 SHA256 bda27d87b324000bf6c28c3e0c509eee1d0ed274d7ac249fc80ab9f9cbbbc255 SHA512 37a802129d87d90cb25bd7bef47774b9c4cdef3d5fc28f56a3e5b6381265f7693a72b20edc3de8d6fa409f56ec5136fbec608ec1b40d733c6cf30d10b467f99d WHIRLPOOL f3dee4e9281bc3124e479a624628dcb7e484cc41bae0c92e069f261f3af72204df18ae49055cb667d8d7b7c8828322b7d1cc1ea32e77bfa489615a5f2c5a926d
 EBUILD plex-media-server-0.9.3.5-r1.ebuild 1941 SHA256 250f58aae0ef2b0566631ef6a16bc9bea06a2c3ac9dc63e322824b7630daea52 SHA512 f6dad51e28fbdfe4e1fec20906c1193ed1a6e9cf5f1321435dc5f71ca8ae24ceac2d7ed11597531032743b6cac382e4edb5b9847c0c077c952899983c229c1cc WHIRLPOOL d1a4c72ffacd5c8f93e153bef56ac3d53ba98782f17dc8dd8b09efadd0fb26d40e35a69ffeca0e783dfdd8bfc83cfc39719b605c289836ceccf447987d6507c7
 EBUILD plex-media-server-0.9.3.5.ebuild 1801 SHA256 df605eb4cb9f0882ff7195c8446aeb263fe76111dc0127efdd847f537f2c2565 SHA512 004ff98931e03481b56d949ca46edde11632a09543691cb59bf3fa9e900137bea2143212b9efa0e92f56043cbeed8ca3e4ae36e11fe007b0006e2a0bf8b2a868 WHIRLPOOL 74e320af4bd50426a44c0ea0cc683df0b288eca76fa72c85f08a411619489d7089196ee0ebc7a4406c36c8853cd937a3ed6e9c92b2762939b19de31f42b64da9
 EBUILD plex-media-server-0.9.5.2.ebuild 2131 SHA256 a17494211238022372e27511cae61691decd40399f27a345d17d7354b70cbdf9 SHA512 6982f58549beebd88fda6296cdc953ebd881bc05baacb3abf615338fe2aa774c21494a3e0ae5b5fe5356f70ec6a62da19de3e73606e8c748a4868817f4680d5d WHIRLPOOL b817db3a8eebefdaf11579da2056003764652a674bae5a27886655084f18c9eee7e133c9320ce0e0289fa52d4282849964303d01c3c9a2aa6a9012ea751704e2
@@ -85,6 +105,7 @@
 EBUILD plex-media-server-0.9.8.18.ebuild 3722 SHA256 a80e0b498d5bfbd9e1ac8e2f5a1d11d5264a2053656c7968b4de37279939eef2 SHA512 aa9b6ede9607b6e54ee982a77678971677eea16896aeb1b895d14590a16ddab5c4a23946a03dff13c510bc860c0cb2cfe74251232f1150e20887a746f5433e59 WHIRLPOOL 0797a697f7acdd269517facd5ae386f4423d58fd51eec2daf5f5154454c1b2add86a7a556b2b254d98f009f8cc6f9ee0dffa2c711a7332d2e38add27338032e4
 EBUILD plex-media-server-0.9.8.6.ebuild 3722 SHA256 cbb9d6d66734e18932dff23a7126d8c74d4e0409a812f6eba3dbca5784fc2569 SHA512 0f01acf9a08284d8636a8125873f973b7f24435925ddd6122cd0626d112403b1f548e899f5ea95ff7bf22ff6170075ae26721d08b658bdf38f1a4fa57e8ace4e WHIRLPOOL 18b1f4654fe28a4bc04a2f5148746dc4c4a278546ad413aab31ac95899c661ba30e59d4bce84cf9601284a4fa9998318e246028d244799a39d70b0496375b576
 EBUILD plex-media-server-0.9.9.12.ebuild 3612 SHA256 d1a5c752794635c010657196e6da0d88e4d6e939f208c87eda00c398f752d91d SHA512 f7d2c1e12ac50ff0143dbe6057fccc71b67dc95fa41fc31a447a7438f11379de9e064b80e431bebe9d49d524309c84d22656f04525e663360200d9e99aeab9f8 WHIRLPOOL e921a54a295ff97ccf5426296f19a31d8fbfb4fbb75b9c2b664357a4fc54fc2531b2604357bd759dcde8264c056ded77255029444f9b502b5b01ca59f661d76c
+EBUILD plex-media-server-0.9.9.14.ebuild 3612 SHA256 874a88119849d66483d8985b9189192d55e8552d6e919a782ee40edeb19a5ac9 SHA512 812daea03a3c3bf00c33fdfb23c0bda3d8b5c4df5c7f81c48b121e87fa2f51c8aa061525dabe5f836a976b2ec65dc14a465677cc1fa5409df640c1fce23e2390 WHIRLPOOL 8fa11345bfd22934fe8e80fedbbd8a2af5c75284277ec58e62323d51a61993ef35d5c7594a92aa72ae4bf15a609524038df5dd6fee31e4622781c8ea75341678
 EBUILD plex-media-server-0.9.9.5.ebuild 3727 SHA256 08e304dfc05f5259e7f887229132a2458ed2dcde8c7580343b4acd10c3593bca SHA512 8c14845c0a7244006e5fde12609887b4f73fb2e0efd7cc5d5afbac2421031e360f5934648c79ac9c5d047e1773082d672737a2e675f09dab2ab27978015c5994 WHIRLPOOL cc5d550f9fa94cbf3f8cd14de2fc33942ceaeba4af0cfd9f9560322c842bf346fec0457198257e28727ec7f90c34bce975fb3e06680470c0acd6b1acd1e2cfbb
 EBUILD plex-media-server-0.9.9.7.ebuild 3727 SHA256 9f3a291264911ae4c6ed01eb7e620b2bff3a2f5a8aebad433c15aa0f18cb9646 SHA512 659269d23338e2efe6caf2fd0013f12a6ba2c5882c45f2a048cdd53c755d60ff51d7666a64b59932415994409846793c459935227e1fd2a77afc05f0a8f537f0 WHIRLPOOL 2dd9ed834324cec418537a7ed4e30067d8477f2d3e4b6052be4e0afc0a9a857c1ab7f0e2c4a81491089d2b83625555a8cbf51ec672090f7e5e9f807f5f2eb67e
 MISC PMS-EULA 18877 SHA256 20d18b87bcd6a6f7669917b01975296dd0a67b54392865539761d3a2eaf85759 SHA512 bcf8022e9b87eebfc6c27e08eb090e5671ca16efa8da4561b1073b60e1c39ea511541c3ddacb2eee466961aff96f4e4270b71164672585d5410ed291a959141f WHIRLPOOL 3c84ae64e83764022e2dfbdd5375beaea6188efff9f4513495b64d12b322cbaf839c90685e7c28620f764c5f37b57ac8b6b2dfc8a40267a501f6dac1e49da365
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.11.7.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="803-87d0708"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.12.11.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="1406-8403350"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.12.18.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="1520-6833552"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.12.19.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="1537-f38ac80"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.12.4.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="1192-9a47d21"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.15.2.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="1663-7efd046"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.9.14.ebuild	Mon Mar 28 21:12:10 2016 +0200
@@ -0,0 +1,105 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils user
+
+MAGIC="531-7eef8c6"
+# URI_PRE="http://plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_"
+# this does not seem to work atm(/anymore?)
+URI_PRE="http://downloads.plexapp.com/plex-media-server/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_"
+
+DESCRIPTION="Plex Media Server is a free media library that is intended for use with a plex client available for OS X, iOS and Android systems. It is a standalone product which can be used in conjunction with every program, that knows the API. For managing the library a web based interface is provided."
+HOMEPAGE="http://www.plexapp.com/"
+KEYWORDS="-* ~x86 ~amd64"
+SRC_URI="x86? ( ${URI_PRE}i386.deb )
+	amd64?  ( ${URI_PRE}amd64.deb )"
+SLOT="0"
+LICENSE="PMS-License"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="net-dns/avahi"
+DEPEND="${RDEPEND}"
+
+INIT_SCRIPT="${ROOT}/etc/init/plexmediaserver"
+
+pkg_setup() {
+	enewgroup plex
+	enewuser plex -1 /bin/bash /var/lib/plexmediaserver "plex" --system
+}
+
+pkg_preinst() {
+	einfo "unpacking DEB File"
+	cd ${WORKDIR}
+	# ar x ${DISTDIR}/${A}
+        mkdir data
+        mkdir control
+        tar -xzf data.tar.gz -C data
+        tar -xzf control.tar.gz -C control
+
+	einfo "updating init script"
+	# replace debian specific init scripts with gentoo specific ones
+        rm data/etc/init.d/plexmediaserver
+	rm -r data/etc/init
+	cp "${FILESDIR}"/pms_initd_1 data/etc/init.d/plex-media-server
+        chmod 755 data/etc/init.d/plex-media-server
+
+	einfo "moving config files"
+	# move the config to the correct place
+	mkdir data/etc/plex
+	mv data/etc/default/plexmediaserver data/etc/plex/plexmediaserver.conf
+	rmdir data/etc/default
+
+	einfo "cleaning apt config entry"
+	rm -r data/etc/apt
+
+	einfo "patching startup"
+	# apply patch for start_pms to use the new config file
+	cd data/usr/sbin
+	epatch "${FILESDIR}"/start_pms_1.patch
+	cd ../../..
+	# remove debian specific useless files
+	rm data/usr/share/doc/plexmediaserver/README.Debian
+
+        # as the patch doesn't seem to correctly set the permissions on new files do this now
+	# now copy to image directory for actual installation
+	cp -R data/* ${D}
+
+	einfo "preparing logging targets"
+	# make sure the logging directory is created
+	mkdir ${D}var
+	mkdir ${D}var/log
+	mkdir ${D}var/log/pms
+	chown plex:plex ${D}var/log/pms
+
+	einfo "prepare default library destination"
+	# also make sure the default library folder is pre created with correct permissions
+	mkdir ${D}var/lib
+	mkdir ${D}var/lib/plexmediaserver
+	chown plex:plex ${D}var/lib/plexmediaserver
+
+	einfo "Stopping running instances of Media Server"
+	if [ -e "${INIT_SCRIPT}" ]; then
+		${INIT_SCRIPT} stop
+	fi
+}
+
+pkg_prerm() {
+	einfo "Stopping running instances of Media Server"
+        if [ -e "${INIT_SCRIPT}" ]; then
+                ${INIT_SCRIPT} stop
+        fi
+}
+
+pkg_postinst() {
+	einfo ""
+	elog "Plex Media Server is now fully installed. Please check the configuration file in /etc/plex if the defaults please your needs."
+	elog "To start please call '/etc/init.d/plex-media-server start'. You can manage your library afterwards by navigating to http://<ip>:32400/web/"
+	einfo ""
+
+	ewarn "Please note, that the URL to the library management has changed from http://<ip>:32400/manage to http://<ip>:32400/web!"
+	ewarn "If the new management interface forces you to log into myPlex and afterwards gives you an error that you need to be a plex-pass subscriber please delete the folder WebClient.bundle inside the Plug-Ins folder found in your library!"
+}