mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-22 16:29:05 -07:00
www-apps/miniflux: drop 2.2.3
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
DIST miniflux-2.2.3-deps.tar.xz 113735492 BLAKE2B 49ddd2fb021a28a2c054769a1a0e098357d8a33ef17530a7a1234f523928557b63c9d8ff55b50921b583e77a3a682802404c41c75bebf8d7750546fb2b87ce38 SHA512 299120e84908200c67e47caf8fc00b3f10c5127209668f44a4fa0479aa46f93c26e2f5765432401cbd4218a727b12dbc09ae1dfcee8c80c8bc0c5319a26f665f
|
||||
DIST miniflux-2.2.3.tar.gz 761864 BLAKE2B 35d277ed671f18e2b2c5b59ae561d6c8bda5347e6b4993c5fa21d9b08ee0e92a55efde411a55f0fd47f150b2d2db984551be41aa61ab9a9b143f226514989d8b SHA512 35a60b57936fda1e678a76d4907cdf8d5c96096364fc45702ff2b27ba367a25fa6e06c58073664c4b1ab0b779f3882f8fa7ab6179e4ed70a771d00671e971ff6
|
||||
DIST miniflux-2.2.4-deps.tar.xz 121764040 BLAKE2B 978a83a010a1446b60305877fc95ba2a3f69c07bc6f28220d224a541e2d528d2dd5e5a44b8e933058b281d0d264bc430110632dd6cee864ba97f85f27dc53d43 SHA512 23954f3c11503ee3749c9f6fa90b9ba92c9711802af7f0f48c038f116a30adeb70787f964dac25e19b2c342de83fd193834f72b561265c68da107e07601d831d
|
||||
DIST miniflux-2.2.4.tar.gz 765890 BLAKE2B fe1d77cb476ee3f879efbf8ae866ac254fb447a275f94aff7b059a866b61cd7b9918ab0901ff709dc54ea34c5fede166ff700cb98a313048922b1c5dbf7830cd SHA512 d0fa96eb1b0768ab551c253d6cc5e5874dbcc26d3fbe767439656c3b66b813e4f4215a2058790ea61001c6a7ccce43834d871b5d72b14763007c26c8da78441d
|
||||
DIST miniflux-2.2.7-deps.tar.xz 127697292 BLAKE2B 131135ad923e7682ca3a3f7039337d67cfd180d8fe8cc6e87b1881b62a977dc1a903bc40c9ff9a387bd567ff66888828a4a9cb8baccfe1ca8d0f93c2d26f10aa SHA512 f0c720512f95514b08ca55620c331a6892202884502d29b170fb9c5e64089d9444075b698f831779826eadd01df7f6c85e03f9c1e535f8dd96c7b3046d9e98d1
|
||||
|
||||
@@ -1,107 +0,0 @@
|
||||
# Copyright 2020-2025 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."
|
||||
}
|
||||
Reference in New Issue
Block a user