You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.4 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python3_{7,8})
EGIT_REPO_URI="https://github.com/plinss/${PN}.git"
[[ $PV == 9999 ]] && _scm=git-r3
inherit ${_scm} python-single-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}"
DEPEND=""
RDEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep '
>=dev-python/appdirs-1.4.3[${PYTHON_MULTI_USEDEP}]
>=dev-python/pyparsing-2.2.0[${PYTHON_MULTI_USEDEP}]
>=dev-python/packaging-16.8[${PYTHON_MULTI_USEDEP}]
>=dev-python/pyopenssl-17.5.0[${PYTHON_MULTI_USEDEP}]
>=dev-python/pydns-3.1.0:3[${PYTHON_MULTI_USEDEP}]
>=dev-python/cryptography-2.1.4[${PYTHON_MULTI_USEDEP}]
>=dev-python/asn1crypto-0.24.0[${PYTHON_MULTI_USEDEP}]
>=app-crypt/acme-0.25.1[${PYTHON_MULTI_USEDEP}]
>=dev-python/pyyaml-3.1[${PYTHON_MULTI_USEDEP}]
')
"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
default
python_fix_shebang .
}
src_configure() {
:
}
src_compile() {
:
}
src_install() {
python_doscript acmebot
insinto /etc/logrotate.d
doins logrotate.d/acmebot
insinto /etc/acmebot
doins acmebot.example.json
dodoc README.rst
}