[net-mail/automx2] resurrect as py3k13 only package ( + deps ) for now

This commit is contained in:
2026-05-29 17:09:13 +02:00
parent c95f626eff
commit 211bd9ab48
16 changed files with 273 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-group
DESCRIPTION="Group for net-mail/automx2"
ACCT_GROUP_ID=437
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>
+14
View File
@@ -0,0 +1,14 @@
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit acct-user
DESCRIPTION="User for net-mail/automx2"
ACCT_USER_ID=437
ACCT_USER_GROUPS=( automx2 )
ACCT_USER_HOME="/var/lib/automx2"
acct-user_add_deps
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>
+1
View File
@@ -0,0 +1 @@
DIST Flask-Migrate-4.1.0.gh.tar.gz 27430 BLAKE2B 7adc49eb0b80cc74cc381ab803ccd2dfcc107beeb5fd06f24ca36a98f6e617e6f56a48c0ef739d41770ec508d4bf0e13b78f57be62d23317c8d797bfa1ef5c2d SHA512 683842e3e5832cf3eaf6b7ee5e194c1eb2fe1b096d3360a64f2f0de5024e1fa4ebd8e0b6659a1c87ded47efd0e07cecf9d82807e1e64af99a18bb9b596261963
@@ -0,0 +1,46 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_13 )
inherit distutils-r1
MY_P="Flask-Migrate-${PV}"
DESCRIPTION="SQLAlchemy database migrations for Flask applications using Alembic"
HOMEPAGE="
https://github.com/miguelgrinberg/Flask-Migrate/
https://pypi.org/project/Flask-Migrate/
"
SRC_URI="
https://github.com/miguelgrinberg/Flask-Migrate/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
RDEPEND="
>=dev-python/alembic-1.9.0[${PYTHON_USEDEP}]
>=dev-python/flask-0.9[${PYTHON_USEDEP}]
>=dev-python/flask-sqlalchemy-1.0[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
python_test() {
local -x PATH=${T}/bin:${PATH}
mkdir -p "${T}"/bin || die
cat > "${T}"/bin/flask <<-EOF || die
#!/bin/sh
exec ${EPYTHON} -m flask "\${@}"
EOF
chmod +x "${T}"/bin/flask || die
eunittest
}
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="github">miguelgrinberg/Flask-Migrate</remote-id>
<remote-id type="pypi">Flask-Migrate</remote-id>
</upstream>
</pkgmetadata>
+1
View File
@@ -0,0 +1 @@
DIST flask_sqlalchemy-3.1.1.tar.gz 81899 BLAKE2B 25522dc47afd08840b09f33791fffaf845a636c06d9a17f7a7930a21b64bad47b592f441b55dfc9a846b2c98e21b9cd027ec4ce85e701251ace0d9e072731f47 SHA512 27a93efb96bc8afe483dc32f9e9756e5972029464f4a201e8a55bf62b88f6bcd93ed7f4472ac21cb17376c87852a1d4b5f98a8ddb55d9b12c334346d5bc7e464
@@ -0,0 +1,37 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYPI_PN="Flask-SQLAlchemy"
PYTHON_COMPAT=( python3_13 )
inherit distutils-r1 pypi
DESCRIPTION="SQLAlchemy support for Flask applications"
HOMEPAGE="
https://github.com/pallets-eco/flask-sqlalchemy/
https://pypi.org/project/Flask-SQLAlchemy/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
RDEPEND="
>=dev-python/flask-2.2.5[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-2.0.16[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/blinker[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/pallets-sphinx-themes \
dev-python/sphinx-issues \
dev-python/sphinxcontrib-log-cabinet
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>robbat2@gentoo.org</email>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">Flask-SQLAlchemy</remote-id>
<remote-id type="github">pallets-eco/flask-sqlalchemy</remote-id>
<bugs-to>https://github.com/pallets-eco/flask-sqlalchemy/issues</bugs-to>
</upstream>
<longdescription lang="en">
Flask-SQLAlchemy is a Flask microframework extension which adds
support for the SQLAlchemy SQL toolkit/ORM.
</longdescription>
</pkgmetadata>
+1
View File
@@ -0,0 +1 @@
DIST automx2-2026.1.tar.gz 180293 BLAKE2B cfab7e02a40011fb6cfb262c2c467f205fdc28bfe1a91f43cb679c7f743c29958fbaf189f4aa553f57fe0a3ebdb30c01aff8cce2ba9b7a43d293ecd368f77bd8 SHA512 a9c7c85923b382a7d7481dd807fe06dcc5b8ca5d7a2723ff381d3df4e4de0648a7ddd92ce6be035e0cf1a2f5cecd2d884afbbbfc8a125d731d73a2cd927f3c60
+46
View File
@@ -0,0 +1,46 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_13 )
inherit distutils-r1
DESCRIPTION="Mail User Agent (email client) configuration made easy"
HOMEPAGE="https://rseichter.github.io/automx2/"
SRC_URI="https://github.com/rseichter/automx2/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 ~arm64"
RDEPEND="acct-user/automx2
dev-python/flask[${PYTHON_USEDEP}]
dev-python/flask-migrate[${PYTHON_USEDEP}]
dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
dev-python/ldap3[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
python_prepare_all() {
rm -r src/alembic || die
distutils-r1_python_prepare_all
}
python_test() {
local -x AUTOMX2_CONF="tests/unittest.conf"
eunittest tests/
}
python_install_all() {
local DOCS=("${S}"/docs/*.pdf)
local HTML_DOCS=("${S}"/docs/*.{html,svg})
newconfd "${FILESDIR}/confd" "${PN}"
newinitd "${FILESDIR}/init-r2" "${PN}"
insinto /etc
newins "${FILESDIR}/conf" "${PN}.conf"
distutils-r1_python_install_all
}
+20
View File
@@ -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
+8
View File
@@ -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"
+26
View File
@@ -0,0 +1,26 @@
#!/sbin/openrc-run
# Copyright 1999-2025 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/flask"
command_args="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="python"
export FLASK_APP="automx2.server:app"
export FLASK_ENV="production"
}
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<stabilize-allarches/>
<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://rseichter.github.io/automx2/</doc>
<maintainer>
<email>automx2@seichter.de</email>
<name>Ralph Seichter</name>
</maintainer>
<remote-id type="github">rseichter/automx2</remote-id>
</upstream>
</pkgmetadata>