# Template file for 'easyrsa'
pkgname=easyrsa
version=3.1.7
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=aaa48fadcbb77511b9c378554ef3eae09f8c7bc149d6f56ba209f1c9bab98c6e
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
	vlicense mktemp.txt
}
