]> git.pld-linux.org Git - packages/fwlogwatch.git/blob - fwlogwatch.spec
- patch for standard pld paths; run as user stats in daemon mode
[packages/fwlogwatch.git] / fwlogwatch.spec
1 Summary:        Firewall log analyzer, report generator and realtime response agent
2 Summary(pl.UTF-8):      Analizator logów firewalla, generator raportów i agent natychmiastowej odpowiedzi
3 Name:           fwlogwatch
4 Version:        1.1
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://www.kybs.de/boris/sw/%{name}-%{version}.tar.bz2
9 # Source0-md5:  266974c417a7b973d3e54b64f95e9536
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Patch0:         %{name}-paths.patch
13 URL:            http://fwlogwatch.inside-security.de/
14 BuildRequires:  flex
15 BuildRequires:  m4
16 BuildRequires:  zlib-devel
17 Requires(post,preun):   /sbin/chkconfig
18 Requires:       rc-scripts
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _sysconfdir             /etc/%{name}
22
23 %description
24 fwlogwatch produces ipchains, netfilter/iptables, ipfilter, Cisco IOS
25 and Cisco PIX log summary reports in text and HTML form and has a lot
26 of options to find and display relevant patterns in connection
27 attempts. With the data found it can also generate customizable
28 incident reports from a template and send them to abuse contacts at
29 offending sites or CERT coordination centers. Finally, it can also run
30 as daemon and report anomalies or start countermeasures.
31
32 %description -l pl.UTF-8
33 fwlogwatch produkuje sumaryczne raporty w formacie tekstowym oraz HTML
34 z informacjami dostarczanymi przez logi ipchains, netfilter/iptables,
35 ipfilter, Cisco IOS oraz Cisco PIX. fwlogwatch ma wiele opcji
36 pozwalających znajdować określone wzorce w próbach połączeń. Na
37 podstawie tych danych może generować raporty o incydentach i wysyłać
38 je na adres abuse lub do centrów koordynacji CERT. Może on również
39 pracować jako daemon i informować o anomaliach oraz podejmować kroki
40 zapobiegawcze.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45
46 %build
47 %{__make} \
48         CC="%{__cc}" \
49         CFLAGS="%{rpmcflags} -Wall" \
50         LDFLAGS="%{rpmldflags}"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir}} \
55         $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
56
57 %{__make} install install-config \
58         INSTALL_DIR="$RPM_BUILD_ROOT%{_usr}" \
59         CONF_DIR="$RPM_BUILD_ROOT%{_sysconfdir}"
60
61 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
62 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post
68 %service %{name} restart
69
70 %preun
71 if [ "$1" = "0" ]; then
72         %service %{name} stop
73         /sbin/chkconfig --del %{name}
74 fi
75
76 %files
77 %defattr(644,root,root,755)
78 %doc contrib/fw* AUTHORS CREDITS ChangeLog README
79 %attr(700,root,root) %dir %{_sysconfdir}
80 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
81 %attr(755,root,root) %{_sbindir}/*
82 %attr(754,root,root) /etc/rc.d/init.d/%{name}
83 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
84 %{_mandir}/man?/*
This page took 0.034776 seconds and 3 git commands to generate.