1 |
# $Id: smeserver-arpwatch.spec,v 1.1 2013/02/06 20:50:25 unnilennium Exp $ |
# $Id: smeserver-arpwatch.spec,v 1.4 2015/09/07 19:16:40 stephdl Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-arpwatch |
%define name smeserver-arpwatch |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.2 |
%define version 0.2 |
9 |
%define release 1 |
%define release 3 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Monitoring |
Group: Monitoring |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
|
Patch0: smeserver-arpwatch-0.2.bz8429.change-user2arpwatch.patch |
16 |
#REM contribs9 Patch0: smeserver-arpwatch-0.2-not_supervised.patch |
#REM contribs9 Patch0: smeserver-arpwatch-0.2-not_supervised.patch |
17 |
|
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
31 |
user-level packet capture. |
user-level packet capture. |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-3.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 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 0.2-1.sme |
38 |
- initial import to SME9 contribs |
- initial import to SME9 contribs |
39 |
|
|
51 |
|
|
52 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
53 |
#REM contribs9 %patch0 -p1 |
#REM contribs9 %patch0 -p1 |
54 |
|
%patch0 -p1 |
55 |
|
|
56 |
%build |
%build |
57 |
perl createlinks |
perl createlinks |
61 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
62 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
63 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
64 |
--dir /var/lib/arpwatch 'attr(0750,pcap,pcap)' \ |
--dir /var/lib/arpwatch 'attr(0750,arpwatch,arpwatch)' \ |
65 |
--file /var/lib/arpwatch/arp.dat 'attr(0750,pcap,pcap) %config(noreplace)' \ |
--file /var/lib/arpwatch/arp.dat 'attr(0750,arpwatch,arpwatch) %config(noreplace)' \ |
66 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
67 |
|
|
68 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
70 |
|
|
71 |
%clean |
%clean |
72 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
73 |
|
%pre |
74 |
|
|
75 |
%post |
%post |
76 |
|
|