pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/vpnc Invoke pkgsrc Perl with absolute path.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c33450e7b96
branches:  trunk
changeset: 604141:0c33450e7b96
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Wed May 23 16:07:51 2012 +0000

description:
Invoke pkgsrc Perl with absolute path.

diffstat:

 net/vpnc/distinfo         |   4 ++--
 net/vpnc/patches/patch-ac |  13 +++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (53 lines):

diff -r a97abaabd547 -r 0c33450e7b96 net/vpnc/distinfo
--- a/net/vpnc/distinfo Wed May 23 15:18:16 2012 +0000
+++ b/net/vpnc/distinfo Wed May 23 16:07:51 2012 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.17 2011/05/18 12:28:50 is Exp $
+$NetBSD: distinfo,v 1.18 2012/05/23 16:07:51 hauke Exp $
 
 SHA1 (vpnc-0.5.3.tar.gz) = 321527194e937371c83b5e7c38e46fca4f109304
 RMD160 (vpnc-0.5.3.tar.gz) = 6f3926901e75dc98762f6ef45782930f2fb76a2f
 Size (vpnc-0.5.3.tar.gz) = 98740 bytes
 SHA1 (patch-aa) = d1ebdb0cc695001f0d5d7a88db332e0e5cc5c3b9
 SHA1 (patch-ab) = 14aa011b36fcf1da54d506fd5398cfc55cb11748
-SHA1 (patch-ac) = 91f3614d52c81a8eff5cc189aeeeb19ba611b4eb
+SHA1 (patch-ac) = 2f1d8b35a0a5a05d14c7f7d947e2ad58a70ce187
 SHA1 (patch-ad) = 7e31f1804541eb4de9924edcc517304487aad0f2
 SHA1 (patch-ae) = ae3e4be379965911dec27b6bb407ae1af017d88e
 SHA1 (patch-af) = d41aaab81061db058c4b38013f07815e1e8cf506
diff -r a97abaabd547 -r 0c33450e7b96 net/vpnc/patches/patch-ac
--- a/net/vpnc/patches/patch-ac Wed May 23 15:18:16 2012 +0000
+++ b/net/vpnc/patches/patch-ac Wed May 23 16:07:51 2012 +0000
@@ -1,17 +1,18 @@
-$NetBSD: patch-ac,v 1.10 2011/04/14 21:42:42 hans Exp $
+$NetBSD: patch-ac,v 1.11 2012/05/23 16:07:51 hauke Exp $
 
---- vpnc-script.in.orig        2008-11-19 21:55:51.000000000 +0100
-+++ vpnc-script.in     2011-04-14 23:33:24.877879829 +0200
+--- vpnc-script.in.orig        2008-11-19 20:55:51.000000000 +0000
++++ vpnc-script.in
 @@ -48,29 +48,36 @@ PATH=/sbin:/usr/sbin:$PATH
  
  OS="`uname -s`"
  
 -DEFAULT_ROUTE_FILE=/var/run/vpnc/defaultroute
 -RESOLV_CONF_BACKUP=/var/run/vpnc/resolv.conf-backup
-+STATEDIR=@VARBASE@/run/vpnc
+-FULL_SCRIPTNAME=@PREFIX@/sbin/vpnc
++STATEDIR=/var/run/vpnc
 +DEFAULT_ROUTE_FILE=$STATEDIR/defaultroute
 +RESOLV_CONF_BACKUP=$STATEDIR/resolv.conf-backup
- FULL_SCRIPTNAME=@PREFIX@/sbin/vpnc
++FULL_SCRIPTNAME=/usr/pkg/sbin/vpnc
  SCRIPTNAME=`basename $FULL_SCRIPTNAME`
  
  # some systems, eg. Darwin & FreeBSD, prune /var/run on boot
@@ -94,7 +95,7 @@
 +              for network in $TARGET_NETWORKS ; do
 +                      eval CISCO_SPLIT_INC_${i}_ADDR=`echo $network | cut -f1 -d/`
 +                      eval CISCO_SPLIT_INC_${i}_MASKLEN=`echo $network | cut -f2 -d/`
-+                      eval CISCO_SPLIT_INC_${i}_MASK=$( perl -e '$ARGV[0]=~s,.*/,,;$m=(2**$ARGV[0]-1)<<(32-$ARGV[0]);printf "%d.%d.%d.%d\n", $m>>24 & 0xff, $m>>16 & 0xff, $m>>8 & 0xff, $m & 0xff;' 
$network )
++                      eval CISCO_SPLIT_INC_${i}_MASK=$( @PERL5@ -e '$ARGV[0]=~s,.*/,,;$m=(2**$ARGV[0]-1)<<(32-$ARGV[0]);printf "%d.%d.%d.%d\n", $m>>24 & 0xff, $m>>16 & 0xff, $m>>8 & 0xff, $m & 
0xff;' $network )
 +                      eval CISCO_SPLIT_INC_${i}_PROTOCOL=0
 +                      eval CISCO_SPLIT_INC_${i}_SPORT=0
 +                      eval CISCO_SPLIT_INC_${i}_DPORT=0



Home | Main Index | Thread Index | Old Index