summaryrefslogtreecommitdiff
path: root/pcr/strongswan/PKGBUILD
blob: ce2d9351849205233ba5a7f708d4bafed6ece7db (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
51
52
53
54
55
56
57
58
59
60
# Contributor: nikicat <develniks at gmail dot com>
# Contributor: danilo <gezuru at gmail dot com>
# Contributor: Jason Begley <jayray at digitalgoat dot com>
# Contributor: Ray Kohler <ataraxia937 at gmail dot com>
# Contributor: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
# Contributor: 458italia <svenskaparadox [at] gmail dot com>
# Contributor: Thermi <noel [at] familie-kuntze dot com>
# Maintainer: dkorzhevin <dkorzhevin at gmail dot com>

pkgname=strongswan
pkgver=5.2.2
pkgrel=1
pkgdesc="IPsec-based VPN Solution"
url='http://www.strongswan.org'
license=("GPL")
arch=('i686' 'x86_64' 'mips64el')
depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite')
makedepends=('ldns' 'unbound' 'networkmanager' 'libnm-glib')
optdepends=('unbound: dns resolver plugin'
            'networkmanager: nm backend')
conflicts=('openswan')
options=(!libtool)
backup=(etc/ipsec.conf etc/strongswan.conf)
source=(http://download.strongswan.org/${pkgname}-${pkgver}.tar.bz2{,.sig})
md5sums=('7ee1a33060b2bde35be0f6d78a1d26d0'
         'SKIP')
validpgpkeys=('948F158A4E76A27BF3D07532DF42C170B34DBA77')
changelog='CHANGELOG'

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
   export systemd_daemon_CFLAGS="-I/usr/include" \
          systemd_daemon_LIBS="-L/usr/lib -lsystemd"
   export systemd_journal_CFLAGS="-I/usr/include" \
          systemd_journal_LIBS="-L/usr/lib -lsystemd"

  ./configure --prefix=/usr \
        --sbindir=/usr/bin \
        --sysconfdir=/etc \
        --libexecdir=/usr/lib \
        --disable-static \
        --with-ipsecdir=/usr/lib/strongswan \
        --with-systemdsystemunitdir=/usr/lib/systemd/system \
        --enable-sqlite \
        --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 \
        --enable-eap-gtc --enable-eap-aka --enable-eap-aka-3gpp2 \
        --enable-eap-mschapv2 --enable-eap-radius --enable-xauth-eap \
        --enable-ha --enable-systemd --enable-nm

  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=${pkgdir} install
}