Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2019 09:36:02 -0700
From:      Ultima <ultima@ultimasbox.com>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org,  svn-ports-head@freebsd.org
Cc:        FreeBSD Ports Security Team <ports-secteam@freebsd.org>
Subject:   Re: svn commit: r503787 - in head/www/seahub: . files
Message-ID:  <CANJ8om5KP9ms8AX3aEjwXabf5Fwtt_icsxSdN%2BTiw8b7pveXCQ@mail.gmail.com>
In-Reply-To: <201906090547.x595lR4M025407@repo.freebsd.org>
References:  <201906090547.x595lR4M025407@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Port-secteam,

MFC 2019Q2 request for this commit.

Thanks and best regards,
Richard Gallamore

On Sat, Jun 8, 2019 at 10:47 PM Richard Gallamore <ultima@freebsd.org>
wrote:

> 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 <boris.tassou@sec^>
>
> 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
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANJ8om5KP9ms8AX3aEjwXabf5Fwtt_icsxSdN%2BTiw8b7pveXCQ>