Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61ab340e38 | ||
|
|
94144884f0 | ||
|
|
8cd55c3936 | ||
|
|
e380b0639d | ||
|
|
e562742656 | ||
|
|
825050a0e2 | ||
|
|
ff0011a87f | ||
|
|
dd1a2ce856 | ||
|
|
e49f769124 | ||
|
|
10721bcfaa | ||
|
|
74dcfa54e4 | ||
|
|
00fd791ecc |
7 changed files with 23430 additions and 21138 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@
|
|||
/arpwatch-3.1.tar.gz
|
||||
/arpwatch-3.2.tar.gz
|
||||
/arpwatch-3.3.tar.gz
|
||||
/arpwatch-3.4.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
When arpwatch is terminated cleanly by a signal (INT/TERM/HUP) handler, the
|
||||
exit code should be zero for success instead of nonzero for failure.
|
||||
|
||||
diff -Naur arpwatch-3.1-original/arpwatch.c arpwatch-3.1/arpwatch.c
|
||||
--- arpwatch-3.1-original/arpwatch.c 2019-11-30 13:35:23.000000000 -0500
|
||||
+++ arpwatch-3.1/arpwatch.c 2020-11-08 12:55:51.429575973 -0500
|
||||
@@ -892,7 +892,7 @@
|
||||
|
||||
lg(LOG_DEBUG, "exiting");
|
||||
checkpoint(0);
|
||||
- exit(1);
|
||||
+ exit(0);
|
||||
}
|
||||
|
||||
RETSIGTYPE
|
||||
|
|
@ -1,15 +1,8 @@
|
|||
When -i is not given, iterate all available devices until a usable one is found
|
||||
instead of just trying the first one and giving up if it is not usable. See
|
||||
RHBZ #842660.
|
||||
|
||||
Additionally, handle the case where a device provides both supported and
|
||||
unsupported datalink types.
|
||||
|
||||
diff -Naur arpwatch-3.1-original/arpwatch.c arpwatch-3.1/arpwatch.c
|
||||
--- arpwatch-3.1-original/arpwatch.c 2019-11-30 13:35:23.000000000 -0500
|
||||
+++ arpwatch-3.1/arpwatch.c 2021-04-24 09:02:50.762535242 -0400
|
||||
diff -Naur arpwatch-3.4-original/arpwatch.c arpwatch-3.4/arpwatch.c
|
||||
--- arpwatch-3.4-original/arpwatch.c 2023-09-05 13:50:56.000000000 -0400
|
||||
+++ arpwatch-3.4/arpwatch.c 2023-09-06 09:53:38.038275336 -0400
|
||||
@@ -161,6 +161,8 @@
|
||||
RETSIGTYPE die(int);
|
||||
void die(int);
|
||||
int isbogon(u_int32_t);
|
||||
int main(int, char **);
|
||||
+int try_open_live(pcap_t ** pd_ptr, char const * interface_name,
|
||||
12
arpwatch-3.4-exitcode.patch
Normal file
12
arpwatch-3.4-exitcode.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -Naur arpwatch-3.4-original/arpwatch.c arpwatch-3.4/arpwatch.c
|
||||
--- arpwatch-3.4-original/arpwatch.c 2023-09-05 13:50:56.000000000 -0400
|
||||
+++ arpwatch-3.4/arpwatch.c 2023-09-06 09:52:14.851126556 -0400
|
||||
@@ -892,7 +892,7 @@
|
||||
|
||||
lg(LOG_DEBUG, "exiting");
|
||||
checkpoint(0);
|
||||
- exit(1);
|
||||
+ exit(0);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
Name: arpwatch
|
||||
Epoch: 14
|
||||
Version: 3.3
|
||||
Version: 3.4
|
||||
Release: %autorelease
|
||||
Summary: Network monitoring tools for tracking IP addresses on a network
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ Source0: https://ee.lbl.gov/downloads/arpwatch/arpwatch-%{version}.tar.gz
|
|||
# updated), we store the file directly in the repository with the spec file;
|
||||
# see the update-oui-csv script.
|
||||
#
|
||||
# File oui.csv last fetched 2022-08-03T18:59:17+00:00.
|
||||
# File oui.csv last fetched 2023-11-10T18:21:43+00:00.
|
||||
Source1: oui.csv
|
||||
Source2: arpwatch.service
|
||||
Source3: arpwatch.sysconfig
|
||||
|
|
@ -68,12 +68,12 @@ Patch6: arpwatch-3.1-configure-no-local-pcap.patch
|
|||
Patch7: arpwatch-3.1-all-zero-bogon.patch
|
||||
# When arpwatch is terminated cleanly by a signal (INT/TERM/HUP) handler, the
|
||||
# exit code should be zero for success instead of nonzero for failure.
|
||||
Patch8: arpwatch-3.1-exitcode.patch
|
||||
Patch8: arpwatch-3.4-exitcode.patch
|
||||
# When -i is not given, do not just try the first device found, but keep
|
||||
# checking devices until a usable one is found, if any is available.
|
||||
# Additionally, handle the case where a device provides both supported and
|
||||
# unsupported datalink types.
|
||||
Patch9: arpwatch-3.1-devlookup.patch
|
||||
Patch9: arpwatch-3.4-devlookup.patch
|
||||
|
||||
%global pkgstatedir %{_sharedstatedir}/arpwatch
|
||||
%global service_user arpwatch
|
||||
|
|
@ -118,6 +118,13 @@ awk '/^ \* / { print substr($0, 4); } /^ \*\// { exit }' arpwatch.c |
|
|||
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
# Prior to version 3.4, this was handled by the configure script. If it is not
|
||||
# defined, the build failes because time.h is not included in report.c. This
|
||||
# regregression was reported upstream by email to arpwatch@ee.lbl.gov on
|
||||
# 2023-09-06.
|
||||
export CPPFLAGS="${CPPFLAGS-} -DTIME_WITH_SYS_TIME=1"
|
||||
|
||||
%configure --with-sendmail=/usr/sbin/sendmail PYTHON=%{python3}
|
||||
%make_build ARPDIR=%{pkgstatedir}
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (arpwatch-3.3.tar.gz) = 4e3d542917dc9060ae7b35b40f41cb696eb36e68846194a76f025c5ecb1df1e67d5c1c66ba3c7e581e1f915b988d05cb7805f28d410784bd27dc3a448dccdece
|
||||
SHA512 (arpwatch-3.4.tar.gz) = 0c984ec856e76df4475b367a2e5fb81d0bfdb00fd7730b303c0e1d422f2d2b4f8afef80082bf938d6a6a3b9855f4acfaea23b111430d5d13751271c5b4d70c36
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue