blob: 2920491802294d17029007a5ce42a23657c3ec7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Charlie Wolf <charlie@wolf.is>
# Contributor: Christian Hesse <mail@eworm.de>
_basename=openvpn
pkgname=openvpn-aws
pkgver=2.6.14
pkgrel=1
pkgdesc='An easy-to-use, robust and highly configurable VPN (Virtual Private Network) with patches to support AWS Client VPN'
arch=('x86_64')
url='https://github.com/samm-git/aws-vpn-client'
license=('custom')
depends=('libcap-ng' 'libcap-ng.so'
'libnl' 'libnl-genl-3.so' 'libnl-3.so'
'lz4'
'lzo' 'liblzo2.so'
'openssl' 'libcrypto.so' 'libssl.so'
'pkcs11-helper' 'libpkcs11-helper.so'
'systemd-libs' 'libsystemd.so')
optdepends=('easy-rsa: easy CA and certificate handling'
'pam: authenticate via PAM')
makedepends=('git' 'systemd' 'python-docutils')
validpgpkeys=('F554A3687412CFFEBDEFE0A312F5F7B42F2B01E7' # OpenVPN - Security Mailing List <security@openvpn.net>
'B62E6A2B4E56570B7BDC6BE01D829EFECA562812') # Gert Doering <gert@v6.de>
source=("git+https://github.com/OpenVPN/openvpn.git#tag=v${pkgver}?signed"
'0001-unprivileged.patch'
'openvpn-v2.6.14-aws.patch')
sha256sums=('d8d156ddde53a011740a1fc23929b5caca3db42cd6b94e43e8ddaeb8608bc212'
'bb47b298b59300a4282fc4d0b69dcdd8dcfb72d2ff2f702f96ea369a8381456a'
'2ccc958430a26e06b4324465fbe7fc00dff8ef7eea0f5958915e5080463ed8f3')
prepare() {
cd "${srcdir}"/${_basename}
# https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19302.html
sed -i '/^CONFIGURE_DEFINES=/s/set/env/g' configure.ac
# start with unprivileged user and keep granted privileges
patch -Np1 < ../0001-unprivileged.patch
# patches needed for aws
patch -Np1 < ../openvpn-v2.6.14-aws.patch
autoreconf --force --install
}
build() {
mkdir "${srcdir}"/build
cd "${srcdir}"/build
"${srcdir}"/openvpn/configure \
--prefix=/usr \
--sbindir=/usr/bin
make
}
package() {
mkdir -p "${pkgdir}/usr/bin"
cp -a "${srcdir}/build/src/openvpn/openvpn" "${pkgdir}/usr/bin/openvpn-aws"
}
|