Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602280

Summary: media-tv/plex-media-server-1.3.1 version bump
Product: Gentoo Linux Reporter: Bradley Lankford <bradleylankford>
Component: Current packagesAssignee: Jonathan Vasquez (RETIRED) <fearedbliss>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: plex-media-server-1.3.2.ebuild

Description Bradley Lankford 2016-12-10 19:25:54 UTC
Created attachment 455780 [details]
plex-media-server-1.3.2.ebuild

Hello,

I've been running plex-media-server in an overlay of mine for a while since the package in the Portage tree is quite a few versions behind. 

Plex Media Server (https://www.plex.tv) is a media server that runs on a user's machine that allows them to watch tv, movies, photos, etc. on their media player of choice (Apple TV, Android TV, Fire TV, Chromecast, etc.)

The ebuild is attached.

Thanks!
Comment 1 Bradley Lankford 2016-12-11 01:48:37 UTC
Comment on attachment 455780 [details]
plex-media-server-1.3.2.ebuild

># Copyright 1999-2016 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Id$
>
>EAPI=6
>
>inherit eutils unpacker user
>
>DESCRIPTION="Plex Media Server is an organizer for your media and provides streaming over the web and to devices"
>HOMEPAGE="http://plex.tv/"
>
>MY_PN="plexmediaserver"
>BUILD="3112"
>COMMIT="1751929"
>MY_PV="${PV}.${BUILD}-${COMMIT}"
>MY_P="${MY_PN}_${MY_PV}"
>
>SRC_URI="
>	x86? (
>		https://downloads.plex.tv/plex-media-server/${MY_PV}/${MY_P}_i386.deb
>	)
>	amd64? (
>		https://downloads.plex.tv/plex-media-server/${MY_PV}/${MY_P}_amd64.deb
>	)
>"
>
>LICENSE="PMS-EULA"
>SLOT="0"
>KEYWORDS="-* ~amd64 ~x86"
>IUSE=""
>
>DEPEND="
>	net-dns/avahi
>"
>RDEPEND="
>	${DEPEND}
>"
>
>S="${WORKDIR}"
>
>RESTRICT="mirror"
>QA_PREBUILT="*"
>
>pkg_setup() {
>	enewgroup plex
>	enewuser plex -1 /bin/sh /var/lib/plexmediaserver "plex" --system
>}
>
>src_prepare() {
>	epatch "${FILESDIR}/start_pms_opt.patch"
>}
>
>src_install() {
>	#Package contents
>	insinto /etc/default
>	doins etc/default/plexmediaserver
>
>	dodir /opt/plexmediaserver
>	cp -R usr/lib/plexmediaserver/* "${D}"/opt/plexmediaserver/
>
>	dobin usr/sbin/start_pms
>
>	domenu "${FILESDIR}"/plexmediamanager.desktop
>	doicon usr/share/pixmaps/plexmediamanager.png
>
>	dodoc usr/share/doc/plexmediaserver/copyright
>
>	#Init files
>	doinitd "${FILESDIR}"/plexmediaserver
>
>	#Directories
>	dodir /var/lib/plexmediaserver
>	fowners plex:plex /var/lib/plexmediaserver
>	dodir /var/log/pms
>	fowners plex:plex /var/log/pms
>}
>
>pkg_postinst() {
>	einfo "To start Plex Media Server, use the plexmediaserver init script or systemd unit."
>	einfo "To manage your library and sign in to Plex, go to \"http://localhost:32400/web\"."
Comment 2 Jonathan Vasquez (RETIRED) gentoo-dev 2016-12-15 20:52:51 UTC
I updated the plex-media-server to 1.3.2 on December 12. Closing bug.