diff options
author | Ralph Seichter <github@seichter.de> | 2019-12-22 22:51:01 +0100 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2019-12-23 15:12:53 -0500 |
commit | 4a55f80c21dd800e1cc340f63b70b4b60a623413 (patch) | |
tree | abc8e1d1566511a523f984979d652ad3b1814530 /www-servers | |
parent | acct-user/automx: For www-servers/automx2 (437) (diff) | |
download | gentoo-4a55f80c21dd800e1cc340f63b70b4b60a623413.tar.gz gentoo-4a55f80c21dd800e1cc340f63b70b4b60a623413.tar.bz2 gentoo-4a55f80c21dd800e1cc340f63b70b4b60a623413.zip |
www-servers/automx2: New package
automx2 makes configuring a mail account easy. It unites methods
for automated mailbox configuration from Apple (mobileconfig),
Microsoft (autodiscover) and Mozilla (autoconfig) in one tool.
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Ralph Seichter <gentoo@seichter.de>
Closes: https://github.com/gentoo/gentoo/pull/14106
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/automx2/Manifest | 1 | ||||
-rw-r--r-- | www-servers/automx2/automx2-2019.0.ebuild | 40 | ||||
-rw-r--r-- | www-servers/automx2/files/conf | 20 | ||||
-rw-r--r-- | www-servers/automx2/files/confd | 8 | ||||
-rw-r--r-- | www-servers/automx2/files/init | 26 | ||||
-rw-r--r-- | www-servers/automx2/metadata.xml | 26 |
6 files changed, 121 insertions, 0 deletions
diff --git a/www-servers/automx2/Manifest b/www-servers/automx2/Manifest new file mode 100644 index 000000000000..ac9e496c8d57 --- /dev/null +++ b/www-servers/automx2/Manifest @@ -0,0 +1 @@ +DIST automx2-2019.0.tar.bz2 46670 BLAKE2B 6f62b4429be8046fce18ccba6827879a99627d8fbe9cf7973d8059e87b4968a280b62d5d005aaed3b0e1074053f4a6355c34f2cdce2f06a9afb14c52b4504fb7 SHA512 e494a48ffd3e6d133a89db5afd1dc75116a8efcc41f0571a24271bcbe6074c86d62184ce00bae9ced888a70be7d20f2a3614f28007d4481537d42c680dca4daa diff --git a/www-servers/automx2/automx2-2019.0.ebuild b/www-servers/automx2/automx2-2019.0.ebuild new file mode 100644 index 000000000000..1ae32210a3a2 --- /dev/null +++ b/www-servers/automx2/automx2-2019.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_7 ) + +inherit distutils-r1 + +DESCRIPTION="Email client autoconfiguration service" +HOMEPAGE="https://automx.org/" +SRC_URI="https://gitlab.com/automx/automx2/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="acct-user/automx2 + $(python_gen_cond_dep \ + '>=dev-python/flask-migrate-2.5.2[${PYTHON_MULTI_USEDEP}]' python3_{7} + )" +RDEPEND="${BDEPEND}" + +python_prepare_all() { + sed -i -e "/('scripts'/d" setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + export AUTOMX2_CONF="tests/unittest.conf" + ${EPYTHON} -m unittest discover tests/ || die +} + +python_install_all() { + sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}" + newconfd "${FILESDIR}/confd" "${PN}" + insinto /etc + newins "${FILESDIR}/conf" "${PN}.conf" + distutils-r1_python_install_all +} diff --git a/www-servers/automx2/files/conf b/www-servers/automx2/files/conf new file mode 100644 index 000000000000..ca19e0eebb68 --- /dev/null +++ b/www-servers/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/www-servers/automx2/files/confd b/www-servers/automx2/files/confd new file mode 100644 index 000000000000..5a58d946aa23 --- /dev/null +++ b/www-servers/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/www-servers/automx2/files/init b/www-servers/automx2/files/init new file mode 100644 index 000000000000..466461a6cd93 --- /dev/null +++ b/www-servers/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" +} diff --git a/www-servers/automx2/metadata.xml b/www-servers/automx2/metadata.xml new file mode 100644 index 000000000000..9b1d67b1011b --- /dev/null +++ b/www-servers/automx2/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gentoo@seichter.de</email> + <name>Ralph Seichter</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + automx2 makes configuring a mail account easy. It unites + methods for automated mailbox configuration from Apple + (mobileconfig), Microsoft (autodiscover) and Mozilla + (autoconfig) in one tool. + </longdescription> + <upstream> + <doc>https://gitlab.com/automx/automx2/blob/master/doc/automx2.adoc</doc> + <maintainer type="person"> + <email>automx2@seichter.de</email> + <name>Ralph Seichter</name> + </maintainer> + <remote-id type="gitlab">automx/automx2</remote-id> + </upstream> +</pkgmetadata> |