aboutsummaryrefslogtreecommitdiffstats
path: root/main/strongswan
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-24 07:33:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-24 07:36:59 +0000
commit88d9ff87329f39aa9c5b91b296ad56980d2e0aa0 (patch)
tree37cfabb3fd76b972c590fbaea9a2f13361ac5c88 /main/strongswan
parentac5117f2e278b397839a5f97a0c7a21e71803104 (diff)
downloadaports-88d9ff87329f39aa9c5b91b296ad56980d2e0aa0.tar.bz2
aports-88d9ff87329f39aa9c5b91b296ad56980d2e0aa0.tar.xz
main/strongswan: define _GNU_SOURCE
We need define _GNU_SOURCE for strndup and others. It has been fixed upstream. see http://wiki.strongswan.org/issues/516 But rather than apply the patches we simply add _GNU_SOURCE to CFLAGS for now.
Diffstat (limited to 'main/strongswan')
-rw-r--r--main/strongswan/APKBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/strongswan/APKBUILD b/main/strongswan/APKBUILD
index 986f5bb5e..7788fcc7e 100644
--- a/main/strongswan/APKBUILD
+++ b/main/strongswan/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=strongswan
pkgver=5.1.1
-pkgrel=2
+pkgrel=3
pkgdesc="IPsec-based VPN solution focused on security and ease of use, supporting IKEv1/IKEv2 and MOBIKE"
url="http://www.strongswan.org/"
arch="all"
@@ -35,10 +35,12 @@ build() {
# notes about configuration:
# - try to keep options in ./configure --help order
# - apk depends on openssl, so we use that
- # - opnssl provides ciphers, randomness, etc
+ # - openssl provides ciphers, randomness, etc
# -> disable all redundant in-tree copies
- ./configure --prefix=/usr \
+ # see http://wiki.strongswan.org/issues/516 for _GNU_SOURCE
+ CFLAGS="$CFLAGS -D_GNU_SOURCE"\
+ ./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-ipsecdir=/usr/lib/strongswan \