summaryrefslogtreecommitdiff
path: root/app-misc/cznic-certificate/cznic-certificate-2.ebuild
blob: cae82bcd87f1d56e0ead42726bc28d62b574b667 (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
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Certification authority for CZ.NIC"
HOMEPAGE="https://wiki.nic.cz/public/cacert"
S="${WORKDIR}"

SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="app-misc/ca-certificates"
RDEPEND="${DEPEND}"
BDEPEND=""


src_install() {
	insinto /usr/local/share/ca-certificates
	newins "${FILESDIR}/cz.nic2-cacert.pem" "cz.nic2-cacert.crt"
}

pkg_postinst() {
	"${EROOT%/}"/usr/sbin/update-ca-certificates --root "${ROOT}"
}