1 |
# $Id: smeserver-arpwatch.spec,v 1.3 2014/06/17 18:46:23 unnilennium Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: Arpwatch is a tool that monitors ethernet activity |
6 |
%define name smeserver-arpwatch |
7 |
Name: %{name} |
8 |
%define version 0.2 |
9 |
%define release 2 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Monitoring |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
|
16 |
#REM contribs9 Patch0: smeserver-arpwatch-0.2-not_supervised.patch |
17 |
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
20 |
|
21 |
BuildRequires: e-smith-devtools |
22 |
|
23 |
Requires: e-smith-base |
24 |
Requires: arpwatch |
25 |
|
26 |
%description |
27 |
Arpwatch is a tool that monitors ethernet activity and keeps |
28 |
a database of ethernet/ip address pairings. |
29 |
It also reports certain changes via email. |
30 |
Arpwatch uses libpcap, a system-independent interface for |
31 |
user-level packet capture. |
32 |
|
33 |
%changelog |
34 |
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-2.sme |
35 |
- changed the user pcap to arpwatch [SME: 8429] |
36 |
|
37 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 0.2-1.sme |
38 |
- initial import to SME9 contribs |
39 |
|
40 |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
41 |
- Add e-smith-devtools as a build dependency |
42 |
|
43 |
* Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-1] |
44 |
- Service not supervised (as the only option to disable forking is -d |
45 |
which also disable email alerts) |
46 |
|
47 |
* Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-0] |
48 |
- Initial release |
49 |
|
50 |
%prep |
51 |
|
52 |
%setup -q -n %{name}-%{version} |
53 |
#REM contribs9 %patch0 -p1 |
54 |
|
55 |
%build |
56 |
perl createlinks |
57 |
|
58 |
%install |
59 |
/bin/rm -rf $RPM_BUILD_ROOT |
60 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
61 |
/bin/rm -f %{name}-%{version}-filelist |
62 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
63 |
--dir /var/lib/arpwatch 'attr(0750,arpwatch,arpwatch)' \ |
64 |
--file /var/lib/arpwatch/arp.dat 'attr(0750,arpwatch,arpwatch) %config(noreplace)' \ |
65 |
> %{name}-%{version}-filelist |
66 |
|
67 |
%files -f %{name}-%{version}-filelist |
68 |
%defattr(-,root,root) |
69 |
|
70 |
%clean |
71 |
rm -rf $RPM_BUILD_ROOT |
72 |
%pre |
73 |
|
74 |
%post |
75 |
|
76 |
%preun |
77 |
if [ $1 -eq 0 ] ; then |
78 |
/sbin/e-smith/db configuration setprop arpwatch status disabled |
79 |
/etc/init.d/arpwatch stop |
80 |
fi |
81 |
|
82 |
true |
83 |
|