summaryrefslogtreecommitdiff
path: root/pcr/openswan
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-06-04 10:06:39 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-06-04 10:06:39 -0300
commit2464712fe15dbc04f29c848c91c06bda456117f4 (patch)
treeec2c3f6afa5fe1786502a484b594c7bc6d7e58fa /pcr/openswan
parent3de2ae3dbc1389aa8ec71843924349bfb9a66a5c (diff)
openswan for /usr/bin merge
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
}