diff --git a/www-apps/gotify-server-bin/Manifest b/www-apps/gotify-server-bin/Manifest index f5d35bb..0fa21e0 100644 --- a/www-apps/gotify-server-bin/Manifest +++ b/www-apps/gotify-server-bin/Manifest @@ -8,3 +8,9 @@ DIST gotify-server-bin-2.1.7_arm.zip 9411260 BLAKE2B 94a7a1ada61b71ad24f31b1ce58 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 +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 diff --git a/www-apps/gotify-server-bin/gotify-server-bin-2.2.0.ebuild b/www-apps/gotify-server-bin/gotify-server-bin-2.2.0.ebuild new file mode 100644 index 0000000..70e2fa4 --- /dev/null +++ b/www-apps/gotify-server-bin/gotify-server-bin-2.2.0.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} +}