| 1 | TERMUX_PKG_HOMEPAGE=https://openvpn.net/easyrsa.html |
| 2 | TERMUX_PKG_VERSION=3.0.1 |
| 3 | TERMUX_PKG_DEPENDS="openssl-tool" |
| 4 | TERMUX_PKG_SRCURL=https://github.com/OpenVPN/easy-rsa/releases/download/$TERMUX_PKG_VERSION/EasyRSA-$TERMUX_PKG_VERSION.tgz |
| 5 | TERMUX_PKG_SHA256=dbdaf5b9444b99e0c5221fd4bcf15384c62380c1b63cea23d42239414d7b2d4e |
| 6 | TERMUX_PKG_CONFFILES="etc/easy-rsa/openssl-1.0.cnf, etc/easy-rsa/vars" |
| 7 | TERMUX_PKG_FOLDERNAME=EasyRSA-$TERMUX_PKG_VERSION |
| 8 | TERMUX_PKG_MAINTAINER='Vishal Biswas @vishalbiswas' |
| 9 | TERMUX_PKG_BUILD_IN_SRC=true |
| 10 | |
| 11 | termux_step_make_install () { |
| 12 | install -D -m0755 easyrsa "${TERMUX_PREFIX}"/bin/easyrsa |
| 13 | |
| 14 | install -D -m0644 openssl-1.0.cnf "${TERMUX_PREFIX}"/etc/easy-rsa/openssl-1.0.cnf |
| 15 | install -D -m0644 vars.example "${TERMUX_PREFIX}"/etc/easy-rsa/vars |
| 16 | install -d -m0755 "${TERMUX_PREFIX}"/etc/easy-rsa/x509-types/ |
| 17 | install -m0644 x509-types/* "${TERMUX_PREFIX}"/etc/easy-rsa/x509-types/ |
| 18 | } |