summaryrefslogtreecommitdiff
path: root/pcr/openswan
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-05 12:18:39 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-05 12:18:39 -0300
commita25ce8770ffdece0fb5f72f3e9430b837dd2313a (patch)
tree7e1d38f96c9880beec849ae111261e31affbf759 /pcr/openswan
parent8da103e14072dc4cc04231cbca851293f7185e74 (diff)
parent10011be8706083f4a1bdc5fb7af398a2bad0c56a (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/openswan')
-rw-r--r--pcr/openswan/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/pcr/openswan/PKGBUILD b/pcr/openswan/PKGBUILD
index 97cea98e6..ab7bd69f5 100644
--- a/pcr/openswan/PKGBUILD
+++ b/pcr/openswan/PKGBUILD
@@ -1,26 +1,31 @@
# Contributor: xjpvictor Huang <ke [AT] xjpvictor [DOT] info>
pkgname=openswan
pkgver=2.6.38
-pkgrel=1
+pkgrel=2
pkgdesc="Open Source implementation of IPsec for the Linux operating system"
url="http://www.openswan.org"
license=('GPL' 'custom')
arch=('i686' 'x86_64')
depends=('iproute2>=2.6.8' 'gmp' 'perl')
makedepends=('flex' 'bison')
-conflicts=('ipsec-tools' 'openswan')
-provides=('openswan')
+conflicts=('ipsec-tools')
backup=(etc/ipsec.conf \
etc/ipsec.d/policies/{block,clear,clear-or-private,private,private-or-clear})
source=(http://download.openswan.org/openswan/openswan-$pkgver.tar.gz
openswan
openswan.service)
+prepare() {
+ cd $srcdir/openswan-$pkgver
+ # Change install paths to Arch defaults
+ sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|;s|)/sbin|)/bin|' Makefile.inc
+}
+
build() {
cd $srcdir/openswan-$pkgver
# Change install paths to Arch defaults
- sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|' Makefile.inc
+ sed -i 's|/usr/local|/usr|;s|libexec/ipsec|lib/openswan|;s|)/sbin|)/bin|' Makefile.inc
make USE_XAUTH=true USE_OBJDIR=true programs
}