www-apps/gotify-server-bin: Version bump 2.1.4

This commit is contained in:
tastytea 2022-01-25 12:27:41 +01:00
parent 3750674b09
commit 7b6ae455e0
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 70 additions and 0 deletions

View File

@ -8,3 +8,8 @@ DIST gotify-server-bin-2.1.3_arm.zip 8502701 BLAKE2B 52ba4aec2753b2c0b0ff050cd6a
DIST gotify-server-bin-2.1.3_arm64.zip 8469530 BLAKE2B 83301326e1cb796b4e4f26529f275274be9eeca73bb3ad24343443e14955fb1aa511e834a1e303d1429992a79a16cf87d3490ca25e8637bd1d414f30c805df8e SHA512 c88d1420f5f4de19c95d36ddd1499627c411ef449e5b6e04e41fa234a8d6bfe9cf9c35eb115aca7de261b99393c97e6ccbcb892ad3b30bf34270c65ab8e3f1d6
DIST gotify-server-bin-2.1.3_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.1.3_x86.zip 8783333 BLAKE2B 261d055f7ddfd84b3ef6e4b62637fbd7492620e9ea44e22d9721727d81614f63f68d877fdafa169bc45c39e848b7911fc6db19f76ed5e9053a8fec2760a2a209 SHA512 4678193dba537358f9a03ff4c82b114cec92ef2d4621fadfcae93537ea40d0579871134d4ed1601ff4a3d2e3dae27d88c2f3270c5c7f57c9469c9e1c31b074ac
DIST gotify-server-bin-2.1.4_amd64.zip 9155816 BLAKE2B 55aedae29f33d0a871e0e9b37c19094839bc03c9adf08649836c08b3caf0e94d30665f3d73e96911e78177b3bf5bb9d8253c07fc0cc2332a5b2e79c81f056bc9 SHA512 b234915b0a29f72895a93adc0803566c49dd553052b6faaf3b943c366f360323f409d2dc38ec4cd0bbec3e82aa885e0b8c235b42d336650ead9c7ff331bc87aa
DIST gotify-server-bin-2.1.4_arm.zip 8503078 BLAKE2B a72a0f3f1f30cec6cea8a7f9b11f94cd15fe3c1f5ec564a53660047d0ad89340cf0aeabbe722960a7db521406aef17c9055a94673db126bfb7379b996d1911dd SHA512 1b9d085efc311433dbdca0b1fa62cdc13f642b008c759d6f4fbb4662469ae65ea4c78a20f9a6dd7768fe4e267ed735e285f8dda873378d4edcae653cbd656059
DIST gotify-server-bin-2.1.4_arm64.zip 8469368 BLAKE2B 90c9b7e0be6a51c084631f7a50f5d85f4cd6947130cae3ec2f65e2ed1562da7983f55e20f5c2c8801febebaec36a18b24e8327bc0f4ab090406d5971b2c4b735 SHA512 a38eadfee2274188f59de391d2c5942d13b223d5140f8437653682691fd0d3e698c3f3a9b8a1d95e723ad0d0a9c7c34a1c2ccde852496424c7cdfab33815903a
DIST gotify-server-bin-2.1.4_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
DIST gotify-server-bin-2.1.4_x86.zip 8784588 BLAKE2B c1a01b6fbaff846b9c518afc208957de0de64655e4d45845aa13003d26b380afe4c4fc9307f02ad6a829dbab80d9c5ec9c8e0804476f2e97cae71c59daf4452b SHA512 35623dd6843fd285065791207fa47d6923aa4409e5b1632ec8aa6cab35171aab8445043ab6dfc2432708147a5bbecb2df745c61ca5fbbac38d79245e1e658f83

View File

@ -0,0 +1,65 @@
# Copyright 2021 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 )
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="x86"
use arm && myarch="arm"
use arm64 && myarch="arm64"
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}
}