From c6e689d266a79e3e3b26caeed71ef197bbf2a480 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 16 Nov 2015 20:56:37 +0800 Subject: [PATCH] xl2tpd: bump to version devel-20151125 Main changes are as the following - Allow specifying port in server option, e.g. example.com:1702 (fixes github issue #1960 "xl2tpd port change bug"). - Fixes NULL dereference on connection timeout - Update 100-makefile_opt_flags.patch Signed-off-by: Yousong Zhou --- net/xl2tpd/Makefile | 4 ++-- net/xl2tpd/files/l2tp.sh | 14 +++++++------- net/xl2tpd/patches/100-makefile_opt_flags.patch | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/net/xl2tpd/Makefile b/net/xl2tpd/Makefile index 91dcbfb03..5cf83c5f2 100644 --- a/net/xl2tpd/Makefile +++ b/net/xl2tpd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xl2tpd -PKG_VERSION:=devel-20150930 +PKG_VERSION:=devel-20151125 PKG_RELEASE:=1 PKG_MAINTAINER:=Yousong Zhou PKG_LICENSE:=GPL-2.0 @@ -17,7 +17,7 @@ PKG_LICENSE_FILES:=LICENSE PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/xelerance/xl2tpd.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=5faece38704ae32063abe1d25e199c03e6f44669 +PKG_SOURCE_VERSION:=e2065bf0fc22ba33001ad503c01bba01648024a8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_INSTALL:=1 diff --git a/net/xl2tpd/files/l2tp.sh b/net/xl2tpd/files/l2tp.sh index 8a931adf9..16660747c 100644 --- a/net/xl2tpd/files/l2tp.sh +++ b/net/xl2tpd/files/l2tp.sh @@ -25,14 +25,14 @@ proto_l2tp_init_config() { proto_l2tp_setup() { local interface="$1" local optfile="/tmp/l2tp/options.${interface}" + local ip serv_addr server host - local ip serv_addr server - json_get_var server server && { - for ip in $(resolveip -t 5 "$server"); do - ( proto_add_host_dependency "$interface" "$ip" ) - serv_addr=1 - done - } + json_get_var server server + host="${server%:*}" + for ip in $(resolveip -t 5 "$host"); do + ( proto_add_host_dependency "$interface" "$ip" ) + serv_addr=1 + done [ -n "$serv_addr" ] || { echo "Could not resolve server address" >&2 sleep 5 diff --git a/net/xl2tpd/patches/100-makefile_opt_flags.patch b/net/xl2tpd/patches/100-makefile_opt_flags.patch index 1af416f96..f945d945a 100644 --- a/net/xl2tpd/patches/100-makefile_opt_flags.patch +++ b/net/xl2tpd/patches/100-makefile_opt_flags.patch @@ -4,8 +4,8 @@ IPFLAGS?= -DIP_ALLOCATION --CFLAGS+= $(DFLAGS) -O2 -fno-builtin -Wall -DSANITY $(OSFLAGS) $(IPFLAGS) -+OFLAGS=-O2 +-CFLAGS+= $(DFLAGS) -Os -fno-builtin -Wall -DSANITY $(OSFLAGS) $(IPFLAGS) ++OFLAGS=-Os +CFLAGS+= $(DFLAGS) $(OFLAGS) -fno-builtin -Wall -DSANITY $(OSFLAGS) $(IPFLAGS) HDRS=l2tp.h avp.h misc.h control.h call.h scheduler.h file.h aaa.h md5.h OBJS=xl2tpd.o pty.o misc.o control.o avp.o call.o network.o avpsend.o scheduler.o file.o aaa.o md5.o