1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix setting a custom tmp dir for Plex. It was broken and the env was

wrong.

Plex obeys TMPDIR env now.
This commit is contained in:
Mark Felder 2014-02-28 13:58:36 +00:00
parent f3465ba031
commit 8c92b0bd07
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346518
4 changed files with 14 additions and 6 deletions

View File

@ -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

View File

@ -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()

View File

@ -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

View File

@ -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()