|
|
484378 |
%global _vararpwatch %{_localstatedir}/lib/arpwatch
|
|
|
484378 |
%global _hardened_build 1
|
|
|
484378 |
|
|
|
484378 |
Name: arpwatch
|
|
|
484378 |
Epoch: 14
|
|
|
484378 |
Version: 2.1a15
|
|
|
484378 |
Release: 36%{?dist}
|
|
|
484378 |
Summary: Network monitoring tools for tracking IP addresses on a network
|
|
|
484378 |
Group: Applications/System
|
|
|
484378 |
License: BSD with advertising
|
|
|
484378 |
URL: http://ee.lbl.gov/
|
|
|
484378 |
Requires(pre): shadow-utils
|
|
|
484378 |
Requires(post): systemd-units
|
|
|
484378 |
Requires(preun): systemd-units
|
|
|
484378 |
Requires(postun): systemd-units
|
|
|
484378 |
Requires: /usr/sbin/sendmail
|
|
|
484378 |
BuildRequires: /usr/sbin/sendmail libpcap-devel systemd
|
|
|
484378 |
|
|
|
484378 |
Source0: ftp://ftp.ee.lbl.gov/arpwatch-%{version}.tar.gz
|
|
|
484378 |
Source1: arpwatch.service
|
|
|
484378 |
Source2: arpwatch.sysconfig
|
|
|
484378 |
# created by:
|
|
|
484378 |
# wget -O- http://standards.ieee.org/regauth/oui/oui.txt | \
|
|
|
484378 |
# iconv -f iso8859-1 -t utf8 | massagevendor | bzip2
|
|
|
484378 |
Source3: ethercodes-20110707.dat.bz2
|
|
|
484378 |
Patch1: arpwatch-2.1a4-fhs.patch
|
|
|
484378 |
Patch2: arpwatch-2.1a10-man.patch
|
|
|
484378 |
Patch3: arpwatch-drop.patch
|
|
|
484378 |
Patch4: arpwatch-drop-man.patch
|
|
|
484378 |
Patch5: arpwatch-addr.patch
|
|
|
484378 |
Patch6: arpwatch-dir-man.patch
|
|
|
484378 |
Patch7: arpwatch-scripts.patch
|
|
|
484378 |
Patch8: arpwatch-2.1a15-nolocalpcap.patch
|
|
|
484378 |
Patch9: arpwatch-2.1a15-bogon.patch
|
|
|
484378 |
Patch10: arpwatch-2.1a15-extraman.patch
|
|
|
484378 |
Patch11: arpwatch-exitcode.patch
|
|
|
484378 |
Patch12: arpwatch-2.1a15-dropgroup.patch
|
|
|
484378 |
Patch13: arpwatch-2.1a15-devlookup.patch
|
|
|
484378 |
Patch14: arpwatch-2.1a15-lookupiselect.patch
|
|
|
484378 |
Patch15: arpwatch-2.1a15-lookupiinvalid.patch
|
|
|
484378 |
Patch16: arpwatch-201301-ethcodes.patch
|
|
|
484378 |
Patch17: arpwatch-pie.patch
|
|
|
484378 |
Patch18: arpwatch-aarch64.patch
|
|
|
484378 |
Patch19: arpwatch-promisc.patch
|
|
|
484378 |
Patch20: arpwatch-ethernet-address-format.patch
|
|
|
484378 |
Patch21: arpwatch-zero-source-ip.patch
|
|
|
484378 |
|
|
|
484378 |
%description
|
|
|
484378 |
The arpwatch package contains arpwatch and arpsnmp. Arpwatch and
|
|
|
484378 |
arpsnmp are both network monitoring tools. Both utilities monitor
|
|
|
484378 |
Ethernet or FDDI network traffic and build databases of Ethernet/IP
|
|
|
484378 |
address pairs, and can report certain changes via email.
|
|
|
484378 |
|
|
|
484378 |
Install the arpwatch package if you need networking monitoring devices
|
|
|
484378 |
which will automatically keep track of the IP addresses on your
|
|
|
484378 |
network.
|
|
|
484378 |
|
|
|
484378 |
%prep
|
|
|
484378 |
%setup -q
|
|
|
484378 |
|
|
|
484378 |
%patch1 -p1 -b .fhs
|
|
|
484378 |
%patch2 -p1 -b .arpsnmpman
|
|
|
484378 |
%patch3 -p1 -b .droproot
|
|
|
484378 |
%patch4 -p0 -b .droprootman
|
|
|
484378 |
%patch5 -p1 -b .mailuser
|
|
|
484378 |
%patch6 -p1 -b .dirman
|
|
|
484378 |
%patch7 -p1 -b .scripts
|
|
|
484378 |
%patch8 -p1 -b .nolocalpcap
|
|
|
484378 |
%patch9 -p1 -b .bogon
|
|
|
484378 |
%patch10 -p1 -b .extraman
|
|
|
484378 |
%patch11 -p1 -b .exitcode
|
|
|
484378 |
%patch12 -p1 -b .dropgroup
|
|
|
484378 |
%patch13 -p1 -b .devlookup
|
|
|
484378 |
%patch14 -p1 -b .iselect
|
|
|
484378 |
%patch15 -p1 -b .iinval
|
|
|
484378 |
%patch16 -p1 -b .ethcode
|
|
|
484378 |
%patch17 -p1 -b .pie
|
|
|
484378 |
%patch18 -p1 -b .aarch64
|
|
|
484378 |
%patch19 -p1 -b .promisc
|
|
|
484378 |
%patch20 -p1 -b .ethernet-address
|
|
|
484378 |
%patch21 -p1 -b .zero-source-ip
|
|
|
484378 |
|
|
|
484378 |
%build
|
|
|
484378 |
%configure
|
|
|
484378 |
make ARPDIR=%{_vararpwatch}
|
|
|
484378 |
|
|
|
484378 |
%install
|
|
|
484378 |
|
|
|
484378 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
484378 |
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
|
484378 |
mkdir -p $RPM_BUILD_ROOT%{_vararpwatch}
|
|
|
484378 |
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
|
484378 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
|
484378 |
touch $RPM_BUILD_ROOT%{_vararpwatch}/arp.dat-
|
|
|
484378 |
make DESTDIR=$RPM_BUILD_ROOT install install-man
|
|
|
484378 |
|
|
|
484378 |
# prepare awk scripts
|
|
|
484378 |
perl -pi -e "s/\'/\'\\\'\'/g" *.awk
|
|
|
484378 |
|
|
|
484378 |
# and embed them
|
|
|
484378 |
for i in arp2ethers massagevendor massagevendor-old; do
|
|
|
484378 |
cp -f $i $RPM_BUILD_ROOT%{_sbindir}
|
|
|
484378 |
for j in *.awk; do
|
|
|
484378 |
sed "s/-f\ *\(\<$j\>\)/\'\1\n\' /g" \
|
|
|
484378 |
< $RPM_BUILD_ROOT%{_sbindir}/$i \
|
|
|
484378 |
| sed "s/$j\$//;tx;b;:x;r$j" \
|
|
|
484378 |
> $RPM_BUILD_ROOT%{_sbindir}/$i.x
|
|
|
484378 |
mv -f $RPM_BUILD_ROOT%{_sbindir}/$i{.x,}
|
|
|
484378 |
done
|
|
|
484378 |
chmod 755 $RPM_BUILD_ROOT%{_sbindir}/$i
|
|
|
484378 |
done
|
|
|
484378 |
|
|
|
484378 |
install -p -m644 *.dat $RPM_BUILD_ROOT%{_vararpwatch}
|
|
|
484378 |
install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/arpwatch.service
|
|
|
484378 |
install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/arpwatch
|
|
|
484378 |
install -p -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_vararpwatch}/ethercodes.dat.bz2
|
|
|
484378 |
bzip2 -df $RPM_BUILD_ROOT%{_vararpwatch}/ethercodes.dat.bz2
|
|
|
484378 |
|
|
|
484378 |
rm -f $RPM_BUILD_ROOT%{_sbindir}/massagevendor-old
|
|
|
484378 |
|
|
|
484378 |
%post
|
|
|
484378 |
%systemd_post arpwatch.service
|
|
|
484378 |
|
|
|
484378 |
%pre
|
|
|
484378 |
if ! getent group arpwatch &> /dev/null; then
|
|
|
484378 |
getent group pcap 2> /dev/null | grep -q 77 &&
|
|
|
484378 |
/usr/sbin/groupmod -n arpwatch pcap 2> /dev/null ||
|
|
|
484378 |
/usr/sbin/groupadd -g 77 arpwatch 2> /dev/null
|
|
|
484378 |
fi
|
|
|
484378 |
if ! getent passwd arpwatch &> /dev/null; then
|
|
|
484378 |
getent passwd pcap 2> /dev/null | grep -q 77 &&
|
|
|
484378 |
/usr/sbin/usermod -l arpwatch -g 77 \
|
|
|
484378 |
-d %{_vararpwatch} pcap 2> /dev/null ||
|
|
|
484378 |
/usr/sbin/useradd -u 77 -g 77 -s /sbin/nologin \
|
|
|
484378 |
-M -r -d %{_vararpwatch} arpwatch 2> /dev/null
|
|
|
484378 |
fi
|
|
|
484378 |
:
|
|
|
484378 |
|
|
|
484378 |
%postun
|
|
|
484378 |
%systemd_postun_with_restart arpwatch.service
|
|
|
484378 |
|
|
|
484378 |
%preun
|
|
|
484378 |
%systemd_preun arpwatch.service
|
|
|
484378 |
|
|
|
484378 |
%files
|
|
|
484378 |
%doc README CHANGES arpfetch
|
|
|
484378 |
%{_sbindir}/arpwatch
|
|
|
484378 |
%{_sbindir}/arpsnmp
|
|
|
484378 |
%{_sbindir}/arp2ethers
|
|
|
484378 |
%{_sbindir}/massagevendor
|
|
|
484378 |
%{_mandir}/man8/*.8*
|
|
|
484378 |
%{_unitdir}/arpwatch.service
|
|
|
484378 |
%config(noreplace) %{_sysconfdir}/sysconfig/arpwatch
|
|
|
484378 |
%attr(1775,-,arpwatch) %dir %{_vararpwatch}
|
|
|
484378 |
%attr(0644,arpwatch,arpwatch) %verify(not md5 size mtime) %config(noreplace) %{_vararpwatch}/arp.dat
|
|
|
484378 |
%attr(0644,arpwatch,arpwatch) %verify(not md5 size mtime) %config(noreplace) %{_vararpwatch}/arp.dat-
|
|
|
484378 |
%attr(0600,arpwatch,arpwatch) %verify(not md5 size mtime) %ghost %{_vararpwatch}/arp.dat.new
|
|
|
484378 |
%attr(0644,-,arpwatch) %verify(not md5 size mtime) %config(noreplace) %{_vararpwatch}/ethercodes.dat
|
|
|
484378 |
|
|
|
484378 |
%changelog
|
|
|
484378 |
* Wed Mar 22 2017 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-36
|
|
|
484378 |
- refix: arpwatch detects flip flop of 0.0.0.0 for multiple DHCP Clients (#1408894)
|
|
|
484378 |
|
|
|
484378 |
* Wed Mar 22 2017 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-35
|
|
|
484378 |
- arpwatch detects flip flop of 0.0.0.0 for multiple DHCP Clients (#1408894)
|
|
|
484378 |
|
|
|
484378 |
* Tue Mar 21 2017 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-34
|
|
|
484378 |
- MAC addresses are not shown properly (#1368523)
|
|
|
484378 |
|
|
|
484378 |
* Mon Apr 18 2016 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-33
|
|
|
484378 |
- fix typo in arpwatch-promisc.patch (#1291722)
|
|
|
484378 |
|
|
|
484378 |
* Thu Mar 3 2016 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-32
|
|
|
484378 |
- fix FTBFS (#1313890)
|
|
|
484378 |
|
|
|
484378 |
* Wed Mar 2 2016 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-31
|
|
|
484378 |
- add -p option that disables promiscuous mode (#1291722)
|
|
|
484378 |
|
|
|
484378 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 14:2.1a15-30
|
|
|
484378 |
- Mass rebuild 2014-01-24
|
|
|
484378 |
|
|
|
484378 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 14:2.1a15-29
|
|
|
484378 |
- Mass rebuild 2013-12-27
|
|
|
484378 |
|
|
|
484378 |
* Tue Apr 23 2013 Jan Synáček <jsynacek@redhat.com> 14:2.1a15-28
|
|
|
484378 |
- harden the package (#954336)
|
|
|
484378 |
- support aarch64 (#925027)
|
|
|
484378 |
|
|
|
484378 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:2.1a15-27
|
|
|
484378 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
484378 |
|
|
|
484378 |
* Thu Jan 17 2013 Ales Ledvinka <aledvink@redhat.com> - 14:2.1a15-26
|
|
|
484378 |
- fix permissions related to collected database
|
|
|
484378 |
- update ethcodes defaults to current public IEEE OUI-32
|
|
|
484378 |
|
|
|
484378 |
* Mon Oct 15 2012 Ales Ledvinka <aledvink@redhat.com> - 14:2.1a15-25
|
|
|
484378 |
- fix -i with invalid interface specified (#842660)
|
|
|
484378 |
|
|
|
484378 |
* Mon Oct 15 2012 Ales Ledvinka <aledvink@redhat.com> - 14:2.1a15-24
|
|
|
484378 |
- fix devlookup to start with -i interface specified (#842660)
|
|
|
484378 |
|
|
|
484378 |
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-23
|
|
|
484378 |
- Add system-rpm macros (#850032)
|
|
|
484378 |
|
|
|
484378 |
* Tue Jul 24 2012 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-22
|
|
|
484378 |
- add devlookup patch: search for suitable default interface, if -i is not
|
|
|
484378 |
specified (#842660)
|
|
|
484378 |
|
|
|
484378 |
* Thu Jul 19 2012 Jan Synáček <jsynacek@redhat.com> - 14:2.1a15-21
|
|
|
484378 |
- make spec slightly more fedora-review-friendly
|
|
|
484378 |
|
|
|
484378 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:2.1a15-21
|
|
|
484378 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
484378 |
|
|
|
484378 |
* Thu May 31 2012 Aleš Ledvinka <aledvink@redhat.com> 14:2.1a15-20
|
|
|
484378 |
- fix supplementary group list (#825328) (CVE-2012-2653)
|
|
|
484378 |
|
|
|
484378 |
* Thu Jan 19 2012 Jan Synáček <jsynacek@redhat.com> 14:2.1a15-19
|
|
|
484378 |
- Turn on PrivateTmp=true in service file (#782477)
|
|
|
484378 |
|
|
|
484378 |
* Thu Jan 05 2012 Jan Synáček <jsynacek@redhat.com> 14:2.1a15-18
|
|
|
484378 |
- Rebuilt for GCC 4.7
|
|
|
484378 |
|
|
|
484378 |
* Fri Jul 08 2011 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-17
|
|
|
484378 |
- exit with zero error code (#699285)
|
|
|
484378 |
- change service type to forking (#699285)
|
|
|
484378 |
|
|
|
484378 |
* Thu Jul 07 2011 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-16
|
|
|
484378 |
- replace SysV init script with systemd service (#699285)
|
|
|
484378 |
- update ethercodes.dat
|
|
|
484378 |
|
|
|
484378 |
* Mon Mar 28 2011 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-15
|
|
|
484378 |
- update ethercodes.dat (#690948)
|
|
|
484378 |
|
|
|
484378 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:2.1a15-14
|
|
|
484378 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
484378 |
|
|
|
484378 |
* Tue Mar 30 2010 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-13
|
|
|
484378 |
- update ethercodes.dat (#577552)
|
|
|
484378 |
- mark ethercodes.dat as noreplace
|
|
|
484378 |
- fix init script LSB compliance
|
|
|
484378 |
- include Debian arp2ethers and massagevendor man pages (#526160)
|
|
|
484378 |
- don't include massagevendor-old script anymore
|
|
|
484378 |
|
|
|
484378 |
* Wed Sep 02 2009 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-12
|
|
|
484378 |
- update ethercodes.dat
|
|
|
484378 |
|
|
|
484378 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:2.1a15-11
|
|
|
484378 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
484378 |
|
|
|
484378 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 14:2.1a15-10
|
|
|
484378 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
484378 |
|
|
|
484378 |
* Tue Sep 16 2008 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-9
|
|
|
484378 |
- update ethercodes.dat (#462364)
|
|
|
484378 |
|
|
|
484378 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 14:2.1a15-8
|
|
|
484378 |
- Autorebuild for GCC 4.3
|
|
|
484378 |
|
|
|
484378 |
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-7
|
|
|
484378 |
- rebuild
|
|
|
484378 |
|
|
|
484378 |
* Thu Aug 09 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-6
|
|
|
484378 |
- improve init script (#246869)
|
|
|
484378 |
- allow -n 0/32 to disable reporting bogons from 0.0.0.0 (#244606)
|
|
|
484378 |
- update license tag
|
|
|
484378 |
- update ethercodes.dat
|
|
|
484378 |
|
|
|
484378 |
* Wed Jun 13 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-5
|
|
|
484378 |
- update ethercodes.dat
|
|
|
484378 |
|
|
|
484378 |
* Thu May 24 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-4
|
|
|
484378 |
- fix return codes in init script (#237781)
|
|
|
484378 |
|
|
|
484378 |
* Mon Jan 15 2007 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-3
|
|
|
484378 |
- rename pcap user to arpwatch
|
|
|
484378 |
|
|
|
484378 |
* Tue Nov 28 2006 Miroslav Lichvar <mlichvar@redhat.com> 14:2.1a15-2
|
|
|
484378 |
- split from tcpdump package (#193657)
|
|
|
484378 |
- update to 2.1a15
|
|
|
484378 |
- clean up files in /var
|
|
|
484378 |
- force linking with system libpcap
|