]> git.pld-linux.org Git - packages/arpwatch.git/blob - arpwatch.spec
cc877eaff1977c8122ed6e53051bbfb594d8a504
[packages/arpwatch.git] / arpwatch.spec
1 Summary:        Arpwatch monitors changes in ethernet/ip address pairings.
2 Summary(pl):    Arpwatch monitoruje zmiany w parach adresów ethernet/ip
3 Name:           arpwatch
4 Version:        2.1a4
5 Release:        11
6 Group:          Applications/Networking
7 Group(pl):      Aplikacje/Sieciowe
8 License:        GPL
9 Source0:        ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.Z
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Patch0:         %{name}-makefile.patch
13 Patch1:         arpwatch-arp2ethers.patch
14 Prereq:         /sbin/chkconfig
15 Requires:       rc-scripts >= 0.2.0
16 BuildRequires:  libpcap-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Arpwatch and arpsnmp are tools that monitors ethernet or fddi activity
21 and maintain a database of ethernet/ip address pairings.
22
23 %description -l pl
24 Arpwatch i arpsnmp to narzêdzia do monitorowania ethernetu i fddi.
25 Dodatkowo tworzona jest baza par adresów ethernet/ip.
26
27 %prep
28 %setup  -q
29 %patch0 -p1
30 %patch1 -p1
31
32 %build
33 LDFLAGS="-s"; export LDFLAGS
34 %configure
35 make ARPDIR=/var/lib/arpwatch
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT/{var/lib/arpwatch,etc/{rc.d/init.d,sysconfig}} \
40         $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
41
42 make install install-man DESTDIR=$RPM_BUILD_ROOT
43
44 install {arp2ethers,massagevendor} $RPM_BUILD_ROOT/var/lib/arpwatch
45 install *.{awk,dat} $RPM_BUILD_ROOT/var/lib/arpwatch
46
47 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/arpwatch
48 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/arpwatch
49
50 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
51         README CHANGES
52
53 %post
54 /sbin/chkconfig --add arpwatch
55 if [ -f /var/lock/subsys/arpwatch ]; then
56         /etc/rc.d/init.d/arpwatch restart 1>&2
57 else
58         echo "Run \"/etc/rc.d/init.d/arpwatch start\" to start arpwatch daemon."
59 fi
60
61 %preun
62 /sbin/chkconfig --del arpwatch
63 if [ "$1" = "0" ]; then
64         if [ -f /var/lock/subsys/arpwatch ]; then
65                 /etc/rc.d/init.d/arpwatch stop 1>&2
66         fi
67         /sbin/chkconfig --del arpwatch
68 fi
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc README.gz CHANGES.gz
76
77 %attr(754,root,root) /etc/rc.d/init.d/arpwatch
78 %attr(755,root,root) %{_sbindir}/*
79
80 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/arpwatch
81
82 %{_mandir}/man8/*
83
84 %dir    /var/lib/arpwatch
85 %config(noreplace) %verify(not size mtime md5) /var/lib/arpwatch/arp.dat
86 %config %verify(not size mtime md5) /var/lib/arpwatch/ethercodes.dat
87 /var/lib/arpwatch/*.awk
88
89 %attr(755,root,root) /var/lib/arpwatch/arp2ethers
90 %attr(755,root,root) /var/lib/arpwatch/massagevendor
This page took 0.068324 seconds and 2 git commands to generate.