From 6963be217a62dd22d1a1e18a71ffc41771b9c0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Thu, 14 May 2020 22:08:01 +0200 Subject: [PATCH] Fixed man page and typo in the built-in help --- pptp-1.10.0-man-fix.patch | 33 +++++++++++++++++++++++++++++++++ pptp.spec | 9 ++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 pptp-1.10.0-man-fix.patch diff --git a/pptp-1.10.0-man-fix.patch b/pptp-1.10.0-man-fix.patch new file mode 100644 index 0000000..12c7378 --- /dev/null +++ b/pptp-1.10.0-man-fix.patch @@ -0,0 +1,33 @@ +diff --git a/pptp.8 b/pptp.8 +index 017b5db..9407a2a 100644 +--- a/pptp.8 ++++ b/pptp.8 +@@ -119,6 +119,15 @@ Sets the number of packets to pass before causing a reordering test. + Default is 100. Has no effect if test-type is zero. The result of + test types 2 and 3 are undefined if this value is less than ten. + ++.TP ++.B \-\-missing-window ++Enable 'missing window' validation and set packet tolerance ++(300=default, 6000=recommended). ++ ++.TP ++.B \-\-version ++Display version. ++ + + .SH "ROUTING" + When PPTP is used in conjunction with a default route on top of the +diff --git a/pptp.c b/pptp.c +index 92e3170..25f385c 100644 +--- a/pptp.c ++++ b/pptp.c +@@ -127,7 +127,7 @@ void usage(char *progname) + " --test-type Damage the packet stream by reordering\n" + " --test-rate Do the test every n packets\n" + " --missing-window Enable 'missing window' validation and set packet\n" +- " polerance (300=default, 6000=recommended)\n", ++ " tolerance (300=default, 6000=recommended)\n", + + version, progname, progname); + log("%s called with wrong arguments, program not started.", progname); diff --git a/pptp.spec b/pptp.spec index 63c5574..c30f0b8 100644 --- a/pptp.spec +++ b/pptp.spec @@ -1,6 +1,6 @@ Name: pptp Version: 1.10.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Point-to-Point Tunneling Protocol (PPTP) Client License: GPLv2+ URL: http://pptpclient.sourceforge.net/ @@ -10,6 +10,8 @@ BuildRequires: /usr/bin/pod2man BuildRequires: gcc, perl-generators Requires: ppp >= 2.4.2, /sbin/ip Requires: systemd-units +# Patch sent upstream +Patch0: pptp-1.10.0-man-fix.patch %description Client for the proprietary Microsoft Point-to-Point Tunneling @@ -27,6 +29,8 @@ tunnels. %prep %setup -q +%patch0 -p1 -b .man-fix + # Pacify rpmlint perl -pi -e 's/install -o root -m 555 pptp/install -m 755 pptp/;' Makefile @@ -57,6 +61,9 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d/pptp.conf %{_mandir}/man8/pptpsetup.8* %changelog +* Thu May 14 2020 Jaroslav Škarvada - 1.10.0-10 +- Fixed man page and typo in the built-in help + * Thu Jan 30 2020 Fedora Release Engineering - 1.10.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild