Compare commits

...
Sign in to create a new pull request.

32 commits

Author SHA1 Message Date
Fedora Release Engineering
6ed64346f0 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:56:08 +00:00
Benjamin A. Beasley
3541129118 Generate ethercodes.dat from latest oui.csv 2025-12-11 07:07:44 +00:00
Benjamin A. Beasley
6141d65df8 Update to 3.9 (close RHBZ#2406123) 2025-10-23 23:37:22 +01:00
Benjamin A. Beasley
db38436f1e Generate ethercodes.dat from latest oui.csv 2025-10-23 23:21:46 +01:00
Benjamin A. Beasley
b44e9a4c9f Generate ethercodes.dat from latest oui.csv 2025-10-11 07:04:34 +01:00
Benjamin A. Beasley
6b7db1bfcf Generate ethercodes.dat from latest oui.csv 2025-09-13 07:14:57 +01:00
Benjamin A. Beasley
f5306decab Generate ethercodes.dat from latest oui.csv 2025-08-16 06:22:17 -04:00
Fedora Release Engineering
5cfee9bb3c Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:15:06 +00:00
Benjamin A. Beasley
5ef30239ce Very minor spec-file reformatting
[skip changelog]
2025-06-13 06:24:20 -04:00
Benjamin A. Beasley
bf02e5c50e Generate ethercodes.dat from latest oui.csv 2025-06-02 20:42:09 -04:00
Benjamin A. Beasley
90b170a064 Generate ethercodes.dat from latest oui.csv 2025-04-24 16:19:29 -04:00
Benjamin A. Beasley
b77727ab51 Update .rpmlintrc file for a new rpmlint version 2025-04-24 16:17:54 -04:00
Benjamin A. Beasley
362e16b710 Update to 3.8 (close RHBZ#2349279) 2025-03-03 11:29:09 -05:00
Benjamin A. Beasley
a4e44e673f Generate ethercodes.dat from latest oui.csv 2025-03-03 11:25:55 -05:00
Zbigniew Jędrzejewski-Szmek
aa93d898b1 Drop call to %sysusers_create_compat
After https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers,
rpm will handle account creation automatically.
2025-02-11 17:03:15 +01:00
Benjamin A. Beasley
9f602e31b6 Generate ethercodes.dat from latest oui.csv 2025-02-01 10:35:35 -05:00
Fedora Release Engineering
f42f360657 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 11:34:52 +00:00
Benjamin A. Beasley
fc583c9e0c Add a SourceLicense field 2024-12-11 14:42:00 -05:00
Benjamin A. Beasley
b040c3562d Generate ethercodes.dat from latest oui.csv 2024-12-11 14:42:00 -05:00
Benjamin A. Beasley
f74702c0e3 Generate ethercodes.dat from latest oui.csv 2024-11-26 01:45:19 -05:00
Benjamin A. Beasley
e0bcb1f8cd Invoke autoreconf and configure in %conf rather than in %build 2024-10-31 14:52:22 -04:00
Benjamin A. Beasley
872fd85ed5 By default, re-generate the configure script 2024-10-31 14:51:48 -04:00
Benjamin A. Beasley
768183ab7d Fix arpwatch/arpsnmp permissions in %install, not in %files
- Works around an issue extracting debuginfo
2024-10-31 14:50:13 -04:00
Benjamin A. Beasley
656c3cc8eb Fix a trivial typo in the spec file 2024-10-31 14:50:13 -04:00
Benjamin A. Beasley
ce3298b99b Generate ethercodes.dat from latest oui.csv 2024-10-31 14:34:08 -04:00
Benjamin A. Beasley
0676e59166 Update to 3.7 (close RHBZ#2316380) 2024-10-04 07:18:29 -04:00
Benjamin A. Beasley
2d5150f315 Generate ethercodes.dat from latest oui.csv 2024-10-04 07:15:41 -04:00
Benjamin A. Beasley
b62191f856 Generate ethercodes.dat from latest oui.csv 2024-09-14 12:33:12 -04:00
Fedora Release Engineering
14f68a1cd1 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 17:27:40 +00:00
Benjamin A. Beasley
5e5d4350d0 Generate ethercodes.dat from latest oui.csv 2024-07-02 14:34:54 -04:00
Benjamin A. Beasley
0d3389279c Generate ethercodes.dat from latest oui.csv 2024-05-17 13:17:26 -04:00
Benjamin A. Beasley
cec1869a02 Generate ethercodes.dat from latest oui.csv 2024-03-28 09:35:29 -04:00
7 changed files with 15204 additions and 11706 deletions

3
.gitignore vendored
View file

@ -6,3 +6,6 @@
/arpwatch-3.4.tar.gz
/arpwatch-3.5.tar.gz
/arpwatch-3.6.tar.gz
/arpwatch-3.7.tar.gz
/arpwatch-3.8.tar.gz
/arpwatch-3.9.tar.gz

View file

@ -1,40 +0,0 @@
Do not add /usr/local/bin or /usr/local/sbin to the PATH in any scripts.
diff -Naur arpwatch-3.2-original/arpfetch arpwatch-3.2/arpfetch
--- arpwatch-3.2-original/arpfetch 2013-02-16 03:10:28.000000000 -0500
+++ arpwatch-3.2/arpfetch 2021-12-16 08:26:26.931846139 -0500
@@ -4,8 +4,6 @@
# arpfetch - collect arp data from a cisco using net-snmp
#
-export PATH="/usr/local/bin:${PATH}"
-
prog=`basename $0`
if [ $# -ne 2 ]; then
diff -Naur arpwatch-3.2-original/bihourly.sh arpwatch-3.2/bihourly.sh
--- arpwatch-3.2-original/bihourly.sh 2016-09-16 22:40:54.000000000 -0400
+++ arpwatch-3.2/bihourly.sh 2021-12-16 08:26:35.671910709 -0500
@@ -3,9 +3,6 @@
#
# bihourly arpwatch job
#
-PATH=${PATH}:/usr/local/sbin
-export PATH
-#
cd /usr/local/arpwatch
#
list="`cat list`"
diff -Naur arpwatch-3.2-original/update-ethercodes.sh.in arpwatch-3.2/update-ethercodes.sh.in
--- arpwatch-3.2-original/update-ethercodes.sh.in 2021-12-14 19:47:54.000000000 -0500
+++ arpwatch-3.2/update-ethercodes.sh.in 2021-12-16 08:26:16.309767665 -0500
@@ -6,9 +6,6 @@
prog="`basename $0`"
-PATH=/usr/local/bin:${PATH}
-export PATH
-
t1=/tmp/${prog}.1.$$
trap 'rm -f ${t1}; exit 1' 1 2 3 15 EXIT

View file

@ -0,0 +1,40 @@
Do not add /usr/local/bin or /usr/local/sbin to the PATH in any scripts.
diff -Naur arpwatch-3.9-original/arpfetch arpwatch-3.9/arpfetch
--- arpwatch-3.9-original/arpfetch 2013-02-16 08:10:28.000000000 +0000
+++ arpwatch-3.9/arpfetch 2025-10-23 23:27:24.285711332 +0100
@@ -4,8 +4,6 @@
# arpfetch - collect arp data from a cisco using net-snmp
#
-export PATH="/usr/local/bin:${PATH}"
-
prog=`basename $0`
if [ $# -ne 2 ]; then
diff -Naur arpwatch-3.9-original/bihourly.sh arpwatch-3.9/bihourly.sh
--- arpwatch-3.9-original/bihourly.sh 2016-09-17 03:40:54.000000000 +0100
+++ arpwatch-3.9/bihourly.sh 2025-10-23 23:27:24.285849999 +0100
@@ -3,9 +3,6 @@
#
# bihourly arpwatch job
#
-PATH=${PATH}:/usr/local/sbin
-export PATH
-#
cd /usr/local/arpwatch
#
list="`cat list`"
diff -Naur arpwatch-3.9-original/update-ethercodes.sh.in arpwatch-3.9/update-ethercodes.sh.in
--- arpwatch-3.9-original/update-ethercodes.sh.in 2025-10-23 20:32:08.000000000 +0100
+++ arpwatch-3.9/update-ethercodes.sh.in 2025-10-23 23:27:50.579194300 +0100
@@ -6,9 +6,6 @@
prog="`basename $0`"
-PATH=/usr/local/bin:${PATH}
-export PATH
-
t1=`mktemp /tmp/${prog}.1.XXXXXX`
trap 'rm -f ${t1}; exit 1' 1 2 3 15 EXIT

View file

@ -1,9 +1,10 @@
# These are not real spelling errors...
addFilter(r'spelling-error .* en_US (arpsnmp) ')
addFilter(r' spelling-error .* en_US (arpsnmp) ')
# The sticky bit on this directory protects root-owned files from unlinking or
# renaming by members of the arpwatch group.
addFilter(r'non-standard-dir-perm /var/lib/arpwatch 1775')
addFilter(r' non-standard-dir-perm /var/lib/arpwatch 1775')
# Known zero-length files
addFilter(r'zero-length /var/lib/arpwatch/arp.dat-?')
# Ghost file
addFilter(r'non-readable /var/lib/arpwatch/arp.dat.new 600')
addFilter(r' zero-length /var/lib/arpwatch/arp.dat-?')
# This is beyond what we want to rewrite downstream, and is not necessarily a
# serious problem.
addFilter(r' binary-or-shlib-calls-gethostbyname ')

View file

@ -1,28 +1,38 @@
%bcond autoreconf 1
Name: arpwatch
Epoch: 14
Version: 3.6
Version: 3.9
Release: %autorelease
Summary: Network monitoring tools for tracking IP addresses on a network
# SPDX matching with BSD-3-Clause confirmed at
# https://gitlab.com/fedora/legal/fedora-license-data/-/issues/49
#
License: BSD-3-Clause
# Any files under different licenses are part of the build system and do not
# contribute to the license of the binary RPM:
# - config.guess and config.sub are GPL-3.0-or-later
# - configure is FSFULL
# - configure is FSFUL
# - install-sh is X11
# - mkdep is ??? (NTP-like)
License: BSD-3-Clause
# - mkdep is BSD-4.3RENO
SourceLicense: %{shrink:
%{license} AND
BSD-4.3RENO AND
FSFUL AND
GPL-3.0-or-later AND
X11
}
URL: https://ee.lbl.gov/
Requires(pre): shadow-utils
Requires: /usr/sbin/sendmail
Requires: python3
BuildRequires: gcc
BuildRequires: make
%if %{with autoreconf}
BuildRequires: autoconf
%endif
BuildRequires: /usr/sbin/sendmail
BuildRequires: systemd-rpm-macros
%{?sysuser_requires_compat}
@ -38,7 +48,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 2024-01-22T02:46:30+00:00.
# File oui.csv last fetched 2025-12-11T07:07:44+00:00.
Source1: oui.csv
Source2: arpwatch.service
Source3: arpwatch.sysconfig
@ -61,7 +71,7 @@ Patch: 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
# Do not add /usr/local/bin or /usr/local/sbin to the PATH in any scripts
Patch: arpwatch-3.2-no-usr-local-path.patch
Patch: 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.
@ -120,15 +130,21 @@ awk '/^ \* / { print substr($0, 4); } /^ \*\// { exit }' arpwatch.c |
tee LICENSE
%build
%set_build_flags
%conf
%if %{with autoreconf}
autoreconf --force --install --verbose
%endif
# 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
# defined, the build fails 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}
%build
%make_build ARPDIR=%{pkgstatedir}
@ -148,6 +164,10 @@ install -d %{buildroot}%{_mandir}/man8 \
%make_install
# Make install uses mode 0555, which is unconventional, and which can interfere
# with debuginfo generation since the file is not writable by its owner.
chmod -v 0755 %{buildroot}%{_sbindir}/arpwatch %{buildroot}%{_sbindir}/arpsnmp
install -p -t %{buildroot}%{_datadir}/arpwatch -m 0644 *.awk
install -p -t %{buildroot}%{_sbindir} arp2ethers
install -p massagevendor.py %{buildroot}%{_sbindir}/massagevendor
@ -194,10 +214,6 @@ fi
%systemd_post arpwatch.service
%pre
%sysusers_create_compat %{SOURCE6}
%postun
%systemd_postun_with_restart arpwatch.service
@ -212,9 +228,8 @@ fi
%doc CHANGES
%doc arpfetch
# make install uses mode 0555, which is unconventional
%attr(0755,-,-) %{_sbindir}/arpwatch
%attr(0755,-,-) %{_sbindir}/arpsnmp
%{_sbindir}/arpwatch
%{_sbindir}/arpsnmp
# manually-installed scripts
%{_sbindir}/arp2ethers
%{_sbindir}/massagevendor

26761
oui.csv

File diff suppressed because it is too large Load diff

View file

@ -1 +1 @@
SHA512 (arpwatch-3.6.tar.gz) = 5ba47b15f294396f79efa4b72743169b9eb36747d675144e8f456a23d3987dc0d719d9b97704e7eeec0795f03ee7ef7e8fe8a4ba1ee35d19ab8ec6b077d345e8
SHA512 (arpwatch-3.9.tar.gz) = b6fdda79caf6c79d78d629b28987d381981d8ac9150dd95c44ba0ed634d905446a8b64d73cdacca89d42a77965e0710d0a60184010440fed19168dae4e3dd4bd