www-apps/gotify-server-bin: add 2.4.0

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2023-09-28 14:50:32 +02:00
parent 81f98278fd
commit fb5a470e20
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 73 additions and 0 deletions

View File

@ -10,3 +10,9 @@ DIST gotify-server-bin-2.3.0_arm64.zip 8586725 BLAKE2B 64ac4660ca118d9a3581f8545
DIST gotify-server-bin-2.3.0_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.3.0_riscv.zip 8939227 BLAKE2B 2f87cc48efef23f1f857eadc34dc2e0a987faf11052cadd322aca1ad7d9c499ea933ba6ca7645088aed2ed21dd32b5b44d4a4bd7974664327c78b2dcacc430f5 SHA512 f9f1c1da7a4b4a8d0ede89b51f72a3353bb81efc30c2037b107b1c03b9a1ecad19e7d414377ffae8c61c7ee356202dde7bbb22cd8921ed4e04771ac9e0655040
DIST gotify-server-bin-2.3.0_x86.zip 8967434 BLAKE2B 601a0f6ba504abb73eadbd37392d3206e37e82f443ab4aa673e116b8627a04e322284dada6db3c335874d04655e46686beb0f1401f912dc29f9ad4cf2ea2be80 SHA512 96316fbf43091312f8cfed9cf500512e5868a5c360b4e11f84ff8d7bb581ad9893c6610a571c2b6835c0b687e203d81471b4e13e8f1873a575ac1224c173421b
DIST gotify-server-bin-2.4.0_amd64.zip 9676066 BLAKE2B 74c97bb0351fc751a40d08fba36233d2ebfd3516b272d3c83ab0a3a4758084c9002affa608e5f820f667f1f658ea08d6fd60097d48fb87f110433d2494bbad46 SHA512 d7329714ceb6d9230d89f64339b04c7d303a1695dba7da51465aa9d035228bdde74de105bf484f71ad2d02f7aaa14dfdda0e390920ce986b175a4239f1f7d2b7
DIST gotify-server-bin-2.4.0_arm.zip 9197599 BLAKE2B ba31e1c1d533b3ac9aeb7f966f10836a7f13a3d4736c9937a304f8afe74206303a0ab919a2c502f7d600934f35de62a103c9bf9d41180c4de302d5e4c9813950 SHA512 072ff7b5d1eddcdccb2fa6af74ea2435eeb6649ffd94e80962e93d37b416c5ba0afbe30f3da4f238f9ea6c0f45dfac6f960067e98034aba0265db923f74644c4
DIST gotify-server-bin-2.4.0_arm64.zip 9026603 BLAKE2B 2de29c835c62c1d8e968dad8907f6167b8ff7ab14cb9fc8b5c774bc2c14caf415964a5b8ea04ba53cb8b4ef293fb0b9d9afb4f2440c29d326b935cc7be24ec8f SHA512 a87e314d63dd123d31ddf1c389a14c2ff7a51fead45815d887c3b9c9616425fc8e00c1cba7147e30e5a794f48f51efa9d3358760158782b149c21340045a9326
DIST gotify-server-bin-2.4.0_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.4.0_riscv.zip 9401138 BLAKE2B b8e224f3e5814f890e4bb03508b5f674d6a3c16639208f49ec98857a3985c2d7b4fe330bc852e62076d8dbdfe037e503fcf656f4fd363083dcf6b19ec32dc1c9 SHA512 33b9dd903c885420b92627cfca073480f0b5420574622865b20a6164532d8edfd876ade97a6293e2925286ce5b028299d0ef5d1cf96f4ccc200a0af1d5e427a6
DIST gotify-server-bin-2.4.0_x86.zip 9336688 BLAKE2B 8bf5add0e926922376ad577af027479e72b74b00c43160dd98a823afdff0155ff9139e2ba251a8e896f54a98548065d1101617e271fbaa52e064dcc40db44da2 SHA512 448bd57045a4523906914888aa2c16ed4fa2c151aad24078c14c502c8685b21f5aa780984cb1624216b27f44ace8fe8332df31d876034f4c46f56ef457258287

View File

@ -0,0 +1,67 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="Simple server for sending and receiving messages in real-time per WebSocket"
HOMEPAGE="https://gotify.net/"
# NOTE: Only amd64 is tested.
SRC_URI="
amd64? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-amd64.zip -> ${P}_amd64.zip )
x86? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-386.zip -> ${P}_x86.zip )
arm? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-arm-7.zip -> ${P}_arm.zip )
arm64? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-arm64.zip -> ${P}_arm64.zip )
riscv? ( https://github.com/gotify/server/releases/download/v${PV}/gotify-linux-riscv64.zip -> ${P}_riscv.zip )
https://raw.githubusercontent.com/gotify/server/v${PV}/config.example.yml -> ${P}_config.example.yml
"
S="${WORKDIR}"
LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="logrotate systemd"
RDEPEND="acct-user/gotify"
DEPEND="${RDEPEND}"
BDEPEND="app-arch/unzip"
QA_PREBUILT="/usr/bin/${PN}"
src_prepare() {
cp "${DISTDIR}/${P}_config.example.yml" config.example.yml || die
sed -i 's/listenaddr: ""/listenaddr: "[::1]"/' config.example.yml || die
cp "${FILESDIR}/${PN}.logrotate" . || die
if use systemd; then
sed -Ei "s/^(\s*)rc-service.*/\1systemctl restart ${PN}.service/" \
${PN}.logrotate || die
fi
default
}
src_install() {
local myarch="amd64"
use x86 && myarch="368"
use arm && myarch="arm-7"
use arm64 && myarch="arm64"
use riscv && myarch="riscv64"
newbin gotify-linux-${myarch} ${PN}
dodoc config.example.yml
newinitd "${FILESDIR}/${PN}.initd" ${PN}
systemd_newunit "${FILESDIR}/${PN}.service" ${PN}.service
if use logrotate; then
insinto etc/logrotate.d
newins ${PN}.logrotate ${PN}
fi
diropts --owner=gotify --group=gotify --mode=750
keepdir var/lib/gotify
keepdir etc/gotify
keepdir var/log/${PN}
}