From owner-svn-ports-head@freebsd.org Thu May 19 15:21:38 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC22CB4121A; Thu, 19 May 2016 15:21:38 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D62A1163; Thu, 19 May 2016 15:21:38 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4JFLb3Q003452; Thu, 19 May 2016 15:21:37 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4JFLbtd003450; Thu, 19 May 2016 15:21:37 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201605191521.u4JFLbtd003450@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Thu, 19 May 2016 15:21:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415508 - in head/multimedia/plexpy: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 15:21:38 -0000 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"