/[packages]/cauldron/mandi/current/SPECS/mandi.spec
ViewVC logotype

Annotation of /cauldron/mandi/current/SPECS/mandi.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 359406 - (hide annotations) (download)
Sat Jan 12 16:45:18 2013 UTC (11 years, 10 months ago) by umeabot
File size: 2011 byte(s)
Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
1 ennael 50085 # EDIT IN SVN NOT IN SOURCE PACKAGE (NO PATCH ALLOWED).
2    
3     %define name mandi
4 blino 176050 %define version 1.2
5 umeabot 359406 %define release %mkrel 2
6 ennael 50085
7     Summary: Monitoring daemon bridge
8     Name: %{name}
9     Version: %{version}
10     Release: %{release}
11     Source0: %{name}-%{version}.tar.bz2
12     License: GPL
13     Group: Networking/Other
14     Url: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/mandi/
15     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
16     BuildRequires: dbus-devel
17     Requires(post): rpm-helper
18     Requires(preun): rpm-helper
19     Requires: dbus
20    
21     %description
22     Mandi is a monitoring daemon which acts as a bridge from root
23     monitoring libraries to user applications, using D-Bus.
24     Its plugin system allows to monitor different kind of events.
25     A built-in plugin forwards wireless scan results from wpa_supplicant
26     to user applications.
27    
28     %package ifw
29     Summary: Firewall rules for Interactive Firewall
30     Group: Networking/Other
31     Requires: mandi = %{version}
32     Requires: ipset
33    
34     %description ifw
35     This package contains the iptables rules used to forward intrusion
36     detections to the mandi daemon.
37     It is a component of Interactive Firewall.
38    
39     %prep
40     %setup -q
41    
42     %build
43     %make
44    
45     %install
46     rm -rf %{buildroot}
47     install -D -m755 src/%{name} %{buildroot}%{_sbindir}/%{name}
48     install -D -m644 conf/%{name}.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}.conf
49     install -D -m755 scripts/%{name}.init %buildroot%{_initrddir}/%{name}
50     install -d -m755 %buildroot%{_sysconfdir}/ifw/rules.d/
51     install -m644 rules.d/* %buildroot%{_sysconfdir}/ifw/rules.d/
52     install -m644 scripts/{start,stop} %{buildroot}%{_sysconfdir}/ifw
53     touch %{buildroot}/%{_sysconfdir}/ifw/whitelist
54    
55     %clean
56     rm -rf %{buildroot}
57    
58     %post
59     %_post_service mandi
60    
61     %preun
62     %_preun_service mandi
63    
64     %files
65     %defattr(-,root,root)
66     %{_sbindir}/%{name}
67     %config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
68     %{_initrddir}/mandi
69    
70     %files ifw
71     %dir %{_sysconfdir}/ifw/
72     %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ifw/whitelist
73     %{_sysconfdir}/ifw/start
74     %{_sysconfdir}/ifw/stop
75     %{_sysconfdir}/ifw/rules.d/*
76    
77    

  ViewVC Help
Powered by ViewVC 1.1.30