1 |
commit: 4a55f80c21dd800e1cc340f63b70b4b60a623413 |
2 |
Author: Ralph Seichter <github <AT> seichter <DOT> de> |
3 |
AuthorDate: Sun Dec 22 21:51:01 2019 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 23 20:12:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a55f80c |
7 |
|
8 |
www-servers/automx2: New package |
9 |
|
10 |
automx2 makes configuring a mail account easy. It unites methods |
11 |
for automated mailbox configuration from Apple (mobileconfig), |
12 |
Microsoft (autodiscover) and Mozilla (autoconfig) in one tool. |
13 |
|
14 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
15 |
Signed-off-by: Ralph Seichter <gentoo <AT> seichter.de> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/14106 |
17 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
18 |
|
19 |
www-servers/automx2/Manifest | 1 + |
20 |
www-servers/automx2/automx2-2019.0.ebuild | 40 +++++++++++++++++++++++++++++++ |
21 |
www-servers/automx2/files/conf | 20 ++++++++++++++++ |
22 |
www-servers/automx2/files/confd | 8 +++++++ |
23 |
www-servers/automx2/files/init | 26 ++++++++++++++++++++ |
24 |
www-servers/automx2/metadata.xml | 26 ++++++++++++++++++++ |
25 |
6 files changed, 121 insertions(+) |
26 |
|
27 |
diff --git a/www-servers/automx2/Manifest b/www-servers/automx2/Manifest |
28 |
new file mode 100644 |
29 |
index 00000000000..ac9e496c8d5 |
30 |
--- /dev/null |
31 |
+++ b/www-servers/automx2/Manifest |
32 |
@@ -0,0 +1 @@ |
33 |
+DIST automx2-2019.0.tar.bz2 46670 BLAKE2B 6f62b4429be8046fce18ccba6827879a99627d8fbe9cf7973d8059e87b4968a280b62d5d005aaed3b0e1074053f4a6355c34f2cdce2f06a9afb14c52b4504fb7 SHA512 e494a48ffd3e6d133a89db5afd1dc75116a8efcc41f0571a24271bcbe6074c86d62184ce00bae9ced888a70be7d20f2a3614f28007d4481537d42c680dca4daa |
34 |
|
35 |
diff --git a/www-servers/automx2/automx2-2019.0.ebuild b/www-servers/automx2/automx2-2019.0.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..1ae32210a3a |
38 |
--- /dev/null |
39 |
+++ b/www-servers/automx2/automx2-2019.0.ebuild |
40 |
@@ -0,0 +1,40 @@ |
41 |
+# Copyright 1999-2019 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+ |
46 |
+PYTHON_COMPAT=( python3_7 ) |
47 |
+ |
48 |
+inherit distutils-r1 |
49 |
+ |
50 |
+DESCRIPTION="Email client autoconfiguration service" |
51 |
+HOMEPAGE="https://automx.org/" |
52 |
+SRC_URI="https://gitlab.com/automx/automx2/-/archive/${PV}/${P}.tar.bz2" |
53 |
+ |
54 |
+LICENSE="GPL-3+" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64" |
57 |
+ |
58 |
+BDEPEND="acct-user/automx2 |
59 |
+ $(python_gen_cond_dep \ |
60 |
+ '>=dev-python/flask-migrate-2.5.2[${PYTHON_MULTI_USEDEP}]' python3_{7} |
61 |
+ )" |
62 |
+RDEPEND="${BDEPEND}" |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ sed -i -e "/('scripts'/d" setup.py || die |
66 |
+ distutils-r1_python_prepare_all |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ export AUTOMX2_CONF="tests/unittest.conf" |
71 |
+ ${EPYTHON} -m unittest discover tests/ || die |
72 |
+} |
73 |
+ |
74 |
+python_install_all() { |
75 |
+ sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}" |
76 |
+ newconfd "${FILESDIR}/confd" "${PN}" |
77 |
+ insinto /etc |
78 |
+ newins "${FILESDIR}/conf" "${PN}.conf" |
79 |
+ distutils-r1_python_install_all |
80 |
+} |
81 |
|
82 |
diff --git a/www-servers/automx2/files/conf b/www-servers/automx2/files/conf |
83 |
new file mode 100644 |
84 |
index 00000000000..ca19e0eebb6 |
85 |
--- /dev/null |
86 |
+++ b/www-servers/automx2/files/conf |
87 |
@@ -0,0 +1,20 @@ |
88 |
+[automx2] |
89 |
+# A typical production setup would use loglevel = WARNING |
90 |
+loglevel = WARNING |
91 |
+# Echo SQL commands into log? Used for debugging. |
92 |
+db_echo = no |
93 |
+ |
94 |
+# In-memory SQLite database |
95 |
+#db_uri = sqlite:///:memory: |
96 |
+ |
97 |
+# SQLite database in a UNIX-like file system |
98 |
+db_uri = sqlite:////var/lib/automx2/db.sqlite |
99 |
+ |
100 |
+# MySQL database on a remote server. This example does not use an encrypted |
101 |
+# connection and is therefore *not* recommended for production use. |
102 |
+#db_uri = mysql://username:password@××××××××××××××.com/db |
103 |
+ |
104 |
+# Number of proxy servers between automx2 and the client (default: 0). |
105 |
+# If your logs only show 127.0.0.1 or ::1 as the source IP for incoming |
106 |
+# connections, proxy_count probably needs to be changed. |
107 |
+#proxy_count = 1 |
108 |
|
109 |
diff --git a/www-servers/automx2/files/confd b/www-servers/automx2/files/confd |
110 |
new file mode 100644 |
111 |
index 00000000000..5a58d946aa2 |
112 |
--- /dev/null |
113 |
+++ b/www-servers/automx2/files/confd |
114 |
@@ -0,0 +1,8 @@ |
115 |
+# Additional parameters passed to Flask |
116 |
+#AUTOMX2_ARGS="--host 127.0.0.1 --port 4243" |
117 |
+ |
118 |
+# Configuration file |
119 |
+#AUTOMX2_CONF="/etc/automx2.conf" |
120 |
+ |
121 |
+# Process owner (choose a non-privileged user) |
122 |
+#AUTOMX2_USER="automx2" |
123 |
|
124 |
diff --git a/www-servers/automx2/files/init b/www-servers/automx2/files/init |
125 |
new file mode 100644 |
126 |
index 00000000000..466461a6cd9 |
127 |
--- /dev/null |
128 |
+++ b/www-servers/automx2/files/init |
129 |
@@ -0,0 +1,26 @@ |
130 |
+#!/sbin/openrc-run |
131 |
+# Copyright 1999-2019 Gentoo Authors |
132 |
+# Distributed under the terms of the GNU General Public License v2 |
133 |
+ |
134 |
+: ${AUTOMX2_CONF:="/etc/${RC_SVCNAME}.conf"} |
135 |
+: ${AUTOMX2_USER:="automx2"} |
136 |
+: ${AUTOMX2_ARGS:="--port 4243"} |
137 |
+ |
138 |
+command="/usr/bin/python" |
139 |
+command_args="/usr/bin/flask run ${AUTOMX2_ARGS}" |
140 |
+command_background="true" |
141 |
+command_user="${AUTOMX2_USER}" |
142 |
+pidfile="/run/${RC_SVCNAME}.pid" |
143 |
+required_files="${AUTOMX2_CONF}" |
144 |
+ |
145 |
+depend() { |
146 |
+ use logger net |
147 |
+ before nginx |
148 |
+} |
149 |
+ |
150 |
+start_pre() { |
151 |
+ export AUTOMX2_CONF |
152 |
+ export EPYTHON="@EPYTHON@" |
153 |
+ export FLASK_APP="automx2.server:app" |
154 |
+ export FLASK_ENV="production" |
155 |
+} |
156 |
|
157 |
diff --git a/www-servers/automx2/metadata.xml b/www-servers/automx2/metadata.xml |
158 |
new file mode 100644 |
159 |
index 00000000000..9b1d67b1011 |
160 |
--- /dev/null |
161 |
+++ b/www-servers/automx2/metadata.xml |
162 |
@@ -0,0 +1,26 @@ |
163 |
+<?xml version="1.0" encoding="UTF-8"?> |
164 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
165 |
+<pkgmetadata> |
166 |
+ <maintainer type="person"> |
167 |
+ <email>gentoo@××××××××.de</email> |
168 |
+ <name>Ralph Seichter</name> |
169 |
+ </maintainer> |
170 |
+ <maintainer type="project"> |
171 |
+ <email>proxy-maint@g.o</email> |
172 |
+ <name>Proxy Maintainers</name> |
173 |
+ </maintainer> |
174 |
+ <longdescription> |
175 |
+ automx2 makes configuring a mail account easy. It unites |
176 |
+ methods for automated mailbox configuration from Apple |
177 |
+ (mobileconfig), Microsoft (autodiscover) and Mozilla |
178 |
+ (autoconfig) in one tool. |
179 |
+ </longdescription> |
180 |
+ <upstream> |
181 |
+ <doc>https://gitlab.com/automx/automx2/blob/master/doc/automx2.adoc</doc> |
182 |
+ <maintainer type="person"> |
183 |
+ <email>automx2@××××××××.de</email> |
184 |
+ <name>Ralph Seichter</name> |
185 |
+ </maintainer> |
186 |
+ <remote-id type="gitlab">automx/automx2</remote-id> |
187 |
+ </upstream> |
188 |
+</pkgmetadata> |