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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Feb 6 20:50:25 2013 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-arpwatch-0_1-2_el5_sme
Initial import

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

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