[packages/xl2tpd] Up to 1.3.20
arekm
arekm at pld-linux.org
Fri Nov 27 21:40:57 CET 2026
commit 4f36861fe37e53293b1820a3bbe61f7131b5daf6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 15:10:54 2026 +0100
Up to 1.3.20
xl2tpd-build_flags.patch | 10 +++++-----
xl2tpd-control_crash.patch | 11 -----------
xl2tpd.spec | 12 +++++-------
3 files changed, 10 insertions(+), 23 deletions(-)
---
diff --git a/xl2tpd.spec b/xl2tpd.spec
index 7c8e87b..8809f5f 100644
--- a/xl2tpd.spec
+++ b/xl2tpd.spec
@@ -1,18 +1,17 @@
Summary: Layer 2 Tunnelling Protocol Daemon (RFC 2661)
Summary(pl.UTF-8): Demon protokołu tunelowania warstwy 2 (L2TP, RFC 2661)
Name: xl2tpd
-Version: 1.3.11
-Release: 2
+Version: 1.3.20
+Release: 1
License: GPL v2
Group: Networking/Daemons
#Source0Download: https://github.com/xelerance/xl2tpd/releases
Source0: https://github.com/xelerance/xl2tpd/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 46a881855ce928e86cda5ed1c8909c93
+# Source0-md5: 417e29981c59939fd69825d8550f4d65
Source1: %{name}.sysconfig
Source2: %{name}.init
Source3: %{name}.tmpfiles
Patch0: %{name}-build_flags.patch
-Patch1: %{name}-control_crash.patch
URL: http://www.xelerance.com/software/xl2tpd/
BuildRequires: libpcap-devel
BuildRequires: rpmbuild(macros) >= 1.644
@@ -46,7 +45,6 @@ implementacjami IPsec, takimi jak Openswan.
%prep
%setup -q
%patch -P0 -p1
-%patch -P1 -p1
%build
%{__make} \
@@ -60,7 +58,7 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \
$RPM_BUILD_ROOT/%{_sysconfdir}/%{name} \
$RPM_BUILD_ROOT/var/run/%{name} \
- $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
+ $RPM_BUILD_ROOT%{systemdtmpfilesdir}
install doc/l2tp-secrets.sample $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/l2tp-secrets
install doc/l2tpd.conf.sample $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/xl2tpd.conf
@@ -89,7 +87,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc BUGS CREDITS CHANGES README.xl2tpd TODO contrib/pfc.README
+%doc BUGS CREDITS CHANGES README.md TODO contrib/pfc.README
%attr(755,root,root) %{_bindir}/pfc
%attr(755,root,root) %{_sbindir}/%{name}
%attr(755,root,root) %{_sbindir}/%{name}-control
diff --git a/xl2tpd-build_flags.patch b/xl2tpd-build_flags.patch
index 686d30f..3598d53 100644
--- a/xl2tpd-build_flags.patch
+++ b/xl2tpd-build_flags.patch
@@ -1,11 +1,11 @@
---- xl2tpd-1.3.11/Makefile.orig 2018-04-13 22:48:29.861171012 +0200
-+++ xl2tpd-1.3.11/Makefile 2018-04-13 22:49:54.947836737 +0200
-@@ -97,7 +97,7 @@
+--- xl2tpd-1.3.20/Makefile.orig
++++ xl2tpd-1.3.20/Makefile
+@@ -100,7 +100,7 @@
IPFLAGS?= -DIP_ALLOCATION
--CFLAGS+= $(DFLAGS) -Os -Wall -DSANITY $(OSFLAGS) $(IPFLAGS)
-+CFLAGS+= $(DFLAGS) $(OPTFLAGS) -Wall -DSANITY $(OSFLAGS) $(IPFLAGS)
+-CFLAGS+= $(DFLAGS) -Os -Wall -Wextra -DSANITY $(OSFLAGS) $(IPFLAGS)
++CFLAGS+= $(DFLAGS) $(OPTFLAGS) -Wall -Wextra -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
SRCS=${OBJS:.o=.c} ${HDRS}
diff --git a/xl2tpd-control_crash.patch b/xl2tpd-control_crash.patch
deleted file mode 100644
index 1fb4480..0000000
--- a/xl2tpd-control_crash.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- xl2tpd-1.3.11/xl2tpd-control.c.orig 2018-04-13 22:50:18.501169772 +0200
-+++ xl2tpd-1.3.11/xl2tpd-control.c 2018-04-13 22:51:25.761169005 +0200
-@@ -162,7 +162,7 @@
- struct command_t* command = NULL;
- int i; /* argv iterator */
-
-- if (argv[1] && !strncmp (argv[1], "--help", 6))
-+ if ((argc < 2) || (argv[1] && !strncmp (argv[1], "--help", 6)))
- {
- help();
- return 0;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xl2tpd.git/commitdiff/4f36861fe37e53293b1820a3bbe61f7131b5daf6
More information about the pld-cvs-commit
mailing list