diff options
author | 2020-03-19 10:55:24 +0100 | |
---|---|---|
committer | 2020-03-20 03:31:25 -0500 | |
commit | 2045785e424b288a2beb3d308ad3991f3b64cfa4 (patch) | |
tree | 3ed57d442ef79486da6c5cc123200c16f361fd42 /net-mail/automx2/files | |
parent | dev-lang/ocaml: drop to ~hppa (diff) | |
download | gentoo-2045785e424b288a2beb3d308ad3991f3b64cfa4.tar.gz gentoo-2045785e424b288a2beb3d308ad3991f3b64cfa4.tar.bz2 gentoo-2045785e424b288a2beb3d308ad3991f3b64cfa4.zip |
www-servers/automx2: Change category to net-mail
Move existing Gentoo package www-servers/automx2 to net-mail/automx2.
Reasons for this change are as follows:
* Package automx2 replaces package net-mail/automx, which has already
been last-rited.
* Some developers raised objections against using www-servers/automx2.
While automx2 is a web service and hence uses web server technology,
it is not a web server in the way www-servers is understood.
As per https://devmanual.gentoo.org/ebuild-maintenance/package-moves/index.html
all changes are deliberately combined into a single commit to ensure
atomicity during the update.
Signed-off-by: Ralph Seichter <gentoo@seichter.de>
Closes: https://github.com/gentoo/gentoo/pull/15011
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'net-mail/automx2/files')
-rw-r--r-- | net-mail/automx2/files/conf | 20 | ||||
-rw-r--r-- | net-mail/automx2/files/confd | 8 | ||||
-rw-r--r-- | net-mail/automx2/files/init | 26 |
3 files changed, 54 insertions, 0 deletions
diff --git a/net-mail/automx2/files/conf b/net-mail/automx2/files/conf new file mode 100644 index 000000000000..ca19e0eebb68 --- /dev/null +++ b/net-mail/automx2/files/conf @@ -0,0 +1,20 @@ +[automx2] +# A typical production setup would use loglevel = WARNING +loglevel = WARNING +# Echo SQL commands into log? Used for debugging. +db_echo = no + +# In-memory SQLite database +#db_uri = sqlite:///:memory: + +# SQLite database in a UNIX-like file system +db_uri = sqlite:////var/lib/automx2/db.sqlite + +# MySQL database on a remote server. This example does not use an encrypted +# connection and is therefore *not* recommended for production use. +#db_uri = mysql://username:password@server.example.com/db + +# Number of proxy servers between automx2 and the client (default: 0). +# If your logs only show 127.0.0.1 or ::1 as the source IP for incoming +# connections, proxy_count probably needs to be changed. +#proxy_count = 1 diff --git a/net-mail/automx2/files/confd b/net-mail/automx2/files/confd new file mode 100644 index 000000000000..5a58d946aa23 --- /dev/null +++ b/net-mail/automx2/files/confd @@ -0,0 +1,8 @@ +# Additional parameters passed to Flask +#AUTOMX2_ARGS="--host 127.0.0.1 --port 4243" + +# Configuration file +#AUTOMX2_CONF="/etc/automx2.conf" + +# Process owner (choose a non-privileged user) +#AUTOMX2_USER="automx2" diff --git a/net-mail/automx2/files/init b/net-mail/automx2/files/init new file mode 100644 index 000000000000..466461a6cd93 --- /dev/null +++ b/net-mail/automx2/files/init @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +: ${AUTOMX2_CONF:="/etc/${RC_SVCNAME}.conf"} +: ${AUTOMX2_USER:="automx2"} +: ${AUTOMX2_ARGS:="--port 4243"} + +command="/usr/bin/python" +command_args="/usr/bin/flask run ${AUTOMX2_ARGS}" +command_background="true" +command_user="${AUTOMX2_USER}" +pidfile="/run/${RC_SVCNAME}.pid" +required_files="${AUTOMX2_CONF}" + +depend() { + use logger net + before nginx +} + +start_pre() { + export AUTOMX2_CONF + export EPYTHON="@EPYTHON@" + export FLASK_APP="automx2.server:app" + export FLASK_ENV="production" +} |