aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-05-06 16:44:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-06 16:44:28 +0000
commit302749e2d5084f8f091e4614d4393b0d98961c7d (patch)
treeab2399271737a1f9c36b0bd76290af0ff0f57659
parent867491d8f0e92fa372704458375eadf4d955e1ff (diff)
downloadaports-302749e2d5084f8f091e4614d4393b0d98961c7d.tar.gz
aports-302749e2d5084f8f091e4614d4393b0d98961c7d.tar.bz2
aports-302749e2d5084f8f091e4614d4393b0d98961c7d.tar.xz
main/strongswan: enable aesni on x86_64
ref #10120
-rw-r--r--main/strongswan/APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/strongswan/APKBUILD b/main/strongswan/APKBUILD
index 749cb0e25f..2a618c5a6e 100644
--- a/main/strongswan/APKBUILD
+++ b/main/strongswan/APKBUILD
@@ -3,7 +3,7 @@
pkgname=strongswan
pkgver=5.7.2
_pkgver=${pkgver//_rc/rc}
-pkgrel=0
+pkgrel=1
pkgdesc="IPsec-based VPN solution focused on security and ease of use, supporting IKEv1/IKEv2 and MOBIKE"
url="https://www.strongswan.org/"
arch="all"
@@ -69,6 +69,10 @@ build() {
# - apk depends on openssl, so we use that
# - openssl provides ciphers, randomness, etc
# -> disable all redundant in-tree copies
+ local _aesni=
+ case "$CARCH" in
+ x86_64) _aesni="--enable-aesni";;
+ esac
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -112,7 +116,8 @@ build() {
--enable-cmd \
--enable-swanctl \
--enable-shared \
- --disable-static
+ --disable-static \
+ $_aesni
make
}