summaryrefslogtreecommitdiff
path: root/sshguard/sshguard.spec
blob: bf9b1e288b5956dd3b1308935ee6db4f93d3bfce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
Name:             sshguard
Version:          1.5
Release:          6%{?dist}
# The entire source code is BSD 
# except src/parser/* witch is GPLv2+ 
# except src/hash_32a.c witch is Public Domain
License:          BSD and GPLv2+ and Public Domain
Group:            Applications/Internet
Summary:          Network daemon log monitor
Url:              http://sshguard.sourceforge.net
Packager:         Christoph J. Thompson <cjsthompson@gmail.com>
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}
Source0:          http://downloads.sourceforge.net/sshguard/%{name}-%{version}.tar.bz2
Source1:          sshguard.service
Source2:          sysconfig.sshguard
Requires:         iptables
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd

%description
Sshguard monitors network daemon logs. It detects attacks and blocks the
attacker's address with a firewall rule. It supports many services out of
the box, recognizes several log formats, and can operate many firewall
systems.

%prep
%autosetup

%build
%configure --with-firewall=iptables
%{__make} %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
make install-strip DESTDIR=$RPM_BUILD_ROOT
install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/sshguard
install -D -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/sshguard.service

%clean
rm -rf %{buildroot}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%defattr(-,root,root,0755)
%doc Changes README
%config(noreplace) %{_sysconfdir}/sysconfig/sshguard
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*
%{_unitdir}/sshguard.service

%changelog
* Sun Dec 21 2014 Christoph J. Thompson <cjsthompson@gmail.com> 1.5-6.fc21
- Update the spec for fedora 21

* Wed Oct 15 2014 Ryan Schlesinger ryan@aceofsales.com 1.5-5.amzn1
- Removed Log Validation as using it with the Log Sucker is discouraged

* Tue Aug 16 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-4.fc16
- Fix multi licensed files 

* Tue Aug 16 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-3.fc16
- Added systemd script,
- correct license.

* Tue Aug 14 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-2.fc16
- Fix some spec issue.

* Tue Aug 14 2012 Sebastien Caps sebastien.caps@guardis.com 1.5-1.fc16
- Rebuilt for Red
Hat based distro.

* Wed Mar 02 2011 Tomasz Pawel Gajc <tpg@mandriva.org> 1.5-1mdv2011.0
+ Revision: 641382
- update to new version 1.5

* Sat Sep 26 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 1.4-1mdv2010.0
+ Revision: 449478
- update to new version 1.4

* Sun Sep 20 2009 Thierry Vignaud <tv@mandriva.org> 1.3-2mdv2010.0
+ Revision: 445231
- rebuild

* Sun Oct 12 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 1.3-1mdv2009.1
+ Revision: 293010
- update to new version 1.3
- update to new version 1.3
- update to new version 1.2

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 1.1-0.beta3.1mdv2009.0
+ Revision: 140851
- restore BuildRoot

+ Thierry Vignaud <tv@mandriva.org>
- kill re-definition of %%buildroot on Pixel's request

* Fri Oct 26 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.1-0.beta3.1mdv2008.1
+ Revision: 102372
- new version

* Tue May 22 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0-0.beta2.2mdv2008.0
+ Revision: 29621
- fix group

* Tue May 22 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0-0.beta2.1mdv2008.0
+ Revision: 29613
- Import sshguard