diff options
author | Lukas Elsner <open@mindrunner.de> | 2013-07-02 09:53:04 +0200 |
---|---|---|
committer | Lukas Elsner <open@mindrunner.de> | 2013-07-02 09:53:04 +0200 |
commit | 7f884992d2d97bed6d15dbae55bf8ccf3c104b58 (patch) | |
tree | 739649f2d4988d6363f13bdabf350ef0dc7a14a9 | |
parent | added idea13 EAP (diff) | |
download | luman-7f884992d2d97bed6d15dbae55bf8ccf3c104b58.tar.gz luman-7f884992d2d97bed6d15dbae55bf8ccf3c104b58.tar.bz2 luman-7f884992d2d97bed6d15dbae55bf8ccf3c104b58.zip |
Revert "removed plex"
This reverts commit 56498a7bf2fe1a800d6aaaebf0118252e6441c3a.
-rw-r--r-- | media-tv/plex-media-server/Manifest | 9 | ||||
-rw-r--r-- | media-tv/plex-media-server/PMS-EULA/PMS-EULA | 45 | ||||
-rw-r--r-- | media-tv/plex-media-server/files/pms_initd_1 | 24 | ||||
-rw-r--r-- | media-tv/plex-media-server/files/start_pms_1.patch | 19 | ||||
-rw-r--r-- | media-tv/plex-media-server/metadata.xml | 10 | ||||
-rw-r--r-- | media-tv/plex-media-server/plex-media-server-0.9.7.11-r1.ebuild | 100 | ||||
-rw-r--r-- | media-tv/plex-media-server/plex-media-server-0.9.7.12.ebuild | 104 |
7 files changed, 311 insertions, 0 deletions
diff --git a/media-tv/plex-media-server/Manifest b/media-tv/plex-media-server/Manifest new file mode 100644 index 0000000..40c98bf --- /dev/null +++ b/media-tv/plex-media-server/Manifest @@ -0,0 +1,9 @@ +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.7.11.386-d353989_amd64.deb 87441294 SHA256 0a475ae92f07cdbd6f90af18207b9fd27c4de685adbd1eed2085c1104b78e09d SHA512 21e8e9889e79d21347a99f49842935be22205ec82bf1fc440a0c80b27553fb8da6127ac36c87b424d8cfbbe15a9a37e61bd87c78d04cd960957099dbcb6f14ca WHIRLPOOL 9dd8b2abc84cb6d893eedd4f71c30432e18dcd841d8d396228726bb2a58f4d751a10fc19abc6176335ac05fe637caec2342827403610c4a4b727d4efba0fa8b2 +DIST plexmediaserver_0.9.7.11.386-d353989_i386.deb 85770644 SHA256 0f4a0493b2e90e263432b1fd945988b32ab071781a4b010cdd2d5f2751b8cf6c SHA512 8bf9e127585022a4dadcf5fd4d7c8602e4e35512556abb522ba1d4a16f4ae8a0bd5bf8af7c96d7a1be8e6f5f261206aa18733015a6faaa14e535c3f36881dbf7 WHIRLPOOL 910a52f2213d4ebf41fd5771eec33e664fd6740ff5783f1cffb1ed09e9ff48d2fd21318d6099d5affe76c2b2429d6ca5bfeab8ce4e94a1e045350afc2f2c6e02 +DIST plexmediaserver_0.9.7.12.407-db37d6d_amd64.deb 88094344 SHA256 8abbbadc9e55f3db2661bda9040e579b5c5eb0e861fd51b34582a7ce2b320e7e SHA512 cf3d39dfb99f70f4f97cdf9445b19d06d393cb989a71f7da8d4811ceee04c32b1de3be801889fb18cc1f0d7a1c72e0a025e6f3e6fd18904ed388661f25790d44 WHIRLPOOL 929b1a8d4fa162aaa435bfa59321917a39d30560d182d2174783f36ccc71ab8f0218eb8cd26988f5b1fa59f7a1ee718d51995969ebc1df561ff0ccba1645c8cc +DIST plexmediaserver_0.9.7.12.407-db37d6d_i386.deb 86448100 SHA256 a5a32b510ae67d32766a681b3e61fbe754b053cc4756307995c4532e6f52de4d SHA512 81601ffba67253e5b00e6ff7d8976354620e5d0a81fe0635d1086e9594925f244371d1d47d0364dfb552094c011cf160ae6344b81082d0e146cae3547566d972 WHIRLPOOL 5d485ed5b18e7dc4d31eefafa15de3abc25777ebe4b7f6e63f89d504e983a900be3da0eac471ae23fb514c755d75e53177801e65bc64a4d3a41a3c7b983b3c32 +EBUILD plex-media-server-0.9.7.11-r1.ebuild 3677 SHA256 86bb7f16bd330390e1a2382894aef5b9d667c29d3a0f38ff8bc00f6d7c8b6a54 SHA512 33d56a7a6d65f4efbdc424ee23d11c4d7b2d7f0a0878881306ef4c7bcbb023bbb3802d4ab7eaa6222f5c93708d7fe7d9d394ae6d38592e6fdb1a23a3b477a379 WHIRLPOOL 9bd4f4b5fe7baaa0862adbcf69c85ed97a8c7f12b47f4c4fe6545813a3f27dfe8adc990d18d1bfbc611085321b9ca6f0e0142c19a35c41b095747929b55af3e9 +EBUILD plex-media-server-0.9.7.12.ebuild 3489 SHA256 0df562421c103c4548eaf8c968d72c2b556365768c72b3d81b098ecc48d73516 SHA512 69b8afa933fdbfb7bb05858b172e79ff5737ac88bd34b8a9b9fd4efb03dbf3e9a2ea077d6363fe73ef35187a88fdb47970381034dfb235cd77530c42b9cb041a WHIRLPOOL 522e531b93b9fcb661824d22d469cdd1501629cb873e4a08024239511b29667549b7da24e9a12d38f1ee7a9a207c5ae9be063b98e1c8c8dc55df01141720cac0 +MISC metadata.xml 1275 SHA256 0c974ca11945d2903ea832bf7d926d5905b75e505ace0b456f6f994efcff5f3d SHA512 5b84a251dfe2ca7df5f92606970d461f3e296eff2cfd6ced918d64f7f484d948815d27543d89d831f69deaf65a23f1bf714a9bcc94be8ab37d2e4c1e27df7e9a WHIRLPOOL dcda2d18bd24aff779a2427c3564f3af3592d79eb6546c3d11028d30dc932941757d4ff3da9d9ae7c8a580654b1db7a4c9f5b0e764941db3d4a30e43b095edb9 diff --git a/media-tv/plex-media-server/PMS-EULA/PMS-EULA b/media-tv/plex-media-server/PMS-EULA/PMS-EULA new file mode 100644 index 0000000..dbcc2e7 --- /dev/null +++ b/media-tv/plex-media-server/PMS-EULA/PMS-EULA @@ -0,0 +1,45 @@ +End User License Agreement—Plex Media Server + +BY ACCEPTING THE TERMS OF THIS END USER LICENSE AGREEMENT BY CLICKING THE “AGREE” BUTTON, YOU ("YOU") ARE UNCONDITIONALLY CONSENTING TO BE BOUND BY AND ARE BECOMING A PARTY TO THIS END USER LICENSE AGREEMENT ("AGREEMENT"). YOUR USE OF PLEX MEDIA SERVER (THE “SOFTWARE”) ALSO SHALL CONSTITUTE ASSENT TO THE TERMS OF THIS AGREEMENT. IF YOU DO NOT UNCONDITIONALLY AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, SELECT THE "DISAGREE" BUTTON AND YOU WILL NOT HAVE ANY RIGHT TO USE THE SOFTWARE. Acceptance by and the formation of this Agreement with Plex, Inc. ("Plex") is expressly conditioned upon Your assent to all of the terms and conditions of this Agreement, to the exclusion of all other terms; if these terms are considered an offer, acceptance is expressly limited to these terms. + +The Software includes certain executable modules that Plex has licensed from third party providers (“Third Party Components”) that may be subject to different end user license terms as specified in the license agreement(s) provided with such Third Party Components. + +1. License. Subject to your full compliance with all of the terms and conditions of this Agreement, Plex grants You a personal, nontransferable, nonsublicensable, nonexclusive license to use the software that accompanies this Agreement (the "Application"), the accompanying documentation, and any additional software that may be made available by Plex from time to time for use with the Application (collectively "Software") for Your personal use only, as supplied to You by Plex. Except as may be expressly permitted in a separate written agreement executed by You and an authorized representative of Plex, this Agreement only allows You to: (i) run the Software as received at the time of delivery; (ii) install the Software on a single machine or only for the number of users or core(s) as may be specified in a separate order form and paid for by You or Your company, employer, or principal; and (iii) use the Software in accordance with the accompanying documentation solely for legal purposes, but not for nuclear or aviation purposes, for controlling any apparatus, for any hazardous activity, or for treating the human body. + +2. Restrictions. + +A. You shall not, nor permit anyone else to, directly or indirectly: (i) copy, modify, or distribute the Software; (ii) reverse engineer, disassemble, decompile, or otherwise attempt to discover the source code or structure, sequence, and/or organization of all or any part of the Software (except that this restriction shall not apply to the limited extent restrictions on reverse engineering are prohibited by applicable local law); (iii) rent, lease, or use the Software for timesharing or service bureau purposes; (iv) develop any improvement, modification, or derivative works of the Software, or include any portion thereof in any other product, software, work, equipment, or item (except that You may customize and/or modify the Software only as set forth in the documentation or as authorized in any license agreement of Plex’s third party licensors and applicable to Third Party Components); or (v) allow the transfer, transmission, export, or re-export of the Software or any portion thereof or any technical data associated with any Software. For additional information about restrictions, see Section 8. + +B. You shall not incorporate the Software or any part thereof into any other product(s) or use the Software in any manner that would cause the Software to become subject to any “open source license” that would impose obligations on Plex’s use of the Software or impair any rights of Plex or third parties thereto. You shall maintain and shall not remove nor obscure any proprietary notices on the Software, and shall reproduce such notices exactly on all permitted copies of the Software. As between the parties and except as otherwise provided in any license agreement for Third Party Components, Plex shall own all title, ownership rights, and intellectual property rights in and to the Software, and any copies or derivative works thereof. You understand that Plex or its licensors may modify or discontinue offering the Software at any time. This Agreement does not give You any rights not expressly and unambiguously granted herein. + +C. You shall not make any use of data adapters or similar technologies used by or with the Software that are designed to receive and use data from Plex, its third party data providers, and its and their affiliates and third parties other than to receive and use such data in accordance with Your then-effective agreements with Plex, such third party data providers, and its and their affiliates and third parties including without limitation any data passing through the Software or otherwise effectively made available by any Software through an API, a download, a database, or the like. Data is provided by Plex or other third party data providers and may be delayed or unavailable as specified by Plex or such third party data providers. Plex does not verify any data and disclaims any obligation to do so. Plex, its third party data providers, and each of their affiliates and business partners: (i) expressly disclaim the availability, accuracy, adequacy, or completeness of any data or third party data provider, and (ii) shall not be liable for any errors, omissions, or other defects in, unavailability of, delays or interruptions in such data or third party data provider. + +3. Intellectual Property; Content. As a condition to Your use of the Software, You represent and warrant that You will not use the Software: (i) to infringe the intellectual property or proprietary rights, or rights of publicity or privacy, of any third party; (ii) to violate any applicable law, statute, ordinance, or regulation; (iii) to disseminate, transfer or store information or materials in any form or format ("Content") that are harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, or otherwise objectionable, or that otherwise violate any law or right of any third party; or (iv) to disseminate any software viruses or any other computer code, files, programs, or the like that may without limitation interrupt, destroy, or limit the functionality of any computer software or hardware or telecommunications equipment, violate the security of any computer network, or the like. You, not Plex, remain solely responsible for all Content that You import, publish, or otherwise disseminate using, or in connection with, the Software. You acknowledge that all Content that You access through use of the Software is accessed at Your own risk, and You will be solely responsible for any damage or liability to any party resulting from such access. + +4. Support. This Agreement does not entitle You to any support, upgrades, patches, enhancements, or fixes (collectively, "Support") for the Software. Any such Support for the Software that may be made available by Plex, in its sole discretion, shall be offered solely subject to a separate written agreement. + +5. Warranty Disclaimer. + +A. THE SOFTWARE IS PROVIDED "AS IS". PLEX MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, AND PLEX EXPRESSLY DISCLAIMS ALL WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. FURTHER, PLEX DOES NOT WARRANT AGAINST ERRORS, OMISSIONS, RESULTS OF USE, OR THAT THE SOFTWARE IS BUG FREE OR ERROR FREE OR THAT ITS USE WILL BE UNINTERRUPTED. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS AGREEMENT. ALL THE FOREGOING DISCLAIMERS ALSO APPLY IN FULL WITH RESPECT TO PLEX'S LICENSORS, SUPPLIERS, DISTRIBUTORS, CONTRACTORS, AGENTS, AND THIRD PARTY CONTRIBUTORS. SOME STATES DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU. + +B. “Malware” means any known, discovered, envisioned, or invented, or any yet to be known, discovered, envisioned, or invented: (i) virus, Trojan horse, or any other harmful, harassing, or malicious software; or (ii) method, use, or means by which any software, firmware, equipment, device, communications medium, person, entity, or the like directly or indirectly engages in or is used for: (a) any unauthorized access; (b) any unauthorized communication; or (c) any cracks, hacks, exploits, or other activity, method, use, or means, that may cause harassment, harm, data loss, data theft, loss of communication, loss of privacy, or the like. You acknowledge that the Internet, dedicated lines, other forms of communication, or other means that You use to connect to the Software may not be secure and may be vulnerable to attack by third parties, and that it is possible to receive Malware by using the Internet, dedicated lines, other forms of communication, or other means. In order to protect the Software, You shall regularly obtain, use, and update appropriate third party software or other means to protect Yourself from Malware and to detect and remove Malware that may be downloaded using the Internet, dedicated lines, other forms of communication, or other means. Plex does not warrant that the Software will be free of Malware that is introduced by third parties, the Internet, dedicated lines, other forms of communication, or other means. + +C. Plex and its licensors, suppliers, distributors, contractors, agents, and third party contributors do not warrant: (i) results of the use of any of the Software; (ii) that the Software is bug free or error free; (iii) or that use of the Software will be uninterrupted. You agree that Plex and its Affiliates are not responsible for any fault, inaccuracy, error, omission, delay or any other failure of Your equipment and/or services caused by Plex’s hardware, software, cabling, network services, or the like, or arising from Plex’s use of such equipment and/or services. + +6. Limitation of Remedies and Damages. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, INCLUDING, BUT NOT LIMITED TO, TORT, CONTRACT, NEGLIGENCE, STRICT LIABILITY, OR OTHERWISE, SHALL PLEX BE LIABLE TO YOU OR ANY OTHER PERSON OR ENTITY: (I) FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, ACCURACY OF RESULTS, COMPUTER FAILURE OR MALFUNCTION, LOSS OF DATA, OR OTHER DAMAGES RESULTING FROM YOUR USE OF THE SOFTWARE; OR (II) FOR ANY MATTER BEYOND ITS REASONABLE CONTROL. PLEX'S AGGREGATE LIABILITY FOR DAMAGES OF ANY KIND WHATSOEVER ARISING OUT OF THIS AGREEMENT SHALL BE LIMITED TO THE LESSER OF THE TOTAL FEES PAID BY YOU TO PLEX (IF ANY) FOR THE PORTION OF THE SOFTWARE THAT GAVE RISE TO SUCH DAMAGES OR $100 (U.S.), EXCEPT WHERE NOT PERMITTED BY APPLICABLE LAW, IN WHICH CASE PLEX'S LIABILITY SHALL BE LIMITED TO THE MINIMUM AMOUNT PERMITTED BY SUCH APPLICABLE LAW. ALL THE FOREGOING LIMITATIONS SHALL APPLY EVEN IF EITHER PARTY HAS BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. ALL THE FOREGOING LIMITATIONS ALSO APPLY WITH RESPECT TO PLEX'S SUPPLIERS, LICENSORS, DISTRIBUTORS, CONTRACTORS, AGENTS, AND THIRD PARTY CONTRIBUTORS. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION AND EXCLUSION MAY NOT APPLY TO YOU. + +7. Indemnity. You agree that Plex and its licensors, distributors, contractors, agents, and third party contributors shall have no liability whatsoever for any use You make of the Software. You shall indemnify and hold harmless Plex and its licensors, suppliers, distributors, contractors, agents, and third party contributors from any claims, damages, liabilities, costs and fees (including reasonable attorney fees) arising from Your use of the Software as well as from Your failure to comply with any term of this Agreement, or any losses, damages, claims, costs, and/or attorneys’ fees of You arising from any use of or reliance upon any information received in connection with the Software that comprises or is based upon data provided by Plex or any third party. + +8. Additional Information About Restrictions. + +A. You may reverse engineer the Software solely for the purpose of debugging modifications made by You to certain Third Party Files in source code format that are licensed under the GNU Lesser General Public License (LGPL) or under the GNU General Public License version 2 (GPL2) and only provided that You have made, prior to any such reverse engineering permitted under this sentence, unsuccessful prior reasonable good faith efforts to debug such modifications using techniques other than the reverse engineering of the Software. + +B. Certain Third Party Files may be provided to You with the Software and licensed to You under additional terms set forth in license agreements of the third party authors of the Third Party Files and are available from Plex upon request. Certain Third Party Files modified by Plex are provided solely for use by You except for GPL2 files. You shall not distribute or convey the Software or distribute or convey any modified or unmodified Third Party Files to any other person or entity in any manner whatsoever, and You shall not cause the Software or any modified or unmodified Third Party Files to be made available for viewing, copying, or downloading or the like with the sole exception of GPL2 files. Plex hereby offers, for a period ending three (3) years from Your first acceptance of this Agreement, to transfer to You a copy of the complete corresponding machine-readable source code files for any LGPL or GPL2 Third Party Files that Plex supplies to You. Only GPL2 Third Party Files may be subsequently transferred by You to a third party. + +9. Termination. This Agreement shall continue until terminated as set forth in this section. You may terminate this Agreement at any time. Your rights under this Agreement will terminate automatically without notice from Plex if You fail to comply with any term(s) of this Agreement, including any attempt to transfer a copy of the Software to another party except as provided in this Agreement. Upon termination, the Agreement granted hereunder shall terminate and You shall immediately discontinue all use of the Software, but the terms of this Agreement will otherwise remain in effect. + +10. Export Law Assurances. In connection with the Software, You agree to comply with all export laws and restrictions and regulations of the Department of Commerce, the United States Department of the Treasury Office of Foreign Assets Control ("OFAC"), or other United States or foreign agency or authority, and You agree not to export, or allow the export or re-export of, the Software in violation of any such restrictions, laws or regulations. By using the Software, You agree to the foregoing and represent and warrant that You are not located in, under the control of, or a national or resident of, any restricted country. + +11. Government Users. If the user, purchaser, or licensee of any Software is an agency, department, contractor, or other entity of any government, the use, duplication, reproduction, release, modification, disclosure, and transfer of such Software, including technical data, software, and manuals, is restricted by the terms of this Agreement. All other use is prohibited. No rights other than those expressly provided in this Agreement are conferred. Software was developed fully at private expense. + +12. Miscellaneous. No agency, partnership, joint venture, or employment is created as a result of this Agreement and You do not have any authority of any kind to bind Plex in any respect whatsoever. The failure of either party to exercise in any respect any right provided for herein shall not be deemed a waiver of any further rights hereunder. If any provision of this Agreement is found to be unenforceable or invalid, that provision shall be limited or eliminated to the minimum extent necessary so that this Agreement shall otherwise remain in full force and effect and enforceable. This Agreement is not assignable, transferable, or sublicensable by You except with Plex's prior written consent. Plex may transfer, assign, or delegate this Agreement and its rights and obligations without consent. This Agreement shall be governed by and construed in accordance with the laws of the state of California, as if made within California between two residents thereof, and the parties submit to the exclusive jurisdiction of the Superior Court of Santa Clara County and the United States District Court for the Northern District of California. Notwithstanding the foregoing sentence, but without limiting Plex's right to seek injunctive or other equitable relief in any court of competent jurisdiction, any disputes arising with respect to this Agreement shall be referred to an arbitrator affiliated with the Judicial Arbitration and Mediation Services, Inc. ("JAMS"). The arbitrator shall be selected by joint agreement of the parties. In the event the parties cannot agree on an arbitrator within thirty (30) days of the initiating party providing the other party with written notice that it plans to seek arbitration, the parties shall each select an arbitrator affiliated with JAMS, which arbitrators shall jointly select a third such arbitrator to resolve the dispute. The written decision of the arbitrator shall be final and binding on the parties. The arbitration proceeding shall be carried on and heard in Santa Clara County, California using the English language and pursuant to the rules of (and administered by) JAMS. In any action or proceeding to enforce rights under this Agreement, the prevailing party will be entitled to recover costs and reasonable attorneys' fees from the other party. A separate written license agreement or order and signed by Plex and You or Your company, employer, or principal may state other terms and conditions that apply to You, including terms relating to price, payment, delivery, confidential information, support services, and the like. You are solely responsible to review such terms or conditions with Your company, employer or principal. In the event of any conflict in terms, the terms of the separate license agreement shall supersede the terms of this Agreement. Except as stated in the preceding three sentences, both parties agree that this Agreement is the complete and exclusive statement of the mutual understanding of the parties and supersedes and cancels all previous written and oral agreements, communications, and other understandings relating to the subject matter of this Agreement. Any modifications to this Agreement must be in a writing signed by authorized representatives of both parties and specifically referencing this paragraph of this Agreement.
\ No newline at end of file diff --git a/media-tv/plex-media-server/files/pms_initd_1 b/media-tv/plex-media-server/files/pms_initd_1 new file mode 100644 index 0000000..e2da23a --- /dev/null +++ b/media-tv/plex-media-server/files/pms_initd_1 @@ -0,0 +1,24 @@ +#!/sbin/runscript + +depend() { + need avahi-daemon +} + +start() { + ebegin "Starting Plex Media Server" + start-stop-daemon -S -m -p /var/run/plex-media-server.pid -1 /var/log/pms/out.log -2 /var/log/pms/err.log --quiet -u plex -N -5 -b --exec /usr/sbin/start_pms + eend $? +} + +stop() { + ebegin "Stopping Plex Media Server" + # start-stop-daemon --stop --pidfile /var/run/plex-media-server.pid --quiet --exec /usr/sbin/start_pms + kill -- -`cat /var/run/plex-media-server.pid` + eend $? +} + +restart() { + stop + sleep 3 + start +} diff --git a/media-tv/plex-media-server/files/start_pms_1.patch b/media-tv/plex-media-server/files/start_pms_1.patch new file mode 100644 index 0000000..32cf035 --- /dev/null +++ b/media-tv/plex-media-server/files/start_pms_1.patch @@ -0,0 +1,19 @@ +*** start_pms_old 2012-06-30 12:06:14.000000000 +0200 +--- start_pms 2012-06-30 12:08:33.000000000 +0200 +*************** +*** 7,13 **** + export PLEX_MEDIA_SERVER_TMPDIR=/tmp + export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" + +! test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver + + export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" + export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}" +--- 7,13 ---- + export PLEX_MEDIA_SERVER_TMPDIR=/tmp + export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" + +! test -f /etc/plex/plexmediaserver.conf && . /etc/plex/plexmediaserver.conf + + export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" + export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}" diff --git a/media-tv/plex-media-server/metadata.xml b/media-tv/plex-media-server/metadata.xml new file mode 100644 index 0000000..e41eee2 --- /dev/null +++ b/media-tv/plex-media-server/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription lang="en">Plex Media Server is a service that scans directories given by the user for adjustable media types. It automatically searches and downloads metadata and artwork. The scanned data is provided as a library and can be streamed to clients that implement the PMS-API \(mainly Plex for OS X, iOS and Android as well as some LG TV sets and Apple TV, there are PlugIns for other MediaCenter software like XBMC available\).</longdescription> + <longdescription lang="de">Plex Media Server ist ein dienst welcher durch den Nutzer bestimmbare Ordner nach spezifischen Medien-Typen durchsucht, automatisch Metadaten sowie Artwork runterläd und als Bibliothek zur Verfügung stellt. Clients welche die PMS-API implementieren (wie Plex für OS X, iOS und Android, einige LG Fernsehgeräte sowie andere MediaCenter mit entsprechenden PlugIns wie z.B. XBMC) können diese Metadaten darstellen und die Filme direkt als stream wiedergeben. Die unterstützten Medien-Typen sind Filme, Fernsehserien sowie Musik.</longdescription> +</pkgmetadata> diff --git a/media-tv/plex-media-server/plex-media-server-0.9.7.11-r1.ebuild b/media-tv/plex-media-server/plex-media-server-0.9.7.11-r1.ebuild new file mode 100644 index 0000000..b0a476f --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-0.9.7.11-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils + +MAGIC="386-d353989" +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? ( http://www.plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_i386.deb ) + amd64? ( http://www.plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_${PV}.${MAGIC}_amd64.deb )" +#SRC_URI="x86? ( http://plex.r.worldssl.net/PlexMediaServer/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_i386.deb ) +# amd64? ( http://plex.r.worldssl.net/PlexMediaServer/${PV}.${MAGIC}/plexmediaserver_${PV}.${MAGIC}_amd64.deb )" +SLOT="0" +LICENSE="PMS-License" +IUSE="" + +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!" +} diff --git a/media-tv/plex-media-server/plex-media-server-0.9.7.12.ebuild b/media-tv/plex-media-server/plex-media-server-0.9.7.12.ebuild new file mode 100644 index 0000000..e02d220 --- /dev/null +++ b/media-tv/plex-media-server/plex-media-server-0.9.7.12.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils + +MAGIC1="407" +MAGIC2="db37d6d" +URI="http://plex.r.worldssl.net/PlexMediaServer" +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}/${PV}.${MAGIC1}-${MAGIC2}/plexmediaserver_${PV}.${MAGIC1}-${MAGIC2}_i386.deb + ) + amd64? ( + ${URI}/${PV}.${MAGIC1}-${MAGIC2}/plexmediaserver_${PV}.${MAGIC1}-${MAGIC2}_amd64.deb + )" +SLOT="0" +LICENSE="PMS-License" +IUSE="" + +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!" +} |