summaryrefslogtreecommitdiff
path: root/www-apps/miniflux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-02 23:19:01 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-02 23:19:01 +0100
commitd288197c01703f58dbea0ff4f42b01e7c4c6f327 (patch)
tree5a9afa2f3fc3271753649a9b2c3c7045a7e85104 /www-apps/miniflux
parent97310164515a0a048d4f049ae2d3e8d413fb94c6 (diff)
gentoo auto-resync : 02:04:2023 - 23:19:00
Diffstat (limited to 'www-apps/miniflux')
-rw-r--r--www-apps/miniflux/Manifest9
-rw-r--r--www-apps/miniflux/files/miniflux.initd-r1 (renamed from www-apps/miniflux/files/miniflux.initd)5
-rw-r--r--www-apps/miniflux/miniflux-2.0.41-r1.ebuild (renamed from www-apps/miniflux/miniflux-2.0.41.ebuild)2
-rw-r--r--www-apps/miniflux/miniflux-2.0.42-r1.ebuild99
-rw-r--r--www-apps/miniflux/miniflux-2.0.43-r1.ebuild (renamed from www-apps/miniflux/miniflux-2.0.42.ebuild)2
5 files changed, 112 insertions, 5 deletions
diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest
index 92e323cbc38d..09463eb10759 100644
--- a/www-apps/miniflux/Manifest
+++ b/www-apps/miniflux/Manifest
@@ -1,12 +1,15 @@
AUX README.gentoo 2168 BLAKE2B 2291976288e00d71ecf9b978874cd26a33d604f803c6eb511e137e8a9843e4c7b64d286482c9af47879fadfe1d800cd58e4d09ea1882d436eff528d8aaa9743f SHA512 edac844eb081472d6c8054d9bf0f8661cbbb61455d2cc97ce7d05a842fe735b6e130f1b6d0a2e26737d153624b5a7451b362e04247b366c090f2fc3e9aab7391
AUX miniflux.conf 809 BLAKE2B 4465c338fa13d3465731fcb98616d08d4fbcfdad6e10eb3f089de62dda9297220b92cb767bd92dfd97c3a5a5f6a2bd87444b76fa790243626d77698ecefcc2a1 SHA512 470b0e8382b97c2c2d1c8a2c6865a8cd06b2157a24d81a329d6de37d9b964b502a37ca7178090f2aee5c29210fc4c6e4f7d7e2245d00d8df33cfc738012b7329
AUX miniflux.confd 171 BLAKE2B 2d38a12678c7873ac31473a2160d1416d168e384c519fe48feebf4ea3d4e6c734ff198e652df8b0af7da5c3543eff5321a02b6991de131d746b89e3b5fb7db08 SHA512 13b43595e7a5bca01b9fbff9fc6979d408b32109bafc23cfae29a9470b5333a244ee1f1bc94ba436d93e2d2c55640690202ac1201884f9ea5499fa0161af059a
-AUX miniflux.initd 504 BLAKE2B d43cc0323161fc3723063f07fb5d8da4f762b420dedbcab28ad5d41c90f526c80849222f9255032fdf9fc4c4ba45d4989d0967498a5e32b326a6d966abaa4c84 SHA512 d58233009fd6c69f1095aa5cc62d08a910edaa0d16db3af663398d723873f2354e0d60c75ca746a281546d1f40ad0a8db1fc275ee31ed9e6958410b0b5f12afb
+AUX miniflux.initd-r1 611 BLAKE2B 74d84f8f24a672c2fd4adedf6dc8629307638bed4a04e7c2948beabb0a7f1710a78f0054b23cc906caa08d27310473d5f45766ef9a6d04dfdef4ba7c1199a682 SHA512 7dbc37b56b8d099d3a95c5707c1666d177c03dc46d42dcc3827b771fc9cee34d489c7f240049a14b6784a4434183c70e0ba9679e982608121a8e4098e1a45a9e
AUX miniflux.service 463 BLAKE2B e6f1a3717e985f3ddae4224472b753f293a73ab015acbe80ddf20d2d9e505aa9fd47e2fca2c86749067288a1f10787e16179a41e5c30d3f37f53e83f798719b8 SHA512 c38fe3f19162be02a44a353281690d40e90cb8ac8126ea4f9aab1218e128da0be3d1152cf260fdfd19ecfed2ea4396ae4a6c645088a1b212b58a3cba8387ce60
DIST miniflux-2.0.41-deps.tar.xz 38330216 BLAKE2B 8be2a3b08de3dc56d384080268bb42c9a2cbb3304e387794e35530722ef8a0d13b765051c5e75577f6305953761124042844e5d13261d9b7ddcaf2a980196fd8 SHA512 de7dc72d18d75df8dd027eeb4c3517e02f9bbf8e1f321ea2661629514ba7671cb1d9f4c565d241d09d9e01ecfa7b3395080b47054ba4200f6cb4cda738430f79
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
-EBUILD miniflux-2.0.41.ebuild 2596 BLAKE2B e510da4aeec02a35e73822ca2794807ce3cdbf8897078e771f25c2ae8429bfbe8c248fe687b9afe9438ea64cc95f109212d61845b1fb9353897a11de3698a220 SHA512 b1ad904d233fd39361fbe9a3276e8aca76fd855b9f52ecc4add98bd03086d93400f197f4c9d4481faf12540820ef5a1b9be1d020278288dc7d620c5cc7a11e42
-EBUILD miniflux-2.0.42.ebuild 2598 BLAKE2B 494e03ce855ad0684c86db000a45ee0d25ab0c8b5abfafa14562395715913424e9bfd8b26fc5de8302148fb9b9d201ff55cc17557094ca6c13de3fdc85de8d86 SHA512 f3cef801f145515ebc9d9a740b6a97467f4613c4235e7606f29b77c06ab3931e910d5b9be1082d3bf0f935319790f205378d8926249360dd5b6582cef86b11b7
+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
+EBUILD miniflux-2.0.41-r1.ebuild 2599 BLAKE2B a27a012bcb041358e59b8405f62f256db3a0c761673e734b4a91710339ad6571c8dc54d917dd650943f6c0050e14a30d4ad276be722e56a5ff8662ab1c7353fe SHA512 77e489dae5f18e287a6065369de827e693a550686e98df5800334a6b2bbeab3d84f9a6871d187cf0caa9d26262444697755ea2f849e4510df129257d247a1605
+EBUILD miniflux-2.0.42-r1.ebuild 2599 BLAKE2B a27a012bcb041358e59b8405f62f256db3a0c761673e734b4a91710339ad6571c8dc54d917dd650943f6c0050e14a30d4ad276be722e56a5ff8662ab1c7353fe SHA512 77e489dae5f18e287a6065369de827e693a550686e98df5800334a6b2bbeab3d84f9a6871d187cf0caa9d26262444697755ea2f849e4510df129257d247a1605
+EBUILD miniflux-2.0.43-r1.ebuild 2601 BLAKE2B 0c5bd831e378fb16e31a7e22893cea9264d1ce7068d6ae229481476e1e52dd2edc880d224fb8f6dceb15a775d3cac9fd02ab8816adbf0c9ec7d65a725437827a SHA512 c3a9d0ab4ad6263c9da3c086edf9b2c234730bb39920197a581fc8e708f1588323c9b3e50f1dd8fac5c01b142f655199536bf464da0b121db7fbe4534be77941
MISC metadata.xml 329 BLAKE2B 50e914926db603f0d6e89f009847cab4ed7e771c33779da94e71d78dd4322457a19c8b1f4d9a27670fcde68ffd4480582c8def09973b84cc69bcf670fabfae19 SHA512 c00ceaf0e7d32f4395cdba01ce2af24ce7ab2d50baa250abe035f78d905b864fc1e0947226fce655adb5b0355030b30adabd6c64d306b83a5b8f6aae70dcdbcf
diff --git a/www-apps/miniflux/files/miniflux.initd b/www-apps/miniflux/files/miniflux.initd-r1
index f8a8c59132da..3185acdfe39b 100644
--- a/www-apps/miniflux/files/miniflux.initd
+++ b/www-apps/miniflux/files/miniflux.initd-r1
@@ -14,3 +14,8 @@ command_background="true"
command_user="${MINIFLUX_USER}:${MINIFLUX_GROUP}"
error_log="/var/log/${RC_SVCNAME}.err"
pidfile="/run/${RC_SVCNAME}.pid"
+
+start_pre() {
+ checkpath --file --owner "${MINIFLUX_USER}":root --mode 0640 \
+ "${error_log}"
+}
diff --git a/www-apps/miniflux/miniflux-2.0.41.ebuild b/www-apps/miniflux/miniflux-2.0.41-r1.ebuild
index 4c730663df21..b5c188d0c586 100644
--- a/www-apps/miniflux/miniflux-2.0.41.ebuild
+++ b/www-apps/miniflux/miniflux-2.0.41-r1.ebuild
@@ -35,7 +35,7 @@ src_install() {
newconfd "${FILESDIR}/${PN}.confd" ${PN}
- newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
systemd_dounit "${FILESDIR}/${PN}.service"
fowners miniflux:root /etc/${PN}.conf
diff --git a/www-apps/miniflux/miniflux-2.0.42-r1.ebuild b/www-apps/miniflux/miniflux-2.0.42-r1.ebuild
new file mode 100644
index 000000000000..b5c188d0c586
--- /dev/null
+++ b/www-apps/miniflux/miniflux-2.0.42-r1.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-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."
+}
diff --git a/www-apps/miniflux/miniflux-2.0.42.ebuild b/www-apps/miniflux/miniflux-2.0.43-r1.ebuild
index 185b89d61eca..a3c0ff7ef4e8 100644
--- a/www-apps/miniflux/miniflux-2.0.42.ebuild
+++ b/www-apps/miniflux/miniflux-2.0.43-r1.ebuild
@@ -35,7 +35,7 @@ src_install() {
newconfd "${FILESDIR}/${PN}.confd" ${PN}
- newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
systemd_dounit "${FILESDIR}/${PN}.service"
fowners miniflux:root /etc/${PN}.conf