From: "Kenton Groombridge" <concord@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/miniflux/
Date: Sat, 17 Aug 2024 16:41:19 +0000 (UTC) [thread overview]
Message-ID: <1723912849.f68ecd785462e0fdb3539834224f71c9e986dd02.concord@gentoo> (raw)
commit: f68ecd785462e0fdb3539834224f71c9e986dd02
Author: Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 17 16:34:25 2024 +0000
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Sat Aug 17 16:40:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f68ecd78
www-apps/miniflux: add 2.1.4
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
www-apps/miniflux/Manifest | 2 +
www-apps/miniflux/miniflux-2.1.4.ebuild | 107 ++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest
index 7ecf838595e0..df61ea7a0f42 100644
--- a/www-apps/miniflux/Manifest
+++ b/www-apps/miniflux/Manifest
@@ -2,3 +2,5 @@ DIST miniflux-2.0.49-deps.tar.xz 38155476 BLAKE2B 9631c23af181cf86bd197066a453c8
DIST miniflux-2.0.49.tar.gz 614888 BLAKE2B 77fae7eafcc55d02e3e00e6c008cb6727ff48423512e9dde420b84a63858e6ba9ed33dfd61907a46ca686b211f604d452e2ad5944b709094263ca0949a6128c8 SHA512 59505f5e60228ff94cf2cabc872117cd08c06edb0df6dfb4487153add27cc4e485d7cb71330333df155f158eb650f684d55f0460ba5404f5e26b9603123fd860
DIST miniflux-2.1.3-deps.tar.xz 43436720 BLAKE2B 97a6aa1509bcde6da4368d50de9bac9a0cedf2752e020f2521cc29f38644fc9de53f14052649c9d42b4d450e1ffac6209787c9b94c1c90d0f2ba1dc31811356d SHA512 6113f5288da2ecd77cbb21c81a60ea331943f369c9304241330b75d57e0e2f65c74d2ddcc4f920e9c572289cea30c50a673029b66877da47d1d2c13700e51081
DIST miniflux-2.1.3.tar.gz 710470 BLAKE2B ed4f5cb60b26db797e0374d497ebf0bf6d063308bb83938ec5b90a146ba1cc1ab7f5c8c2ecc92cae77d8c683b1f212bead22828cfdad432f7400b58addddde8d SHA512 93f9c91edfdbdd47aaaafa2a45ba4d0af08351465e84231b9f9f0886042897b0649932e02adc6680fc4952828415edcda8b634224dc21015f053c25d0e24f9cb
+DIST miniflux-2.1.4-deps.tar.xz 43184308 BLAKE2B d4412a87d07d405f93c2e7449a3e3ff4932f28b9c46ff75519c8398c8b7d0090b0759e2b3be5c20c4e1900e1058724071b3efb8144ff3149a8a06234155900c3 SHA512 75456f40578e3da2866a7ea98c3dc137934b05c73e4a5aa2a96cbce0457a9aa394a598a837b98f50cb97cb2279b8acc331fe08fa5bff245fef1bec0cb92029a8
+DIST miniflux-2.1.4.tar.gz 731511 BLAKE2B a6d099411971af1319825f8b4fc2e56fac8b86eb4b2b91175f4b349aa2dfb6c0036af388deaf34eef00a7fd0c70d73350976332e9fd851fc3a9fb68fc3edceb5 SHA512 e20ddaa8682b492c5eaaef687d4b92fa40c148b0cdb9bc6f4175a2e7da0d0e13c5e93a97145de06e1210015be3361a396c1dc85aaf58b5c02ec86903617732ca
diff --git a/www-apps/miniflux/miniflux-2.1.4.ebuild b/www-apps/miniflux/miniflux-2.1.4.ebuild
new file mode 100644
index 000000000000..c6cde0b43c88
--- /dev/null
+++ b/www-apps/miniflux/miniflux-2.1.4.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2020-2024 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="b683756d"
+
+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."
+}
next reply other threads:[~2024-08-17 16:41 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-17 16:41 Kenton Groombridge [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-12 19:42 [gentoo-commits] repo/gentoo:master commit in: www-apps/miniflux/ Kenton Groombridge
2024-11-12 19:42 Kenton Groombridge
2024-08-17 16:41 Kenton Groombridge
2024-08-17 16:41 Kenton Groombridge
2024-06-20 22:24 Kenton Groombridge
2024-06-20 22:24 Kenton Groombridge
2024-06-20 22:24 Kenton Groombridge
2023-11-06 18:33 Kenton Groombridge
2023-11-06 18:33 Kenton Groombridge
2023-11-06 18:33 Kenton Groombridge
2023-07-18 18:07 Kenton Groombridge
2023-07-18 18:07 Kenton Groombridge
2023-07-18 18:07 Kenton Groombridge
2023-05-09 1:27 Kenton Groombridge
2023-04-25 1:55 Kenton Groombridge
2023-04-25 1:55 Kenton Groombridge
2023-04-02 15:49 Kenton Groombridge
2023-04-02 15:49 Kenton Groombridge
2023-03-15 16:33 Arthur Zamarin
2023-02-04 9:45 Sam James
2023-02-03 19:37 Kenton Groombridge
2022-12-10 22:25 Kenton Groombridge
2022-12-10 22:25 Kenton Groombridge
2022-11-28 18:50 Kenton Groombridge
2022-11-02 5:11 Jakov Smolić
2022-10-31 13:41 Kenton Groombridge
2022-10-31 13:41 Kenton Groombridge
2022-10-31 13:41 Kenton Groombridge
2022-08-23 18:17 Arthur Zamarin
2022-08-21 23:10 Kenton Groombridge
2022-07-02 18:45 Kenton Groombridge
2022-05-28 19:51 Kenton Groombridge
2022-05-07 13:57 Kenton Groombridge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1723912849.f68ecd785462e0fdb3539834224f71c9e986dd02.concord@gentoo \
--to=concord@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox