summaryrefslogtreecommitdiff
path: root/app-misc/cznic-certificate/cznic-certificate-2.ebuild
blob: f11ee77990fd2721003000590cc5d7e092a8d4e7 (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
# 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"

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}"
}