diff --git a/www-apps/gotify-server-bin/Manifest b/www-apps/gotify-server-bin/Manifest index a3f0202d3..dd03be18f 100644 --- a/www-apps/gotify-server-bin/Manifest +++ b/www-apps/gotify-server-bin/Manifest @@ -8,3 +8,8 @@ DIST gotify-server-bin-2.1.4_arm.zip 8503078 BLAKE2B a72a0f3f1f30cec6cea8a7f9b11 DIST gotify-server-bin-2.1.4_arm64.zip 8469368 BLAKE2B 90c9b7e0be6a51c084631f7a50f5d85f4cd6947130cae3ec2f65e2ed1562da7983f55e20f5c2c8801febebaec36a18b24e8327bc0f4ab090406d5971b2c4b735 SHA512 a38eadfee2274188f59de391d2c5942d13b223d5140f8437653682691fd0d3e698c3f3a9b8a1d95e723ad0d0a9c7c34a1c2ccde852496424c7cdfab33815903a DIST gotify-server-bin-2.1.4_config.example.yml 2435 BLAKE2B 1b6c5e97b1698d808c0a245031b660dcd933ba55a699c9660e2cf3c04d51effdb4d628795953a4ad49ba32999c73b255e26b8eaf819f368b1a11e98dda814705 SHA512 3939797cf58a066416f039db7b52d0446c2993ac07d9d930c93c9708c0d5a827c328b75613976a931cd9bf93bc0b259b96275ac07d72d4008f87973674df196f DIST gotify-server-bin-2.1.4_x86.zip 8784588 BLAKE2B c1a01b6fbaff846b9c518afc208957de0de64655e4d45845aa13003d26b380afe4c4fc9307f02ad6a829dbab80d9c5ec9c8e0804476f2e97cae71c59daf4452b SHA512 35623dd6843fd285065791207fa47d6923aa4409e5b1632ec8aa6cab35171aab8445043ab6dfc2432708147a5bbecb2df745c61ca5fbbac38d79245e1e658f83 +DIST gotify-server-bin-2.1.5_amd64.zip 9158283 BLAKE2B 6176961e2f8963ac6a5e2694d2f9478f84ea28e9165856a85e34d202be2d516f996b8993319b0dba74b790b9b9ac19ab0092bb736bea0c93d64028504453f4f4 SHA512 d6b8b36460471c9db5f566e1cea7dc18e8d1295f0fcd27585fe7b439e540d8d4a9d1c547f00b2291936aef1c661abed880c69f00a918b125735426c28f69f8aa +DIST gotify-server-bin-2.1.5_arm.zip 8502927 BLAKE2B c4a322139e98b3def67ea44aa570badc8f3e8332aef75579dfaf06adfef453e47f0ce9c63eb1c260bd58de382f878a79b01b2b5f47f67fe36e96f84ee5babd9d SHA512 5d77171585d28b81a92b94a1c406c7da55d7e9924829894378de359c88c24926281f6f6f416e8e26cd72c6d7465ce4cf43ac611f0f2dd6af9a97614503244b86 +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 diff --git a/www-apps/gotify-server-bin/gotify-server-bin-2.1.5.ebuild b/www-apps/gotify-server-bin/gotify-server-bin-2.1.5.ebuild new file mode 100644 index 000000000..e4b7f3e2c --- /dev/null +++ b/www-apps/gotify-server-bin/gotify-server-bin-2.1.5.ebuild @@ -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} +}