1 # Maintainer: Thomas Bächler <thomas@archlinux.org>
6 pkgdesc='Simple shell based CA utility'
8 url='https://github.com/OpenVPN/easy-rsa'
9 depends=('openssl' 'sh' 'grep')
11 backup=('etc/easy-rsa/openssl-easyrsa.cnf'
14 '65FF3F24AA08E882CB444C94D731D97A606FD463' # Josh Cepek <josh.cepek@usa.net>
15 '6F4056821152F03B6B24F2FCF8489F839D7367F3') # Eric Crist <ecrist@secure-computing.net>
16 source=("https://github.com/OpenVPN/easy-rsa/releases/download/v${pkgver}/EasyRSA-${pkgver}.tgz"{,.sig}
17 '0001-fix-paths.patch')
18 sha256sums=('cae114c212a5be4d89f2253d36c70ab94f68d295f24e8b6711c2cab0fabf7e18'
20 '097c0d4980698004b11cc5e4cf12229d1f4a498fd1bd5d0442f4bec2cf7b11ea')
25 # fix output of help command, we have it in PATH
26 sed -i 's|./easyrsa|easyrsa|' easyrsa
29 patch -Np1 < "${srcdir}"/0001-fix-paths.patch
35 install -D -m0755 easyrsa "${pkgdir}"/usr/bin/easyrsa
37 install -D -m0644 openssl-easyrsa.cnf "${pkgdir}"/etc/easy-rsa/openssl-easyrsa.cnf
38 install -D -m0644 vars.example "${pkgdir}"/etc/easy-rsa/vars
39 install -d -m0755 "${pkgdir}"/etc/easy-rsa/x509-types/
40 install -m0644 x509-types/* "${pkgdir}"/etc/easy-rsa/x509-types/
42 install -d -m0755 "${pkgdir}"/usr/share/doc/easy-rsa/
43 install -m0644 doc/* ChangeLog "${pkgdir}"/usr/share/doc/easy-rsa/
45 install -D -m0644 COPYING.md "${pkgdir}"/usr/share/licenses/easy-rsa/COPYING