diff options
| author | Autumn <git@autumnfo.rest> | 2026-04-28 19:22:47 +0100 |
|---|---|---|
| committer | Autumn <git@autumnfo.rest> | 2026-04-28 19:22:47 +0100 |
| commit | 9b0b35a36dcc505b0f5494f926693fc2baa853c3 (patch) | |
| tree | 3694454f8e9e6f6eb90915f0111500d15010ed59 /net-misc/ntfy/ntfy-2.22.0.ebuild | |
| parent | 09247212134ae58f027ead5bfb59293892f3dffc (diff) | |
[net-misc/ntfy] added ntfy 2.22.0
Diffstat (limited to 'net-misc/ntfy/ntfy-2.22.0.ebuild')
| -rw-r--r-- | net-misc/ntfy/ntfy-2.22.0.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
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" +} |
