void-packages/srcpkgs/openvpn/template
2021-10-06 18:28:28 +02:00

31 lines
1 KiB
Bash

# Template file for 'openvpn'
pkgname=openvpn
version=2.5.4
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable pkcs11) --disable-systemd
$(vopt_if mbedtls --with-crypto-library=mbedtls)"
hostmakedepends="pkg-config"
makedepends="$(vopt_if mbedtls mbedtls-devel openssl-devel) lzo-devel pam-devel
$(vopt_if pkcs11 pkcs11-helper-devel) cmocka-devel"
short_desc="Easy-to-use, robust, and highly configurable VPN"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.openvpn.net"
distfiles="http://build.openvpn.net/downloads/releases/${pkgname}-${version}.tar.xz"
checksum=56c0dcd27ab938c4ad07469c86eb8b7408ef64c3e68f98497db8c03f11792436
build_options="mbedtls pkcs11"
build_options_default="pkcs11"
desc_option_mbedtls="Build with mbedtls support"
desc_option_pkcs11="Enable support for PKCS#11"
vopt_conflict mbedtls pkcs11
make_check=ci-skip
post_install() {
vmkdir usr/share/examples/${pkgname}
cp -r sample/sample-config-files/* ${DESTDIR}/usr/share/examples/${pkgname}
rm -rf ${DESTDIR}/usr/include
}