void-packages/srcpkgs/easyrsa/template

29 lines
807 B
Bash
Raw Normal View History

2017-07-04 19:08:02 +02:00
# Template file for 'easyrsa'
pkgname=easyrsa
version=3.0.1
revision=1
conf_files="/etc/easyrsa/vars /etc/easyrsa/openssl-1.0.cnf
/etc/easyrsa/x509-types/*"
depends="libressl bash"
short_desc="Simple shell based CA utility"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2"
homepage="https://github.com/OpenVPN/easy-rsa"
distfiles="https://github.com/OpenVPN/easy-rsa/releases/download/$version/EasyRSA-$version.tgz"
wrksrc=EasyRSA-$version
checksum=dbdaf5b9444b99e0c5221fd4bcf15384c62380c1b63cea23d42239414d7b2d4e
noarch=yes
do_build() {
sed -i 's|./easyrsa|easyrsa|' easyrsa
}
do_install() {
vbin easyrsa
vinstall openssl-1.0.cnf 644 etc/easyrsa
vinstall vars.example 644 etc/easyrsa vars
vmkdir etc/easyrsa/x509-types
vcopy 'x509-types/*' etc/easyrsa/x509-types
vlicense COPYING
}