Skip to content

Instantly share code, notes, and snippets.

@nikicat
Created July 13, 2012 19:15
Show Gist options
  • Save nikicat/3106784 to your computer and use it in GitHub Desktop.
Save nikicat/3106784 to your computer and use it in GitHub Desktop.
AUR strongswan 5.0.0. PKGBUILD
# 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>
# Maintainer: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
# Maintainer: 458italia <svenskaparadox [at] gmail dot com>
pkgname=strongswan
pkgver=5.0.0
pkgrel=1
pkgdesc="open source IPsec implementation"
url='http://www.strongswan.org'
license=("GPL")
arch=('i686' 'x86_64')
depends=('curl' 'gmp' 'iproute2' 'openssl' 'sqlite3')
conflicts=('openswan')
options=(!libtool)
backup=(etc/ipsec.conf etc/strongswan.conf)
source=(http://download.strongswan.org/${pkgname}-${pkgver}.tar.bz2 strongswan.rc::https://gist.github.com/raw/3106703/96d2ce9683f1e33ef14c679880ddc298e9673508/strongswan.rc)
md5sums=('c8b861305def7c0abae04f7bbefec212'
'cf815adef48a1ffee34517380c731277')
build() {
cd ${srcdir}/${pkgname}-${pkgver} || return 1
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --with-ipsecdir=/usr/lib/strongswan \
--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-ha \
--disable-mysql --disable-ldap \
--disable-static --enable-shared || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -d ${pkgdir}/etc/rc.d || return 1
ln -s /usr/sbin/ipsec ${pkgdir}/etc/rc.d/ipsec || return 1
install -Dm755 ${srcdir}/strongswan.rc ${pkgdir}/etc/rc.d/strongswan || return 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment