forked from tastytea/overlay
www-apps/gotify-server-bin: add 2.1.7
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
13a8a9abfd
commit
82799220ff
|
@ -8,3 +8,8 @@ DIST gotify-server-bin-2.1.5_arm.zip 8502927 BLAKE2B c4a322139e98b3def67ea44aa57
|
|||
DIST gotify-server-bin-2.1.5_arm64.zip 8470891 BLAKE2B fdf8dc7e860d824a7d054e2f5ee99d292294370ca7e4385ee4d31cb366460e99975177a967c59dd2669f1cbe8c3bfb737a4d84ad5c1202cc845886efecd9859e SHA512 91c576e55d53f5b85a43bc728689448fb4dae7af94180ee67f88749b470f82d30f47db93f5b280d80f7adfa5bfd993fa16f9b6620b1fb7a0516bad8b5d8513b9
|
||||
DIST gotify-server-bin-2.1.5_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
|
||||
DIST gotify-server-bin-2.1.5_x86.zip 8784623 BLAKE2B 07680f3e382cb28d92afbdc18c11b64d95f26c1ab542553235241802a5372aa95ad6b6c7bf466f99d8a0e3b827367ff4cbd0db1febd8ba78083da5e60298b941 SHA512 42fe25010ba7d0fb7220c1963ccde0c85516a66ab120a66af70b5f6c671b8a233d09358aabd2331c4aa18504f5b8fcfabd2f7fab5be4621c2cc2eea0375b325c
|
||||
DIST gotify-server-bin-2.1.7_amd64.zip 10001905 BLAKE2B a60e2289a5b6b2bc08faedb17c829a8ed4a7a772751c8896efeeacb0a6bfc573264c7e5f0512d2ca3c272ac1f02fd6bf59c45987991f2ba55c0f31fc20fa8350 SHA512 a25edb3193acc88d5080736f74578712dd4e3de4029eab2da9b442c655ca826d9375884216e794da98f7c73aa64f3f094f623c06fb7067831eb911e74cde7095
|
||||
DIST gotify-server-bin-2.1.7_arm.zip 9411260 BLAKE2B 94a7a1ada61b71ad24f31b1ce5812757b4222d675fa6a6c6bf97269717a76646570b27b2ac4d7135cc9433028b183f76c2222e11832db9958842a06a4285e47a SHA512 0032c4c12f7be2e318c9c696d67ae764656bd095273514dc152f49bde46db11794d4182e632d8074a4b898464f5488c7d20b80e344afd7771b14cb202fad80f0
|
||||
DIST gotify-server-bin-2.1.7_arm64.zip 9311580 BLAKE2B 46066eb4fffe9fad66a53d8275b9371206c57d23aed8acf7d7bf8b13ef6cc8d76bfc14f4f38c43dad7b4028528c9d361cbd5083a0455d8b0b27381d0bc2ff127 SHA512 1556bcd19d03fdb86ec20ae45861f41daabb86ffac3de8b3920569f409175f2fa8f4bbebd909d13ff45cadbe2d98ce7e8c9c31a61e8b871e25e1485289147ab6
|
||||
DIST gotify-server-bin-2.1.7_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f
|
||||
DIST gotify-server-bin-2.1.7_x86.zip 9698306 BLAKE2B 1475f9c735c7fe5280e704dc8a0268d65b1d7ef3f6cf3c087f8c858033c8895978b0ee76a2eb73d3a77ec442fe0898df0372e3503960eaacf76e69f8db9855a0 SHA512 866bf60aad12cdffb636e8897c951856b30be7b36c4ded76325989ce89e321017daf1492776a1c7d342492fd75ce4f61987110b20dc6cd4ff62a2ea017396f10
|
||||
|
|
65
www-apps/gotify-server-bin/gotify-server-bin-2.1.7.ebuild
Normal file
65
www-apps/gotify-server-bin/gotify-server-bin-2.1.7.ebuild
Normal file
|
@ -0,0 +1,65 @@
|
|||
# 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 )
|
||||
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}
|
||||
}
|
Loading…
Reference in New Issue
Block a user