1 |
Summary: Daily mail statistics for SME Server |
Summary: Daily mail statistics for SME Server |
2 |
%define name smeserver-mailstats |
%define name smeserver-mailstats |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.0.2 |
%define version 0.0.3 |
5 |
%define release 07 |
%define release 1 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
9 |
Group: SME/addon |
Group: SME/addon |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
|
Patch0: smeserver-mailstats-0.0.2_spamfilter-stats.patch |
|
|
Patch1: smeserver-mailstats-bug3366.patch |
|
|
Patch2: smeserver-mailstats-0.6.15.patch |
|
|
Patch3: smeserver-mailstats-bug3366.patch2 |
|
|
Patch4: smeserver-mailstats-configdb_multiple_open.patch |
|
|
Patch5: smeserver-mailstats-0.6.19.patch |
|
|
Packager: Charlie Brady |
|
11 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
12 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
13 |
Requires: smeserver-release => 7.0 |
Requires: smeserver-release => 7.0 |
14 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
15 |
|
|
16 |
%description |
%description |
17 |
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. |
18 |
See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 |
See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 |
19 |
|
|
20 |
%changelog |
%changelog |
21 |
|
* Fri Feb 15 2008 Shad L. Lords <slords@mail.com> 0.0.3-1 |
22 |
|
- Roll new version in prep for building on new buildsys |
23 |
|
|
24 |
* Thu Oct 11 2007 <charlie_brady@mitel.com> 0.0.2-07 |
* Thu Oct 11 2007 <charlie_brady@mitel.com> 0.0.2-07 |
25 |
- Rename parse_args => analysis_period, and simplify substantially. |
- Rename parse_args => analysis_period, and simplify substantially. |
26 |
|
|
64 |
%prep |
%prep |
65 |
|
|
66 |
%setup |
%setup |
|
%patch0 -p1 |
|
|
%patch1 -p1 |
|
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
67 |
|
|
68 |
%build |
%build |
69 |
|
|
70 |
%install |
%install |
71 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
72 |
|
(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) |
|
73 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
74 |
/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) |
|
75 |
|
|
76 |
%clean |
%clean |
77 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
78 |
|
|
79 |
%pre |
%files -f %{name}-%{version}-filelist |
80 |
|
%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 |
|
81 |
|
|
|
%postun |
|