-
Notifications
You must be signed in to change notification settings - Fork 1
/
sir-9999.ebuild
44 lines (33 loc) · 913 Bytes
/
sir-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-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python3_4 python3_5 )
inherit git-r3 python-r1 user
DESCRIPTION="Automated TLS certificate roll-over and TLSA updates."
HOMEPAGE="https://github.com/Skrupellos/sir"
EGIT_REPO_URI="https://github.com/Skrupellos/sir"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="${PYTHON_DEPS}
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
pkg_setup() {
enewuser sirpub
enewuser sirpriv
enewuser sirns
}
src_install() {
python_foreach_impl python_newscript ${PN}.py ${PN}
python_foreach_impl python_domodule ${PN}
insinto /etc/sir
newins examples/conf.yaml conf.yaml.example
rm examples/conf.yaml
keepdir /etc/sir/{rollover,sign}
keepdir /var/lib/sir/{keys,csrs,certs,chains}
dodoc README.md
dodoc -r examples
}