forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acmebot-9999.ebuild
44 lines (38 loc) · 1.18 KB
/
acmebot-9999.ebuild
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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python3_{5,6})
EGIT_REPO_URI="https://github.com/plinss/${PN}.git"
[[ $PV == 9999 ]] && _scm=git-r3
inherit ${_scm} python-r1
DESCRIPTION="Certificate manager bot using ACME protocol"
HOMEPAGE="https://github.com/plinss/acmebot"
if [[ $PV != 9999 ]]; then
SRC_URI="https://github.com/plinss/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="GPL-3"
SLOT="0"
[[ $PV != 9999 ]] && KEYWORDS="~amd64 ~x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
CDEPEND="
>=dev-python/appdirs-1.4.3[${PYTHON_USEDEP}]
>=dev-python/pyparsing-2.2.0[${PYTHON_USEDEP}]
>=dev-python/packaging-16.8[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-17.5.0[${PYTHON_USEDEP}]
>=dev-python/pydns-3.1.0:3[${PYTHON_USEDEP}]
>=dev-python/cryptography-2.1.4[${PYTHON_USEDEP}]
>=dev-python/asn1crypto-0.24.0[${PYTHON_USEDEP}]
>=app-crypt/acme-0.25.1[${PYTHON_USEDEP}]
"
RDEPEND="${CDEPEND}"
DEPEND=""
src_install() {
dobin acmebot
python_replicate_script "${ED}"/usr/bin/acmebot
insinto /etc/logrotate.d
doins logrotate.d/acmebot
insinto /etc/acmebot
doins acmebot.example.json
dodoc README.rst
}