aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2014-02-28 21:58:36 +0800
committerfeld <feld@FreeBSD.org>2014-02-28 21:58:36 +0800
commit7f78d85074723bdf79a65d0b28fec9e662755962 (patch)
tree4ad45133df9aa313f8a71a2d70f9ebf665d00ed4 /multimedia
parenta01eb936fa13ed3a42364a2233fd24fe56eb0f0f (diff)
downloadfreebsd-ports-gnome-7f78d85074723bdf79a65d0b28fec9e662755962.tar.gz
freebsd-ports-gnome-7f78d85074723bdf79a65d0b28fec9e662755962.tar.zst
freebsd-ports-gnome-7f78d85074723bdf79a65d0b28fec9e662755962.zip
Fix setting a custom tmp dir for Plex. It was broken and the env was
wrong. Plex obeys TMPDIR env now.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/plexmediaserver-plexpass/Makefile2
-rw-r--r--multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in8
-rw-r--r--multimedia/plexmediaserver/Makefile2
-rw-r--r--multimedia/plexmediaserver/files/plexmediaserver.in8
4 files changed, 14 insertions, 6 deletions
diff --git a/multimedia/plexmediaserver-plexpass/Makefile b/multimedia/plexmediaserver-plexpass/Makefile
index b1d9a8da7ff5..fb284ac37b44 100644
--- a/multimedia/plexmediaserver-plexpass/Makefile
+++ b/multimedia/plexmediaserver-plexpass/Makefile
@@ -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
diff --git a/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in b/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in
index 3438faf400bc..2c1147d64c1d 100644
--- a/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in
+++ b/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in
@@ -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()
diff --git a/multimedia/plexmediaserver/Makefile b/multimedia/plexmediaserver/Makefile
index 84ab31f7ef0b..492076851b52 100644
--- a/multimedia/plexmediaserver/Makefile
+++ b/multimedia/plexmediaserver/Makefile
@@ -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
diff --git a/multimedia/plexmediaserver/files/plexmediaserver.in b/multimedia/plexmediaserver/files/plexmediaserver.in
index abc7d8ab21c2..54f6e4c3e318 100644
--- a/multimedia/plexmediaserver/files/plexmediaserver.in
+++ b/multimedia/plexmediaserver/files/plexmediaserver.in
@@ -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()