blob: 9e591cf3e9ba1c40497b67382401cc1486966c04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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"
}
|