1 |
# $Id: smeserver-mailstats.spec,v 1.4 2013/09/26 17:41:31 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.1 |
9 |
%define release 6 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: SME/addon |
14 |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-mailstats-1.1-random-cron_and_spamfilter-stats-7-update.patch |
16 |
Patch1: smeserver-mailstats-1.1.bz8957.Create_the_mailstats_user.patch |
17 |
Patch2: smeserver-mailstats-1.1.bz8656.Spamassassin_scores_and_tags.patch |
18 |
Patch3: smeserver-mailstats-1.0-628.patch |
19 |
Patch4: smeserver-mailstats-1.1.bz9588.qpsmtpd0_96compatible.patch |
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
22 |
Requires: smeserver-release => 9.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 |
* Sat Jul 02 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-6.sme |
31 |
- make compatible with qpmstmpd 0.96 and new plugins [SME: 9588] |
32 |
- html version of email |
33 |
- code by Brian Read <brianr@bjsystems.co.uk> |
34 |
- thanks to Michael Doerner for his extensive testing |
35 |
|
36 |
* Sun Apr 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-5.sme |
37 |
- account for all unknown qpsmtpd plugins [SME: 9434] |
38 |
- extra for "unofficial" extra clamav signatures |
39 |
- code by Brian Read <brianr@bjsystems.co.uk> |
40 |
- (only small suggestions from JP Pialasse aka Unnilennium) |
41 |
|
42 |
* Thu Jun 25 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-4 |
43 |
- creates the "mailstats" user [SME: 8957] |
44 |
- Fixed the problem with Spamassassin scores and tags. |
45 |
- Also added Geoip league table [SME: 8656] |
46 |
- code done by Brian Read <brianr@bjsystems.co.uk> |
47 |
|
48 |
* Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-3 |
49 |
- added a random cron job |
50 |
- spamfilter-stats-7-update |
51 |
- code done by Brian Read <brianr@bjsystems.co.uk> and John Crisp <jcrisp@safeandsoundit.co.uk> |
52 |
|
53 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 1.1-1.sme |
54 |
- initial import to SME9 contribs |
55 |
|
56 |
* Mon Sep 23 2013 JP Pialasse <tests@pialasse.com> 1.1-4.sme |
57 |
- uninitialized value in sprintf [SME: 4747] |
58 |
- patch smeserver-mailstats-1.0-spamfilter.patch |
59 |
|
60 |
* Sun Sep 09 2012 JP Pialasse <tests@pialasse.com> 1.1-2.sme |
61 |
- fix Unexpected failure string in log file: auth::auth_cvm_unix_local see [SME 7089] |
62 |
|
63 |
* Sat May 26 2012 Brian J read <brianr@bjsystems.co.uk> 1.0-1.sme |
64 |
- Initial version |
65 |
|
66 |
%prep |
67 |
%setup |
68 |
%patch0 -p1 |
69 |
%patch1 -p1 |
70 |
%patch2 -p1 |
71 |
%patch3 -p1 |
72 |
%patch4 -p1 |
73 |
|
74 |
%build |
75 |
perl createlinks |
76 |
|
77 |
%install |
78 |
/bin/rm -rf $RPM_BUILD_ROOT |
79 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
80 |
/bin/rm -f %{name}-%{version}-filelist |
81 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
82 |
|
83 |
%clean |
84 |
/bin/rm -rf $RPM_BUILD_ROOT |
85 |
|
86 |
%files -f %{name}-%{version}-filelist |
87 |
%defattr(-,root,root) |