Compare commits
67 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14117825e6 | ||
|
|
27a66461c5 | ||
|
|
3d952b57a6 | ||
|
|
e81c726cb8 | ||
|
|
6af13c8c8e | ||
|
|
7b46e6148d | ||
|
|
beb90bd4f9 | ||
|
|
e0f464424e | ||
|
|
b350a3983c | ||
|
|
c66c962c45 | ||
|
|
a61dc00337 | ||
|
|
a966910798 | ||
|
|
dfb9c27b13 | ||
|
|
efd0d56be9 | ||
|
|
a7edd2c46b | ||
|
|
2a09140ade | ||
| 500ac66ab7 | |||
|
|
73190a619d | ||
|
|
5300abb293 | ||
|
|
b186dfd820 | ||
|
|
71ffcb93de | ||
|
|
16cf611c53 | ||
|
|
9c938ec11e | ||
|
|
2d9a14f9ed | ||
|
|
4e7bd904b9 | ||
|
|
eb85303fcf | ||
|
|
b123727587 | ||
|
|
4e1ec8b2eb | ||
|
|
2ff812875a | ||
|
|
93e0b24d6f | ||
|
|
634d9703e6 | ||
|
|
aca7d773c9 | ||
|
|
032f0c9de1 | ||
|
|
b30dda201b | ||
|
|
5a973f2630 | ||
|
|
84998050e4 | ||
|
|
f9d69881f7 |
||
|
|
8f7f543725 | ||
|
|
9976d0bd43 | ||
|
|
a1f6810696 | ||
|
|
06c32af03f | ||
|
|
8bde48aae4 | ||
|
|
adf8d33ab8 | ||
|
|
34789f23ff | ||
|
|
07810f6206 | ||
|
|
0bc2fb3abc | ||
|
|
bcf44e1933 | ||
|
|
56f307f4b1 | ||
|
|
a78ebe3bb3 | ||
|
|
39eaba5585 | ||
|
|
d6e6542f86 | ||
|
|
dbd9dbc105 | ||
|
|
43eb3c1771 | ||
|
|
443c04325d | ||
|
|
acd73764eb | ||
|
|
97e77426d7 | ||
|
|
6ac9797588 | ||
|
|
85c598df0a | ||
|
|
7b2c662d4b | ||
|
|
6d074abac2 | ||
|
|
f8adc382e6 | ||
|
|
71fb40a921 | ||
|
|
0a8d756979 | ||
|
|
477ace65cb | ||
|
|
6429e801a8 | ||
|
|
742095425e | ||
|
|
1af724001f |
10 changed files with 258 additions and 53 deletions
|
|
@ -1 +0,0 @@
|
|||
dropwatch-1.0.tbz2
|
||||
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
dropwatch-1.0.tbz2
|
||||
dropwatch-1.1-0.tbz2
|
||||
dropwatch-1.2.tbz2
|
||||
/dropwatch-1.4.tbz2
|
||||
/dropwatch-1.5.tar.gz
|
||||
/dropwatch-1.5.3.tar.gz
|
||||
/dropwatch-1.5.4.tar.gz
|
||||
/dropwatch-1.5.5.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: dropwatch
|
||||
# $Id$
|
||||
NAME := dropwatch
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
251
dropwatch.spec
251
dropwatch.spec
|
|
@ -1,46 +1,239 @@
|
|||
Summary: Kernel dropped packet monitor
|
||||
Name: dropwatch
|
||||
Version: 1.0
|
||||
Release: 3%{?dist}
|
||||
Source0: https://fedorahosted.org/releases/d/r/dropwatch/dropwatch-%{version}.tbz2
|
||||
URL: http://fedorahosted.org/dropwatch
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildRequires: kernel-devel, libnl-devel, readline-devel
|
||||
Requires: libnl, readline
|
||||
Name: dropwatch
|
||||
Version: 1.5.5
|
||||
Release: 2%{?dist}
|
||||
Summary: Kernel dropped packet monitor
|
||||
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/nhorman/dropwatch
|
||||
Source0: https://github.com/nhorman/dropwatch/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: libtool
|
||||
BuildRequires: kernel-headers
|
||||
BuildRequires: binutils-devel
|
||||
BuildRequires: libnl3-devel
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRequires: readline-devel
|
||||
|
||||
Requires: libnl3
|
||||
Requires: readline
|
||||
|
||||
%description
|
||||
dropwatch is an utility to interface to the kernel to monitor for dropped
|
||||
network packets.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
cd src
|
||||
export CFLAGS=$RPM_OPT_FLAGS
|
||||
make
|
||||
./autogen.sh
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
install -m0755 src/dropwatch $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m0644 doc/dropwatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%{make_install}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%doc README
|
||||
%doc COPYING
|
||||
%{_bindir}/dropwatch
|
||||
%{_bindir}/dwdump
|
||||
%{_mandir}/man1/dropwatch.1*
|
||||
%{_mandir}/man1/dwdump.1*
|
||||
%doc README.md
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Wed Apr 30 2025 Hangbin Liu <haliu@redhat.com> - 1.5.5-1
|
||||
- Update to version 1.5.5
|
||||
- kas is the default symbol lookup method now
|
||||
- Fix building without libtool installed
|
||||
- Misc fixes for kas lookup logic
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Nov 14 2023 Hangbin Liu <haliu@redhat.com> - 1.5.4-5
|
||||
- Update License to SPDX format
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu May 5 2022 Hangbin Liu <haliu@redhat.com> - 1.5.4-1
|
||||
- Update to version 1.5.4
|
||||
- Support packet drop reason reporting when included in netlink message
|
||||
- fix some minor compilation warnings/errors
|
||||
- clean up some comments about deadline support
|
||||
- convert configure.ac to use AM_PROG_LIBTOOL from outdated LT_INIT
|
||||
- Fix missing SOL_NETLINK define in glibc < 2.24
|
||||
- Fix licensing issues that didn't make sense
|
||||
- ignore ENOBUFS errors on data socket
|
||||
- adding arm64 travis ci testing
|
||||
- man page updates
|
||||
- move to libnl3 from libnl
|
||||
|
||||
* Sat Jan 29 2022 Hangbin Liu <haliu@redhat.com> - 1.5.3-8
|
||||
- Fix compilation error with gcc 12
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Mon Jul 12 2021 Hangbin Liu <haliu@redhat.com> - 1.5.3-5
|
||||
- Update spec file
|
||||
- Update Makefile license
|
||||
- Update obsoleted m4 macros
|
||||
- Install new command dwdump
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Nov 13 2020 Jeff Law <law@redhat.com> - 1.5.3-3
|
||||
- Fix off-by-one buffer overflow caught by gcc-11
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Mar 19 2020 Neil Horman <nhorman@redhat.com> - 1.5.3-1
|
||||
- Update to latest upstream
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5-7
|
||||
- Rebuild for readline 8.0
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri May 18 2018 Neil Horman <nhorman@redhat.com> - 1.5-4
|
||||
- add rpm-build to test.yml inventory
|
||||
|
||||
* Fri May 18 2018 Neil Horman <nhorman@redhat.com> - 1.5-3
|
||||
- add wget to test.yml inventory
|
||||
|
||||
* Fri May 18 2018 Neil Horman <nhorman@redhat.com> - 1.5-2
|
||||
- Make inventory script executable
|
||||
|
||||
* Tue May 15 2018 Neil Horman <nhorman@redhat.com> - 1.5-1
|
||||
- Update to latest upstream and add CI harness
|
||||
|
||||
* Tue May 08 2018 Neil Horman <nhorman@redhat.com> - 1.4-23
|
||||
- Updated specfile url and source location for github
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Feb 01 2018 Neil Horman <nhorman@redhat.com> - 1.4-21
|
||||
- Fix linker flag recognition (bz 1541058)
|
||||
|
||||
* Thu Feb 1 2018 Florian Weimer <fweimer@redhat.com> - 1.4-20
|
||||
- Build with linker flags from redhat-rpm-config
|
||||
|
||||
* Tue Jan 30 2018 Merlin Mathesius <mmathesi@redhat.com> - 1.4-19
|
||||
- Drop unnecessary BuildRequires for binutils-static
|
||||
Not building kernel modules, so use kernel-headers instead of kernel-devel
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2017 Neil Horman <nhorman@redhat.com> - 1.4-15
|
||||
- fix build error (bz 1412926)
|
||||
|
||||
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.4-14
|
||||
- Rebuild for readline 7.x
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Mon Jul 06 2015 Neil Horman <nhorman@redhat.com> - 1.4-12
|
||||
- Fixed FTBFS issue (bz 1239436)
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Fri Nov 29 2013 Neil Horman <nhorman@redhat.com> - 1.4-8
|
||||
- Updating spec file
|
||||
|
||||
* Fri Nov 29 2013 Neil Horman <nhorman@redhat.com> - 1.4-7
|
||||
- Drop libnl-devel BuildRequire (bz 1035791)
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Sun Jan 20 2013 Dan Horák <dan@danny.cz> - 1.4-4
|
||||
- rebuilt again for fixed soname in libnl3
|
||||
|
||||
* Fri Jan 18 2013 Neil Horman <nhorman@redhat.com> - 1.4-3
|
||||
- rebuilt to pull in new libnl3 dependencies
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jun 01 2012 Neil Horman <nhorman@redhat.com> - 1.4-1
|
||||
- Update to latest upstream
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Jun 30 2010 Neil Horman <nhorman@redhat.com> - 1.2
|
||||
- Update to latest upstream
|
||||
|
||||
* Thu Apr 08 2010 Neil Horman <nhorman@redhat.com> - 1.1-2
|
||||
- Adding more missing buildrequires
|
||||
|
||||
* Wed Apr 07 2010 Neil Horman <nhorman@redhat.com> - 1.1-1
|
||||
- Add missing buildrequires
|
||||
|
||||
* Wed Apr 07 2010 Neil Horman <nhorman@redhat.com> - 1.1-0
|
||||
- Move to latest upstream sources
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
dropwatch-1_0-2_fc10:HEAD:dropwatch-1.0-2.fc10.src.rpm:1237918003
|
||||
9
plans.fmf
Normal file
9
plans.fmf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
summary: Run dropwatch selftest
|
||||
discover:
|
||||
how: fmf
|
||||
prepare:
|
||||
how: install
|
||||
# install psmisc for killall
|
||||
package: [dropwatch, psmisc]
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
34338735d1d2d339c92f21d9c7f1202f dropwatch-1.0.tbz2
|
||||
SHA512 (dropwatch-1.5.5.tar.gz) = b85de34d9b7c1f8232720dd8d4d843cb251ef96d2d9bd592e001d889bd55c2c6821cb8fb3af061bd8e5e2488f9f3aef4c45d1a0c41de3e626bc7c3794c1a4405
|
||||
|
|
|
|||
2
tests/main.fmf
Normal file
2
tests/main.fmf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
summary: Smoke test
|
||||
test: ./run_tests.sh
|
||||
15
tests/run_tests.sh
Executable file
15
tests/run_tests.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
abort_dropwatch() {
|
||||
sleep 5
|
||||
killall -SIGINT dropwatch
|
||||
}
|
||||
|
||||
abort_dropwatch &
|
||||
echo -e "set alertlimit 1\nstart\nstop\nexit" | dropwatch -l kas &> "$TMT_TEST_DATA"/dropwatch.log
|
||||
|
||||
# shellcheck disable=SC2181
|
||||
[ $? -eq 0 ] && exit 0
|
||||
# If the platform doesn't support NET_DM, skip this test
|
||||
# Usually we got this issue in container as no privilege permission
|
||||
grep -q NET_DM "$TMT_TEST_DATA"/dropwatch.log && exit 0 || exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue