diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-22 10:52:18 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-22 10:52:18 -0400 |
commit | 908d987dd1dcd4899f8f7f0878514c22ca8048b7 (patch) | |
tree | 29bf5986774207c3453044e1f370fb98d2431265 /pcr/strongswan | |
parent | 308bfb446305a96dffce945b6c4fb82b10d1b91b (diff) | |
parent | 8351d69e64a40d68fa32cfeea227b6fcf7afe974 (diff) | |
download | abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.gz abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.bz2 abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/strongswan')
-rw-r--r-- | pcr/strongswan/PKGBUILD | 45 | ||||
-rw-r--r-- | pcr/strongswan/strongswan.rc | 43 |
2 files changed, 88 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 +} diff --git a/pcr/strongswan/strongswan.rc b/pcr/strongswan/strongswan.rc new file mode 100644 index 000000000..58c99c092 --- /dev/null +++ b/pcr/strongswan/strongswan.rc @@ -0,0 +1,43 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting strongSwan IPsec" + /usr/sbin/ipsec start + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + add_daemon strongswan + fi + ;; + stop) + stat_busy "Stopping strongSwan IPsec" + /usr/sbin/ipsec stop + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + rm_daemon strongswan + fi + ;; + restart) + stat_busy "Restarting strongSwan IPsec" + /usr/sbin/ipsec restart + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + add_daemon strongswan + fi + ;; + status) + /usr/sbin/ipsec status + ;; + *) + echo "usage: $0 {start|stop|restart|status}" +esac + |