From 9b0b35a36dcc505b0f5494f926693fc2baa853c3 Mon Sep 17 00:00:00 2001 From: Autumn Date: Tue, 28 Apr 2026 19:22:47 +0100 Subject: [net-misc/ntfy] added ntfy 2.22.0 --- net-misc/ntfy/ntfy-2.22.0.ebuild | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 net-misc/ntfy/ntfy-2.22.0.ebuild (limited to 'net-misc/ntfy/ntfy-2.22.0.ebuild') diff --git a/net-misc/ntfy/ntfy-2.22.0.ebuild b/net-misc/ntfy/ntfy-2.22.0.ebuild new file mode 100644 index 0000000..9e591cf --- /dev/null +++ b/net-misc/ntfy/ntfy-2.22.0.ebuild @@ -0,0 +1,67 @@ +# +# ~~~ net-misc/ntfy +# +# ~~~ send push notifications to a phone +# + +# +# ~~~ metadata + +# portage info +EAPI=8 +SLOT=0 + +KEYWORDS="amd64" +IUSE="+server" + +# info +HOMEPAGE="https://ntfy.sh/" +DESCRIPTION="Send push notications to your phone using PUSH/PUT" +LICENSE="GPL-2" + +# package data +SRC_URI=" + https://github.com/binwiederhier/ntfy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://files.autumnfo.rest/gentoo/ntfy/ntfy-${PV}-vendor.tar.gz" + +# +# ~~~ dependencies + +# use systemd +inherit systemd + +# build-time dependencies +BDEPEND="dev-lang/go" + +# run-time dependencies +RDEPEND=" + acct-user/ntfy + acct-group/ntfy" + +# +# ~~~ steps + +# configure +src_configure() { + : +} + +# compile +src_compile() { + if use server; then + emake cli-linux-server + else + emake cli-client + fi +} + +# install +src_install() { + dobin dist/ntfy_linux_server/ntfy + + keepdir /var/lib/ntfy /etc/ntfy + fowners ntfy:ntfy /var/lib/ntfy /etc/ntfy + fperms 0750 /var/lib/ntfy /etc/ntfy + + systemd_dounit "${FILESDIR}/ntfy.service" +} -- cgit v1.3