Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 36656746
en ru br
Репозитории ALT
5.1: 2.1a15-alt7
4.1: 2.1a15-alt4
4.0: 2.1a15-alt4
3.0: 2.1a13-alt1
+backports:2.1a15-alt1.M30.2
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: arpwatch

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: arpwatch
Version: 2.1a15
Release: alt1.M30.2
Serial: 2

%define arpwatch_user pcap
%define arpwatch_group pcap

Summary: Network monitoring tools for tracking IP addresses on the network.
Summary(ru_RU.KOI8-R): Утилиты для отслеживания соответствия IP адресов в сети.
Group: Monitoring
License: BSD
Url: ftp://ftp.ee.lbl.gov

Source: %url/%name-%version.tar.gz
Source1: %name.init
Source2: %name.sysconfig

Patch1: %name-fhs.patch
Patch2: %name-2.1a10-man.patch
Patch3: %name-drop.patch
Patch4: %name-drop-man.patch
Patch5: %name-addr.patch
Patch6: %name-dir-man.patch

PreReq(post,preun): chkconfig
Requires: MTA

# Automatically added by buildreq on Tue Oct 31 2006

BuildRequires: libpcap-devel

%description
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
network.

%prep
%setup -q
%patch1 -p0 -b .fhs
%patch2 -p1 -b .arpsnmpman
%patch3 -p0 -b .droproot
%patch4 -p0 -b .dropman
%patch5 -p1 -b .mailuser
%patch6 -p1 -b .dirman

%build
export ac_cv_path_V_SENDMAIL=%_sbindir/sendmail
%configure
%define _vararpwatch %_localstatedir/%name

%make_build ARPDIR=%_vararpwatch

%install
mkdir -p %buildroot{%_vararpwatch,%_sbindir,%_man8dir,%_initdir}
mkdir -p %buildroot%_sysconfdir/sysconfig
%make_install DESTDIR=%buildroot install install-man

install -p -m755 arp2ethers massagevendor %buildroot%_vararpwatch
install -p -m644 *.awk *.dat %buildroot%_vararpwatch

install -p -m755 %SOURCE1 %buildroot%_initdir/%name
install -p -m644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name

#%__subst -p 's,#!/bin/csh.*.*,#!/bin/sh,' %buildroot%_vararpwatch/arp2ethers


%pre
%_sbindir/groupadd -r -f %arpwatch_group 2>/dev/null ||:
%_sbindir/useradd -g %arpwatch_group -c 'Packet Capture' \
-d %_vararpwatch -s '/dev/null' -r %arpwatch_user 2>/dev/null ||:

%post
%post_service %name

%preun
%preun_service %name

%files
%_sbindir/*
%_mandir/man?/*
%config(noreplace) %_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/%name
%attr(755,%arpwatch_user,%arpwatch_group) %dir %_vararpwatch
%attr(644,%arpwatch_user,%arpwatch_group) %config(noreplace) %_vararpwatch/arp.dat
%_vararpwatch/ethercodes.dat
%_vararpwatch/*.awk
%_vararpwatch/arp2ethers
%_vararpwatch/massagevendor
%doc README CHANGES

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin