1 |
# $Id: smeserver-mailstats.spec,v 1.8 2015/11/06 23:49:56 unnilennium Exp $ |
2 |
# Authority: brianread |
3 |
# Name: Brian Read |
4 |
|
5 |
Summary: Daily mail statistics for SME Server |
6 |
%define name smeserver-mailstats |
7 |
Name: %{name} |
8 |
%define version 1.0 |
9 |
%define release 8 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: SME/addon |
14 |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-mailstats-1.0-auth_cvm_unix_local.patch |
16 |
Patch1: smeserver-mailstats-1.0-spamfilter.patch |
17 |
Patch2: smeserver-mailstats-1.0-random-cron_and_spamfilter-stats-7-update.patch |
18 |
Patch3: smeserver-mailstats-1.0.bz9115.Spamassassin_scores_and_tags-geoip.patch |
19 |
Patch4: smeserver-mailstats-1.0.bz8957.Create_the_mailstats_user.patch |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
22 |
Requires: smeserver-release => 8.0 |
23 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
24 |
|
25 |
%description |
26 |
A script that via cron.d e-mails mail statistics to admin on a daily basis. |
27 |
See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 |
28 |
|
29 |
%changelog |
30 |
*Fri Nov 06 2015 JP Pialasse <tests@pialasse.com> 1.1-8.sme |
31 |
- backport SME9 patch [SME: 9115] |
32 |
- Fixed the problem with Spamassassin scores and tags. |
33 |
- Also added Geoip league table [SME: 8656] |
34 |
- code done by Brian Read <brianr@bjsystems.co.uk> |
35 |
- fix missing user [SME: 8957] |
36 |
|
37 |
* Sun Jun 14 2015 stephane de labrusse <stephdl@de-labrusse.fr> 1.0-6 |
38 |
- added a random cron job |
39 |
- spamfilter-stats-7-update |
40 |
- code done by Brian Read <brianr@bjsystems.co.uk> and John Crisp <jcrisp@safeandsoundit.co.uk> |
41 |
|
42 |
* Mon Sep 23 2013 JP Pialasse <tests@pialasse.com> 1.1-4.sme |
43 |
- uninitialized value in sprintf [SME: 4747] |
44 |
- patch smeserver-mailstats-1.0-spamfilter.patch |
45 |
|
46 |
* Sun Sep 09 2012 JP Pialasse <tests@pialasse.com> 1.1-2.sme |
47 |
- fix Unexpected failure string in log file: auth::auth_cvm_unix_local see [SME 7089] |
48 |
|
49 |
* Sat May 26 2012 Brian J read <brianr@bjsystems.co.uk> 1.0-1.sme |
50 |
- Initial version |
51 |
|
52 |
%prep |
53 |
%setup |
54 |
%patch0 -p1 |
55 |
%patch1 -p1 |
56 |
%patch2 -p1 |
57 |
%patch3 -p1 |
58 |
%patch4 -p1 |
59 |
|
60 |
%build |
61 |
perl createlinks |
62 |
|
63 |
%install |
64 |
/bin/rm -rf $RPM_BUILD_ROOT |
65 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
66 |
/bin/rm -f %{name}-%{version}-filelist |
67 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
68 |
|
69 |
%clean |
70 |
/bin/rm -rf $RPM_BUILD_ROOT |
71 |
|
72 |
%files -f %{name}-%{version}-filelist |
73 |
%defattr(-,root,root) |