updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / strongswan / PKGBUILD
blobd3c7896c333e453ecae6466af94d7e7277af0e35
1 # Contributor: danilo <gezuru at gmail dot com>
2 # Contributor: Jason Begley <jayray at digitalgoat dot com>
3 # Contributor: Ray Kohler <ataraxia937 at gmail dot com>
4 # Maintainer: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
5 # Maintainer: 458italia <svenskaparadox [at] gmail dot com>
7 pkgname=strongswan
8 pkgver=4.6.1
9 pkgrel=1
10 pkgdesc="open source IPsec implementation"
11 url='http://www.strongswan.org'
12 license=("GPL")
13 arch=('i686' 'x86_64')
14 depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite3')
15 conflicts=('openswan')
16 options=(!libtool)
17 backup=(etc/ipsec.conf etc/strongswan.conf)
18 source=(http://download.strongswan.org/${pkgname}-${pkgver}.tar.bz2)
19 md5sums=('85a28a12ed6f286a5bc9117e3a9386bb')
21 build() {
22   cd ${srcdir}/${pkgname}-${pkgver} || return 1
24   ./configure   --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-ipsecdir=/usr/lib/strongswan \
25         --enable-sqlite --enable-cisco-quirks \
26         --enable-openssl --enable-curl \
27         --enable-sql --enable-attr-sql \
28         --enable-farp --enable-dhcp \
29         --enable-eap-sim --enable-eap-sim-file --enable-eap-simaka-pseudonym \
30         --enable-eap-simaka-reauth --enable-eap-identity --enable-eap-md5 \
31         --enable-eap-gtc --enable-eap-aka --enable-eap-aka-3gpp2 \
32         --enable-eap-mschapv2 --enable-eap-radius \
33         --enable-ha \
34         --disable-mysql --disable-ldap \
35         --disable-static --enable-shared || return 1
37   make || return 1
38   make DESTDIR=${pkgdir} install || return 1
40   install -d ${pkgdir}/etc/rc.d || return 1
41   ln -s /usr/sbin/ipsec ${pkgdir}/etc/rc.d/ipsec || return 1
42   install -Dm755 ${srcdir}/strongswan.rc ${pkgdir}/etc/rc.d/strongswan || return 1