From nobody Tue Apr 23 10:47:33 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VNzN61rJVz5Jx4M; Tue, 23 Apr 2024 10:47:34 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VNzN60BfFz4PsR; Tue, 23 Apr 2024 10:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713869254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IVLEW5mTYEaigyemjG4CYvX+xBScP2E946Elgsnm+CY=; b=WkcLJhH70+SH0b7nnAPp073cFR35Xn6y21ZDeSv8rR2+GyCSVC+n2dTTVIXMK5Bfn66MLX XvK6TI2w71OX6MpEeikRdaUox42ycAQTp/0fJiAZFw5Bp2S84o9Lon68obPmYTrjo3HCrk hPC7m55buAekWXg8Z//xS6aFQLJj2hJ5TzPJZjykrwHF0LvT9cEXcvOO1Pq8H5OVWjSc1Y YLxfeh4AariW5QEivMURyzaz0e/nv8it5bC8G9zdgKYu3rKJ706dW6suxFAkZHf1HAfion V4aokuYP9czeEGV3V77p4DW97NSSMrEkErSCGNJkPe/MGP5rmezcUWy7DJg38A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713869254; a=rsa-sha256; cv=none; b=IEl7apI3AvSh3A/s+opvu+88iAvMVuK6nA9jRpiEQ51MICvZ3tPVrERJCY7QoJ6V4jnqjm M3CtXLAmZN4YXWKWgWgyDdzhqb5vPqtf1t1FeCka0LJ+b7DsNV6jYqw96dyXHEVy1PNuVw 9qNfx4DuLbq43CxEq3CBkjp/HYmABrYbeBSiCSnOn4Dvnew9hZ4jMtTJ10tlIvaapbCMYU IbiLU+4SRcDXl5qItFn9wqf9EM39bQIwHv+Ev9cplxiU85sS5FqaWepVLFhLp3S4tjptSM rXm6lBuT2nLcejPPBJ2NOAVdla2O4BSmiCad7YvRG4QOx4sM4EL+dnAlNxPaRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713869254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IVLEW5mTYEaigyemjG4CYvX+xBScP2E946Elgsnm+CY=; b=hFXHtaCDXPnj1avLV5yVOJE5NAK+KZ9CI91jdjHBlZD7Flp3bbNZi72llatgm9ETljAl2W fxY9DXtq1Hel5QkIe8j9SrOkJPxQ5/k8g7ppEOpb4HwWd6qGVpvEheJE5bQaR7qy+TMHIn t0VwXelyFvEwQ4mdl6HPHQhTNHJjzo4g+B/eKUlvS+sGuFAFwPgtwsIFsXD2flVtJUXvHI NTx1Wej1IS0gcwgviq2jbnemh18uWP/2V1bnSwQLmZSVWjQfSbMVnKuOdbarPJZHYJ38EL 9/hyVffnxME0gYHRSS3JJcmgY1KftTU4QKPhM+oKcgWuC3nqB2qz4VRL80otbQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VNzN56wb2zT8W; Tue, 23 Apr 2024 10:47:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43NAlXfL059962; Tue, 23 Apr 2024 10:47:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43NAlX6j059959; Tue, 23 Apr 2024 10:47:33 GMT (envelope-from git) Date: Tue, 23 Apr 2024 10:47:33 GMT Message-Id: <202404231047.43NAlX6j059959@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: ee27d3fcfc3b - main - www/py-gunicorn: Update version 21.2.0=>22.0.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee27d3fcfc3b15ac8573d080296001a091d2c47c Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee27d3fcfc3b15ac8573d080296001a091d2c47c commit ee27d3fcfc3b15ac8573d080296001a091d2c47c Author: Muhammad Moinur Rahman AuthorDate: 2024-04-23 09:18:19 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2024-04-23 10:47:13 +0000 www/py-gunicorn: Update version 21.2.0=>22.0.0 - Add rc file [1] Changelog: https://github.com/benoitc/gunicorn/releases/tag/22.0.0 PR: 278447 [1] Reported by: me@svmhdvn.name --- GIDs | 2 +- UIDs | 2 +- www/py-gunicorn/Makefile | 21 +++++++++++++++++---- www/py-gunicorn/distinfo | 6 +++--- www/py-gunicorn/files/gunicorn.in | 38 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+), 9 deletions(-) diff --git a/GIDs b/GIDs index e6634767c5b1..c406ff64d990 100644 --- a/GIDs +++ b/GIDs @@ -283,7 +283,7 @@ mumble-server:*:339: wildfire:*:340: stunnel:*:341: openfire:*:342: -# free: 343 +gunicorn:*:343: # free: 344 # free: 345 # free: 346 diff --git a/UIDs b/UIDs index 884fe4724496..6c7bb79453ba 100644 --- a/UIDs +++ b/UIDs @@ -288,7 +288,7 @@ mumble-server:*:339:339::0:0:& User:/nonexistent:/usr/sbin/nologin wildfire:*:340:340::0:0:Wildfire Daemon:/nonexistent:/usr/sbin/nologin stunnel:*:341:341::0:0:Stunnel Daemon:/nonexistent:/usr/sbin/nologin openfire:*:342:342::0:0:Openfire IM Daemon:/nonexistent:/usr/sbin/nologin -# free: 343 +gunicorn:*:343:343::0:0:Gunicorn Daemon:/nonexistent:/usr/sbin/nologin # free: 344 # free: 345 # free: 346 diff --git a/www/py-gunicorn/Makefile b/www/py-gunicorn/Makefile index 95024a4562ed..bf9f7bf62a8d 100644 --- a/www/py-gunicorn/Makefile +++ b/www/py-gunicorn/Makefile @@ -1,9 +1,8 @@ PORTNAME= gunicorn -PORTVERSION= 21.2.0 -PORTREVISION= 1 +DISTVERSION= 22.0.0 CATEGORIES= www python -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= bofh@FreeBSD.org COMMENT= WSGI HTTP Server for UNIX @@ -12,13 +11,21 @@ WWW= https://gunicorn.org/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=6.4.0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} USES= cpe python -USE_PYTHON= autoplist concurrent distutils pytest +USE_PYTHON= autoplist concurrent pep517 pytest +USE_RC_SUBR= gunicorn NO_ARCH= yes +SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}" + +USERS= gunicorn +GROUPS= gunicorn OPTIONS_DEFINE= PROCTITLE OPTIONS_DEFAULT= PROCTITLE @@ -35,4 +42,10 @@ GEVENT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=1.4.0:devel/py-gevent@${PY_FL PROCTITLE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR} TORNADO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tornado>=0.2:www/py-tornado@${PY_FLAVOR} +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/examples/example_config.py \ + ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/gunicorn.conf.py.sample + @${ECHO} "@sample etc/gunicorn/gunicorn.conf.py.sample" >> ${TMPPLIST} + .include diff --git a/www/py-gunicorn/distinfo b/www/py-gunicorn/distinfo index 19a46fe55a36..ee56caad4521 100644 --- a/www/py-gunicorn/distinfo +++ b/www/py-gunicorn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1689844301 -SHA256 (gunicorn-21.2.0.tar.gz) = 88ec8bff1d634f98e61b9f65bc4bf3cd918a90806c6f5c48bc5603849ec81033 -SIZE (gunicorn-21.2.0.tar.gz) = 3632557 +TIMESTAMP = 1713862743 +SHA256 (gunicorn-22.0.0.tar.gz) = 4a0b436239ff76fb33f11c07a16482c521a7e09c1ce3cc293c2330afe01bec63 +SIZE (gunicorn-22.0.0.tar.gz) = 3639760 diff --git a/www/py-gunicorn/files/gunicorn.in b/www/py-gunicorn/files/gunicorn.in new file mode 100644 index 000000000000..f0c995224af2 --- /dev/null +++ b/www/py-gunicorn/files/gunicorn.in @@ -0,0 +1,38 @@ +#!/bin/sh +# +# PROVIDE: gunicorn +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable gunicorn: +# gunicorn_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable gunicorn. +# + +. /etc/rc.subr + +name=gunicorn +rcvar=gunicorn_enable + +# set defaults + +load_rc_config $name + +: ${gunicorn_enable:=NO} +: ${gunicorn_config=%%PREFIX%%/gunicorn/gunicorn.conf.py} +: ${gunicorn_user=%%USERS%%} +: ${gunicorn_group=%%GROUPS%%} + +pidfile="/var/run/${name}.pid" +command=/usr/sbin/daemon +command_args="-P ${pidfile} -f -ST ${name} %%PREFIX%%/bin/gunicorn -c ${gunicorn_config}" +required_files="${gunicorn_config}" +start_precmd="gunicorn_precmd" + +gunicorn_precmd() +{ + install -o ${gunicorn_user} /dev/null ${pidfile} +} + +run_rc_command "$1"