--- rpms/smeserver-mailstats/contribs10/smeserver-mailstats.spec 2020/10/19 11:37:35 1.4 +++ rpms/smeserver-mailstats/contribs10/smeserver-mailstats.spec 2021/04/02 11:11:44 1.7 @@ -1,4 +1,4 @@ -# $Id: smeserver-mailstats.spec,v 1.3 2020/04/16 09:59:29 brianr Exp $ +# $Id: smeserver-mailstats.spec,v 1.6 2021/03/24 06:37:33 brianr Exp $ # Authority: brianread # Name: Brian Read @@ -6,7 +6,7 @@ Summary: Daily mail statistics for SME S %define name smeserver-mailstats Name: %{name} %define version 1.1 -%define release 13 +%define release 16 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -22,18 +22,30 @@ Patch6: smeserver-mailstats-1.1.bz9888.g Patch7: smeserver-mailstats-1.1.bz10858_10327.cleanup_and_email_truncate.patch Patch8: smeserver-mailstats-1.1-uninitialised-variable-on-no-data Patch9: smeserver-mailstats-1.1-Clear-up-uninitialsed-use-of-lc.patch +Patch10:smeserver-mailstats-1.1-Add-Update-event-to-createlinks.patch +Patch11:smeserver-mailstats-1.1-Take-out-dot-in-cron-file-and-also-re-direct-errors-to-syslog.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch Requires: smeserver-release => 9.0 Requires: qpsmtpd >= 0.96 BuildRequires: e-smith-devtools >= 1.13.1-03 +Requires: perl-Switch %description A script that via cron.d e-mails mail statistics to admin on a daily basis. See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 %changelog +* Fri Apr 02 2021 Brian Read 1.1-16.sme +- Take out dot in cron file and also re-direct errors to syslog [SME: 11519] + +* Wed Mar 24 2021 Brian Read 1.1-15.sme +- Add Update event to createlinks [SME: 10923] + +* Thu Dec 17 2020 Brian Read 1.1-14.sme +- Add in perl-Switch as requirement [SME: 11044] + * Mon Oct 19 2020 Brian Read 1.1-13.sme - More uninitialised data [SME: 11044] @@ -45,7 +57,7 @@ See http://www.contribs.org/bugzilla/sho - Also change perl script file name to mailstats.pl * Fri Oct 18 2019 brian read 1.1-10.sme -- fix display of geoip [SME: 9888] +- Add Update event to createlinks display of geoip [SME: 9888] * Wed Oct 12 2016 brian read 1.1-9.sme - [sme:9716][sme:9717] add email specific stats and enhance relay monitoring and add code for smeoptimizer @@ -84,7 +96,7 @@ See http://www.contribs.org/bugzilla/sho - patch smeserver-mailstats-1.0-spamfilter.patch * Sun Sep 09 2012 JP Pialasse 1.1-2.sme -- fix Unexpected failure string in log file: auth::auth_cvm_unix_local see [SME 7089] +- Add Update event to createlinks Unexpected failure string in log file: auth::auth_cvm_unix_local see [SME 7089] * Sat May 26 2012 Brian J read 1.0-1.sme - Initial version @@ -101,6 +113,8 @@ See http://www.contribs.org/bugzilla/sho %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 +%patch11 -p1 %build perl createlinks @@ -108,6 +122,7 @@ perl createlinks %install /bin/rm -rf $RPM_BUILD_ROOT (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) +chmod +x $RPM_BUILD_ROOT/usr/bin/runmailstats.sh /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist