svn commit: r415508 - in head/multimedia/plexpy: . files
Mark Felder
feld at FreeBSD.org
Thu May 19 15:21:38 UTC 2016
Author: feld
Date: Thu May 19 15:21:37 2016
New Revision: 415508
URL: https://svnweb.freebsd.org/changeset/ports/415508
Log:
multimedia/plexpy: Warn users if no timezone is set
If you run plexpy in a jail and do not set the timezone the Plexpy
process will fail to start. Several users have run into this.
Modified:
head/multimedia/plexpy/Makefile
head/multimedia/plexpy/files/plexpy.in
Modified: head/multimedia/plexpy/Makefile
==============================================================================
--- head/multimedia/plexpy/Makefile Thu May 19 14:52:41 2016 (r415507)
+++ head/multimedia/plexpy/Makefile Thu May 19 15:21:37 2016 (r415508)
@@ -3,6 +3,7 @@
PORTNAME= plexpy
PORTVERSION= 1.4.0
+PORTREVISION= 1
CATEGORIES= multimedia python
DISTVERSIONPREFIX=v
Modified: head/multimedia/plexpy/files/plexpy.in
==============================================================================
--- head/multimedia/plexpy/files/plexpy.in Thu May 19 14:52:41 2016 (r415507)
+++ head/multimedia/plexpy/files/plexpy.in Thu May 19 15:21:37 2016 (r415508)
@@ -25,5 +25,15 @@ pidfile=%%PREFIX%%/plexpy/plexpy.pid
command_interpreter=%%PYTHON_CMD%%
command=%%PREFIX%%/plexpy/PlexPy.py
command_args="-d --nolaunch --pid ${pidfile}"
+start_precmd=plexpy_prestart
+
+plexpy_prestart()
+{
+ if ! [ -e /etc/localtime ] ; then
+ echo "Plexpy needs the system timezone to be set."
+ echo "Please run /usr/sbin/tzsetup"
+ exit 1
+ fi
+}
run_rc_command "$1"
More information about the svn-ports-head
mailing list