2013-02-04 13:39:30 +00:00
|
|
|
# Template file for 'openvpn'
|
|
|
|
pkgname=openvpn
|
2014-12-02 06:50:43 +00:00
|
|
|
version=2.3.6
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=5
|
2014-10-30 07:21:36 +00:00
|
|
|
build_options="systemd"
|
2013-02-04 13:39:30 +00:00
|
|
|
build_style=gnu-configure
|
2014-10-30 07:21:36 +00:00
|
|
|
configure_args="--enable-password-save --enable-iproute2 $(vopt_enable systemd)"
|
2014-05-03 09:47:18 +00:00
|
|
|
hostmakedepends="iproute2"
|
2015-03-04 15:04:30 +00:00
|
|
|
makedepends="libressl-devel>=2.1.4 lzo-devel pam-devel $(vopt_if systemd systemd-devel)"
|
2014-10-30 07:21:36 +00:00
|
|
|
depends="iproute2"
|
2013-02-04 13:39:30 +00:00
|
|
|
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>"
|
2013-02-04 13:39:30 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.openvpn.net"
|
|
|
|
distfiles="http://swupdate.openvpn.org/community/releases/${pkgname}-${version}.tar.gz"
|
2014-12-02 06:50:43 +00:00
|
|
|
checksum=7baed2ff39c12e1a1a289ec0b46fcc49ff094ca58b8d8d5f29b36ac649ee5b26
|
2013-02-04 13:39:30 +00:00
|
|
|
|
|
|
|
post_install() {
|
2014-10-30 07:21:36 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/openvpn@.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2013-02-04 13:39:30 +00:00
|
|
|
vmkdir usr/share/examples/${pkgname}
|
|
|
|
cp -r sample/sample-config-files/* ${DESTDIR}/usr/share/examples/${pkgname}
|
|
|
|
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
}
|