summaryrefslogtreecommitdiff
path: root/pcr/strongswan/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-15 15:14:50 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-15 15:14:50 -0500
commit3e6467f21d721bd98fa72ec5b842a673f3d60549 (patch)
treecfb2eccf4c72af1c4b700114026992f6a64194e2 /pcr/strongswan/PKGBUILD
parent3b2e0940912977aadb95b4b19f7f46c18b6ae93e (diff)
downloadabslibre-3e6467f21d721bd98fa72ec5b842a673f3d60549.tar.gz
abslibre-3e6467f21d721bd98fa72ec5b842a673f3d60549.tar.bz2
abslibre-3e6467f21d721bd98fa72ec5b842a673f3d60549.zip
Adding strongswan, tokyotyrant to pcr
Diffstat (limited to 'pcr/strongswan/PKGBUILD')
-rw-r--r--pcr/strongswan/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/pcr/strongswan/PKGBUILD b/pcr/strongswan/PKGBUILD
new file mode 100644
index 000000000..ed603e5c2
--- /dev/null
+++ b/pcr/strongswan/PKGBUILD
@@ -0,0 +1,45 @@
+# 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>
+# Maintainer: dkorzhevin <dkorzhevin at gmail dot com>
+
+pkgname=strongswan
+pkgver=5.0.1
+pkgrel=2
+pkgdesc="open source IPsec implementation"
+url='http://www.strongswan.org'
+license=("GPL")
+arch=('i686' 'x86_64' 'mips64el')
+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=('58fdeb49f133139a58f4d8adafc69a16'
+ '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-xauth-eap \
+ --enable-ha \
+ --disable-mysql --disable-ldap || 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
+}