# Contributor: # Maintainer: pkgname=strongswan pkgver=4.5.2 pkgrel=0 pkgdesc="IPsec-based VPN solution focused on security and ease of use, supporting IKEv1/IKEv2 and MOBIKE" url="http://www.strongswan.org/" arch="all" license="GPL-2 RSA-MD5 RSA-PKCS11 DES" depends="iproute2 openssl" depends_dev= makedepends="sqlite-dev openssl-dev curl-dev gmp-dev $depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://download.strongswan.org/$pkgname-$pkgver.tar.bz2 adns.patch strongswan.initd" _builddir= prepare() { local i cd "$srcdir/$pkgname-$pkgver" for i in $source; do case $i in *.patch) msg $i; patch -Np1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-ipsecdir=/usr/lib/strongswan \ --enable-pluto \ --enable-sqlite --enable-smartcard --enable-cisco-quirks \ --enable-openssl --enable-curl \ --enable-sql --enable-attr-sql \ --enable-farp --enable-dhcp \ --enable-eap-sim --enable-eap-sim-file --enable-eap-simaka-pseudonym \ --enable-eap-simaka-reauth --enable-eap-identity --enable-eap-md5 \ --disable-eap-gtc --enable-eap-aka --enable-eap-aka-3gpp2 \ --enable-eap-mschapv2 --enable-eap-radius \ --enable-ha \ --disable-mysql --disable-ldap \ --disable-static --enable-shared || return 1 make || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname" } md5sums="ac33b8f849a274127f84df0838cae953 strongswan-4.5.2.tar.bz2 64e8242e866ff9a99bdfae17d5d81e2a adns.patch fb9822512d02f521af8812db22a5175e strongswan.initd"