From owner-svn-ports-head@freebsd.org Sun Jun 9 05:47:28 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 567D915BE156; Sun, 9 Jun 2019 05:47:28 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAB7E89CFD; Sun, 9 Jun 2019 05:47:27 +0000 (UTC) (envelope-from ultima@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C534C2681E; Sun, 9 Jun 2019 05:47:27 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x595lRx2025410; Sun, 9 Jun 2019 05:47:27 GMT (envelope-from ultima@FreeBSD.org) Received: (from ultima@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x595lR4M025407; Sun, 9 Jun 2019 05:47:27 GMT (envelope-from ultima@FreeBSD.org) Message-Id: <201906090547.x595lR4M025407@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ultima set sender to ultima@FreeBSD.org using -f From: Richard Gallamore Date: Sun, 9 Jun 2019 05:47:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r503787 - in head/www/seahub: . files X-SVN-Group: ports-head X-SVN-Commit-Author: ultima X-SVN-Commit-Paths: in head/www/seahub: . files X-SVN-Commit-Revision: 503787 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: EAB7E89CFD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.95)[-0.954,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 09 Jun 2019 05:47:28 -0000 Author: ultima Date: Sun Jun 9 05:47:27 2019 New Revision: 503787 URL: https://svnweb.freebsd.org/changeset/ports/503787 Log: Change currently unused init var seahub_host so there is no breakage for current users of seahub. Change hard coded 0.0.0.0 for gunicorn start to seahub_host. PR: 237366 Submitted by: Boris Tassou Modified: head/www/seahub/Makefile head/www/seahub/files/seahub.in Modified: head/www/seahub/Makefile ============================================================================== --- head/www/seahub/Makefile Sun Jun 9 05:46:35 2019 (r503786) +++ head/www/seahub/Makefile Sun Jun 9 05:47:27 2019 (r503787) @@ -4,7 +4,7 @@ PORTNAME= seahub DISTVERSIONPREFIX= v DISTVERSION= ${SEAHUB_VER} DISTVERSIONSUFFIX= -pro -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MAINTAINER= ultima@FreeBSD.org Modified: head/www/seahub/files/seahub.in ============================================================================== --- head/www/seahub/files/seahub.in Sun Jun 9 05:46:35 2019 (r503786) +++ head/www/seahub/files/seahub.in Sun Jun 9 05:47:27 2019 (r503787) @@ -29,7 +29,7 @@ # seafile_logdir (str): Set to "" by default will use the path # %%PREFIX%%/%%HAIWENDIR%%/logs. # Set it to a different path. -# seahub_host (int): Default is 127.0.0.1. +# seahub_host (int): Default is 0.0.0.0. # seahub_port (int): Default is 8000. . /etc/rc.subr @@ -53,7 +53,7 @@ clearsessions_cmd="seahub_clearsessions" : ${seafile_conf:="%%PREFIX%%/%%HAIWENDIR%%/conf"} : ${seafile_datadir:="`cat ${seafile_ccnet}/seafile.ini 2>/dev/null`"} : ${seafile_logdir:="%%PREFIX%%/%%HAIWENDIR%%/logs"} -: ${seahub_host:="127.0.0.1"} +: ${seahub_host:="0.0.0.0"} : ${seahub_port:="8000"} manage_py=${seafile_path}/seahub/manage.py @@ -123,7 +123,7 @@ seahub_start() check_required_before; before_start; echo "Starting seahub at port ${seahub_port} ..." - su -m "${seafile_user}" -c "$command \"${gunicorn_exe}\" seahub.wsgi:application -c \"${gunicorn_conf}\" -b \"0.0.0.0:${seahub_port}\" --preload --chdir \"$seafile_path/seahub\"" + su -m "${seafile_user}" -c "$command \"${gunicorn_exe}\" seahub.wsgi:application -c \"${gunicorn_conf}\" -b \"${seahub_host}:${seahub_port}\" --preload --chdir \"$seafile_path/seahub\"" # Ensure seahub is started successfully sleep 5