mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add vpnc.
* gnu/packages/vpn.scm: New file. * Makefile.am (MODULES): Add it. * gnu/packages/patches/vpnc-script.patch: New file. * Makefile.am (dist_patch_DATA): Add it.
This commit is contained in:
parent
d688a2f0fd
commit
49f24f41e3
3 changed files with 84 additions and 1 deletions
15
gnu/packages/patches/vpnc-script.patch
Normal file
15
gnu/packages/patches/vpnc-script.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
This patch adapts the vpnc script to newer kernel versions, see
|
||||
https://lkml.org/lkml/2011/3/24/645
|
||||
|
||||
diff -u a/vpnc-script.in b/vpnc-script.in
|
||||
--- a/vpnc-script.in 2013-03-03 13:55:16.000000000 +0100
|
||||
+++ b/vpnc-script.in 2013-03-03 13:56:11.000000000 +0100
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
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() {
|
Loading…
Add table
Add a link
Reference in a new issue