Date: Fri, 28 Feb 2014 13:58:36 +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: r346518 - in head/multimedia: plexmediaserver plexmediaserver-plexpass plexmediaserver-plexpass/files plexmediaserver/files Message-ID: <201402281358.s1SDwa2K008747@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Fri Feb 28 13:58:36 2014 New Revision: 346518 URL: http://svnweb.freebsd.org/changeset/ports/346518 QAT: https://qat.redports.org/buildarchive/r346518/ Log: Fix setting a custom tmp dir for Plex. It was broken and the env was wrong. Plex obeys TMPDIR env now. Modified: head/multimedia/plexmediaserver-plexpass/Makefile head/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in head/multimedia/plexmediaserver/Makefile head/multimedia/plexmediaserver/files/plexmediaserver.in Modified: head/multimedia/plexmediaserver-plexpass/Makefile ============================================================================== --- head/multimedia/plexmediaserver-plexpass/Makefile Fri Feb 28 13:57:57 2014 (r346517) +++ head/multimedia/plexmediaserver-plexpass/Makefile Fri Feb 28 13:58:36 2014 (r346518) @@ -3,7 +3,7 @@ PORTNAME= plexmediaserver PORTVERSION= 0.9.9.5.411 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= multimedia MASTER_SITES= http://plex.r.worldssl.net/plex-media-server/${PORTVERSION}-${PLEX_BUILD}/ PKGNAMESUFFIX= -plexpass Modified: head/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in ============================================================================== --- head/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in Fri Feb 28 13:57:57 2014 (r346517) +++ head/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in Fri Feb 28 13:58:36 2014 (r346518) @@ -1,5 +1,5 @@ #!/bin/sh -# Created by: Created by: KalleDK <plexmaintainer@k-moeller.dk> +# Created by: KalleDK <plexmaintainer@k-moeller.dk> # # $FreeBSD$ # @@ -48,7 +48,6 @@ plex_precmd() export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=${plexmediaserver_plexpass_maxplugins} export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=${plexmediaserver_plexpass_support_path} export PLEX_MEDIA_SERVER_PIDFILE=${pidfile} - if ${plexmediaserver_tmp}; then export PLEX_MEDIA_SERVER_TMPDIR=${plexmediaserver_plexpass_tmp}; fi export PATH="${SCRIPTPATH}/Resources/Python/bin:${PATH}" export LC_ALL="C" export LANG="C" @@ -61,6 +60,11 @@ plex_precmd() if [ ! -d "${plexmediaserver_plexpass_support_path}/Plex Media Server" ]; then install -d -g ${plexmediaserver_plexpass_group} -o ${plexmediaserver_plexpass_user} "${plexmediaserver_plexpass_support_path}/Plex Media Server"; fi + + if [ ${plexmediaserver_plexpass_tmp} ]; then + export TMPDIR=${plexmediaserver_plexpass_tmp}; + install -d -g ${plexmediaserver_plexpass_group} -o ${plexmediaserver_plexpass_user} "${plexmediaserver_plexpass_tmp}"; + fi } plex_startcmd() Modified: head/multimedia/plexmediaserver/Makefile ============================================================================== --- head/multimedia/plexmediaserver/Makefile Fri Feb 28 13:57:57 2014 (r346517) +++ head/multimedia/plexmediaserver/Makefile Fri Feb 28 13:58:36 2014 (r346518) @@ -3,7 +3,7 @@ PORTNAME= plexmediaserver PORTVERSION= 0.9.9.4.409 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= multimedia MASTER_SITES= http://plex.r.worldssl.net/plex-media-server/${PORTVERSION}-${PLEX_BUILD}/ DISTNAME= PlexMediaServer-${PORTVERSION}-${PLEX_BUILD}-freebsd-amd64 Modified: head/multimedia/plexmediaserver/files/plexmediaserver.in ============================================================================== --- head/multimedia/plexmediaserver/files/plexmediaserver.in Fri Feb 28 13:57:57 2014 (r346517) +++ head/multimedia/plexmediaserver/files/plexmediaserver.in Fri Feb 28 13:58:36 2014 (r346518) @@ -1,5 +1,5 @@ #!/bin/sh -# Created by: Created by: KalleDK <plexmaintainer@k-moeller.dk> +# Created by: KalleDK <plexmaintainer@k-moeller.dk> # # $FreeBSD$ # @@ -48,7 +48,6 @@ plex_precmd() export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=${plexmediaserver_maxplugins} export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=${plexmediaserver_support_path} export PLEX_MEDIA_SERVER_PIDFILE=${pidfile} - if ${plexmediaserver_tmp}; then export PLEX_MEDIA_SERVER_TMPDIR=${plexmediaserver_tmp}; fi export PATH="${SCRIPTPATH}/Resources/Python/bin:${PATH}" export LC_ALL="C" export LANG="C" @@ -61,6 +60,11 @@ plex_precmd() if [ ! -d "${plexmediaserver_support_path}/Plex Media Server" ]; then install -d -g ${plexmediaserver_group} -o ${plexmediaserver_user} "${plexmediaserver_support_path}/Plex Media Server"; fi + + if [ ${plexmediaserver_tmp} ]; then + export TMPDIR=${plexmediaserver_tmp}; + install -d -g ${plexmediaserver_group} -o ${plexmediaserver_user} "${plexmediaserver_tmp}"; + fi } plex_startcmd()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402281358.s1SDwa2K008747>