Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added from plex-media-server ebuild from http://gentoo-overlay.megaco…

  • Loading branch information...
commit 733984a57f520f9db38ba8d14a208d2c1bb86f4c 1 parent b221bac
Sune Kloppenborg Jeppesen authored
View
5 media-tv/plex-media-server/Manifest
@@ -0,0 +1,5 @@
+AUX pms_initd_1 20504 RMD160 857472a5456b7cf085d8e643d3d091ed26b5f4b2 SHA1 53f8efd89cb221c0467b95611d618153297dedbd SHA256 4ef6d1201a0e72b42bd69086c77495b6f35c1c1a4e911f14da44e904c8f724eb
+AUX start_pms_1.patch 20583 RMD160 142b760269f800fd6d49ce8b20210ac1e031e8ed SHA1 edfe0a96b53a69180ae9b67f2277479919b7b7c2 SHA256 6fc99798ff04929999952f614622b9b456dc521eb3c7a234e2020f280193faa0
+DIST plexmediaserver_0.9.6.7.204-266f05d_amd64.deb 61964102 RMD160 b7ddc93d32fe4f5dc135926c6d5942a8a1848912 SHA1 64d8999fc27443409bccd27a4db6fa249ebc2fa5 SHA256 dfd52a89f3b8c5e13f0108061d51d54d0408b9810dfa0e5b522d0b140a25621f
+DIST plexmediaserver_0.9.6.7.204-266f05d_i386.deb 60679260 RMD160 cd3aa76f79e00397f79e12d5e39e94782c6a2b0d SHA1 ba68a94c477cff896f29838681d09cb8c4ebd2d1 SHA256 88391fb93b4607d7fa2f7678ce684ac81357655c262972a711b9ccdf7ff5aaf4
+EBUILD plex-media-server-0.9.6.7.ebuild 2612 RMD160 8624f786da43200b8c0689034ba964755ee379e3 SHA1 72be783babe5b221917d429ee5affdbdc0be9918 SHA256 145ae9220d4eb9abd2cf889e5ff5af181e1d47b1247ef6af18f6d8d9311b24fb
View
45 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.
View
543 media-tv/plex-media-server/files/pms_initd_1
@@ -0,0 +1,543 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>
+ gentoo-overlay/main Files - RhodeCode @ megacoffee.net
+</title>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ <meta name="robots" content="index, nofollow"/>
+ <link rel="icon" href="/images/icons/database_gear.png" type="image/png" />
+
+
+
+
+
+ <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen"/>
+ <link rel="stylesheet" type="text/css" href="/css/pygments.css"/>
+
+
+
+
+
+
+
+
+ <script type="text/javascript" src="/js/yui.2.9.js"></script>
+ <!--[if lt IE 9]>
+ <script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script>
+ <![endif]-->
+ <script type="text/javascript" src="/js/yui.flot.js"></script>
+ <script type="text/javascript" src="/js/rhodecode.js"></script>
+
+
+ <script type="text/javascript">
+ var follow_base_url = "/_admin/toggle_following";
+
+ //JS translations map
+ var TRANSLATION_MAP = {
+ 'add another comment':'add another comment',
+ 'Stop following this repository':"Stop following this repository",
+ 'Start following this repository':"Start following this repository",
+ };
+
+ var onSuccessFollow = function(target){
+ var f = YUD.get(target.id);
+ var f_cnt = YUD.get('current_followers_count');
+
+ if(f.getAttribute('class')=='follow'){
+ f.setAttribute('class','following');
+ f.setAttribute('title',TRANSLATION_MAP['Stop following this repository']);
+
+ if(f_cnt){
+ var cnt = Number(f_cnt.innerHTML)+1;
+ f_cnt.innerHTML = cnt;
+ }
+ }
+ else{
+ f.setAttribute('class','follow');
+ f.setAttribute('title',TRANSLATION_MAP['Start following this repository']);
+ if(f_cnt){
+ var cnt = Number(f_cnt.innerHTML)+1;
+ f_cnt.innerHTML = cnt;
+ }
+ }
+ }
+
+ var toggleFollowingUser = function(target,fallows_user_id,token,user_id){
+ args = 'follows_user_id='+fallows_user_id;
+ args+= '&amp;auth_token='+token;
+ if(user_id != undefined){
+ args+="&amp;user_id="+user_id;
+ }
+ YUC.asyncRequest('POST',follow_base_url,{
+ success:function(o){
+ onSuccessFollow(target);
+ }
+ },args);
+ return false;
+ }
+
+ var toggleFollowingRepo = function(target,fallows_repo_id,token,user_id){
+
+ args = 'follows_repo_id='+fallows_repo_id;
+ args+= '&amp;auth_token='+token;
+ if(user_id != undefined){
+ args+="&amp;user_id="+user_id;
+ }
+ YUC.asyncRequest('POST',follow_base_url,{
+ success:function(o){
+ onSuccessFollow(target);
+ }
+ },args);
+ return false;
+ }
+ YUE.onDOMReady(function(){
+ tooltip_activate();
+ show_more_event();
+
+ YUE.on('quick_login_link','click',function(e){
+ // make sure we don't redirect
+ YUE.preventDefault(e);
+
+ if(YUD.hasClass('quick_login_link','enabled')){
+ YUD.setStyle('quick_login','display','none');
+ YUD.removeClass('quick_login_link','enabled');
+ }
+ else{
+ YUD.setStyle('quick_login','display','');
+ YUD.addClass('quick_login_link','enabled');
+ var usr = YUD.get('username');
+ if(usr){
+ usr.focus();
+ }
+ }
+ });
+ })
+ </script>
+
+ </head>
+ <body id="body">
+ <!--[if IE 7]>
+ <script>YUD.addClass(document.body,'ie7')</script>
+ <![endif]-->
+ <!--[if IE 8]>
+ <script>YUD.addClass(document.body,'ie8')</script>
+ <![endif]-->
+ <!--[if IE 9]>
+ <script>YUD.addClass(document.body,'ie9')</script>
+ <![endif]-->
+
+
+
+<!-- HEADER -->
+<div id="header">
+ <div id="header-inner" class="title hover">
+ <div id="logo">
+ <h1><a href="/">RhodeCode @ megacoffee.net</a></h1>
+ </div>
+ <!-- MENU -->
+
+
+
+ <ul id="quick">
+ <!-- repo switcher -->
+ <li>
+ <a class="menu_link" id="repo_switcher" title="Switch repository" href="#">
+ <span class="icon">
+ <img src="/images/icons/database.png" alt="Products" />
+ </span>
+ <span>&darr;</span>
+ </a>
+ <ul id="repo_switcher_list" class="repo_switcher">
+ <li>
+ <a href="#">loading...</a>
+ </li>
+ </ul>
+ </li>
+
+ <li >
+ <a class="menu_link" title="Summary" href="/gentoo-overlay/main/summary">
+ <span class="icon">
+ <img src="/images/icons/clipboard_16.png" alt="Summary" />
+ </span>
+ <span>Summary</span>
+ </a>
+ </li>
+ <li >
+ <a class="menu_link" title="Changelog" href="/gentoo-overlay/main/changelog">
+ <span class="icon">
+ <img src="/images/icons/time.png" alt="Changelog" />
+ </span>
+ <span>Changelog</span>
+ </a>
+ </li>
+
+ <li >
+ <a class="menu_link" id="branch_tag_switcher" title="Switch to" href="#">
+ <span class="icon">
+ <img src="/images/icons/arrow_switch.png" alt="Switch to" />
+ </span>
+ <span>Switch to</span>
+ </a>
+ <ul id="switch_to_list" class="switch_to">
+ <li><a href="#">loading...</a></li>
+ </ul>
+ </li>
+ <li class="current">
+ <a class="menu_link" title="Files" href="/gentoo-overlay/main/files/tip/">
+ <span class="icon">
+ <img src="/images/icons/file.png" alt="Files" />
+ </span>
+ <span>Files</span>
+ </a>
+ </li>
+
+ <li >
+ <a class="menu_link" title="Options" href="#">
+ <span class="icon">
+ <img src="/images/icons/table_gear.png" alt="Admin" />
+ </span>
+ <span>Options</span>
+ </a>
+ <ul>
+ <li><a class="fork" href="/gentoo-overlay/main/fork">fork</a></li>
+ <li><a class="search" href="/_admin/search/gentoo-overlay/main">search</a></li>
+
+ </ul>
+ </li>
+
+ <li>
+ <a class="menu_link" title="Followers" href="/gentoo-overlay/main/followers">
+ <span class="icon_short">
+ <img src="/images/icons/heart.png" alt="Followers" />
+ </span>
+ <span id="current_followers_count" class="short">1</span>
+ </a>
+ </li>
+ <li>
+ <a class="menu_link" title="Forks" href="/gentoo-overlay/main/forks">
+ <span class="icon_short">
+ <img src="/images/icons/arrow_divide.png" alt="Forks" />
+ </span>
+ <span class="short">1</span>
+ </a>
+ </li>
+
+ <div class="user-menu">
+ <div class="container">
+ <div class="gravatar" id="quick_login_link">
+ <img alt="gravatar" src="/images/user24.png" />
+ </div>
+ </div>
+ <div id="quick_login" style="display:none">
+ <h4>Login to your account</h4>
+ <form action="/_admin/login?came_from=%2Fgentoo-overlay%2Fmain%2Ffiles%2Fa944beec37c511bec6b1fd732d2cdac35d35ec84%2Fmedia-tv%2Fplex-media-server%2Ffiles%2Fpms_initd_1" method="post">
+ <div class="form">
+ <div class="fields">
+ <div class="field">
+ <div class="label">
+ <label for="username">Username:</label>
+ </div>
+ <div class="input">
+ <input class="focus" id="username" name="username" size="40" type="text" />
+ </div>
+
+ </div>
+ <div class="field">
+ <div class="label">
+ <label for="password">Password:</label>
+ </div>
+ <div class="input">
+ <input class="focus" id="password" name="password" size="40" type="password" />
+ </div>
+
+ </div>
+ <div class="buttons">
+ <div class="password_forgoten"><a href="/_admin/password_reset">Forgot password ?</a></div>
+ <div class="register">
+ </div>
+ <div class="submit">
+ <input class="ui-btn xsmall" id="sign_in" name="sign_in" type="submit" value="Log In" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+
+ </ul>
+ <script type="text/javascript">
+ YUE.on('repo_switcher','mouseover',function(){
+ function qfilter(){
+ var nodes = YUQ('ul#repo_switcher_list li a.repo_name');
+ var target = 'q_filter_rs';
+ var func = function(node){
+ return node.parentNode;
+ }
+ q_filter(target,nodes,func);
+ }
+ var loaded = YUD.hasClass('repo_switcher','loaded');
+ if(!loaded){
+ YUD.addClass('repo_switcher','loaded');
+ ypjax("/repos",'repo_switcher_list',
+ function(o){qfilter();},
+ function(o){YUD.removeClass('repo_switcher','loaded');}
+ ,null);
+ }
+ return false;
+ });
+
+ YUE.on('branch_tag_switcher','mouseover',function(){
+ var loaded = YUD.hasClass('branch_tag_switcher','loaded');
+ if(!loaded){
+ YUD.addClass('branch_tag_switcher','loaded');
+ ypjax("/branches-tags/gentoo-overlay/main",'switch_to_list',
+ function(o){},
+ function(o){YUD.removeClass('branch_tag_switcher','loaded');}
+ ,null);
+ }
+ return false;
+ });
+ </script>
+
+
+ <!-- END MENU -->
+
+
+
+
+
+
+
+
+
+
+ </div>
+</div>
+<!-- END HEADER -->
+
+<!-- CONTENT -->
+<div id="content">
+ <div class="flash_msg">
+
+ </div>
+ <div id="main">
+
+<div class="box">
+ <!-- box / title -->
+ <div class="title">
+
+ <div class="breadcrumbs">
+
+ <a href="/">Home</a>
+ &raquo;
+ <a href="/gentoo-overlay/main/files/tip/">gentoo-overlay/main</a>
+ &raquo;
+ files
+ @ r20:a944beec37c5
+
+ </div>
+
+ <ul class="links">
+ <li>
+ <span style="text-transform: uppercase;"><a href="#">branch: default</a></span>
+ </li>
+ </ul>
+ </div>
+ <div class="table">
+ <div id="files_data">
+ <h3 class="files_location">
+ Location: <a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/">gentoo-overlay/main</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv">media-tv</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server">plex-media-server</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files">files</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/pms_initd_1">pms_initd_1</a>
+ </h3>
+ <dl>
+ <dt style="padding-top:10px;font-size:16px">History</dt>
+ <dd>
+ <div>
+ <form action="/gentoo-overlay/main/diff/media-tv/plex-media-server/files/pms_initd_1" method="get">
+ <input id="diff2" name="diff2" type="hidden" value="a944beec37c511bec6b1fd732d2cdac35d35ec84" />
+ <select id="diff1" name="diff1">
+<optgroup label="Changesets">
+<option value="66907cc0524821ee3afa1a80f8d47a7d9e563a9e">r10:66907cc05248 (default)</option>
+</optgroup>
+<optgroup label="Branches">
+<option selected="selected" value="a944beec37c511bec6b1fd732d2cdac35d35ec84">default</option>
+</optgroup>
+<optgroup label="Tags">
+<option selected="selected" value="a944beec37c511bec6b1fd732d2cdac35d35ec84">tip</option>
+</optgroup>
+</select>
+ <input class="ui-btn" id="diff" name="diff" type="submit" value="diff to revision" />
+ <input class="ui-btn" id="show_rev" name="show_rev" type="submit" value="show at revision" />
+ </form>
+ </div>
+ </dd>
+</dl>
+
+<div id="body" class="codeblock">
+ <div class="code-header">
+ <div class="stats">
+ <div class="left img"><img src="/images/icons/file.png"/></div>
+ <div class="left item"><pre class="tooltip" title="2012-08-07 00:01:07"><a href="/gentoo-overlay/main/changeset/a944beec37c511bec6b1fd732d2cdac35d35ec84">r20:a944beec37c5</a></pre></div>
+ <div class="left item"><pre>592 B</pre></div>
+ <div class="left item last"><pre>text/plain</pre></div>
+ <div class="buttons">
+ <a class="ui-btn" href="/gentoo-overlay/main/annotate/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/pms_initd_1">show annotation</a>
+ <a class="ui-btn" href="/gentoo-overlay/main/raw/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/pms_initd_1">show as raw</a>
+ <a class="ui-btn" href="/gentoo-overlay/main/rawfile/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/pms_initd_1">download as raw</a>
+ </div>
+ </div>
+ <div class="author">
+ <div class="gravatar">
+ <img alt="gravatar" src="http://www.gravatar.com/avatar/ad0005a947d55c3fab0692957656475c?s=16&amp;d=identicon"/>
+ </div>
+ <div title="gsnerf &lt;gsnerf@gsnerf.de&gt;" class="user">gsnerf</div>
+ </div>
+ <div class="commit">merge</div>
+ </div>
+ <div class="code-body">
+ <table class="code-highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L1"> 1</a>
+<a href="#L2"> 2</a>
+<a href="#L3"> 3</a>
+<a href="#L4"> 4</a>
+<a href="#L5"> 5</a>
+<a href="#L6"> 6</a>
+<a href="#L7"> 7</a>
+<a href="#L8"> 8</a>
+<a href="#L9"> 9</a>
+<a href="#L10">10</a>
+<a href="#L11">11</a>
+<a href="#L12">12</a>
+<a href="#L13">13</a>
+<a href="#L14">14</a>
+<a href="#L15">15</a>
+<a href="#L16">16</a>
+<a href="#L17">17</a>
+<a href="#L18">18</a>
+<a href="#L19">19</a>
+<a href="#L20">20</a>
+<a href="#L21">21</a>
+<a href="#L22">22</a>
+<a href="#L23">23</a>
+<a href="#L24">24</a></pre></div></td><td id="hlcode" class="code"><div class="code-highlight"><pre><div id="L1"><a name="L-1"></a>#!/sbin/runscript
+</div><div id="L2"><a name="L-2"></a>
+</div><div id="L3"><a name="L-3"></a>depend() {
+</div><div id="L4"><a name="L-4"></a> need avahi-daemon
+</div><div id="L5"><a name="L-5"></a>}
+</div><div id="L6"><a name="L-6"></a>
+</div><div id="L7"><a name="L-7"></a>start() {
+</div><div id="L8"><a name="L-8"></a> ebegin &quot;Starting Plex Media Server&quot;
+</div><div id="L9"><a name="L-9"></a> 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
+</div><div id="L10"><a name="L-10"></a> eend $?
+</div><div id="L11"><a name="L-11"></a>}
+</div><div id="L12"><a name="L-12"></a>
+</div><div id="L13"><a name="L-13"></a>stop() {
+</div><div id="L14"><a name="L-14"></a> ebegin &quot;Stopping Plex Media Server&quot;
+</div><div id="L15"><a name="L-15"></a> # start-stop-daemon --stop --pidfile /var/run/plex-media-server.pid --quiet --exec /usr/sbin/start_pms
+</div><div id="L16"><a name="L-16"></a> kill -- -`cat /var/run/plex-media-server.pid`
+</div><div id="L17"><a name="L-17"></a> eend $?
+</div><div id="L18"><a name="L-18"></a>}
+</div><div id="L19"><a name="L-19"></a>
+</div><div id="L20"><a name="L-20"></a>restart() {
+</div><div id="L21"><a name="L-21"></a> stop
+</div><div id="L22"><a name="L-22"></a> sleep 3
+</div><div id="L23"><a name="L-23"></a> start
+</div><div id="L24"><a name="L-24"></a>}
+</div></pre></div>
+</td></tr></table>
+ </div>
+</div>
+
+<script type="text/javascript">
+YUE.onDOMReady(function(){
+ function highlight_lines(lines){
+ for(pos in lines){
+ YUD.setStyle('L'+lines[pos],'background-color','#FFFFBE');
+ }
+ }
+ page_highlights = location.href.substring(location.href.indexOf('#')+1).split('L');
+ if (page_highlights.length == 2){
+ highlight_ranges = page_highlights[1].split(",");
+
+ var h_lines = [];
+ for (pos in highlight_ranges){
+ var _range = highlight_ranges[pos].split('-');
+ if(_range.length == 2){
+ var start = parseInt(_range[0]);
+ var end = parseInt(_range[1]);
+ if (start < end){
+ for(var i=start;i<=end;i++){
+ h_lines.push(i);
+ }
+ }
+ }
+ else{
+ h_lines.push(parseInt(highlight_ranges[pos]));
+ }
+ }
+ highlight_lines(h_lines);
+
+ //remember original location
+ var old_hash = location.href.substring(location.href.indexOf('#'));
+
+ // this makes a jump to anchor moved by 3 posstions for padding
+ window.location.hash = '#L'+Math.max(parseInt(h_lines[0])-3,1);
+
+ //sets old anchor
+ window.location.hash = old_hash;
+
+ }
+ YUE.on('show_rev','click',function(e){
+ YUE.preventDefault(e);
+ var cs = YUD.get('diff1').value;
+ var url = "/gentoo-overlay/main/files/__CS__/media-tv/plex-media-server/files/pms_initd_1".replace('__CS__',cs);
+ window.location = url;
+ });
+ YUE.on('hlcode','mouseup',getSelectionLink("Selection link"))
+ });
+</script>
+
+
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+var YPJAX_TITLE = "gentoo-overlay/main Files - RhodeCode @ megacoffee.net";
+var current_url = "/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/pms_initd_1";
+var node_list_url = '/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/__FPATH__';
+var url_base = '/gentoo-overlay/main/nodelist/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/pms_initd_1';
+var truncated_lbl = "search truncated";
+var nomatch_lbl = "no matching files";
+fileBrowserListeners(current_url, node_list_url, url_base, truncated_lbl, nomatch_lbl);
+</script>
+
+ </div>
+</div>
+<!-- END CONTENT -->
+
+<!-- FOOTER -->
+<div id="footer">
+ <div id="footer-inner" class="title">
+ <div>
+ <p class="footer-link">
+ <a href="http://bitbucket.org/marcinkuzminski/rhodecode/issues">Submit a bug</a>
+ </p>
+ <p class="footer-link-right">
+ <a href="http://rhodecode.org">RhodeCode</a>
+ 1.3.6 &copy; 2010-2012 by Marcin Kuzminski
+ </p>
+ </div>
+ </div>
+</div>
+<!-- END FOOTER -->
+
+
+
+
+
+
+
+
+
+ </body>
+</html>
View
533 media-tv/plex-media-server/files/start_pms_1.patch
@@ -0,0 +1,533 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>
+ gentoo-overlay/main Files - RhodeCode @ megacoffee.net
+</title>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ <meta name="robots" content="index, nofollow"/>
+ <link rel="icon" href="/images/icons/database_gear.png" type="image/png" />
+
+
+
+
+
+ <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen"/>
+ <link rel="stylesheet" type="text/css" href="/css/pygments.css"/>
+
+
+
+
+
+
+
+
+ <script type="text/javascript" src="/js/yui.2.9.js"></script>
+ <!--[if lt IE 9]>
+ <script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script>
+ <![endif]-->
+ <script type="text/javascript" src="/js/yui.flot.js"></script>
+ <script type="text/javascript" src="/js/rhodecode.js"></script>
+
+
+ <script type="text/javascript">
+ var follow_base_url = "/_admin/toggle_following";
+
+ //JS translations map
+ var TRANSLATION_MAP = {
+ 'add another comment':'add another comment',
+ 'Stop following this repository':"Stop following this repository",
+ 'Start following this repository':"Start following this repository",
+ };
+
+ var onSuccessFollow = function(target){
+ var f = YUD.get(target.id);
+ var f_cnt = YUD.get('current_followers_count');
+
+ if(f.getAttribute('class')=='follow'){
+ f.setAttribute('class','following');
+ f.setAttribute('title',TRANSLATION_MAP['Stop following this repository']);
+
+ if(f_cnt){
+ var cnt = Number(f_cnt.innerHTML)+1;
+ f_cnt.innerHTML = cnt;
+ }
+ }
+ else{
+ f.setAttribute('class','follow');
+ f.setAttribute('title',TRANSLATION_MAP['Start following this repository']);
+ if(f_cnt){
+ var cnt = Number(f_cnt.innerHTML)+1;
+ f_cnt.innerHTML = cnt;
+ }
+ }
+ }
+
+ var toggleFollowingUser = function(target,fallows_user_id,token,user_id){
+ args = 'follows_user_id='+fallows_user_id;
+ args+= '&amp;auth_token='+token;
+ if(user_id != undefined){
+ args+="&amp;user_id="+user_id;
+ }
+ YUC.asyncRequest('POST',follow_base_url,{
+ success:function(o){
+ onSuccessFollow(target);
+ }
+ },args);
+ return false;
+ }
+
+ var toggleFollowingRepo = function(target,fallows_repo_id,token,user_id){
+
+ args = 'follows_repo_id='+fallows_repo_id;
+ args+= '&amp;auth_token='+token;
+ if(user_id != undefined){
+ args+="&amp;user_id="+user_id;
+ }
+ YUC.asyncRequest('POST',follow_base_url,{
+ success:function(o){
+ onSuccessFollow(target);
+ }
+ },args);
+ return false;
+ }
+ YUE.onDOMReady(function(){
+ tooltip_activate();
+ show_more_event();
+
+ YUE.on('quick_login_link','click',function(e){
+ // make sure we don't redirect
+ YUE.preventDefault(e);
+
+ if(YUD.hasClass('quick_login_link','enabled')){
+ YUD.setStyle('quick_login','display','none');
+ YUD.removeClass('quick_login_link','enabled');
+ }
+ else{
+ YUD.setStyle('quick_login','display','');
+ YUD.addClass('quick_login_link','enabled');
+ var usr = YUD.get('username');
+ if(usr){
+ usr.focus();
+ }
+ }
+ });
+ })
+ </script>
+
+ </head>
+ <body id="body">
+ <!--[if IE 7]>
+ <script>YUD.addClass(document.body,'ie7')</script>
+ <![endif]-->
+ <!--[if IE 8]>
+ <script>YUD.addClass(document.body,'ie8')</script>
+ <![endif]-->
+ <!--[if IE 9]>
+ <script>YUD.addClass(document.body,'ie9')</script>
+ <![endif]-->
+
+
+
+<!-- HEADER -->
+<div id="header">
+ <div id="header-inner" class="title hover">
+ <div id="logo">
+ <h1><a href="/">RhodeCode @ megacoffee.net</a></h1>
+ </div>
+ <!-- MENU -->
+
+
+
+ <ul id="quick">
+ <!-- repo switcher -->
+ <li>
+ <a class="menu_link" id="repo_switcher" title="Switch repository" href="#">
+ <span class="icon">
+ <img src="/images/icons/database.png" alt="Products" />
+ </span>
+ <span>&darr;</span>
+ </a>
+ <ul id="repo_switcher_list" class="repo_switcher">
+ <li>
+ <a href="#">loading...</a>
+ </li>
+ </ul>
+ </li>
+
+ <li >
+ <a class="menu_link" title="Summary" href="/gentoo-overlay/main/summary">
+ <span class="icon">
+ <img src="/images/icons/clipboard_16.png" alt="Summary" />
+ </span>
+ <span>Summary</span>
+ </a>
+ </li>
+ <li >
+ <a class="menu_link" title="Changelog" href="/gentoo-overlay/main/changelog">
+ <span class="icon">
+ <img src="/images/icons/time.png" alt="Changelog" />
+ </span>
+ <span>Changelog</span>
+ </a>
+ </li>
+
+ <li >
+ <a class="menu_link" id="branch_tag_switcher" title="Switch to" href="#">
+ <span class="icon">
+ <img src="/images/icons/arrow_switch.png" alt="Switch to" />
+ </span>
+ <span>Switch to</span>
+ </a>
+ <ul id="switch_to_list" class="switch_to">
+ <li><a href="#">loading...</a></li>
+ </ul>
+ </li>
+ <li class="current">
+ <a class="menu_link" title="Files" href="/gentoo-overlay/main/files/tip/">
+ <span class="icon">
+ <img src="/images/icons/file.png" alt="Files" />
+ </span>
+ <span>Files</span>
+ </a>
+ </li>
+
+ <li >
+ <a class="menu_link" title="Options" href="#">
+ <span class="icon">
+ <img src="/images/icons/table_gear.png" alt="Admin" />
+ </span>
+ <span>Options</span>
+ </a>
+ <ul>
+ <li><a class="fork" href="/gentoo-overlay/main/fork">fork</a></li>
+ <li><a class="search" href="/_admin/search/gentoo-overlay/main">search</a></li>
+
+ </ul>
+ </li>
+
+ <li>
+ <a class="menu_link" title="Followers" href="/gentoo-overlay/main/followers">
+ <span class="icon_short">
+ <img src="/images/icons/heart.png" alt="Followers" />
+ </span>
+ <span id="current_followers_count" class="short">1</span>
+ </a>
+ </li>
+ <li>
+ <a class="menu_link" title="Forks" href="/gentoo-overlay/main/forks">
+ <span class="icon_short">
+ <img src="/images/icons/arrow_divide.png" alt="Forks" />
+ </span>
+ <span class="short">1</span>
+ </a>
+ </li>
+
+ <div class="user-menu">
+ <div class="container">
+ <div class="gravatar" id="quick_login_link">
+ <img alt="gravatar" src="/images/user24.png" />
+ </div>
+ </div>
+ <div id="quick_login" style="display:none">
+ <h4>Login to your account</h4>
+ <form action="/_admin/login?came_from=%2Fgentoo-overlay%2Fmain%2Ffiles%2Fa944beec37c511bec6b1fd732d2cdac35d35ec84%2Fmedia-tv%2Fplex-media-server%2Ffiles%2Fstart_pms_1.patch" method="post">
+ <div class="form">
+ <div class="fields">
+ <div class="field">
+ <div class="label">
+ <label for="username">Username:</label>
+ </div>
+ <div class="input">
+ <input class="focus" id="username" name="username" size="40" type="text" />
+ </div>
+
+ </div>
+ <div class="field">
+ <div class="label">
+ <label for="password">Password:</label>
+ </div>
+ <div class="input">
+ <input class="focus" id="password" name="password" size="40" type="password" />
+ </div>
+
+ </div>
+ <div class="buttons">
+ <div class="password_forgoten"><a href="/_admin/password_reset">Forgot password ?</a></div>
+ <div class="register">
+ </div>
+ <div class="submit">
+ <input class="ui-btn xsmall" id="sign_in" name="sign_in" type="submit" value="Log In" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+
+ </ul>
+ <script type="text/javascript">
+ YUE.on('repo_switcher','mouseover',function(){
+ function qfilter(){
+ var nodes = YUQ('ul#repo_switcher_list li a.repo_name');
+ var target = 'q_filter_rs';
+ var func = function(node){
+ return node.parentNode;
+ }
+ q_filter(target,nodes,func);
+ }
+ var loaded = YUD.hasClass('repo_switcher','loaded');
+ if(!loaded){
+ YUD.addClass('repo_switcher','loaded');
+ ypjax("/repos",'repo_switcher_list',
+ function(o){qfilter();},
+ function(o){YUD.removeClass('repo_switcher','loaded');}
+ ,null);
+ }
+ return false;
+ });
+
+ YUE.on('branch_tag_switcher','mouseover',function(){
+ var loaded = YUD.hasClass('branch_tag_switcher','loaded');
+ if(!loaded){
+ YUD.addClass('branch_tag_switcher','loaded');
+ ypjax("/branches-tags/gentoo-overlay/main",'switch_to_list',
+ function(o){},
+ function(o){YUD.removeClass('branch_tag_switcher','loaded');}
+ ,null);
+ }
+ return false;
+ });
+ </script>
+
+
+ <!-- END MENU -->
+
+
+
+
+
+
+
+
+
+
+ </div>
+</div>
+<!-- END HEADER -->
+
+<!-- CONTENT -->
+<div id="content">
+ <div class="flash_msg">
+
+ </div>
+ <div id="main">
+
+<div class="box">
+ <!-- box / title -->
+ <div class="title">
+
+ <div class="breadcrumbs">
+
+ <a href="/">Home</a>
+ &raquo;
+ <a href="/gentoo-overlay/main/files/tip/">gentoo-overlay/main</a>
+ &raquo;
+ files
+ @ r20:a944beec37c5
+
+ </div>
+
+ <ul class="links">
+ <li>
+ <span style="text-transform: uppercase;"><a href="#">branch: default</a></span>
+ </li>
+ </ul>
+ </div>
+ <div class="table">
+ <div id="files_data">
+ <h3 class="files_location">
+ Location: <a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/">gentoo-overlay/main</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv">media-tv</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server">plex-media-server</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files">files</a>/<a href="/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/start_pms_1.patch">start_pms_1.patch</a>
+ </h3>
+ <dl>
+ <dt style="padding-top:10px;font-size:16px">History</dt>
+ <dd>
+ <div>
+ <form action="/gentoo-overlay/main/diff/media-tv/plex-media-server/files/start_pms_1.patch" method="get">
+ <input id="diff2" name="diff2" type="hidden" value="a944beec37c511bec6b1fd732d2cdac35d35ec84" />
+ <select id="diff1" name="diff1">
+<optgroup label="Changesets">
+<option value="60c9e5c6cdce5f054aacd0f9f3a9ed83756be42e">r11:60c9e5c6cdce (default)</option>
+</optgroup>
+<optgroup label="Branches">
+<option selected="selected" value="a944beec37c511bec6b1fd732d2cdac35d35ec84">default</option>
+</optgroup>
+<optgroup label="Tags">
+<option selected="selected" value="a944beec37c511bec6b1fd732d2cdac35d35ec84">tip</option>
+</optgroup>
+</select>
+ <input class="ui-btn" id="diff" name="diff" type="submit" value="diff to revision" />
+ <input class="ui-btn" id="show_rev" name="show_rev" type="submit" value="show at revision" />
+ </form>
+ </div>
+ </dd>
+</dl>
+
+<div id="body" class="codeblock">
+ <div class="code-header">
+ <div class="stats">
+ <div class="left img"><img src="/images/icons/file.png"/></div>
+ <div class="left item"><pre class="tooltip" title="2012-08-07 00:01:07"><a href="/gentoo-overlay/main/changeset/a944beec37c511bec6b1fd732d2cdac35d35ec84">r20:a944beec37c5</a></pre></div>
+ <div class="left item"><pre>764 B</pre></div>
+ <div class="left item last"><pre>text/plain</pre></div>
+ <div class="buttons">
+ <a class="ui-btn" href="/gentoo-overlay/main/annotate/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/start_pms_1.patch">show annotation</a>
+ <a class="ui-btn" href="/gentoo-overlay/main/raw/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/start_pms_1.patch">show as raw</a>
+ <a class="ui-btn" href="/gentoo-overlay/main/rawfile/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/start_pms_1.patch">download as raw</a>
+ </div>
+ </div>
+ <div class="author">
+ <div class="gravatar">
+ <img alt="gravatar" src="http://www.gravatar.com/avatar/ad0005a947d55c3fab0692957656475c?s=16&amp;d=identicon"/>
+ </div>
+ <div title="gsnerf &lt;gsnerf@gsnerf.de&gt;" class="user">gsnerf</div>
+ </div>
+ <div class="commit">merge</div>
+ </div>
+ <div class="code-body">
+ <table class="code-highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L1"> 1</a>
+<a href="#L2"> 2</a>
+<a href="#L3"> 3</a>
+<a href="#L4"> 4</a>
+<a href="#L5"> 5</a>
+<a href="#L6"> 6</a>
+<a href="#L7"> 7</a>
+<a href="#L8"> 8</a>
+<a href="#L9"> 9</a>
+<a href="#L10">10</a>
+<a href="#L11">11</a>
+<a href="#L12">12</a>
+<a href="#L13">13</a>
+<a href="#L14">14</a>
+<a href="#L15">15</a>
+<a href="#L16">16</a>
+<a href="#L17">17</a>
+<a href="#L18">18</a>
+<a href="#L19">19</a></pre></div></td><td id="hlcode" class="code"><div class="code-highlight"><pre><div id="L1"><a name="L-1"></a>*** start_pms_old 2012-06-30 12:06:14.000000000 +0200
+</div><div id="L2"><a name="L-2"></a><span class="gd">--- start_pms 2012-06-30 12:08:33.000000000 +0200</span>
+</div><div id="L3"><a name="L-3"></a>***************
+</div><div id="L4"><a name="L-4"></a>*** 7,13 ****
+</div><div id="L5"><a name="L-5"></a> export PLEX_MEDIA_SERVER_TMPDIR=/tmp
+</div><div id="L6"><a name="L-6"></a> export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=&quot;${HOME}/Library/Application Support&quot;
+</div><div id="L7"><a name="L-7"></a>
+</div><div id="L8"><a name="L-8"></a><span class="gs">! test -f /etc/default/plexmediaserver &amp;&amp; . /etc/default/plexmediaserver</span>
+</div><div id="L9"><a name="L-9"></a>
+</div><div id="L10"><a name="L-10"></a> export LD_LIBRARY_PATH=&quot;${PLEX_MEDIA_SERVER_HOME}&quot;
+</div><div id="L11"><a name="L-11"></a> export TMPDIR=&quot;${PLEX_MEDIA_SERVER_TMPDIR}&quot;
+</div><div id="L12"><a name="L-12"></a><span class="gd">--- 7,13 ----</span>
+</div><div id="L13"><a name="L-13"></a> export PLEX_MEDIA_SERVER_TMPDIR=/tmp
+</div><div id="L14"><a name="L-14"></a> export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=&quot;${HOME}/Library/Application Support&quot;
+</div><div id="L15"><a name="L-15"></a>
+</div><div id="L16"><a name="L-16"></a><span class="gs">! test -f /etc/plex/plexmediaserver.conf &amp;&amp; . /etc/plex/plexmediaserver.conf</span>
+</div><div id="L17"><a name="L-17"></a>
+</div><div id="L18"><a name="L-18"></a> export LD_LIBRARY_PATH=&quot;${PLEX_MEDIA_SERVER_HOME}&quot;
+</div><div id="L19"><a name="L-19"></a> export TMPDIR=&quot;${PLEX_MEDIA_SERVER_TMPDIR}&quot;
+</div></pre></div>
+</td></tr></table>
+ </div>
+</div>
+
+<script type="text/javascript">
+YUE.onDOMReady(function(){
+ function highlight_lines(lines){
+ for(pos in lines){
+ YUD.setStyle('L'+lines[pos],'background-color','#FFFFBE');
+ }
+ }
+ page_highlights = location.href.substring(location.href.indexOf('#')+1).split('L');
+ if (page_highlights.length == 2){
+ highlight_ranges = page_highlights[1].split(",");
+
+ var h_lines = [];
+ for (pos in highlight_ranges){
+ var _range = highlight_ranges[pos].split('-');
+ if(_range.length == 2){
+ var start = parseInt(_range[0]);
+ var end = parseInt(_range[1]);
+ if (start < end){
+ for(var i=start;i<=end;i++){
+ h_lines.push(i);
+ }
+ }
+ }
+ else{
+ h_lines.push(parseInt(highlight_ranges[pos]));
+ }
+ }
+ highlight_lines(h_lines);
+
+ //remember original location
+ var old_hash = location.href.substring(location.href.indexOf('#'));
+
+ // this makes a jump to anchor moved by 3 posstions for padding
+ window.location.hash = '#L'+Math.max(parseInt(h_lines[0])-3,1);
+
+ //sets old anchor
+ window.location.hash = old_hash;
+
+ }
+ YUE.on('show_rev','click',function(e){
+ YUE.preventDefault(e);
+ var cs = YUD.get('diff1').value;
+ var url = "/gentoo-overlay/main/files/__CS__/media-tv/plex-media-server/files/start_pms_1.patch".replace('__CS__',cs);
+ window.location = url;
+ });
+ YUE.on('hlcode','mouseup',getSelectionLink("Selection link"))
+ });
+</script>
+
+
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+var YPJAX_TITLE = "gentoo-overlay/main Files - RhodeCode @ megacoffee.net";
+var current_url = "/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/start_pms_1.patch";
+var node_list_url = '/gentoo-overlay/main/files/a944beec37c511bec6b1fd732d2cdac35d35ec84/__FPATH__';
+var url_base = '/gentoo-overlay/main/nodelist/a944beec37c511bec6b1fd732d2cdac35d35ec84/media-tv/plex-media-server/files/start_pms_1.patch';
+var truncated_lbl = "search truncated";
+var nomatch_lbl = "no matching files";
+fileBrowserListeners(current_url, node_list_url, url_base, truncated_lbl, nomatch_lbl);
+</script>
+
+ </div>
+</div>
+<!-- END CONTENT -->
+
+<!-- FOOTER -->
+<div id="footer">
+ <div id="footer-inner" class="title">
+ <div>
+ <p class="footer-link">
+ <a href="http://bitbucket.org/marcinkuzminski/rhodecode/issues">Submit a bug</a>
+ </p>
+ <p class="footer-link-right">
+ <a href="http://rhodecode.org">RhodeCode</a>
+ 1.3.6 &copy; 2010-2012 by Marcin Kuzminski
+ </p>
+ </div>
+ </div>
+</div>
+<!-- END FOOTER -->
+
+
+
+
+
+
+
+
+
+ </body>
+</html>
View
79 media-tv/plex-media-server/plex-media-server-0.9.6.7.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils
+
+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_0.9.6.7.204-266f05d_i386.deb )
+ amd64? ( http://www.plexapp.com/repo/pool/main/p/plexmediaserver/plexmediaserver_0.9.6.7.204-266f05d_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 "Preparing files for installation"
+ # 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
+ # 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
+ # 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}
+
+ # 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
+
+ # 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
+}
Please sign in to comment.
Something went wrong with that request. Please try again.