diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /net-mail/automx2 | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'net-mail/automx2')
-rw-r--r-- | net-mail/automx2/Manifest | 8 | ||||
-rw-r--r-- | net-mail/automx2/automx2-2019.0.ebuild | 43 | ||||
-rw-r--r-- | net-mail/automx2/automx2-2020.1-r1.ebuild | 44 | ||||
-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 | ||||
-rw-r--r-- | net-mail/automx2/metadata.xml | 27 |
7 files changed, 176 insertions, 0 deletions
diff --git a/net-mail/automx2/Manifest b/net-mail/automx2/Manifest new file mode 100644 index 000000000000..8f695796c1e4 --- /dev/null +++ b/net-mail/automx2/Manifest @@ -0,0 +1,8 @@ +AUX conf 721 BLAKE2B 976a2936da5e9eef71d9d08f7f12c51151549c23c27918de28da355e87e4927f84cc63904ab0feb0d10a11326ce6e44cc11531d65f6abe3d1ce213ea2e632e24 SHA512 f931acb2e5060872219709b525d64cae630062eb842e55614d57324ff5e801b4b9a99faf47c706ffe67822b29a7fb680ed59db550470afa9ded80621d4bbe3b8 +AUX confd 213 BLAKE2B 2573f19bdc9022357f2f92ff17d84a1e77078c6c05a46a09b6e57ab7132d1f1078fb5003640f83213f746f94e3ab5b482b01d92feb94684665eb4e796a642841 SHA512 6c04de3ef26fd132269532c7bdca3263e95cebf5078ddd57e8ebff62229fabfb64b8ad4d988dfe99c9611c5d1081b4d3862f09d11c08aa1aabc1d5bc7c987439 +AUX init 611 BLAKE2B f84cd718a1ecfe2ed36fb875bde156e6b1700da5ddd115fb841a5d8cae638369238779647c113e1fea50a36069bdb1528917b31ca93b6d8d72686eedd7315c7a SHA512 3fccc3567428e1493daabc0bae87fb769bf7d8d807775ca7d1d3d7e4fdc982b176b3985f8b3b86a1dcbcab001227c685fdba7e08a8a343a2540ee3913412c721 +DIST automx2-2019.0.tar.bz2 46670 BLAKE2B 6f62b4429be8046fce18ccba6827879a99627d8fbe9cf7973d8059e87b4968a280b62d5d005aaed3b0e1074053f4a6355c34f2cdce2f06a9afb14c52b4504fb7 SHA512 e494a48ffd3e6d133a89db5afd1dc75116a8efcc41f0571a24271bcbe6074c86d62184ce00bae9ced888a70be7d20f2a3614f28007d4481537d42c680dca4daa +DIST automx2-2020.1.tar.bz2 49405 BLAKE2B 2c9b26300e32e613f622e0b3a39b7f408d22e22638d61da3c93f5d448fe3ebb325e9a0004e3351abed2c9e427373c42637e3539831c04cda8e65a4d1bba1773e SHA512 823e569eacedcf49d53f8ed623a75455e715e3d49186179927a0e10d3efe9823c336912789bbf3d7d2f9aba3053b601352c99bda4ffcc9a7b78e412c938cd91f +EBUILD automx2-2019.0.ebuild 1020 BLAKE2B a485a862178572b4d6f795c098c2e973491e5024d3bf12d68c50eff2f502f3a848a85e0b4fd50dac7601aa953f5ddc30c4e5038a53defc2f12beea8e3e69de54 SHA512 bbe51e2f4fbd3b13ee3f30e6e7d95bb20021ceeadd3daffee5d1c538395a40539f0f4cd65c14f5d0288d230fbb3dd61f06b79cac4026090683e829dcced22c01 +EBUILD automx2-2020.1-r1.ebuild 1052 BLAKE2B 39e5e374d276e49ebe68707154dc0f59ae652f5bfb4ae4151dadecdf687d088c722765df83b2b987666ae7af2cef1613472f4d5c57446b38adb9c7059eb5063b SHA512 d19477ea031e6cf3d3dd87afb1e3794df333d5621d90e6b2ec61c038815f05def92b5fa92cf376948038d835c877bb38b5720060cf70622465d6e738bb11b3a7 +MISC metadata.xml 887 BLAKE2B 7ce022391bdee85ab1ef45f2ea94fa1b17731879d883a582bc775efe1f75d67fd6fd178aa6a3406b57caa20ca646773dbae3b43bbc636a99ef414d03f9bbf6ff SHA512 dedc41f6f1e6a3ce8cf1041841d3e981e7cac0ee00815e580a15013bdb09415df65136ce169899dc719a705ef61e02c5f17e8d7736c6a74ed9ae2b2748c82fd8 diff --git a/net-mail/automx2/automx2-2019.0.ebuild b/net-mail/automx2/automx2-2019.0.ebuild new file mode 100644 index 000000000000..62c3980bd7bf --- /dev/null +++ b/net-mail/automx2/automx2-2019.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 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" +IUSE="doc" + +BDEPEND="acct-user/automx2 + >=dev-python/flask-migrate-2.5.2[${PYTHON_USEDEP}]" +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() { + if use doc; then + DOCS="*.adoc doc/*.adoc contrib/*sample.conf" + HTML_DOCS="doc/*.html doc/*.svg" + fi + 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/net-mail/automx2/automx2-2020.1-r1.ebuild b/net-mail/automx2/automx2-2020.1-r1.ebuild new file mode 100644 index 000000000000..27bbeeef2a14 --- /dev/null +++ b/net-mail/automx2/automx2-2020.1-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +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" +IUSE="doc" + +BDEPEND="acct-user/automx2 + dev-python/flask-migrate[${PYTHON_USEDEP}] + dev-python/ldap3[${PYTHON_USEDEP}]" +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() { + if use doc; then + DOCS="*.adoc doc/*.adoc contrib/*sample.conf" + HTML_DOCS="doc/*.html doc/*.svg" + fi + 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/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" +} diff --git a/net-mail/automx2/metadata.xml b/net-mail/automx2/metadata.xml new file mode 100644 index 000000000000..acba6de8fdfb --- /dev/null +++ b/net-mail/automx2/metadata.xml @@ -0,0 +1,27 @@ +<?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="person"> + <email>mschiff@gentoo.org</email> + <name>Marc Schiffbauer</name> + <description>Proxy</description> + </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> + <email>automx2@seichter.de</email> + <name>Ralph Seichter</name> + </maintainer> + <remote-id type="gitlab">automx/automx2</remote-id> + </upstream> +</pkgmetadata> |