From b259510cd3d487a92ee8f6131989e1f1ebb4cc688deaf3e244d2cfa9d5c9505a Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 2 Dec 2024 11:41:08 +0000 Subject: [PATCH] up to 4.5.1+20241102 OBS-URL: https://build.opensuse.org/package/show/network:utilities/2ping?expand=0&rev=36 --- .gitattributes | 23 +++++ .gitignore | 1 + 2ping-4.5.1+20241102.obscpio | 3 + 2ping-4.5.1.tar.gz | 3 + 2ping-4.5.1.tar.gz.asc | 16 ++++ 2ping.changes | 158 +++++++++++++++++++++++++++++++++++ 2ping.keyring | 114 +++++++++++++++++++++++++ 2ping.obsinfo | 4 + 2ping.spec | 100 ++++++++++++++++++++++ _service | 18 ++++ _servicedata | 4 + harden_2ping.service.patch | 15 ++++ 12 files changed, 459 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 2ping-4.5.1+20241102.obscpio create mode 100644 2ping-4.5.1.tar.gz create mode 100644 2ping-4.5.1.tar.gz.asc create mode 100644 2ping.changes create mode 100644 2ping.keyring create mode 100644 2ping.obsinfo create mode 100644 2ping.spec create mode 100644 _service create mode 100644 _servicedata create mode 100644 harden_2ping.service.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/2ping-4.5.1+20241102.obscpio b/2ping-4.5.1+20241102.obscpio new file mode 100644 index 0000000..16afa29 --- /dev/null +++ b/2ping-4.5.1+20241102.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:399271498cb9034528284493450f54830252c07385fe20f5a2401cc9ba11ba7d +size 301067 diff --git a/2ping-4.5.1.tar.gz b/2ping-4.5.1.tar.gz new file mode 100644 index 0000000..2be23e2 --- /dev/null +++ b/2ping-4.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b56beb1b7da1ab23faa6d28462bcab9785021011b3df004d5d3c8a97ed7d70d8 +size 77053 diff --git a/2ping-4.5.1.tar.gz.asc b/2ping-4.5.1.tar.gz.asc new file mode 100644 index 0000000..5ff07ea --- /dev/null +++ b/2ping-4.5.1.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEQuLI3owXOrEC9SxufmCjpoaujZgFAmBWbYYACgkQfmCjpoau +jZgB2hAAmqn5d/FXjbVScGddez0G0jLS0dwlIWDRx2To8/0r8r56YT7g2ob9eAJq +OtIgL4/NFqkB1l4MRUw6KeGXMH37tw553/7TeKapDUv1xoOqaA4wUXfwVcORHuf1 +WCfcQJDxRnHJw1SS/IDUZ5j4vtSXENshtITXx3VkfzSH7xowZxoO3ezNL+GlEEiQ +kELjekXFNwvnPgqJQaSCm1gNAC8fQBSOca2WWQCdQu/MhFKBFAgSFcIol/u0lb6U +XsCXU3o+T7WPY9smbF5mOcWtkSTHYnvaBa9groV2ZX3liI9OEBwXdQOIbs+c060n +vOsieZJk8iZCFpPDVOVbz6Hy0qy8GHf35QJAPAPekCZDbmc/pofq2Ps5yHliFnpY +k/LNlJcmf2SH4X3lkSNCrBqh1GjtBhUz3goZf3XtCtlpcIySUjAyTka1uCOdn2ZO +OC/xeEctZsg+XLXErl86TGpWxVmqC8GLRtmDUdY0TqXPiLR1EODJjyOrtrRLO0mG +pSOIsJMNC57urvOfRugPBlU+eh7Wurn3kNx9BCpBa/E+eIt92C0M+f0hzLqyydjR +a61MJh9BrqNf7bwpc7d75nk7DHSKfO3uXDvoxAFRpz1WLofKkgDQX7EqDZDTI2x4 +RSC8BnCyqIkRpBROTRuCck7gOgRRfwTP8+M9WAw71Hm2I9OmFhA= +=JIVX +-----END PGP SIGNATURE----- diff --git a/2ping.changes b/2ping.changes new file mode 100644 index 0000000..fb66719 --- /dev/null +++ b/2ping.changes @@ -0,0 +1,158 @@ +------------------------------------------------------------------- +Mon Dec 02 11:31:45 UTC 2024 - jslaby@suse.cz + +- Update to version 4.5.1+20241102: + * get_system_addresses: Guard against netifaces race condition + * Remove snapcraft definition + * 2ping.service: Use DynamicUser=yes instead of User=nobody + * End stats updates + * Argument parsing cleanups + * Fix duplicated AUTHOR/AUTHORS section in manpage + * Tox updates + * Change license from GPLv2 to Mozilla Public License 2.0 + +------------------------------------------------------------------- +Wed Oct 4 12:10:52 UTC 2023 - Daniel Garcia + +- Remove dependency on /usr/bin/python3 using %python3_fix_shebang + macro, bsc#1212476 + +------------------------------------------------------------------- +Fri Oct 15 11:48:55 UTC 2021 - Johannes Segitz + +- Drop ProtectClock hardening, can cause issues if other device acceess is needed + +------------------------------------------------------------------- +Tue Aug 10 09:28:47 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s). Added patch(es): + * harden_2ping.service.patch + +------------------------------------------------------------------- +Mon Jun 14 09:56:20 UTC 2021 - Jiri Slaby + +- python symbol is not provided by python 3, use proper python3 + +------------------------------------------------------------------- +Mon Mar 22 08:04:21 UTC 2021 - Martin Pluskal + +- Update to version 4.5.1 + * 2ping.bash_completion: Make more resilient to failure / missing + features. + * Minimum Python version changed from 3.5 to 3.6. + * Minor no-op code and distribution updates. + +------------------------------------------------------------------- +Mon Jan 25 06:01:09 UTC 2021 - Jiri Slaby + +- use one python, not singlespec + +------------------------------------------------------------------- +Thu Jul 9 20:24:04 UTC 2020 - Matthias Eliasson + +- Change optional requirements to recommends since they just enhance the tool +- Use correct package names for the recommends + +------------------------------------------------------------------- +Thu Jul 2 20:19:07 UTC 2020 - Matthias Eliasson + +- Update to version 4.5 + * Added PyCryptodome support (recommended over PyCrypto, though the latter is still detected/supported). + * Replaced best_poller module with Python native selectors module. + * Changed --flood output: dots/backspaces are no longer printed, and loss results / errors display full details. + * --audible tones will only occur if stdout is a TTY. + * Improved hostname/IP display edge cases. + * Added an AF_UNIX --loopback test mode. + * Listener sockets are added and removed as needed, instead of being re-created on each rescan. + * Listener sockets are automatically rescanned periodically. + * Multiple systemd sockets are now allowed. + * A run can be both a listener and a client at the same time (mainly useful for smoke testing). + * Other socket handling refactoring. + * Other code refactoring. + * Listener statistics are displayer per-bind. + * Many, many testing/CI improvements. +- Remove groups in spec +- Package systemd service unit +- Add missing optional build requirements to enable all available options +- Some other clean up in spec + +------------------------------------------------------------------- +Sun Feb 3 21:12:01 UTC 2019 - Matthias Eliasson + +- Update to version 4.3 + * Add --srv-service + * Change --adaptive behavior to better match ping -A + * Fix typos in manpage +- Ran spec-cleaner +- Fix rpmlint duplicate error with fdupes + +------------------------------------------------------------------- +Mon Oct 08 05:58:03 UTC 2018 - sean@suspend.net + +- Update to version 4.2 + * Added SIGHUP handling of listener processes + * Added an example bash_completion script + * Better cleanup handling of peer information +------------------------------------------------------------------- +Sat Aug 11 01:03:42 UTC 2018 - rpm@fthiessen.de + +- Update to version 4.1.2 + * Fix UTF-8 tests when run with invalid locale. + * Fix cleanup on non-encrypted sessions. + +------------------------------------------------------------------- +Wed May 23 14:45:15 UTC 2018 - kbabioch@suse.com + +- Use OpenPGP signature provided upstream +- Added 2ping.keyring, which contains the key from the author + +------------------------------------------------------------------- +Sat Nov 4 19:24:17 UTC 2017 - aavindraa@gmail.com + +- Update to version 4.1 + * Fixed --fuzz CRC function. + * Added --encrypt option for shared-secret encrypted packets. + * Added --listen --all-interfaces option for automatically binding to + all interface IPs (requires Python netifaces module). + * Simplified monotonic_clock functionality, relying on Python 3 for + most functionality, reducing the possibility of platform bugs. +- Includes changes from 4.0 + * Rewrite to Python 3 (3.4 or higher). + * Fixed hmac-sha256 handling, added hmac-sha512. + * --nagios will now work when combined with --deadline, in addition to + --count. + * Added Wireshark Lua dissector and sample capture. + * Added battery level (ExtID 0x88a1f7c7). Note that while 2ping + recognizes the new option in incoming packets, it currently does not + have the capability to send battery levels. + +------------------------------------------------------------------- +Fri Jul 29 09:06:35 UTC 2016 - jengelh@inai.de + +- Make rpmlint happy by avoiding installation in %build. + +------------------------------------------------------------------- +Sun Jul 24 12:53:10 UTC 2016 - p.drouand@gmail.com + +- Update to version 3.2.1 + * Please read the ChangeLog; not able to track all changes since + previous version +- Upstream moved to python + * Remove %{perl_requires} dependency + * Remove perl recommendations; perl(Digest::CRC), perl(Digest::MD5), + perl(Digest::SHA) and perl(IO::Socket::INET6) + * Add python-devel and python-setuptools requirements +- Use official tarball and download Url +- Remove obsolete 2ping-fix-use-of-uninitialized-warning.patch + +------------------------------------------------------------------- +Fri Apr 3 15:29:33 UTC 2015 - jslaby@suse.com + +- update to 1397618874.f2c2047 +- 2ping-fix-use-of-uninitialized-warning.patch: add + +------------------------------------------------------------------- +Wed Nov 10 13:11:18 CET 2010 - jslaby@suse.de + +- Initial package (version 1.0) + diff --git a/2ping.keyring b/2ping.keyring new file mode 100644 index 0000000..5e612ce --- /dev/null +++ b/2ping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EIAAkFAk+FL4MCGwwACgkQfmCjpoau +jZh/3A//V4TqFllEinPm9bmrSLr6qJaQ4SHKgFGBHCNpP7pMbcwNUNjVf5W8SK3r +Hagx0cPDxe+m7c/sRPDZdXtFeGsyV0wkfY7wgyIUcaAjuBAGot7j17Yv/tUFCGoj +pDmwjQW+AylULH4kHulVVZil8VJIYFF9EpiUWXi5ImXF6Y7PRhHSlGvf4FZM0AAJ +sLyX0szS0AZu41pgejXv4sd58h27xRIhe+z/cJBRRtFHKdx2brj+5RSja/YycKge +zrGopROGk6cRYMLHRlJn0esuGU8G66hZkJcHmASIIB311LeuNNQKSbZB4lLXyHw+ +E4AaKUyjJXIB+DbJOH7VUDFxXMhCTSghnbhRTfIWkU//qXGbT8VHPxrH/VcJvzZr +OuK4HOpWVzl5w0kRjncdqH06j64+2cp3xkAYcCHYOSVTzBtohtFS9yzengK8WlCX +d53TImMxzJ7rlgFfcukoouskg7RkhY6XHtxUSXK3muJjwkur+6Z/IkOEMlrEFNFo +dw0/tWdp+6IE4D5kXAP43KJCWLjWB14KnSvZijvlHb6rnO8mhvg3daaJupxD31qb +xtvf3qghFWLTJSvH8uQs6AILZNkCwXpgfB6rc8d4ggs/acbJ8o7B4an5tl0QNhr9 +Uafk6HbWpwtuNTcfY7W+TfiULKfRa/wdp9rYS+qA4hfWbprg3oQ= +=BPu5 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/2ping.obsinfo b/2ping.obsinfo new file mode 100644 index 0000000..3720156 --- /dev/null +++ b/2ping.obsinfo @@ -0,0 +1,4 @@ +name: 2ping +version: 4.5.1+20241102 +mtime: 1730573757 +commit: d5b12f80188092b4b77d6c6b210ecf568859ee90 diff --git a/2ping.spec b/2ping.spec new file mode 100644 index 0000000..12912b4 --- /dev/null +++ b/2ping.spec @@ -0,0 +1,100 @@ +# +# spec file for package 2ping +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: 2ping +Version: 4.5.1+20241102 +Release: 0 +Summary: Bi-directional ping utility +License: MPL-2.0 +URL: https://www.finnie.org/software/2ping/ +Source0: %{name}-%{version}.tar.xz +Source2: %{name}.keyring +Patch0: harden_2ping.service.patch +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python3-devel >= 3.6 +BuildRequires: python3-distro +BuildRequires: python3-dnspython +BuildRequires: python3-netifaces +BuildRequires: python3-pycryptodomex +BuildRequires: python3-pytest +BuildRequires: python3-setuptools +BuildRequires: systemd-rpm-macros +Requires: python3 >= 3.6 +Recommends: python3-distro +Recommends: python3-dnspython +Recommends: python3-netifaces +Recommends: python3-pycryptodomex +BuildArch: noarch +%{?systemd_requires} + +%description +2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN, +SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and +a 2ping client to determine which direction packet loss occurs. + +%prep +%autosetup + +%build +%python3_build + +%install +%python3_install +install -Dp -m 0644 2ping.service %{buildroot}%{_unitdir}/2ping.service +install -Dp -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping.1 +install -Dp -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping6.1 + +mkdir -p %{buildroot}%{_sbindir} +ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc2ping + +# Fix python shebangs +%python3_fix_shebang + +# create symlinks for man pages +%fdupes -s %{buildroot}%{_mandir} +# create hardlinks for the rest +%fdupes %{buildroot}%{_prefix} + +%check +py.test -v + +%pre +%service_add_pre 2ping.service + +%post +%service_add_post 2ping.service + +%preun +%service_del_preun 2ping.service + +%postun +%service_del_postun 2ping.service + +%files +%license COPYING.md +%doc ChangeLog.md README.md +%{_bindir}/%{name} +%{_bindir}/%{name}6 +%{_mandir}/man1/%{name}.1%{?ext_man} +%{_mandir}/man1/%{name}6.1%{?ext_man} +%{_sbindir}/rc%{name} +%{_unitdir}/2ping.service +%{python3_sitelib}/* + +%changelog diff --git a/_service b/_service new file mode 100644 index 0000000..3b4bd45 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/rfinnie/2ping + git + main + enable + @PARENT_TAG@+%cd + v(.*) + \1 + + + + + + 2ping-*.tar + xz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..c232a03 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/rfinnie/2ping + d5b12f80188092b4b77d6c6b210ecf568859ee90 \ No newline at end of file diff --git a/harden_2ping.service.patch b/harden_2ping.service.patch new file mode 100644 index 0000000..2bb29e7 --- /dev/null +++ b/harden_2ping.service.patch @@ -0,0 +1,15 @@ +Index: 2ping-4.5.1/2ping.service +=================================================================== +--- 2ping-4.5.1.orig/2ping.service ++++ 2ping-4.5.1/2ping.service +@@ -30,6 +30,10 @@ RestrictAddressFamilies=AF_NETLINK AF_IN + RestrictNamespaces=yes + RestrictRealtime=yes + RestrictSUIDSGID=yes ++# added automatically, for details please see ++# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort ++ProtectHostname=true ++# end of automatic additions + DynamicUser=yes + + [Install]