void-packages/srcpkgs/openvpn/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

26 lines
950 B
Bash

# Template file for 'openvpn'
pkgname=openvpn
version=2.3.6
revision=5
build_options="systemd"
build_style=gnu-configure
configure_args="--enable-password-save --enable-iproute2 $(vopt_enable systemd)"
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)"
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"
checksum=7baed2ff39c12e1a1a289ec0b46fcc49ff094ca58b8d8d5f29b36ac649ee5b26
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
}