diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-10-31 13:45:10 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-10-31 13:45:10 -0300 |
commit | 97a832ff546d30bb6eec34f23fd94aecab9ac738 (patch) | |
tree | 90bbef126bf86efce995dfa00dadd9707baa8222 /social | |
parent | 9879fa51372849ca7b637a1c22010584ca552274 (diff) | |
parent | f935ebf41c626e4832f86c5f3f7ed1cc35128f6b (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/egoboo/PKGBUILD
extra/gnutls/PKGBUILD
extra/kdelibs/PKGBUILD
extra/maxima/PKGBUILD
extra/phonon/PKGBUILD
extra/rest/PKGBUILD
extra/ristretto/PKGBUILD
extra/samba/PKGBUILD
extra/sbcl/PKGBUILD
extra/xfce4-clipman-plugin/PKGBUILD
extra/xfce4-notifyd/PKGBUILD
libre/linux-libre/PKGBUILD
Diffstat (limited to 'social')
-rw-r--r-- | social/strongswan/PKGBUILD | 50 | ||||
-rwxr-xr-x | social/strongswan/strongswan.rc | 43 |
2 files changed, 93 insertions, 0 deletions
diff --git a/social/strongswan/PKGBUILD b/social/strongswan/PKGBUILD new file mode 100644 index 000000000..8c5e42885 --- /dev/null +++ b/social/strongswan/PKGBUILD @@ -0,0 +1,50 @@ +# 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: 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') +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 +} + diff --git a/social/strongswan/strongswan.rc b/social/strongswan/strongswan.rc new file mode 100755 index 000000000..58c99c092 --- /dev/null +++ b/social/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 + |