commit: 2d44b89e1b8f6ccead1f60cb70075007a5cad80a Author: Kenton Groombridge <concord <AT> gentoo <DOT> org> AuthorDate: Tue Feb 24 00:35:59 2026 +0000 Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> CommitDate: Tue Feb 24 00:44:49 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d44b89e
www-apps/miniflux: add 2.2.17 Closes: https://bugs.gentoo.org/960247 Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org> www-apps/miniflux/Manifest | 2 + www-apps/miniflux/miniflux-2.2.17.ebuild | 108 +++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest index 28417e22a380..ca4e006643b7 100644 --- a/www-apps/miniflux/Manifest +++ b/www-apps/miniflux/Manifest @@ -1,4 +1,6 @@ DIST miniflux-2.2.14-deps.tar.xz 53652880 BLAKE2B 20c6f1b99028b944b038eaa8a9e9456aa6cc720ed07f173700c1fcb67cf5579fa4cc4f2b7d59fe55e94830d8ff3881da93c79fda5f85ea09ed1007f182186273 SHA512 7490ae566a73bc3eab2bb062c07a4578aed4e5377cb361e4a1b2003f6ad14a62c19943599a45596af75aca62ee2612b81c1c0056cce617cd7596f3522984acc2 DIST miniflux-2.2.14.tar.gz 878211 BLAKE2B 11e72b4c4b184e66c63cd7e7487d82f5a7fb4865de054a024a6af29de8707adca19fef3be97f8781e7eea05975168762adcdcc4a383057420ca866ce56d7b104 SHA512 bb3a8fb171be4473c4c481842416d9ab9c9b45dcea2e6e3e21e42945685803d0aa32ddbe744bd06a0e753fefb69e6487ff1126878875cfa6b09dfdd9be51e880 +DIST miniflux-2.2.17-deps.tar.xz 51560528 BLAKE2B 27a50e4b34820cb7444c9723c93853cf01971f2c3345f3f9cfed40c6cb4dc8b862c66d358bc040eec13b33207f15dd1820ac00002b84a8ec5975f45169a8edbe SHA512 ebcfbfccc72b1177daf87a13ef260ab871c624291b09b5b5ddc6b829684a48ad6a5b5f659cf628939ac5171d320dce3e167f387488bbc8d0c65ce808d66dd60d +DIST miniflux-2.2.17.tar.gz 896338 BLAKE2B 9ae388bdede21fe5da01e46742a82e4d1c1fc2557d672ee06c335b61f68445f1a4cb454aad133e3b9a80c54ec582876afff73f1fd0891e2dfe821e4d7d17c9c5 SHA512 2c712ff909a0feb60b8764f00dea07946321cc772b3c40569ebe3961f8dbcf76605a6ceacad89a510f9e12c1c72fd6ffae74feb269c1bdac56b8f95a4bcfffa0 DIST miniflux-2.2.9-deps.tar.xz 58102832 BLAKE2B c930537e1c92a0225a5cbf9f6e15c971a1a7d42b2439dc28ff202319612c3c4a359b089589e032533a3dd7c7004ccac9028e2e9d0726eb2f4bd102886601eb58 SHA512 0013f25c66dfb537aeec9a4ca6b69d673756f93bd399bf0ba75804b0c65889175c5867b45e8a27b7501887afbc37c8b418111046011eb7e7c4807af18cad2a74 DIST miniflux-2.2.9.tar.gz 823133 BLAKE2B c27e3a09980362115b3d8d39ade312f9b863a4c13f7f91ddb625ddeaf783e6625f5318b09f586d964c19b0ef3ba23694e7ee640f34b3905b491b43f4ca12feb3 SHA512 4856f2fb0c01e410c3bee375034ff5fefffa63114ee7faaf083f757162a8aed4d8014876c2b413205c30d681f743476aa75006bc8a2a594f7b09a31fa88bda4e diff --git a/www-apps/miniflux/miniflux-2.2.17.ebuild b/www-apps/miniflux/miniflux-2.2.17.ebuild new file mode 100644 index 000000000000..0bf793d236a5 --- /dev/null +++ b/www-apps/miniflux/miniflux-2.2.17.ebuild @@ -0,0 +1,108 @@ +# Copyright 2020-2026 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="d3a1e7db" + +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 +" + +QA_PRESTRIPPED="usr/bin/miniflux" + +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=( + 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." +}
