[arch-commits] Commit in vpnc/repos (6 files)

Dave Reisner dreisner at archlinux.org
Tue Aug 16 15:00:03 UTC 2011


    Date: Tuesday, August 16, 2011 @ 11:00:03
  Author: dreisner
Revision: 135601

db-move: moved vpnc from [testing] to [extra] (i686)

Added:
  vpnc/repos/extra-i686/
  vpnc/repos/extra-i686/PKGBUILD
    (from rev 135600, vpnc/repos/testing-i686/PKGBUILD)
  vpnc/repos/extra-i686/fix-iproute-syntax.patch
    (from rev 135600, vpnc/repos/testing-i686/fix-iproute-syntax.patch)
  vpnc/repos/extra-i686/vpnc.conf
    (from rev 135600, vpnc/repos/testing-i686/vpnc.conf)
  vpnc/repos/extra-i686/vpnc.rc
    (from rev 135600, vpnc/repos/testing-i686/vpnc.rc)
Deleted:
  vpnc/repos/testing-i686/

--------------------------+
 PKGBUILD                 |   43 +++++++++++++++++++++++++++++++++++++++++++
 fix-iproute-syntax.patch |   26 ++++++++++++++++++++++++++
 vpnc.conf                |   17 +++++++++++++++++
 vpnc.rc                  |   35 +++++++++++++++++++++++++++++++++++
 4 files changed, 121 insertions(+)

Copied: vpnc/repos/extra-i686/PKGBUILD (from rev 135600, vpnc/repos/testing-i686/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2011-08-16 15:00:03 UTC (rev 135601)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Thomas Baechler <thomas at archlinux.org>
+
+pkgname=vpnc
+pkgver=0.5.3
+pkgrel=4
+pkgdesc="VPN client for cisco3000 VPN Concentrators"
+url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
+license=('GPL')
+depends=('libgcrypt' 'openssl' 'iproute2' 'net-tools')
+optdepends=('openresolv: Let vpnc manage resolv.conf')
+arch=('i686' 'x86_64')
+source=("http://www.unix-ag.uni-kl.de/~massar/vpnc/$pkgname-$pkgver.tar.gz"
+        'vpnc.conf'
+        'vpnc.rc'
+        fix-iproute-syntax.patch)
+backup=('etc/vpnc/default.conf')
+md5sums=('4378f9551d5b077e1770bbe09995afb3'
+         'a3f4e0cc682f437e310a1c86ae198e45'
+         'c5885162ac198eaa36da9a01e7c0c55b'
+         '193a35773594667a2782701aff372551')
+
+build() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+
+  # Build hybrid support
+  sed -i 's|^#OPENSSL|OPENSSL|g' Makefile
+  
+  # Fix vpnc-script
+  sed 's|/sbin/resolvconf|/usr/sbin/resolvconf|g' -i vpnc-script.in
+  patch -p1 -i "${srcdir}"/fix-iproute-syntax.patch
+
+  make PREFIX=/usr
+}
+
+package() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" PREFIX=/usr install
+
+  install -D -m644 "${srcdir}"/vpnc.conf "${pkgdir}"/etc/vpnc/default.conf
+  install -D -m755 "${srcdir}"/vpnc.rc "${pkgdir}"/etc/rc.d/vpnc
+  rm -f "${pkgdir}"/etc/vpnc/vpnc.conf
+}

Copied: vpnc/repos/extra-i686/fix-iproute-syntax.patch (from rev 135600, vpnc/repos/testing-i686/fix-iproute-syntax.patch)
===================================================================
--- extra-i686/fix-iproute-syntax.patch	                        (rev 0)
+++ extra-i686/fix-iproute-syntax.patch	2011-08-16 15:00:03 UTC (rev 135601)
@@ -0,0 +1,26 @@
+From a1cac186f66d0f2e8b1dce67e648aae4219c3013 Mon Sep 17 00:00:00 2001
+From: Alessandro Suardi <alessandro.suardi at gmail.com>
+Date: Sat, 28 May 2011 23:20:15 +0100
+Subject: [PATCH 1/1] Cope with new kernel/iproute including ipid in route list
+
+Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
+---
+ vpnc-script |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/vpnc-script b/vpnc-script
+index cc62997..e0140c5 100755
+--- a/vpnc-script.in
++++ b/vpnc-script.in
+@@ -139,7 +139,7 @@ destroy_tun_device() {
+ 
+ if [ -n "$IPROUTE" ]; then
+ 	fix_ip_get_output () {
+-		sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g'
++		sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g;s/ipid 0x....//g'
+ 	}
+ 
+ 	set_vpngateway_route() {
+-- 
+1.7.3.4
+

Copied: vpnc/repos/extra-i686/vpnc.conf (from rev 135600, vpnc/repos/testing-i686/vpnc.conf)
===================================================================
--- extra-i686/vpnc.conf	                        (rev 0)
+++ extra-i686/vpnc.conf	2011-08-16 15:00:03 UTC (rev 135601)
@@ -0,0 +1,17 @@
+# example vpnc configuration file
+# see vpnc --long-help for details
+
+#Interface name tun0 
+#IKE DH Group dh2
+#Perfect Forward Secrecy nopfs
+
+# You may replace this script with something better
+#Script /etc/vpnc/vpnc-script
+# Enable this option for NAT traversal
+#UDP Encapsulate
+
+#IPSec gateway my.gateway.com
+#IPSec ID someid
+#IPSec secret somesecret
+#Xauth username myusername
+#Xauth password mypassword

Copied: vpnc/repos/extra-i686/vpnc.rc (from rev 135600, vpnc/repos/testing-i686/vpnc.rc)
===================================================================
--- extra-i686/vpnc.rc	                        (rev 0)
+++ extra-i686/vpnc.rc	2011-08-16 15:00:03 UTC (rev 135601)
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+  start)
+    stat_busy "Connecting to VPN"
+    /usr/sbin/vpnc
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon vpnc
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Disconnecting from VPN"
+    /usr/sbin/vpnc-disconnect
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon vpnc
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0




More information about the arch-commits mailing list