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

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

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


Revision 1.2 - (show annotations) (download)
Mon Mar 2 23:53:29 2009 UTC (15 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-arpwatch-0_1-1_el4_sme
Changes since 1.1: +4 -0 lines
Spec updates

1 # $Id$
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.1
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 Patch0: smeserver-arpwatch-0.1-not_supervised.patch
17
18 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19 BuildArchitectures: noarch
20 Requires: e-smith-base
21 Requires: arpwatch
22
23 %description
24 Arpwatch is a tool that monitors ethernet activity and keeps
25 a database of ethernet/ip address pairings.
26 It also reports certain changes via email.
27 Arpwatch uses libpcap, a system-independent interface for
28 user-level packet capture.
29
30 %changelog
31 * Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-1]
32 - Service not supervised (as the only option to disable forking is -d
33 which also disable email alerts)
34
35 * Tue Jan 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-0]
36 - Initial release
37
38 %prep
39
40 %setup -q -n %{name}-%{version}
41 %patch0 -p1
42
43 %build
44 perl createlinks
45
46 %install
47 /bin/rm -rf $RPM_BUILD_ROOT
48 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
49 /bin/rm -f %{name}-%{version}-filelist
50 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
51 --dir /var/lib/arpwatch 'attr(0750,pcap,pcap)' \
52 --file /var/lib/arpwatch/arp.dat 'attr(0750,pcap,pcap) %config(noreplace)' \
53 > %{name}-%{version}-filelist
54
55 %files -f %{name}-%{version}-filelist
56 %defattr(-,root,root)
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61
62 %post
63
64 %preun
65 if [ $1 -eq 0 ] ; then
66 /sbin/e-smith/db configuration setprop arpwatch status disabled
67 /etc/init.d/arpwatch stop
68 fi
69
70 true
71

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