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

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2023-01-14 18:49:38 +01:00
parent 28ac7b4445
commit 59ca5c830b
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.2_arm64.zip 9317983 BLAKE2B 21ab26b04a8aaa3ef91c87816
DIST gotify-server-bin-2.2.2_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.2.2_riscv.zip 9690535 BLAKE2B 37f28740af496d38ec18adff80fa590baa585888e808fea9119cfd2af5e8ce56f8308b112ad924b6b87c30e681f681b3609317ac1bc9517c53f22b15709bd104 SHA512 fa73c8b54658f86d671383c00d6dd34247487edcfd83d003e7466b495122dfb3f5fb6006ab51fd4717a75231b78aa538abf145e9bca0adf049168cbefbfe776a
DIST gotify-server-bin-2.2.2_x86.zip 9703158 BLAKE2B 34b95ec95756226efb4a85ffd2f4f5681fe26bbf8066e32c84cd665c247ab6405c73a1d301158779c26380ad36a3e0592ac109b09bfdb5dc90c6ed2f677c8a35 SHA512 41adf1606dad93a69cfa45173bd84ba30b496b34820d3aba6512572064767f9c367e1d2ece1abd43c4ecf632181556710414916853529b541f6e185d90f1bc48
DIST gotify-server-bin-2.2.4_amd64.zip 10000242 BLAKE2B 169b7041e52e62ed268b6d9e87dc432f21db35b04238dca8f328a2d85332f7151c6be29acd241f8e772ffe98a00d5a15315d741dc29830ec29cbac943b023f85 SHA512 40612ac4df647ad1fac305958b3b7d0ba5e7d00faeca479a81d47ee41571275d057fe5c0020179be95001493e50a14ad2415c6bda9571a87b8181ae1c853ea4a
DIST gotify-server-bin-2.2.4_arm.zip 9411051 BLAKE2B c8da86c3b2f5ae791f7a116fef6678354aaded99a2de68b7fb20308fd03c6356daeee16b00835d272756ab088f3235a74e7dfaa07d9adfcfef34c6619c5702a2 SHA512 cf02100b01343adcd9c5b00ec4e4bf3b6b1ae1b6bc9071e3ca8e7a34b27ac969afdadd54f8d03ef99ba00062a7428d787fb4c87d35e756f271fd2611ea094af0
DIST gotify-server-bin-2.2.4_arm64.zip 9312288 BLAKE2B 71066d64fe5f395f28e0cae0a9c5e6a9292d3469a5dc1d46757c91e3a7ae53cd4782d4fb34ddff94ea8a76a6e21e588f1c37af060442ce3f2f57e453827c617f SHA512 8740df776c824c3235d267e8ccbb2d374e07eb2add148030ed5cb137c3ca2989146ae761a2e90a59971a4b50d11ea53e117d2cb2c51b6b866db1d82b58127634
DIST gotify-server-bin-2.2.4_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.2.4_riscv.zip 9684194 BLAKE2B c14d37895133a58fdfb818f8d3ab7535a75855a46b5d68ade447ad0026fd84ed12b386b4a525b38a37480c5e3bab58625f3a30b402b86875eddd25b84a906c8a SHA512 5523b2e78d4d13d6ec04e3f8e60fa108e233e434adbcb72cdcfa73b05a51f09e8a0b0ceeb69d022fb99f948b8446d611b491519be6604b0ec0adba03aa4a476e
DIST gotify-server-bin-2.2.4_x86.zip 9695948 BLAKE2B 3be8c5687fdd8013275ff7c381b8bf69513492646b9fbfae5e3e610f7f68f142666e90ff8f2a949221fd3a2d25292819ebbb366012f360794964ccda20c15910 SHA512 00cff6c3df89ea16ef1d9f28bd5d0a56cb85314e46e612724c9477bc440be91d2ddb01be9478386fed611e59cbeab5900b441aafcb9aca40fb598479a15daab2

View File

@ -0,0 +1,67 @@
# Copyright 2021-2022 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}
}