git: 306632abd1dd - main - www/py-freenit: Update 0.3.3 → 0.3.5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Oct 2024 00:39:42 UTC
The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=306632abd1ddd0cac0229cb6a2436a0e943b60d3 commit 306632abd1ddd0cac0229cb6a2436a0e943b60d3 Author: Goran Mekić <meka@tilda.center> AuthorDate: 2024-10-14 00:37:20 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-10-14 00:37:20 +0000 www/py-freenit: Update 0.3.3 → 0.3.5 Changelogs: https://github.com/freenit-framework/backend/releases/tag/0.3.4 https://github.com/freenit-framework/backend/releases/tag/0.3.5 Fix start script. Pet portclippy. PR: 282020 --- www/py-freenit/Makefile | 5 +++-- www/py-freenit/distinfo | 6 +++--- www/py-freenit/files/freenit.in | 12 ++++-------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/www/py-freenit/Makefile b/www/py-freenit/Makefile index 0e9ac86de410..94275a933bd8 100644 --- a/www/py-freenit/Makefile +++ b/www/py-freenit/Makefile @@ -1,5 +1,5 @@ PORTNAME= freenit -DISTVERSION= 0.3.3 +DISTVERSION= 0.3.5 CATEGORIES= www devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -25,8 +25,9 @@ USES= python USE_PYTHON= autoplist concurrent pep517 pytest USE_RC_SUBR= freenit -TEST_ENV= PYTHONPATH=${WRKSRC}/src TEST_ARGS= --ignore=${PORTNAME}/project +TEST_ENV= PYTHONPATH=${WRKSRC}/src + NO_ARCH= yes SUB_LIST= PYTHON_VER=${PYTHON_VER} diff --git a/www/py-freenit/distinfo b/www/py-freenit/distinfo index a4485617285b..d570480932e2 100644 --- a/www/py-freenit/distinfo +++ b/www/py-freenit/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1715669629 -SHA256 (freenit-0.3.3.tar.gz) = bbcadbaa97a8d1bce65ecce062f17acbf6b37eb1bdbd70b32f1c8e87af6f983b -SIZE (freenit-0.3.3.tar.gz) = 25508 +TIMESTAMP = 1728840766 +SHA256 (freenit-0.3.5.tar.gz) = d0ccbe2be60f1b7fa3ca7d9ac6c463a7a1d37dc2f14a7b628efdcf98751cdbd2 +SIZE (freenit-0.3.5.tar.gz) = 25214 diff --git a/www/py-freenit/files/freenit.in b/www/py-freenit/files/freenit.in index c3e59410873c..59d56dd7c803 100644 --- a/www/py-freenit/files/freenit.in +++ b/www/py-freenit/files/freenit.in @@ -16,21 +16,17 @@ load_rc_config $name : ${freenit_host:="0.0.0.0"} : ${freenit_port:="8000"} : ${freenit_module:="main:app"} +: ${freenit_user:="www"} pidfile="/var/run/${name}.pid" start_cmd="${name}_start" procname="%%PREFIX%%/bin/python%%PYTHON_VER%%" freenit_start() { - echo -n "Starting ${name} ... " + startmsg -n "Starting ${name}" cd "${freenit_project_root}" - /usr/sbin/daemon -p "${pidfile}" -S "%%PREFIX%%/bin/uvicorn" --host "${freenit_host}" --port "${freenit_port}" --workers "${freenit_workers}" "${freenit_module}" - status=$? - if [ "${status}" = "0" ]; then - echo "done" - else - echo "failed!" - fi + /usr/sbin/daemon -u "${freenit_user}" -p "${pidfile}" -S "%%PREFIX%%/bin/uvicorn" --host "${freenit_host}" --port "${freenit_port}" --workers "${freenit_workers}" "${freenit_module}" + startmsg "." } run_rc_command $*