Compare commits

..

51 commits

Author SHA1 Message Date
Benjamin A. Beasley
fe4b5af8cd Generate ethercodes.dat from latest oui.csv 2025-12-11 07:08:05 +00:00
Benjamin A. Beasley
4b26a725c2 Update to 3.9 (close RHBZ#2406123) 2025-10-23 23:36:45 +01:00
Benjamin A. Beasley
9651bc46f5 Generate ethercodes.dat from latest oui.csv 2025-10-23 23:22:21 +01:00
Benjamin A. Beasley
a40acb7a7e Generate ethercodes.dat from latest oui.csv 2025-10-11 07:04:58 +01:00
Benjamin A. Beasley
3d16b582fb Generate ethercodes.dat from latest oui.csv 2025-09-13 07:15:34 +01:00
Benjamin A. Beasley
2864fc8366 Generate ethercodes.dat from latest oui.csv 2025-08-16 06:22:52 -04:00
Benjamin A. Beasley
9501c80512 Generate ethercodes.dat from latest oui.csv 2025-06-02 20:42:37 -04:00
Benjamin A. Beasley
45c6ab0853 Generate ethercodes.dat from latest oui.csv 2025-04-24 16:20:55 -04:00
Benjamin A. Beasley
7e949801d6 Update .rpmlintrc file for a new rpmlint version 2025-04-24 16:20:50 -04:00
Benjamin A. Beasley
ecddae426d Update to 3.8 (close RHBZ#2349279) 2025-03-03 15:33:58 -05:00
Benjamin A. Beasley
e25f861d98 C99 compatibility patch (fix RHBZ#2166336)
We don’t need this in EPEL9, but this keeps the spec file closer to
Rawhide.
2025-03-03 15:33:58 -05:00
Benjamin A. Beasley
385db752ff Backport conditional to re-generate the configure script (but don’t) 2025-03-03 15:30:36 -05:00
Benjamin A. Beasley
a0386118ca Generate ethercodes.dat from latest oui.csv 2025-03-03 15:28:13 -05:00
Benjamin A. Beasley
7fcde1b370 Generate ethercodes.dat from latest oui.csv 2025-02-01 10:35:55 -05:00
Benjamin A. Beasley
64cba7fbc2 Add a SourceLicense field 2024-12-11 14:42:30 -05:00
Benjamin A. Beasley
c00169cefd Generate ethercodes.dat from latest oui.csv 2024-12-11 14:41:36 -05:00
Benjamin A. Beasley
c16399735b Generate ethercodes.dat from latest oui.csv 2024-11-26 01:45:32 -05:00
Benjamin A. Beasley
1c5073f593 Fix arpwatch/arpsnmp permissions in %install, not in %files
- Works around an issue extracting debuginfo
2024-11-26 01:39:38 -05:00
Benjamin A. Beasley
9fd3f355af Fix a trivial typo in the spec file 2024-10-31 21:02:23 -04:00
Benjamin A. Beasley
344bf37c08 Generate ethercodes.dat from latest oui.csv 2024-10-31 14:34:23 -04:00
Benjamin A. Beasley
a0e5cd882c Update to 3.7 (close RHBZ#2316380) 2024-10-04 08:08:53 -04:00
Benjamin A. Beasley
df80ed4d49 Generate ethercodes.dat from latest oui.csv 2024-09-14 12:33:32 -04:00
Benjamin A. Beasley
af248a9eb6 Generate ethercodes.dat from latest oui.csv 2024-07-02 14:35:13 -04:00
Benjamin A. Beasley
bf01262924 Generate ethercodes.dat from latest oui.csv 2024-05-17 13:17:35 -04:00
Benjamin A. Beasley
b0b3c5bc72 Generate ethercodes.dat from latest oui.csv 2024-03-28 09:35:54 -04:00
Benjamin A. Beasley
ca97d3e572 Update to 3.6 (close RHBZ#2259459) 2024-01-22 09:24:14 -05:00
Benjamin A. Beasley
57ae2eb88f Generate ethercodes.dat from latest oui.csv 2024-01-21 21:46:50 -05:00
Benjamin A. Beasley
40f4a4dce5 Generate ethercodes.dat from latest oui.csv 2024-01-02 12:47:45 -05:00
Benjamin A. Beasley
13de2cb150 Switch to dynamically-allocated service user/group ID’s 2023-12-04 13:27:27 -05:00
Benjamin A. Beasley
bc726a27ad Update to 3.5 (close RHBZ#2252673) 2023-12-03 22:54:52 -05:00
Benjamin A. Beasley
c2084c7dc8 Generate ethercodes.dat from latest oui.csv 2023-12-03 20:12:31 -05:00
Benjamin A. Beasley
13396eb7dc Generate ethercodes.dat from latest oui.csv 2023-11-10 13:21:48 -05:00
Benjamin A. Beasley
2fa8ad7d90 Generate ethercodes.dat from latest oui.csv 2023-10-04 10:41:00 -04:00
Benjamin A. Beasley
f9ea5354ed Update to 3.4 (close RHBZ#2237532) 2023-09-07 07:05:52 -04:00
Benjamin A. Beasley
c3b4333d43 Generate ethercodes.dat from latest oui.csv 2023-09-06 08:06:29 -04:00
Benjamin A. Beasley
d981b8c192 Generate ethercodes.dat from latest oui.csv 2023-08-21 13:35:58 -04:00
Benjamin A. Beasley
f485a084b0 Generate ethercodes.dat from latest oui.csv 2023-07-13 00:41:10 -04:00
Benjamin A. Beasley
54318d591c Generate ethercodes.dat from latest oui.csv 2023-05-24 17:55:01 -04:00
Benjamin A. Beasley
a8a5964311 Generate ethercodes.dat from latest oui.csv 2023-04-25 10:46:47 -04:00
Benjamin A. Beasley
247c065b06 Generate ethercodes.dat from latest oui.csv 2023-03-26 09:21:24 -04:00
Benjamin A. Beasley
bc3766441c Generate ethercodes.dat from latest oui.csv 2023-02-15 17:18:27 -05:00
Benjamin A. Beasley
40d19098be Generate ethercodes.dat from latest oui.csv 2023-01-17 20:28:02 -05:00
Benjamin A. Beasley
65324251c1 Generate ethercodes.dat from latest oui.csv 2022-12-19 00:26:15 -05:00
Benjamin A. Beasley
712e40ad2d Update License field to SPDX
- Additionally, the license is corrected; it should have been “BSD”
  rather than “BSD with advertising” under the old system.
2022-08-03 15:00:26 -04:00
Benjamin A. Beasley
ce1856f508 Extract a LICENSE file from arpwatch.c’s comment header
We have emailed upstream requesting a proper license file.
2022-08-03 15:00:24 -04:00
Benjamin A. Beasley
a44273782c Generate ethercodes.dat from latest oui.csv 2022-05-06 14:23:20 -04:00
Benjamin A. Beasley
1831a7df4c Update to 3.3 (close RHBZ#2068925) 2022-03-28 12:51:44 -04:00
Benjamin A. Beasley
38043f750a Generate ethercodes.dat from latest oui.csv 2022-03-28 12:51:14 -04:00
Benjamin A. Beasley
298a7f5dce Generate ethercodes.dat from latest oui.csv 2022-03-24 16:36:47 -04:00
Benjamin A. Beasley
d539a60b80 Switch OUI URL from HTTP to HTTPS 2022-03-24 16:36:42 -04:00
Benjamin A. Beasley
7048a5b2b0 Allow fsync in systemd sandbox (fix RHBZ#2051521)
Allow the @sync group to the SystemCallFilter in the systemd sandbox.
When arpwatch is configured to send notification emails via sendmail, at
least the fsync call is needed.
2022-02-07 14:52:27 -05:00

View file

@ -1,4 +1,5 @@
%bcond autoreconf 1
# EPEL9: Autoconf version 2.71 or higher is required
%bcond autoreconf 0
Name: arpwatch
Epoch: 14
@ -24,6 +25,8 @@ SourceLicense: %{shrink:
}
URL: https://ee.lbl.gov/
Requires(pre): shadow-utils
Requires: /usr/sbin/sendmail
Requires: python3
@ -48,7 +51,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 2025-12-11T07:07:44+00:00.
# File oui.csv last fetched 2025-12-11T07:08:04+00:00.
Source1: oui.csv
Source2: arpwatch.service
Source3: arpwatch.sysconfig
@ -56,46 +59,42 @@ Source4: arp2ethers.8
Source5: massagevendor.8
Source6: arpwatch.sysusers
# The latest versions of all “arpwatch-3.1-*” patches were sent upstream by
# email 2021-04-24.
# Latest version of patches 19 sent upstream by email 2021-04-24.
# Fix section numbers in man page cross-references. With minor changes, this
# patch dates all the way back to arpwatch-2.1a4-man.patch, from RHBZ #15442.
Patch: arpwatch-3.1-man-references.patch
Patch1: arpwatch-3.1-man-references.patch
# Add, and document, a -u argument to change to a specified unprivileged user
# after establishing sockets. This combines and improves multiple previous
# patches; see patch header and changelog for notes.
Patch: arpwatch-3.2-change-user.patch
Patch2: arpwatch-3.2-change-user.patch
# Fix nonstandard sort flags in arp2ethers script.
Patch: arpwatch-3.1-arp2ethers-sort-invocation.patch
Patch3: arpwatch-3.1-arp2ethers-sort-invocation.patch
# Fix stray rm (of an undefined variable) in example arpfetch script.
Patch: arpwatch-3.1-arpfetch-stray-rm.patch
Patch4: arpwatch-3.1-arpfetch-stray-rm.patch
# Do not add /usr/local/bin or /usr/local/sbin to the PATH in any scripts
Patch: arpwatch-3.9-no-usr-local-path.patch
Patch5: arpwatch-3.9-no-usr-local-path.patch
# Do not attempt to search for local libpcap libraries lying around in the
# parent of the build directory, or anywhere else random. This is not expected
# to succeed anyway, but it is better to be sure.
Patch: arpwatch-3.1-configure-no-local-pcap.patch
Patch6: arpwatch-3.1-configure-no-local-pcap.patch
# RHBZ #244606: Correctly handle -n 0/32 to allow the user to disable reporting
# bogons from 0.0.0.0.
Patch: arpwatch-3.1-all-zero-bogon.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.
Patch: arpwatch-3.5-exitcode.patch
Patch8: arpwatch-3.5-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.
Patch: arpwatch-3.5-devlookup.patch
Patch9: arpwatch-3.5-devlookup.patch
# Replace _getshort(), “a glibc function that hasn't been declared in the
# installed headers for many, many years,” with ns_get16(). Fixes C99
# compatibility (https://bugzilla.redhat.com/show_bug.cgi?id=2166336). Sent
# upstream by email 2023-02-01.
Patch: arpwatch-3.3-c99.patch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
Patch10: arpwatch-3.3-c99.patch
%global pkgstatedir %{_sharedstatedir}/arpwatch
@ -130,7 +129,7 @@ awk '/^ \* / { print substr($0, 4); } /^ \*\// { exit }' arpwatch.c |
tee LICENSE
%conf
%build
%if %{with autoreconf}
autoreconf --force --install --verbose
%endif
@ -143,8 +142,6 @@ export CPPFLAGS="${CPPFLAGS-} -DTIME_WITH_SYS_TIME=1"
%configure --with-sendmail=/usr/sbin/sendmail PYTHON=%{python3}
%build
%make_build ARPDIR=%{pkgstatedir}
@ -214,6 +211,10 @@ fi
%systemd_post arpwatch.service
%pre
%sysusers_create_compat %{SOURCE6}
%postun
%systemd_postun_with_restart arpwatch.service