summaryrefslogtreecommitdiff
path: root/www-apps/miniflux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-09 05:40:27 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-09 05:40:27 +0100
commit4ae313835e5a6ac84a7fd1131b0c51c7a0759626 (patch)
treec35dabed821b91911be1cfb75ccbca34f4f1f034 /www-apps/miniflux
parent2c359e29620429f94a60fc1e832048e54ee41eb5 (diff)
gentoo auto-resync : 09:05:2023 - 05:40:27
Diffstat (limited to 'www-apps/miniflux')
-rw-r--r--www-apps/miniflux/Manifest3
-rw-r--r--www-apps/miniflux/miniflux-2.0.44.ebuild107
2 files changed, 110 insertions, 0 deletions
diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest
index f73f5838baad..f554951b27fe 100644
--- a/www-apps/miniflux/Manifest
+++ b/www-apps/miniflux/Manifest
@@ -5,5 +5,8 @@ AUX miniflux.initd-r1 611 BLAKE2B 74d84f8f24a672c2fd4adedf6dc8629307638bed4a04e7
AUX miniflux.service 463 BLAKE2B e6f1a3717e985f3ddae4224472b753f293a73ab015acbe80ddf20d2d9e505aa9fd47e2fca2c86749067288a1f10787e16179a41e5c30d3f37f53e83f798719b8 SHA512 c38fe3f19162be02a44a353281690d40e90cb8ac8126ea4f9aab1218e128da0be3d1152cf260fdfd19ecfed2ea4396ae4a6c645088a1b212b58a3cba8387ce60
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
+DIST miniflux-2.0.44-deps.tar.xz 38348604 BLAKE2B 6709ad503ec64ea64fb35624ff0f6d641a6ccac78d52469a0a6c6e905e505c78866603f310e82c5ff7e1bcd7656cb0d9b3516bb9d0822d7a3f8bbbdadaff0aca SHA512 f463a5a63c5611e8b90ebf15127e05e2df878bb6c49a347f182c5df40feea7e0b2fa21cff4c92b6a99f82e8be4cbd113999f0b3ba6187897af9fad49c9a2aecb
+DIST miniflux-2.0.44.tar.gz 574354 BLAKE2B a0c29cb88d88584619e6890a01af15d7b7d9a6ab230b60d76c01d95e82c5ef665aeb19f120180bc328ef3847cae2c87096a096e8f0d0455f7694539556453e5b SHA512 6c1057bcb4daf3110a8885363e2386c6d68776e917f0277299ab94fb46553a8a1b3acf4a2893ab03d30e2b3c26118257e68a7f33d5d436884bfafd8e06fc5e0a
EBUILD miniflux-2.0.43-r1.ebuild 2599 BLAKE2B a27a012bcb041358e59b8405f62f256db3a0c761673e734b4a91710339ad6571c8dc54d917dd650943f6c0050e14a30d4ad276be722e56a5ff8662ab1c7353fe SHA512 77e489dae5f18e287a6065369de827e693a550686e98df5800334a6b2bbeab3d84f9a6871d187cf0caa9d26262444697755ea2f849e4510df129257d247a1605
+EBUILD miniflux-2.0.44.ebuild 2781 BLAKE2B 968bef093afe3bfb60b81e77fff6f9e6718915858f8c7ade029ff0e283be942ae1675e6a73b572b349088a9222c0dd4a0d461e87842d82e634f09095a73cafd0 SHA512 76717494428411241f19597a038340661442db90e68f35019456d95843f17a954e9583574d66d24f6286adfb55e1594cac305ac147d90e6d9af738c1faa408e9
MISC metadata.xml 329 BLAKE2B 50e914926db603f0d6e89f009847cab4ed7e771c33779da94e71d78dd4322457a19c8b1f4d9a27670fcde68ffd4480582c8def09973b84cc69bcf670fabfae19 SHA512 c00ceaf0e7d32f4395cdba01ce2af24ce7ab2d50baa250abe035f78d905b864fc1e0947226fce655adb5b0355030b30adabd6c64d306b83a5b8f6aae70dcdbcf
diff --git a/www-apps/miniflux/miniflux-2.0.44.ebuild b/www-apps/miniflux/miniflux-2.0.44.ebuild
new file mode 100644
index 000000000000..b2e63151f22c
--- /dev/null
+++ b/www-apps/miniflux/miniflux-2.0.44.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+# Get with 'git rev-parse --short HEAD'
+MY_GIT_COMMIT="4c0c6581"
+
+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}'
+ -X 'miniflux.app/version.Commit=${MY_GIT_COMMIT}'
+ -X 'miniflux.app/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."
+}