Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 16:13:14 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496350 - in head/multimedia/plexmediaserver: . files
Message-ID:  <201903201613.x2KGDEqo079524@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Wed Mar 20 16:13:14 2019
New Revision: 496350
URL: https://svnweb.freebsd.org/changeset/ports/496350

Log:
  multimedia/plexmediaserver: Update to 1.15.1.791
  
  Changelog:	https://forums.plex.tv/t/plex-media-server/30447/249

Modified:
  head/multimedia/plexmediaserver/Makefile
  head/multimedia/plexmediaserver/distinfo
  head/multimedia/plexmediaserver/files/pkg-message.in
  head/multimedia/plexmediaserver/files/plexmediaserver.in

Modified: head/multimedia/plexmediaserver/Makefile
==============================================================================
--- head/multimedia/plexmediaserver/Makefile	Wed Mar 20 16:13:04 2019	(r496349)
+++ head/multimedia/plexmediaserver/Makefile	Wed Mar 20 16:13:14 2019	(r496350)
@@ -2,12 +2,12 @@
 # $FreeBSD$
 
 PORTNAME=	plexmediaserver
-PORTVERSION?=	1.14.1.5488
-DISTVERSIONSUFFIX?=cc260c476
-PORTREVISION?=	1
+PORTVERSION?=	1.15.1.791
+DISTVERSIONSUFFIX?=8bec0f76c
+PORTREVISION?=	0
 CATEGORIES=	multimedia
-MASTER_SITES?=	https://downloads.plex.tv/plex-media-server/${DISTVERSION}-${DISTVERSIONSUFFIX}/
-DISTNAME?=	PlexMediaServer-${DISTVERSION}-${DISTVERSIONSUFFIX}-freebsd-${ARCH}
+MASTER_SITES?=	https://downloads.plex.tv/plex-media-server-new/${DISTVERSION}-${DISTVERSIONSUFFIX}/freebsd/
+DISTNAME?=	PlexMediaServer-${DISTVERSION}-${DISTVERSIONSUFFIX}-FreeBSD-${ARCH}
 
 MAINTAINER?=	feld@FreeBSD.org
 COMMENT=	Plex Media Server component

Modified: head/multimedia/plexmediaserver/distinfo
==============================================================================
--- head/multimedia/plexmediaserver/distinfo	Wed Mar 20 16:13:04 2019	(r496349)
+++ head/multimedia/plexmediaserver/distinfo	Wed Mar 20 16:13:14 2019	(r496350)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1545160778
-SHA256 (PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2) = 9a157e1566963bceac6e736d679522b7030cd53ddcbb3b0982a9e0a13cc176f1
-SIZE (PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2) = 90555303
+TIMESTAMP = 1553098065
+SHA256 (PlexMediaServer-1.15.1.791-8bec0f76c-FreeBSD-amd64.tar.bz2) = 37b4e75819b98cdd1ddf6a05193885ed54e76c93fea1a7cb8909e6e655409f20
+SIZE (PlexMediaServer-1.15.1.791-8bec0f76c-FreeBSD-amd64.tar.bz2) = 91986684

Modified: head/multimedia/plexmediaserver/files/pkg-message.in
==============================================================================
--- head/multimedia/plexmediaserver/files/pkg-message.in	Wed Mar 20 16:13:04 2019	(r496349)
+++ head/multimedia/plexmediaserver/files/pkg-message.in	Wed Mar 20 16:13:14 2019	(r496350)
@@ -12,4 +12,47 @@ service %%PORTNAME%% start
 Once started, visit the following to configure:
 http://localhost:32400/web
 
+@@@ INTEL GPU OFFLOAD NOTES @@@
+
+If you have a supported Intel GPU, you can leverage hardware
+accellerated encoding/decoding in Plex Media Server on FreeBSD 12.0+.
+
+The requirements are as follows:
+
+* Install multimedia/drm-kmod: e.g., pkg install drm-fbsd12.0-kmod
+
+* Enable loading of kernel module on boot: sysrc kld_list+="drm" 
+** If Plex will run in a jail, you must load the module outside the jail!
+
+* Load the kernel module now: kldload drm
+
+* Install the supporting Intel VA support library for your GPU
+** multimedia/libva-intel-driver: [LEGACY] Intel GMA 4500 or newer
+** multimedia/libva-intel-media-driver: Intel HD 5000 (Gen8) or newer
+*** This must be installed beside Plex. e.g., in the jail with Plex
+
+* Add plex user to the video group: pw groupmod -n video -m plex
+
+* For jails, make a devfs ruleset to expose /dev/dri/* devices.
+
+e.g., /dev/devfs.rules on the host:
+
+[plex_drm=10]
+add include $devfsrules_hide_all
+add include $devfsrules_unhide_basic
+add include $devfsrules_unhide_login
+add include $devfsrules_jail
+add path 'dri*' unhide
+add path 'dri/*' unhide
+add path 'drm*' unhide
+add path 'drm/*' unhide
+
+* Enable the devfs ruleset for your jail. e.g., devfs_ruleset=10 in your
+/etc/jail.conf or for iocage, iocage set devfs_ruleset="10" 
+
+Please refer to documentation for all other FreeBSD jail management
+utilities.
+
+@@@ INTEL GPU OFFLOAD NOTES @@@
+
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Modified: head/multimedia/plexmediaserver/files/plexmediaserver.in
==============================================================================
--- head/multimedia/plexmediaserver/files/plexmediaserver.in	Wed Mar 20 16:13:04 2019	(r496349)
+++ head/multimedia/plexmediaserver/files/plexmediaserver.in	Wed Mar 20 16:13:14 2019	(r496350)
@@ -40,11 +40,23 @@ stop_postcmd=plex_stop_postcmd
 
 plex_precmd()
 {
+	#Set identification variables for FreeNAS; with fallback to FreeBSD
+	if [ -f "/etc/version" ]; then
+	  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(cat /etc/version|cut -d- -f1)"
+	  export PLEX_MEDIA_SERVER_INFO_DEVICE=NAS
+	  export PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)"
+	  export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(cat /etc/version|cut -d- -f2-)"
+	else
+	  export PLEX_MEDIA_SERVER_INFO_VENDOR=FreeBSD
+	  export PLEX_MEDIA_SERVER_INFO_DEVICE=PC
+	  export PLEX_MEDIA_SERVER_INFO_MODEL="$(uname -m)"
+	  export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION="$(uname -r)"
+	fi
 	export SUPPORT_PATH="${%%PORTNAME%%_support_path}"
 	export HOME="${%%PORTNAME%%_support_path}/Plex Media Server"
 	export PYTHONHOME="%%DATADIR%%/Resources/Python"
 	export SCRIPTPATH="%%DATADIR%%"
-	export LD_LIBRARY_PATH="%%PREFIX%%/lib/compat:${SCRIPTPATH}"
+	export LD_LIBRARY_PATH="${SCRIPTPATH}/lib"
 	export PLEX_MEDIA_SERVER_HOME="${SCRIPTPATH}"
 	export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=${%%PORTNAME%%_maxplugins}
 	export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=${%%PORTNAME%%_support_path}
@@ -61,6 +73,10 @@ plex_precmd()
 	
 	if [ ! -d "${%%PORTNAME%%_support_path}/Plex Media Server" ]; then
 		install -d -g ${%%PORTNAME%%_group} -o ${%%PORTNAME%%_user} "${%%PORTNAME%%_support_path}/Plex Media Server";
+	fi
+
+	if [ ! -d "${%%PORTNAME%%_support_path}/Plex" ]; then
+		install -d -g ${%%PORTNAME%%_group} -o ${%%PORTNAME%%_user} "${%%PORTNAME%%_support_path}/Plex";
 	fi
 	
 	if [ ${%%PORTNAME%%_tmp} ]; then 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903201613.x2KGDEqo079524>