]> git.pld-linux.org Git - packages/fail2ban.git/blame - fail2ban.spec
- fixed typos
[packages/fail2ban.git] / fail2ban.spec
CommitLineData
465f8f11 1Summary: Ban IPs that make too many password failures
f4d4d197 2Summary(pl.UTF-8): Blokowanie IP powodujących zbyt dużo prób logowań z błędnym hasłem
465f8f11 3Name: fail2ban
ef189e0e 4Version: 0.8.3
465f8f11 5Release: 1
6License: GPL
7Group: Daemons
8URL: http://fail2ban.sourceforge.net/
9Source0: http://dl.sourceforge.net/fail2ban/%{name}-%{version}.tar.bz2
8a5385b5 10# Source0-md5: b438d7e2ce77a469fb0cca2a5cc0b81c
11Source1: %{name}.init
80cab974 12BuildRequires: python-devel
4e631b74 13BuildRequires: python-modules
ddeb0306 14BuildRequires: rpmbuild(macros) >= 1.219
4e631b74 15BuildRequires: rpm-pythonprov >= 1.219
56c86c91 16Requires(post,preun): /sbin/chkconfig
465f8f11 17Requires: python-log4py
56c86c91 18Requires: rc-scripts
465f8f11 19BuildArch: noarch
80cab974 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
465f8f11 21
22%description
23Fail2Ban scans log files like /var/log/secure and bans IP that makes
24too many password failures. It updates firewall rules to reject the IP
25address. These rules can be defined by the user. Fail2Ban can read
26multiple log files including sshd or Apache web server logs.
27
2312737e
JR
28%description -l pl.UTF-8
29Fail2Ban skanuje pliki logów takie jak /var/log/secure i blokuje IP
30powodujące zbyt dużo prób logowań z błędnym hasłem. Uaktualnia regułki
31firewalla, aby odrzucić adres IP. Regułki te mogą być definiowane
32przez użytkownika. Fail2Ban potrafi czytać wiele plików logów włącznie
33z sshd czy plikami logów serwera WWW Apache.
cac37698 34
465f8f11 35%prep
36%setup -q
ef189e0e 37#dos2unix config/redhat-initd
ddeb0306 38rm setup.cfg
465f8f11 39
40%build
465f8f11 41%{__python} setup.py build
42
43%install
44rm -rf $RPM_BUILD_ROOT
cac37698 45install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
ef189e0e 46install -d $RPM_BUILD_ROOT%{_mandir}/man1
3f2a7d0f 47
465f8f11 48PYTHONPATH=$RPM_BUILD_ROOT%{py_sitescriptdir}; export PYTHONPATH
49
50python setup.py install \
ddeb0306 51 --optimize=2 \
465f8f11 52 --root=$RPM_BUILD_ROOT
53
ddeb0306 54%{py_postclean}
ef189e0e 55install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fail2ban
56install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
57
465f8f11 58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%post
63/sbin/chkconfig --add %{name}
64%service %{name} restart
65
66%preun
67if [ "$1" = "0" ]; then
68 %service -q %{name} stop
69 /sbin/chkconfig --del %{name}
70fi
71
72%files
465f8f11 73%defattr(644,root,root,755)
ef189e0e 74%doc ChangeLog README TODO COPYING
3f2a7d0f 75%attr(754,root,root) /etc/rc.d/init.d/%{name}
ef189e0e 76%attr(755,root,root) %{_bindir}/%{name}-*
77%dir /var/run/%{name}
78%config(noreplace) %verify(not md5 mtime size) /etc/%{name}/*
465f8f11 79%{py_sitescriptdir}/*
ef189e0e 80%{_mandir}/man1/*
This page took 0.06007 seconds and 4 git commands to generate.