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

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2023-07-25 19:39:24 +02:00
parent 74d7f21da5
commit 650d477ea6
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.2.5_arm64.zip 9311593 BLAKE2B b2b2ec3fd754eae5577a44b0f
DIST gotify-server-bin-2.2.5_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.2.5_riscv.zip 9686855 BLAKE2B 01250da42e7d9b36047e86299055ba21db1dc6b7f298128257088d796c6129f2cc6eee16d1ee0bd2829ead7a5dd4a6cde2f94ecca81023e57915b1197fb8b245 SHA512 1675e0df5248f8b82d4b3d8a63ee1e380721642fe24f9e7cc6242e4745e1bcb7cbf29b56476ec5a0b2d4d9c286e3865d5b3dc597ec817fbd4b0c6e05348c92c2
DIST gotify-server-bin-2.2.5_x86.zip 9699191 BLAKE2B e29dea9ae9624003dd1722f8bdacd84ec326aca54f22ca4df9dec9743a13cba48b93ced998e487f3fa14c26a3a779bf5640f7bf2c369c41288c38c2992f10852 SHA512 c8458a3867309f8a905b55f999c064addffc7821d49e961794170d09cec637ac1818dd9f4c570af097f62cde1fe2f048a38e9a6de9b85cc3b2bc9860148dc943
DIST gotify-server-bin-2.3.0_amd64.zip 9228143 BLAKE2B 48b84be32397a1abaa4ed293cbf62eed07ef224f8ff835fdf1e47ec84d1fd421298a8af326202d16c9bdb51c61e751e380e88476dafd45afa3016b6f720b83cb SHA512 ef5e56ce7e6da77efb3eca71157b8316303c680e2f0b57576e5ad397683c67ae841215cf1a552f7ed1433387554ca90571238e9c91d6d32417f5259e401d90bc
DIST gotify-server-bin-2.3.0_arm.zip 8674059 BLAKE2B 6222449488a450152064dd0f1cc82cc90351d218b9f479ac7e0ba33fcf664e62615e7c46b856255564741d41061ce035fb9faad36ab4551331f515f8c7df3923 SHA512 edf1cf14c72a8d7bc59cf35ace1f9da4ce5b1081d1c33aef58734103a60e54669ab6cfae04dc627ff015224fa56a48c71ab22f1bfb6bebae37d30fc801708c63
DIST gotify-server-bin-2.3.0_arm64.zip 8586725 BLAKE2B 64ac4660ca118d9a3581f8545d33ec0b869253aea359a6c599a499ca2a6b913928d86dbc84f25905b200f6e025aa85349737c4c5b5277df599ba7804a228451f SHA512 4fbfb6faf1e4b72068b0a10988aed74ceab05e4031cc6dac24dc9d068a07b19033d36f2e32ad7defe0492d8ccd69263853cdf39c55304dc122d33904e53d8e50
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

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}
}