-
Notifications
You must be signed in to change notification settings - Fork 6
/
howler.spec
71 lines (53 loc) · 2.05 KB
/
howler.spec
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
Name: python2-howler
Version: 0.3
Release: 1%{?dist}
Summary: Alert when users log in from new locations
License: GPLv3+
URL: https://github.com/mricon/howler
Source0: https://github.com/mricon/howler/archive/v%{version}.tar.gz
Requires: python-GeoIP, python-unidecode, python-netaddr
Requires: logrotate, /usr/sbin/sendmail
BuildRequires: python2-devel
BuildArch: noarch
%description
Keeps a database of usernames and IPs/locations and alerts the admins when
users log in from a location previously not seen. This package contains
core python libraries and the commandline utility.
%prep
%setup -q -n howler-%{version}
%build
%py2_build
%install
%py2_install
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
install -m 0755 bin/howler-cleanup.cron %{buildroot}%{_sysconfdir}/cron.daily/
mkdir -p %{buildroot}%{_sysconfdir}/howler
install -m 0644 conf/howler.ini %{buildroot}%{_sysconfdir}/howler/
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 conf/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/howler.conf
mkdir -p %{buildroot}%{_localstatedir}/lib/howler
mkdir -p %{buildroot}%{_localstatedir}/log/howler
%files
%license COPYING
%doc README.rst conf/howler.sec
%config %dir %{_sysconfdir}/howler
%config(noreplace) %{_sysconfdir}/howler/howler.ini
%config(noreplace) %{_sysconfdir}/cron.daily/*
%config(noreplace) %{_sysconfdir}/logrotate.d/howler.conf
%{python2_sitelib}/*
%{_bindir}/howler
%{_localstatedir}/lib/howler
%{_localstatedir}/log/howler
%changelog
* Fri Jun 02 2017 Konstantin Ryabitsev <[email protected]>
- Final 0.3 release
- Remove selinux subpackage (rsyslog plugin deprecated)
* Fri Sep 13 2013 Konstantin Ryabitsev <[email protected]>
- Preliminary 0.3 release with new features.
* Sun Jun 16 2013 Rene Cunningham <[email protected]>
- Run fixfiles for howler-rsyslog.
* Thu Nov 08 2012 Konstantin Ryabitsev <[email protected]>
- Update to 0.2 and split into subpackages.
- Add selinux subpackage.
* Tue Nov 06 2012 Konstantin Ryabitsev <[email protected]>
- Initial spec file.