summaryrefslogtreecommitdiff
path: root/pcr/openswan
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-04 16:17:33 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-04 16:17:33 -0300
commita2f627f90d670f8efb2779faff42b9fd120f7a1d (patch)
tree8ee5ff8ea0ea84181350aaa5ef3065d7d304dc10 /pcr/openswan
parent7b57b2de011c92d119b2c0527cf1565a4e262d8d (diff)
downloadabslibre-a2f627f90d670f8efb2779faff42b9fd120f7a1d.tar.gz
abslibre-a2f627f90d670f8efb2779faff42b9fd120f7a1d.tar.bz2
abslibre-a2f627f90d670f8efb2779faff42b9fd120f7a1d.zip
openswan: upgrade
Diffstat (limited to 'pcr/openswan')
-rw-r--r--pcr/openswan/PKGBUILD22
1 files changed, 10 insertions, 12 deletions
diff --git a/pcr/openswan/PKGBUILD b/pcr/openswan/PKGBUILD
index 3d20cb08d..4a81ca23b 100644
--- a/pcr/openswan/PKGBUILD
+++ b/pcr/openswan/PKGBUILD
@@ -1,22 +1,23 @@
# Contributor (Arch): xjpvictor Huang <ke [AT] xjpvictor [DOT] info>
pkgname=openswan
-pkgver=2.6.38
-pkgrel=2
+pkgver=2.6.41
+pkgrel=1
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')
+optdepends=('python2')
makedepends=('flex' 'bison')
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
}
@@ -24,17 +25,14 @@ prepare() {
build() {
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
-
make USE_XAUTH=true USE_OBJDIR=true programs
}
package() {
- cd $srcdir/openswan-$pkgver
-
# Create /etc/rc.d for init script, and license directory
mkdir -p $pkgdir/{etc/rc.d,usr/share/licenses/openswan}
+
+ cd $srcdir/openswan-$pkgver
make DESTDIR=$pkgdir install
# Change permissions in /var
@@ -44,13 +42,13 @@ package() {
cp LICENSE $pkgdir/usr/share/licenses/openswan
# Install init script
- install -Dm755 ../openswan $pkgdir/etc/rc.d/openswan
install -Dm644 ../openswan.service $pkgdir/usr/lib/systemd/system/openswan.service
mkdir $pkgdir/usr/lib/systemd/scripts/
- cp $pkgdir/etc/rc.d/ipsec $pkgdir/usr/lib/systemd/scripts/ipsec
+ mv $pkgdir/etc/rc.d/ipsec $pkgdir/usr/lib/systemd/scripts/ipsec
# fix manpages
mv $pkgdir/usr/man $pkgdir/usr/share/
+ # fix python2
+ sed -i '1s|python|python2|' $pkgdir/usr/lib/openswan/verify
}
-md5sums=('13073eb5314b83a31be88e4117e8bbcd'
- '543d84162761b9cc9ec319e938c4dd2a'
+md5sums=('da2e8b02ecc30a408cc5766767fef84f'
'd8b465c10838c72e31329d65011002b6')