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

changeset 89:94ac02a4bfc0

merge
author gsnerf <gsnerf@gsnerf.de>
date Wed, 04 Mar 2015 19:08:49 +0100
parents 677d8eb147dd (current diff) 9aa869f615bd (diff)
children e0f97106108d
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 12 files changed, 108 insertions(+), 218 deletions(-) [+]
line wrap: on
line diff
--- a/dev-python/celery/Manifest	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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	Wed Mar 04 19:08:15 2015 +0100
+++ /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-tv/plex-media-server/Manifest	Wed Mar 04 19:08:15 2015 +0100
+++ b/media-tv/plex-media-server/Manifest	Wed Mar 04 19:08:49 2015 +0100
@@ -3,6 +3,8 @@
 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.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
@@ -59,6 +61,7 @@
 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.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/media-tv/plex-media-server/plex-media-server-0.9.11.7.ebuild	Wed Mar 04 19:08:49 2015 +0100
@@ -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!"
+}