1 |
# $Id: smeserver-arpwatch.spec,v 1.1 2013/11/12 18:44:35 vip-ire 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.xz |
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 |
17 |
|
|
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
31 |
user-level packet capture. |
user-level packet capture. |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
* Tue Nov 12 2013 Daniel B. <daniel@firewall-services.com> [0.2-1] |
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-3.sme |
35 |
- Rebuild for SME9 |
- 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] |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
41 |
- Add e-smith-devtools as a build dependency |
- Add e-smith-devtools as a build dependency |
50 |
%prep |
%prep |
51 |
|
|
52 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
53 |
|
#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 |
|
|