forked from tastytea/overlay
www-apps/gotify-server-bin: drop 2.1.7
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
464cb3eca5
commit
b37073cb1b
|
@ -1,8 +1,3 @@
|
|||
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
|
||||
DIST gotify-server-bin-2.2.0_amd64.zip 10002866 BLAKE2B cfc1df8941383cb565ace62713c8e1a117f534c49a93a87b3cb3d680904e83080d330d6a8b3570e658195beb54270d3556238447433964de8b07800b8328daeb SHA512 24bdf8cf105dc47524fd5a95a3976b08034dea3caae0dad34d6f358c8b7399451716f2fd086ebba84c6275fe5132d86a57d76f0d2850aa1e89d003173a35defb
|
||||
DIST gotify-server-bin-2.2.0_arm.zip 9413954 BLAKE2B 91e975b9bbbe150c99e6d5f26e713c99ed3319d900ba5ed0384b563c71e62eaa878214b2d7385753fd0dd7491e90d7a5fdd06a8823000c6dacdc789a2db6e63f SHA512 a26a8f397beab8509f155434999d84586bf5b25ad8fd39c8f4ba7f9950c9573cf3d42611ef050108349610e8fef4b9450772f39daecda73b3c7360d78404e175
|
||||
DIST gotify-server-bin-2.2.0_arm64.zip 9316593 BLAKE2B 5387bc3ae202bb47511e3a5400b42a42343eedc0317369dad5561cbe126237d2e3eab3a956f4930c91db508dc6524ac4b97c968d714493e9510dddd1e2e09005 SHA512 b1366466a258eb30b3c3452c23d6fd5629b861366c01e30506edded3b19205cd113a5c99ed9015dd6a3f9f0bcc2f65a7cae4ddef810a612ab9e859318dd0870d
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
# 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