blob: 2e3f36021d28ebc4382f46650ba88331e5f28bd1 (
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
|
# Contributor (Arch): Jason Begley <jayray at digitalgoat dot com>
# Contributor (Arch): Ray Kohler <ataraxia937 at gmail dot com>
# Maintainer (Arch): Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
# Maintainer (Arch): Dhruv Desai <svenskaparadox [at] gmail dot com>
pkgname=strongswan
pkgver=4.5.3
pkgrel=1
pkgdesc="open source IPsec implementation"
url='http://www.strongswan.org'
license=("GPL")
arch=('i686' 'x86_64' 'mips64el')
depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite3' 'networkmanager')
conflicts=('openswan')
options=(!libtool)
backup=(etc/ipsec.conf etc/strongswan.conf)
source=(http://download.strongswan.org/${pkgname}-${pkgver}.tar.bz2
strongswan.rc)
md5sums=('ee7c50a90c91307b111e8085f2479890'
'667ea2367cbe07c57721696e6b7e39df')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
--with-ipsecdir=/usr/lib/strongswan \
--enable-sqlite --enable-smartcard --enable-cisco-quirks \
--enable-openssl --enable-nm --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 \
--enable-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
make
}
package(){
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -d ${pkgdir}/etc/rc.d
ln -s /usr/sbin/ipsec ${pkgdir}/etc/rc.d/ipsec
install -Dm755 ${srcdir}/strongswan.rc ${pkgdir}/etc/rc.d/strongswan
}
|