net-mail/mailman-web: Adding init script

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2025-03-24 16:54:20 +01:00
parent 0b8dad6a69
commit 743080cc79
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/sbin/openrc-run
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="mailman daemon"
command=/usr/lib/python-exec/python3.11/gunicorn
command_args="-c /etc/mailman3/gunicorn_config.py mailman_web.wsgi"
command_user=mailman:mailman
directory=/opt/mailman
error_log=/var/log/mailman/"${RC_SVCNAME}".log
output_log=/var/log/mailman/"${RC_SVCNAME}".log
supervisor=supervise-daemon

View file

@ -18,7 +18,14 @@ IUSE="mysql"
RDEPEND="
>=dev-python/django-4.0[${PYTHON_USEDEP}]
<dev-python/django-4.3
dev-python/psycopg:2[${PYTHON_USEDEP}]
dev-python/whoosh[${PYTHON_USEDEP}]
net-mail/HyperKitty[${PYTHON_USEDEP}]
net-mail/postorius[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
"
src_install() {
distutils-r1_src_install
newinitd "${FILESDIR}"/${PN}.initd ${PN}
}