diff --git a/www-apps/gotify-server-bin/Manifest b/www-apps/gotify-server-bin/Manifest index d6708cd..7daaaf7 100644 --- a/www-apps/gotify-server-bin/Manifest +++ b/www-apps/gotify-server-bin/Manifest @@ -9,3 +9,9 @@ DIST gotify-server-bin-2.2.0_arm64.zip 9316593 BLAKE2B 5387bc3ae202bb47511e3a540 DIST gotify-server-bin-2.2.0_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f DIST gotify-server-bin-2.2.0_riscv.zip 9688522 BLAKE2B 9e2eaafa1819e62d52b6ceb448bb058ba56a05341b813b7d72a64dea886f28718c99029df3e15a7c4ff29a067fb7e4c414f6f2239a80c0430bc19760023cb552 SHA512 62adf8c8dbaf34100577b63a655b0f245f09722e56a0b67d87d645c5f207807759f41e0bc9407281287ed897b08efb74e55986427a708b98e5a367b9746a016b DIST gotify-server-bin-2.2.0_x86.zip 9697424 BLAKE2B 2798a09685ec9748415c50ed23c57f4e51f613c090cf4dcace7d94569ff06b04ac5cad9ab45eb5a57c05d31eb2427d18b5ae81762aa647fa0943e466c9f1830b SHA512 080582d63d4bf2c45820e71f96def6f40435e75a54dc696b5ade2337c77389aff8e77cd5a722bbd7a5e758ad895ecf178718a902e9bebe805856fcbdde1cd085 +DIST gotify-server-bin-2.2.1_amd64.zip 10002885 BLAKE2B cb1727e8f248be4fb74b237f4a3ee44817c52fc0093bb38ce962816fe38a64d468744d65e4727021bdbf933ba6c9f6460c339bd222df215ab59c3ffdcb755287 SHA512 a4bb60622bc232e740539ff2af7078e3a03a2aaedffb3c4429c1a014beda97fefda769d1ed151d86aeabaef30a44018b2055399f8d6a30e7963cd2049677bcd6 +DIST gotify-server-bin-2.2.1_arm.zip 9413852 BLAKE2B 511600e671d71531954025d2da6c21225ffb6aa9c39d9fcead28089bd29dcc2ce0bd796941a2b1322c35b71b88814a8669d0a75a164957558e95b5542123fe97 SHA512 0ef20503defffd1b2e4703f14a787e09ab089feeee2304bf293a69e0eadc7cc6b2749b3974e28dc5f16e880955099ffa9e268ba6b7d6bb3f809ec0f99f50b47d +DIST gotify-server-bin-2.2.1_arm64.zip 9317315 BLAKE2B ed7914da76990fb0a47841961c997e756051e683a72c35e7bda45cc1276ad6ea74c29561cce6b1e68ae6aaf29260b25af3effa1839f05dda557dfc22c8a78d23 SHA512 bf6b2d6f9e0ef58ec9a99680cfe1d4a728514528634816b61068fd2ac77f5132fc2324943ede8ac7f1735d4b1a3bb57123f49a86c530b3c6fc7ad7d3019dc3bf +DIST gotify-server-bin-2.2.1_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f +DIST gotify-server-bin-2.2.1_riscv.zip 9688619 BLAKE2B 9116de26dc1fee6cf419323b09667d55ff9304182eb23189aa86616457959d0fb453d2f46db38b986bbb990e5bf29990045c1b43a5f023c5c17697e2622f4b3e SHA512 ad017d7088a17979ea74904deac43f9d350eed0eee4988290383337d71fb26a0d8ceea9c304ea14c5fa95cba5a6c167f297b851e87b43d88e8b8982c9323aa69 +DIST gotify-server-bin-2.2.1_x86.zip 9697913 BLAKE2B ff33f54fa6f4cab9957bbecb7cd57a64cc6747059730a23e8fbeeaf1d0940529617123fa2d9fe0931d5cafb8245f20d2ddf300e96e50f43cc882ed93e5e8b6c3 SHA512 21357f5aad671cbf583fd5b49f3a626cf47eaa30c8fd3b6fd974c521b099d45edbe20f73dcf0f1271069bd77d0037c2c9be305751ec898db233b6e0ac2fd1a2e diff --git a/www-apps/gotify-server-bin/gotify-server-bin-2.2.1.ebuild b/www-apps/gotify-server-bin/gotify-server-bin-2.2.1.ebuild new file mode 100644 index 0000000..70e2fa4 --- /dev/null +++ b/www-apps/gotify-server-bin/gotify-server-bin-2.2.1.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} +}