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

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

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


Revision 1.2 - (show annotations) (download)
Tue Jun 17 18:00:43 2014 UTC (10 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-arpwatch-0_2-1, HEAD
Changes since 1.1: +8 -5 lines
Initial import to v9

1 # $Id: smeserver-arpwatch.spec,v 1.1 2013/02/06 20:50:25 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 1
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 Jun 16 2014 JP Pialasse <tests@pialasse.com> 0.2-1.sme
35 - initial import to SME9 contribs
36
37 * Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.1-2]
38 - Add e-smith-devtools as a build dependency
39
40 * Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-1]
41 - Service not supervised (as the only option to disable forking is -d
42 which also disable email alerts)
43
44 * Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-0]
45 - Initial release
46
47 %prep
48
49 %setup -q -n %{name}-%{version}
50 #REM contribs9 %patch0 -p1
51
52 %build
53 perl createlinks
54
55 %install
56 /bin/rm -rf $RPM_BUILD_ROOT
57 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
58 /bin/rm -f %{name}-%{version}-filelist
59 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
60 --dir /var/lib/arpwatch 'attr(0750,pcap,pcap)' \
61 --file /var/lib/arpwatch/arp.dat 'attr(0750,pcap,pcap) %config(noreplace)' \
62 > %{name}-%{version}-filelist
63
64 %files -f %{name}-%{version}-filelist
65 %defattr(-,root,root)
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70
71 %post
72
73 %preun
74 if [ $1 -eq 0 ] ; then
75 /sbin/e-smith/db configuration setprop arpwatch status disabled
76 /etc/init.d/arpwatch stop
77 fi
78
79 true
80

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