1 |
|
# $Id: smeserver-mailstats.spec,v 1.6 2008/04/11 14:28:19 brianread Exp $ |
2 |
|
# Authority: brianread |
3 |
|
# Name: Brian Read |
4 |
|
|
5 |
Summary: Daily mail statistics for SME Server |
Summary: Daily mail statistics for SME Server |
6 |
%define name smeserver-mailstats |
%define name smeserver-mailstats |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.0.2 |
%define version 0.0.3 |
9 |
%define release 07 |
%define release 6 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: SME/addon |
Group: SME/addon |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-mailstats-0.0.2_spamfilter-stats.patch |
Patch1:smeserver-mailstats-0.0.3-bjrupdate01.patch |
16 |
Patch1: smeserver-mailstats-bug3366.patch |
Patch2:smeserver-mailstats-0.0.3-bjrupdate02.patch |
17 |
Patch2: smeserver-mailstats-0.6.15.patch |
Patch3:smeserver-mailstats-0.0.3-bjrupdate03.patch |
18 |
Patch3: smeserver-mailstats-bug3366.patch2 |
Patch4:smeserver-mailstats-0.0.3-update04.patch |
|
Patch4: smeserver-mailstats-configdb_multiple_open.patch |
|
|
Patch5: smeserver-mailstats-0.6.19.patch |
|
|
Packager: Charlie Brady |
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
Requires: smeserver-release => 7.0 |
Requires: smeserver-release => 7.0 |
22 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
23 |
|
|
24 |
%description |
%description |
25 |
A script that via cron.d e-mails mail statistics to admin on a daily basis. |
A script that via cron.d e-mails mail statistics to admin on a daily basis. |
26 |
See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 |
See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
|
|
30 |
|
* Sun Apr 24 2008 Brian J Read <brianr@bjsystems.co.uk> 0.0.3-6 |
31 |
|
- Fix up to enable disable SAreport and others [SME:3734] |
32 |
|
|
33 |
|
* Fri Apr 11 2008 Brian J Read <brianr@bjsystems.co.uk> 0.0.3-5 |
34 |
|
- Fix up Db entries when none at all.[SME:4188] |
35 |
|
|
36 |
|
* Thu Apr 3 2008 Brian J Read <brianr@bjsystems.co.uk> 0.0.3-4 |
37 |
|
- Take out extra lines in mailstats.cron and remove restart crond from |
38 |
|
post actions in spec file, on Shad's advice. |
39 |
|
|
40 |
|
* Tue Apr 1 2008 Brian J Read <brianr@bjsystems.co.uk> 0.0.3-3 |
41 |
|
- Add in restart of crond so that script in cron.d is noticed |
42 |
|
|
43 |
|
* Tue Mar 25 2008 Brian J read <brianr@bjsystems.co.uk> 0.0.3-2 |
44 |
|
- New version incorporating Charlie's changes and latest changes from bjr [SME:3956] |
45 |
|
|
46 |
|
* Fri Feb 15 2008 Shad L. Lords <slords@mail.com> 0.0.3-1 |
47 |
|
- Roll new version in prep for building on new buildsys |
48 |
|
|
49 |
* Thu Oct 11 2007 <charlie_brady@mitel.com> 0.0.2-07 |
* Thu Oct 11 2007 <charlie_brady@mitel.com> 0.0.2-07 |
50 |
- Rename parse_args => analysis_period, and simplify substantially. |
- Rename parse_args => analysis_period, and simplify substantially. |
51 |
|
|
89 |
%prep |
%prep |
90 |
|
|
91 |
%setup |
%setup |
|
%patch0 -p1 |
|
92 |
%patch1 -p1 |
%patch1 -p1 |
93 |
%patch2 -p1 |
%patch2 -p1 |
94 |
%patch3 -p1 |
%patch3 -p1 |
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
|
|
|
95 |
%build |
%build |
96 |
|
|
97 |
%install |
%install |
98 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
99 |
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
|
100 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
101 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
|
%files -f %{name}-%{version}-filelist |
|
|
|
|
|
%defattr(-,root,root) |
|
102 |
|
|
103 |
%clean |
%clean |
104 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
105 |
|
|
106 |
%pre |
%files -f %{name}-%{version}-filelist |
107 |
|
%defattr(-,root,root) |
|
%post |
|
|
echo "" |
|
|
echo "You must run the following commands to complete the install:" |
|
|
echo "" |
|
|
echo "/etc/e-smith/events/actions/initialize-default-databases" |
|
|
echo "/sbin/e-smith/signal-event email-update" |
|
|
echo "/usr/local/bin/svc -t /var/service/qpsmtpd" |
|
|
|
|
|
%preun |
|
|
|
|
|
%postun |
|