# # ~~~ 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" }