]> git.pld-linux.org Git - packages/sshguard.git/blob - sshguard.spec
- iptables requires in %%post and %%postun sections
[packages/sshguard.git] / sshguard.spec
1
2 %define _rc     rc5
3
4 Summary:        sshguard - protect hosts from the plague of brute force attacks against SSH
5 Summary(pl.UTF-8):      sshguard - chroni hosty przed plagą ataków brute force na serwer SSH
6 Name:           sshguard
7 Version:        1.4
8 Release:        0.%{_rc}.1
9 License:        BSD
10 Group:          Applications
11 Source0:        http://dl.sourceforge.net/sshguard/%{name}-%{version}%{_rc}.tar.bz2
12 # Source0-md5:  ff57d62bb8891fe06748bc7c3968ff37
13 URL:            http://sshguard.sourceforge.net/
14 Patch0:         %{name}-iptables.patch
15 Patch1:         %{name}-getopt.patch
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libtool
19 Requires(post,postun):  iptables
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 sshguard protects hosts from the plague of brute force attacks against
24 SSH. Unlike many similar tools written in interpreted languages, it's
25 independent, fast, and lightweight because it's completely written in
26 C.
27
28 %description -l pl.UTF-8
29 sshguard chroni hosty przed plagą ataków brute force na serwer SSH.
30 W przeciwieństwie do wielu podobnych narzędzi napisanych
31 w interpretowanych językach jest niezależny, szybki i lekki, ponieważ
32 jest napisany w C.
33
34 %prep
35 %setup -q -n %{name}-%{version}%{_rc}
36 %patch0 -p1
37 %patch1 -p1
38
39 %build
40 %{__libtoolize}
41 %{__aclocal}
42 %{__autoconf}
43 %{__autoheader}
44 %configure \
45         --with-iptables=/usr/sbin/iptables \
46         --with-firewall=iptables
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 iptables -N sshguard
60
61 %postun
62 iptables -X sshguard
63
64 %files
65 %defattr(644,root,root,755)
66 %doc README examples/whitelistfile.example
67 %attr(755,root,root) %{_sbindir}/*
68 %{_mandir}/man8/sshguard.8*
This page took 0.085077 seconds and 3 git commands to generate.