# Template file for 'easyrsa'
pkgname=easyrsa
version=3.2.4
revision=1
depends="openssl"
short_desc="Simple shell based CA utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, ISC"
homepage="https://github.com/OpenVPN/easy-rsa"
changelog="https://github.com/OpenVPN/easy-rsa/raw/master/ChangeLog"
distfiles="https://github.com/OpenVPN/easy-rsa/releases/download/v${version}/EasyRSA-${version}.tgz"
checksum=ed65e88cea892268efa71eb1161ce13af3beded6754301e1e713e36ff3613cac
conf_files="/etc/easyrsa/vars /etc/easyrsa/openssl-easyrsa.cnf /etc/easyrsa/x509-types/*"

do_install() {
	vinstall easyrsa 755 etc/easyrsa
	vinstall openssl-easyrsa.cnf 644 etc/easyrsa
	vinstall vars.example 644 etc/easyrsa vars
	vcopy x509-types etc/easyrsa
	vlicense COPYING.md
}
