Ticket #10014: xl2tpd.patch

File xl2tpd.patch, 1.4 KB (added by crick, 6 years ago)
  • Makefile

    diff -Naur orig/Makefile crick/Makefile
    old new  
    2222define Package/xl2tpd 
    2323  SECTION:=net 
    2424  CATEGORY:=Network 
     25  DEPENDS:=+kmod-pppol2tp 
    2526  TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon 
    2627  URL:=http://www.xelerance.com/software/xl2tpd/ 
    2728  SUBMENU:=VPN 
  • patches/200-use_kernel_module.patch

    diff -Naur orig/patches/200-use_kernel_module.patch crick/patches/200-use_kernel_module.patch
    old new  
     1diff -Naur orig/Makefile crick/Makefile 
     2--- orig/Makefile       2011-07-24 04:13:59.000000000 +0400 
     3+++ crick/Makefile      2011-08-28 11:58:38.000000000 +0400 
     4@@ -52,8 +52,8 @@ 
     5 # Uncomment the next line for Linux. KERNELSRC is needed for if_pppol2tp.h, 
     6 # but we use a local copy if we don't find it. 
     7 # 
     8-#KERNELSRC=/lib/modules/`uname -r`/build/ 
     9-KERNELSRC?=./linux 
     10+KERNELSRC=/lib/modules/`uname -r`/build/ 
     11+#KERNELSRC?=./linux 
     12 OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/ 
     13 # 
     14 # Uncomment the following to use the kernel interface under Linux 
     15@@ -62,7 +62,7 @@ 
     16 # are packages seperately (eg kernel-headers on Fedora) 
     17 # Note: 2.6.23+ support still needs some changes in the xl2tpd source 
     18 # 
     19-#OSFLAGS+= -DUSE_KERNEL 
     20+OSFLAGS+= -DUSE_KERNEL 
     21 # 
     22 # 
     23 # Uncomment the next line for FreeBSD