Sisyphus repository
Last update: 25 may 2020 | SRPMs: 17559 | Visits: 18610197
en ru br
ALT Linux repos
5.0: 2.1a15-alt4
4.1: 2.1a15-alt4
4.0: 2.1a15-alt4
3.0: 2.1a13-alt1

Group :: Monitoring
RPM: arpwatch

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: arpwatch
Version: 2.1a15
Release: alt8
Epoch: 2

%define arpwatch_user _arpwd
%define arpwatch_group _arpwd

Summary: Network monitoring tools for tracking IP addresses on the network
Group: Monitoring
License: BSD


Source: arpwatch-%version.tar
Source1: arpwatch.init
Source2: arpwatch.sysconfig
Source3: arpwatch.service

Patch: arpwatch-%version-%release.patch

Requires: MTA
PreReq: shadow-utils

# Automatically added by buildreq on Tue Oct 31 2006

BuildRequires: libpcap-devel

%define _vararpwatch %_localstatedir/%name

The %name package contains %name and arpsnmp.  Arpwatch and arpsnmp
are both network monitoring tools.  Both utilities monitor Ethernet or
FDDI network traffic and build databases of Ethernet/IP address pairs,
and can report certain changes via email.

Install the %name package if you need networking monitoring devices
which will automatically keep traffic of the IP addresses on your

%patch -p1

export ac_cv_path_V_SENDMAIL=%_sbindir/sendmail

%make_build ARPDIR=%_vararpwatch

mkdir -p %buildroot{%_vararpwatch,%_sbindir,%_man8dir,%_initdir,%_unitdir}
mkdir -p %buildroot/etc/sysconfig
%makeinstall_std install-man

install -pm755 arp2ethers massagevendor %buildroot%_vararpwatch/
install -pm644 *.awk *.dat %buildroot%_vararpwatch/

install -pm644 %_sourcedir/arpwatch.service %buildroot%_unitdir/
install -pm755 %_sourcedir/arpwatch.init %buildroot%_initdir/%name
install -pm644 %_sourcedir/arpwatch.sysconfig %buildroot/etc/sysconfig/%name

%_sbindir/groupadd -r -f %arpwatch_group
%_sbindir/useradd -r -g %arpwatch_group -c 'The arpwatch daemon' \
-d %_vararpwatch -s /dev/null %arpwatch_user >/dev/null 2>&1 ||:

%post_service %name

%preun_service %name

%config(noreplace) %_initdir/%name
%config(noreplace) /etc/sysconfig/%name
%attr(1775,root,%arpwatch_group) %dir %_vararpwatch
%attr(644,%arpwatch_user,%arpwatch_group) %config(noreplace) %_vararpwatch/arp.dat


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin