From cb8b9ab4e55ada7cc0f49db3114fc4249b1728c9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 13 Jul 2023 17:31:55 +0200 Subject: [PATCH] www-apps/gotify-server-bin: add 2.2.5 Signed-off-by: tastytea --- www-apps/gotify-server-bin/Manifest | 6 ++ .../gotify-server-bin-2.2.5.ebuild | 67 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 www-apps/gotify-server-bin/gotify-server-bin-2.2.5.ebuild diff --git a/www-apps/gotify-server-bin/Manifest b/www-apps/gotify-server-bin/Manifest index d95043d..c9a2424 100644 --- a/www-apps/gotify-server-bin/Manifest +++ b/www-apps/gotify-server-bin/Manifest @@ -10,3 +10,9 @@ DIST gotify-server-bin-2.2.4_arm64.zip 9312288 BLAKE2B 71066d64fe5f395f28e0cae0a 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 +DIST gotify-server-bin-2.2.5_amd64.zip 10004251 BLAKE2B 696bb2749d8a6dd8c31fe2a0a3fcf55b4aa8a5178a87f8b6e74b47c1a8972da76af81f67dcfbb33106bd31fe611f02a51493eeee6864715168f78dd42e8251a4 SHA512 4f224d4f4dfa317502b562ee7e5838c8542236a27faeceb6f39bbc4dd774fb3666a7d5d22f324f13fc902ef782978562f8a734e66077b848a1124287f14a6713 +DIST gotify-server-bin-2.2.5_arm.zip 9413973 BLAKE2B 0a71dfa85997ebb0266cf2c3efe9502cfa3d76b5e8dfac56c2f7c3c6b12ad3aa2f39b6e29e47842d31ad9e8772033f87927789ea43b858f66a8592dfc3a08fe7 SHA512 00f651f096b95b3b364278e8c0f9d93e7cee571c733b3c5c82cc18ea97f2054734ad2a7916b616d62538714a17b9597e82b70a609264713e3185fc189447b3be +DIST gotify-server-bin-2.2.5_arm64.zip 9311593 BLAKE2B b2b2ec3fd754eae5577a44b0ffb93256ffa73d1e7097d55e6e803b07239c25a1af823ca6a736e010c2566b213242e9d5bee3c5432d4cee8df1bcfa8705fceced SHA512 2eecad2167d0b306b85781c87c4d5e4796d890be7dadfb75b61ab24ac639b16813e20e86f4107513aa1dca66903ad034852feacc177f71bb81c461baf5e627f4 +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 diff --git a/www-apps/gotify-server-bin/gotify-server-bin-2.2.5.ebuild b/www-apps/gotify-server-bin/gotify-server-bin-2.2.5.ebuild new file mode 100644 index 0000000..70e2fa4 --- /dev/null +++ b/www-apps/gotify-server-bin/gotify-server-bin-2.2.5.ebuild @@ -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} +}