Compare commits
51 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe4b5af8cd | ||
|
|
4b26a725c2 | ||
|
|
9651bc46f5 | ||
|
|
a40acb7a7e | ||
|
|
3d16b582fb | ||
|
|
2864fc8366 | ||
|
|
9501c80512 | ||
|
|
45c6ab0853 | ||
|
|
7e949801d6 | ||
|
|
ecddae426d | ||
|
|
e25f861d98 | ||
|
|
385db752ff | ||
|
|
a0386118ca | ||
|
|
7fcde1b370 | ||
|
|
64cba7fbc2 | ||
|
|
c00169cefd | ||
|
|
c16399735b | ||
|
|
1c5073f593 | ||
|
|
9fd3f355af | ||
|
|
344bf37c08 | ||
|
|
a0e5cd882c | ||
|
|
df80ed4d49 | ||
|
|
af248a9eb6 | ||
|
|
bf01262924 | ||
|
|
b0b3c5bc72 | ||
|
|
ca97d3e572 | ||
|
|
57ae2eb88f | ||
|
|
40f4a4dce5 | ||
|
|
13de2cb150 | ||
|
|
bc726a27ad | ||
|
|
c2084c7dc8 | ||
|
|
13396eb7dc | ||
|
|
2fa8ad7d90 | ||
|
|
f9ea5354ed | ||
|
|
c3b4333d43 | ||
|
|
d981b8c192 | ||
|
|
f485a084b0 | ||
|
|
54318d591c | ||
|
|
a8a5964311 | ||
|
|
247c065b06 | ||
|
|
bc3766441c | ||
|
|
40d19098be | ||
|
|
65324251c1 | ||
|
|
712e40ad2d | ||
|
|
ce1856f508 | ||
|
|
a44273782c | ||
|
|
1831a7df4c | ||
|
|
38043f750a | ||
|
|
298a7f5dce | ||
|
|
d539a60b80 | ||
|
|
7048a5b2b0 |
1 changed files with 21 additions and 20 deletions
|
|
@ -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 1–9 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue