aboutsummaryrefslogtreecommitdiff
path: root/net-misc/ntfy/ntfy-2.22.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ntfy/ntfy-2.22.0.ebuild')
-rw-r--r--net-misc/ntfy/ntfy-2.22.0.ebuild67
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"
+}