You can just “pkg install” it the port/package version is still on 1.14.x
If you want to use the port to update, this might help (and its how I updated my local freebsd server):
Diff for the Makefile
--- Makefile-orig 2019-02-03 01:05:16.480657000 +0000
+++ Makefile-new 2019-02-14 22:18:21.441183000 +0000
@@ -2,12 +2,11 @@
# $FreeBSD: head/multimedia/plexmediaserver/Makefile 487765 2018-12-18 19:21:25Z feld $
PORTNAME= plexmediaserver
-PORTVERSION?= 1.14.1.5488
-DISTVERSIONSUFFIX?=cc260c476
-PORTREVISION?= 0
+PORTVERSION?= 1.15.0.601
+DISTVERSIONSUFFIX?=14b35e112
CATEGORIES= multimedia
MASTER_SITES= https://downloads.plex.tv/plex-media-server/${DISTVERSION}-${DISTVERSIONSUFFIX}/
-DISTNAME= PlexMediaServer-${DISTVERSION}-${DISTVERSIONSUFFIX}-freebsd-${ARCH}
+DISTNAME= PlexMediaServer-${DISTVERSION}-${DISTVERSIONSUFFIX}-FreeBSD-${ARCH}
MAINTAINER?= feld@FreeBSD.org
COMMENT= Plex Media Server component
@@ -47,11 +46,8 @@
# binaries don't come pre-stripped
${FIND} ${WRKSRC}/Resources -name '*.so' -exec ${STRIP_CMD} {} \+
${FIND} ${WRKSRC} ${WRKSRC}/Resources -name 'Plex*' -depth 1 -exec ${STRIP_CMD} {} \+
- ${FIND} ${WRKSRC} -depth 1 -name 'lib*' -exec ${STRIP_CMD} {} \+
+ ${FIND} ${WRKSRC} -depth 1 -name 'lib/*' -exec ${STRIP_CMD} {} \+
${RM} ${WRKSRC}/start.sh ${WRKSRC}/Resources/start.sh
- # Older verisons of Plex we have to create a symlink
- # Newer versions of Plex ship a duplicate file; we'll just symlink
- ${RM} ${WRKSRC}/libpython2.7.so
post-patch-RELAY-off:
${RM} ${WRKSRC}/Plex\ Relay
@@ -59,7 +55,7 @@
do-install:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR})
# Python fix for older releases of Plex
- ${INSTALL} -lrs ${STAGEDIR}/${DATADIR}/libpython2.7.so.1 ${STAGEDIR}/${DATADIR}/libpython2.7.so
+ ${INSTALL} -lrs ${STAGEDIR}/${DATADIR}/lib/libpython2.7.so.1 ${STAGEDIR}/${DATADIR}/lib/libpython2.7.so
# Workaround for space in binary name
${INSTALL} -lrs ${STAGEDIR}/${DATADIR}/Plex\ Media\ Server ${STAGEDIR}/${DATADIR}/Plex_Media_Server
But the rc.d script also needs changes cause the start.sh script is different now too, and based on the new start.sh script this should do it:
--- plexmediaserver.in.orig 2018-08-14 16:28:39.300158000 +0100
+++ plexmediaserver.in.new 2019-02-14 22:14:38.537119000 +0000
@@ -40,11 +40,24 @@
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}
So if you don’t want to wait for the port to update I suppose you could update the port files locally.