View | Details | Raw Unified | Return to bug 278447
Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 283-289 mumble-server:*:339: Link Here
283
wildfire:*:340:
283
wildfire:*:340:
284
stunnel:*:341:
284
stunnel:*:341:
285
openfire:*:342:
285
openfire:*:342:
286
# free: 343
286
gunicorn:*:343:
287
# free: 344
287
# free: 344
288
# free: 345
288
# free: 345
289
# free: 346
289
# free: 346
(-)b/UIDs (-1 / +1 lines)
Lines 288-294 mumble-server:*:339:339::0:0:& User:/nonexistent:/usr/sbin/nologin Link Here
288
wildfire:*:340:340::0:0:Wildfire Daemon:/nonexistent:/usr/sbin/nologin
288
wildfire:*:340:340::0:0:Wildfire Daemon:/nonexistent:/usr/sbin/nologin
289
stunnel:*:341:341::0:0:Stunnel Daemon:/nonexistent:/usr/sbin/nologin
289
stunnel:*:341:341::0:0:Stunnel Daemon:/nonexistent:/usr/sbin/nologin
290
openfire:*:342:342::0:0:Openfire IM Daemon:/nonexistent:/usr/sbin/nologin
290
openfire:*:342:342::0:0:Openfire IM Daemon:/nonexistent:/usr/sbin/nologin
291
# free: 343
291
gunicorn:*:343:343::0:0:Gunicorn Daemon:/nonexistent:/usr/sbin/nologin
292
# free: 344
292
# free: 344
293
# free: 345
293
# free: 345
294
# free: 346
294
# free: 346
(-)b/www/py-gunicorn/Makefile (-1 / +10 lines)
Lines 1-6 Link Here
1
PORTNAME=	gunicorn
1
PORTNAME=	gunicorn
2
PORTVERSION=	21.2.0
2
PORTVERSION=	21.2.0
3
PORTREVISION=	1
3
PORTREVISION=	2
4
CATEGORIES=	www python
4
CATEGORIES=	www python
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
MASTER_SITES=	PYPI
6
MASTER_SITES=	PYPI
Lines 8-13 MASTER_SITES= PYPI Link Here
8
MAINTAINER=	bofh@FreeBSD.org
8
MAINTAINER=	bofh@FreeBSD.org
9
COMMENT=	WSGI HTTP Server for UNIX
9
COMMENT=	WSGI HTTP Server for UNIX
10
WWW=		https://gunicorn.org/
10
WWW=		https://gunicorn.org/
11
USERS=		gunicorn
12
GROUPS=		gunicorn
13
USE_RC_SUBR=	gunicorn
11
14
12
LICENSE=	MIT
15
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
16
LICENSE_FILE=	${WRKSRC}/LICENSE
Lines 20-25 USE_PYTHON= autoplist concurrent distutils pytest Link Here
20
23
21
NO_ARCH=	yes
24
NO_ARCH=	yes
22
25
26
SUB_LIST=	USERS="${USERS}" GROUPS="${GROUPS}"
27
23
OPTIONS_DEFINE=		PROCTITLE
28
OPTIONS_DEFINE=		PROCTITLE
24
OPTIONS_DEFAULT=	PROCTITLE
29
OPTIONS_DEFAULT=	PROCTITLE
25
OPTIONS_GROUP=		WORKERS
30
OPTIONS_GROUP=		WORKERS
Lines 35-38 GEVENT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gevent>=1.4.0:devel/py-gevent@${PY_FL Link Here
35
PROCTITLE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR}
40
PROCTITLE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR}
36
TORNADO_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tornado>=0.2:www/py-tornado@${PY_FLAVOR}
41
TORNADO_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tornado>=0.2:www/py-tornado@${PY_FLAVOR}
37
42
43
post-install:
44
	@${MKDIR} ${STAGEDIR}/${ETCDIR}
45
	${INSTALL_DATA} files/gunicorn.conf.py ${STAGEDIR}/${ETCDIR}/gunicorn.conf.py.sample
46
38
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)b/www/py-gunicorn/files/gunicorn.conf.py (+8 lines)
Added Link Here
1
# Sample Gunicorn configuration file.
2
# For more information, see
3
# https://docs.gunicorn.org/en/stable/configure.html#configuration-file
4
5
import multiprocessing
6
7
bind = '127.0.0.1:8000'
8
workers = multiprocessing.cpu_count() * 2 + 1
(-)b/www/py-gunicorn/files/gunicorn.in (+40 lines)
Added Link Here
1
#!/bin/sh
2
# Created by: Siva Mahadevan <me@svmhdvn.name>
3
4
# PROVIDE: gunicorn
5
# REQUIRE: DAEMON
6
# BEFORE: LOGIN
7
# KEYWORD: shutdown
8
9
#
10
# Add the following lines to /etc/rc.conf to enable gunicorn:
11
#  gunicorn_enable (bool):    Set to "NO" by default.
12
#                       Set it to "YES" to enable gunicorn.
13
#
14
15
. /etc/rc.subr
16
17
name=gunicorn
18
rcvar=gunicorn_enable
19
20
# set defaults
21
22
load_rc_config $name
23
24
: ${gunicorn_enable:=NO}
25
: ${gunicorn_config=%%ETCDIR%%/gunicorn.conf.py}
26
: ${gunicorn_user=%%USERS%%}
27
: ${gunicorn_group=%%GROUPS%%}
28
29
pidfile="/var/run/${name}.pid"
30
command=/usr/sbin/daemon
31
command_args="-P ${pidfile} -f -ST ${name} %%PREFIX%%/bin/gunicorn -c ${gunicorn_config}"
32
required_files="${gunicorn_config}"
33
start_precmd="gunicorn_precmd"
34
35
gunicorn_precmd()
36
{
37
	install -o ${gunicorn_user} /dev/null ${pidfile}
38
}
39
40
run_rc_command "$1"
(-)b/www/py-gunicorn/pkg-plist (-1 / +1 lines)
Added Link Here
0
- 
1
@sample %%ETCDIR%%/gunicorn.conf.py.sample

Return to bug 278447