summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenton Groombridge <concord@gentoo.org>2023-04-02 11:45:14 -0400
committerKenton Groombridge <concord@gentoo.org>2023-04-02 11:48:52 -0400
commit08aac065bf4fc538ad964775860fd868599dbd11 (patch)
tree66b25a49281c51623e402d026d05805027ddc79b /www-apps/miniflux
parentmedia-gfx/fotoxx: stabilize 23.2 for amd64, x86 (diff)
downloadgentoo-08aac065bf4fc538ad964775860fd868599dbd11.tar.gz
gentoo-08aac065bf4fc538ad964775860fd868599dbd11.tar.bz2
gentoo-08aac065bf4fc538ad964775860fd868599dbd11.zip
www-apps/miniflux: add 2.0.43
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
Diffstat (limited to 'www-apps/miniflux')
-rw-r--r--www-apps/miniflux/Manifest2
-rw-r--r--www-apps/miniflux/miniflux-2.0.43.ebuild99
2 files changed, 101 insertions, 0 deletions
diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest
index cd8cc40caf94..e0c7cd0a4454 100644
--- a/www-apps/miniflux/Manifest
+++ b/www-apps/miniflux/Manifest
@@ -2,3 +2,5 @@ DIST miniflux-2.0.41-deps.tar.xz 38330216 BLAKE2B 8be2a3b08de3dc56d384080268bb42
DIST miniflux-2.0.41.tar.gz 575768 BLAKE2B 8ba7207da6e627def71830c182ee7c95ed979873dae012dea4f76ac5ac10e036c0ef7ba1290af871b294f813fc8ddd978f169179b93e6b938d319b4b4102e41c SHA512 eb1be19d04f29e12a0aef3eca2f8494d46742bea5679b09dfcd43d10e4dc00bc4408fa0e52c71a744afcfb5fb22cf8f7fe2d352ab26c3a16fb2ffbdd0f4f9fb4
DIST miniflux-2.0.42-deps.tar.xz 38701596 BLAKE2B e73cdadd9c3b507d2bf3c361317d7cae5913865e5548d85e01746e49c5f17e87b1a1e688aee651711f6cd586ffe071b203f65a625842e7139f83d50c595c90f3 SHA512 a6299ccdf1192097150e366cf1bb9a5374ed980822d1ff124ae85defa7c017cb66e7c9f2d4a8ebcf28ac3c72ad36db133f85936471392450446457520346cb22
DIST miniflux-2.0.42.tar.gz 577188 BLAKE2B 48f361fecc0d6e540c3987362bce6704d5eb83ad8cc4886a700b9eedf60e5b0b6f45494406ecf54675edd7778c1c4ed660bc5eb54b118eb05c19a006130cdd2b SHA512 8e3cee177e737d6777b37c632239e7100beb961e82842735b495eda1d39104c642047bd12806c110ff0d9cd76f1bb3475740063a34211a75d94fafd0e9cc9926
+DIST miniflux-2.0.43-deps.tar.xz 38360844 BLAKE2B 4b3a51acf0f319a99ab5b8a03dd32cae54d73ad7c35de6659cc77b1e227551f444280f670eddb4f7580685dd44bce7fedc0af31f5a5dafbbf0f7bc4c17077910 SHA512 e41a9a112ab0dfe0b7cd3670ceecf88aed77b1a908413af09e56e48f0570a34a0f0055e13fc5244b2052db4e79b28f6ce27564f29273d0a333fbbce18fd6d7ec
+DIST miniflux-2.0.43.tar.gz 586624 BLAKE2B 33245f2da209c7cb7a647b3bc2f571e9596467c28779038384e6501e8c966b95f087cd0da4feb78cec254b1efbcd3a8dcdfaeb089fc440d1bab1c5ca086db9b6 SHA512 fd09a2ecb00173a6b2f0f7438ff677af5b5c1b616f1a44b138478452a78e0a925f802eeda0e8072211ed2dbbc59eeeee7079b13fbb086663ceebd3d2e06dceca
diff --git a/www-apps/miniflux/miniflux-2.0.43.ebuild b/www-apps/miniflux/miniflux-2.0.43.ebuild
new file mode 100644
index 000000000000..185b89d61eca
--- /dev/null
+++ b/www-apps/miniflux/miniflux-2.0.43.ebuild
@@ -0,0 +1,99 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+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"
+
+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
+"
+
+S="${WORKDIR}/v2-${PV}"
+
+src_compile() {
+ ego build -ldflags="-s -w -X 'miniflux.app/version.Version=${PV}' " -o miniflux main.go
+}
+
+src_install() {
+ dobin miniflux
+
+ insinto /etc
+ doins "${FILESDIR}/${PN}.conf"
+
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+
+ newinitd "${FILESDIR}/${PN}.initd" ${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."
+}