From c4e48a84ff3195e8185ee42fb16612dc075fbf41 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 30 Oct 2024 11:15:14 +0100 Subject: www-apps/miniflux: add 2.2.2, drop 2.2.1 --- www-apps/miniflux/Manifest | 6 +- www-apps/miniflux/miniflux-2.2.1.ebuild | 107 -------------------------------- www-apps/miniflux/miniflux-2.2.2.ebuild | 107 ++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+), 110 deletions(-) delete mode 100644 www-apps/miniflux/miniflux-2.2.1.ebuild create mode 100644 www-apps/miniflux/miniflux-2.2.2.ebuild (limited to 'www-apps/miniflux') diff --git a/www-apps/miniflux/Manifest b/www-apps/miniflux/Manifest index 55ca500..20c2798 100644 --- a/www-apps/miniflux/Manifest +++ b/www-apps/miniflux/Manifest @@ -3,7 +3,7 @@ AUX miniflux.conf 809 BLAKE2B 4465c338fa13d3465731fcb98616d08d4fbcfdad6e10eb3f08 AUX miniflux.confd 171 BLAKE2B 2d38a12678c7873ac31473a2160d1416d168e384c519fe48feebf4ea3d4e6c734ff198e652df8b0af7da5c3543eff5321a02b6991de131d746b89e3b5fb7db08 SHA512 13b43595e7a5bca01b9fbff9fc6979d408b32109bafc23cfae29a9470b5333a244ee1f1bc94ba436d93e2d2c55640690202ac1201884f9ea5499fa0161af059a AUX miniflux.initd-r1 611 BLAKE2B 74d84f8f24a672c2fd4adedf6dc8629307638bed4a04e7c2948beabb0a7f1710a78f0054b23cc906caa08d27310473d5f45766ef9a6d04dfdef4ba7c1199a682 SHA512 7dbc37b56b8d099d3a95c5707c1666d177c03dc46d42dcc3827b771fc9cee34d489c7f240049a14b6784a4434183c70e0ba9679e982608121a8e4098e1a45a9e AUX miniflux.service 463 BLAKE2B e6f1a3717e985f3ddae4224472b753f293a73ab015acbe80ddf20d2d9e505aa9fd47e2fca2c86749067288a1f10787e16179a41e5c30d3f37f53e83f798719b8 SHA512 c38fe3f19162be02a44a353281690d40e90cb8ac8126ea4f9aab1218e128da0be3d1152cf260fdfd19ecfed2ea4396ae4a6c645088a1b212b58a3cba8387ce60 -DIST miniflux-2.2.1-deps.tar.xz 112768080 BLAKE2B 9206180a3af5113c8c563f12d9286fe6ae802afc40ef1645fd6ee44c94c51d944bd6bfff4c4cc5f04462b931c7e479548d578acd9efadc2f79fb30bbe00ed6da SHA512 e20ed37364d82b17e01a44b44e67dfe9f6ca27bffd532395da0466e40730ea73930b54fb3ac01d08f7a6396fd5ae8255aa2020ee7b7fa0027ecffd4b35619e16 -DIST miniflux-2.2.1.tar.gz 750710 BLAKE2B 661d1ccf39e1ccd47bda4fd61cc65211888d0c52dcdefe9fa41ccd3187615e3131685af06ef69a1632416528e66654f52304354d54edde88276769fea3d27678 SHA512 ab0744a3c2951e3e31ae778d3822e1b2c20f2085d01934bbb15d0dfc9c6814f6ec44835c7ba60629eaf438acbf25ea2adfbf808867ec9c711cc9e22d716e89bd -EBUILD miniflux-2.2.1.ebuild 2806 BLAKE2B c6d622a54f5134b4bb6ac6d790da69dc23fff6848bbc3b1bd5e0b2d1c40b82871e3aae485020a9c502dd01257809b53664e71b6ca0fb05faf31162acf068e536 SHA512 a77ad58ba1aa3e3e3214e3cc04b64ecaf8c7f2979f8e9b945983acb240a5658d72b02d377f943dc5c6c8cdaa183262c9e2b363937674868f1cd5b692a1d80d38 +DIST miniflux-2.2.2-deps.tar.xz 112732284 BLAKE2B 1e80c2956eaa326b32cc405ad35f4a2a749fff49dd89cdc4a37ab27b7cd8eb99f0230c03b4331460d0e7b3ceee547cdd33751e84528253790da2c9401d006c98 SHA512 318811a26e69799186e0d4b98049a218f33ac0c27a1324d38a38e0bc76b761cf3fd8a8fc2ae9053f3fef926f66a8105523faf741a13393d07fbcb32afed255b3 +DIST miniflux-2.2.2.tar.gz 761185 BLAKE2B 738220bbc4605e4d353ed4501daa916bceaf15e927060991035ccb28912ac22a70a5db8620b64d23c2c2664d204725c0f9c584dd2ceb6a375bbabf406706d68d SHA512 6866f59b89b4e173264444e9076208d6ad354839618af69a47e7e130602c8c5ab603daa87e715e3b9cbfdd2dc0911022df32bd9d03046e6562b38ae5d9b78981 +EBUILD miniflux-2.2.2.ebuild 2806 BLAKE2B bf82fd48bed64b84ccd76c66b6c4765c24c72a39667a7fba2bbb81320ff4cfe761d503a53961cb147618770833c20ab48de7ba9f7823e197e366958e11aa850a SHA512 f4abc86446b15b273b89665be59a09f5bd886ef2bd062aac573b447b0b999fa65c48c4e958da37ce01b03ac7785928405caece5bdca1feb3fc591cc7ee590df6 MISC metadata.xml 328 BLAKE2B be87574748c7d9f422aecdc2bf2ed7cb400902dde46745d64705bf597367b063cc7ec722561e34d9c8cf15a8c52623062426590363daf18108a9e3fa53a3108f SHA512 4995d59f29aefc41589c247508f6c299f2c2b88fb9f82cdd9767a04b6c0ba2a30cfe0a499af6649118e74fde1cdade54553be34a73c004f7a925b6f3f4edee50 diff --git a/www-apps/miniflux/miniflux-2.2.1.ebuild b/www-apps/miniflux/miniflux-2.2.1.ebuild deleted file mode 100644 index 69716e9..0000000 --- a/www-apps/miniflux/miniflux-2.2.1.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# 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="faa70f30" - -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://nest.oriole.systems/gentoo/go-mod/${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." -} diff --git a/www-apps/miniflux/miniflux-2.2.2.ebuild b/www-apps/miniflux/miniflux-2.2.2.ebuild new file mode 100644 index 0000000..39eaef2 --- /dev/null +++ b/www-apps/miniflux/miniflux-2.2.2.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="051bdeca" + +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://nest.oriole.systems/gentoo/go-mod/${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." +} -- cgit v1.2.3-2-gb3c3