void-packages/srcpkgs/openvpn/template

27 lines
950 B
Text
Raw Normal View History

# Template file for 'openvpn'
pkgname=openvpn
2014-10-30 11:00:33 +00:00
version=2.3.5
revision=1
build_options="systemd"
build_style=gnu-configure
configure_args="--enable-password-save --enable-iproute2 $(vopt_enable systemd)"
2014-05-03 09:47:18 +00:00
hostmakedepends="iproute2"
makedepends="libressl-devel lzo-devel pam-devel $(vopt_if systemd systemd-devel)"
depends="iproute2"
short_desc="An easy-to-use, robust, and highly configurable VPN (Virtual Private Network)"
2014-05-03 09:47:18 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.openvpn.net"
distfiles="http://swupdate.openvpn.org/community/releases/${pkgname}-${version}.tar.gz"
2014-10-30 11:00:33 +00:00
checksum=d93b447b014a41ec1550c3b760871aa72d7c09f1b5c6fc1e013d3073ac29ca21
post_install() {
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/openvpn@.service 644 usr/lib/systemd/system
fi
vmkdir usr/share/examples/${pkgname}
cp -r sample/sample-config-files/* ${DESTDIR}/usr/share/examples/${pkgname}
rm -rf ${DESTDIR}/usr/include
}