commit:     a525d300ac30396f8c0b8488b9ee93a15bb4baaf
Author:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  8 17:44:51 2025 +0000
Commit:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Fri Aug  8 17:49:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a525d300

www-apps/miniflux: add 2.2.11

Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>

 www-apps/miniflux/Manifest               |   2 +
 www-apps/miniflux/miniflux-2.2.11.ebuild | 107 +++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+)

diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest
index 9295a6879de3..398bd84f1c73 100644
--- a/www-apps/miniflux/Manifest
+++ b/www-apps/miniflux/Manifest
@@ -1,3 +1,5 @@
+DIST miniflux-2.2.11-deps.tar.xz 53916024 BLAKE2B 
d9d0f58676c87b5af0b5ea6e3aea1276e2309f4c2a665987c3843472710011cd49460a71b449e56fb01411335b2f6734f5fdaf72ce5c829454b83fb7d7a357c4
 SHA512 
e6d6ec91c4d6681260a15894cc099882b3a5de2aa50502c538cd4acf18064d4086b547c6b65525e55246ed384507b6fce544ea7f0a39ad195494718f58ed1361
+DIST miniflux-2.2.11.tar.gz 857725 BLAKE2B 
268bc339419e2464c747140bd01ea33f086dd208d069c622bd06c0ed0593e6900b772a713641636feaf65d863cf3ba35d008b9c08c69e30b5cee374558a8ca26
 SHA512 
3b5a80293137d5b465073af5bda0b5b65b4d3c94f2a57cb5959a5325f940b9680e3929e71d0d1f2c07499347e57b9dda8d0bd92385645dfbc6348d1798fb7d92
 DIST miniflux-2.2.7-deps.tar.xz 127697292 BLAKE2B 
131135ad923e7682ca3a3f7039337d67cfd180d8fe8cc6e87b1881b62a977dc1a903bc40c9ff9a387bd567ff66888828a4a9cb8baccfe1ca8d0f93c2d26f10aa
 SHA512 
f0c720512f95514b08ca55620c331a6892202884502d29b170fb9c5e64089d9444075b698f831779826eadd01df7f6c85e03f9c1e535f8dd96c7b3046d9e98d1
 DIST miniflux-2.2.7.tar.gz 807798 BLAKE2B 
4840aabf28abacfe35804f33236785a905a5dcaa38ff69d3dca74a2347785b67f9364eabb7af69e8cc299ec499772e9755eff91242ae5aceedcc8d3ed07ba163
 SHA512 
e95090b7a45587defad8b765d5376d89128bbb3fbad5269e906d044f56625a9e5263f1616aab93e7530bc8b91d6ce732835fccd93de0fe04fca5ceb6a958ef6c
 DIST miniflux-2.2.9-deps.tar.xz 58102832 BLAKE2B 
c930537e1c92a0225a5cbf9f6e15c971a1a7d42b2439dc28ff202319612c3c4a359b089589e032533a3dd7c7004ccac9028e2e9d0726eb2f4bd102886601eb58
 SHA512 
0013f25c66dfb537aeec9a4ca6b69d673756f93bd399bf0ba75804b0c65889175c5867b45e8a27b7501887afbc37c8b418111046011eb7e7c4807af18cad2a74

diff --git a/www-apps/miniflux/miniflux-2.2.11.ebuild 
b/www-apps/miniflux/miniflux-2.2.11.ebuild
new file mode 100644
index 000000000000..8961b07dacc5
--- /dev/null
+++ b/www-apps/miniflux/miniflux-2.2.11.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+# git rev-parse --short HEAD
+MY_GIT_COMMIT="4d7d554d"
+
+DESCRIPTION="Minimalist and opinionated feed reader"
+HOMEPAGE="https://miniflux.app https://github.com/miniflux/v2";
+SRC_URI="https://github.com/${PN}/v2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~concord/distfiles/${P}-deps.tar.xz";
+
+S="${WORKDIR}/v2-${PV}"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~riscv"
+
+RESTRICT="test" # requires network access
+
+DEPEND="acct-user/miniflux"
+RDEPEND="${DEPEND}
+       >=dev-db/postgresql-9.5
+"
+
+src_compile() {
+       ego build -ldflags="
+               -s -w
+               -X 'miniflux.app/v2/internal/version.Version=${PV}'
+               -X 'miniflux.app/v2/internal/version.Commit=${MY_GIT_COMMIT}'
+               -X 'miniflux.app/v2/internal/version.BuildDate=$(date +%FT%T%z)'
+               " -o miniflux main.go
+}
+
+src_install() {
+       dobin miniflux
+
+       insinto /etc
+       doins "${FILESDIR}/${PN}.conf"
+
+       newconfd "${FILESDIR}/${PN}.confd" ${PN}
+
+       newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
+       systemd_dounit "${FILESDIR}/${PN}.service"
+
+       fowners miniflux:root /etc/${PN}.conf
+       fperms o-rwx /etc/${PN}.conf
+
+       local DOCS=(
+               ChangeLog
+               README.md
+               "${FILESDIR}"/README.gentoo
+       )
+
+       # Makefile has no install target, so call einstalldocs directly
+       einstalldocs
+
+       doman "${PN}".1
+}
+
+pkg_postinst() {
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               # This is a new installation
+
+               echo
+               elog "Before using miniflux, you must first create and 
initialize the database"
+               elog "and enable the hstore extension for it."
+               elog ""
+               elog "Afterwards, create your first admin user by running:"
+               elog "  miniflux -create-admin"
+       else
+               # This is an existing installation
+
+               echo
+               elog "If you are upgrading from a previous version, schema 
migrations must be performed."
+               elog "To perform the migrations, stop the daemon, backup your 
database, and run:"
+               elog "  emerge --config =${PF}"
+       fi
+
+       echo
+       elog "Please read"
+       elog ""
+       elog "  ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
+       elog ""
+       elog "for more information."
+}
+
+pkg_config() {
+       # To be safe, avoid doing migrations if miniflux is running
+       if pgrep miniflux; then
+               die "miniflux appears to be running, refusing to continue."
+       fi
+
+       # Extract the database URL variable instead of just sourcing the config 
file
+       # because miniflux itself may interpret quotes as part of the URL
+       local DATABASE_URL="$(sed -n 's/^DATABASE_URL=\(.*\)/\1/p' 
"${EROOT}/etc/${PN}.conf")"
+       [[ -n "${DATABASE_URL}" ]] || die "Failed getting DATABASE_URL from 
config file"
+
+       DATABASE_URL="${DATABASE_URL}" "${EROOT}"/usr/bin/miniflux -migrate \
+               || die "miniflux -migrate failed. Please check the above output 
for errors."
+
+       echo
+       elog "Database migrations complete."
+}

Reply via email to