/[smecontribs]/rpms/smeserver-arpwatch/contribs9/smeserver-arpwatch.spec
ViewVC logotype

Contents of /rpms/smeserver-arpwatch/contribs9/smeserver-arpwatch.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Mon Sep 7 19:16:40 2015 UTC (9 years, 1 month ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-arpwatch-0_2-2_el6_sme
Changes since 1.3: +8 -5 lines
* Mon Sep 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-2.sme
- changed the user pcap to arpwatch [SME: 8429]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed