1 |
# $Id: smeserver-mailsorting.spec,v 1.44 2011/03/06 15:28:06 slords Exp $ |
# $Id: smeserver-mailsorting.spec,v 1.6 2013/12/11 20:49:30 unnilennium Exp $ |
2 |
# Authority: dungog |
# Authority: dungog |
3 |
# Name: Stephen Noble |
# Name: Stephen Noble |
4 |
|
|
6 |
%define name smeserver-mailsorting |
%define name smeserver-mailsorting |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.2 |
%define version 1.2 |
9 |
%define release 40 |
%define release 45 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
44 |
Patch28: smeserver-mailsorting-1.2-locale-2010-03-02.patch |
Patch28: smeserver-mailsorting-1.2-locale-2010-03-02.patch |
45 |
Patch29: smeserver-mailsorting-1.2-locale-2010-05-23.patch |
Patch29: smeserver-mailsorting-1.2-locale-2010-05-23.patch |
46 |
Patch30: smeserver-mailsorting-1.2-locale-2011-03-06.patch |
Patch30: smeserver-mailsorting-1.2-locale-2011-03-06.patch |
47 |
|
Patch31: smeserver-mailsorting-1.2-locale-2013-07-14.patch |
48 |
|
Patch32: smeserver-mailsorting-forward.patch |
49 |
|
Patch33: smeserver-mailsorting-1.2-RemoveTO_space.patch |
50 |
|
Patch34: smeserver-mailsorting-1.2-admin-account.patch |
51 |
|
Patch35: smeserver-mailsorting-1.2-geekmode2.patch |
52 |
|
Patch36: smeserver-mailsorting-1.2-admin-account2.patch |
53 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
54 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
55 |
Requires: e-smith-release >= 7.0, |
Requires: e-smith-release >= 7.0, |
64 |
Optionally provides user panels where users can create mail rules for themselves |
Optionally provides user panels where users can create mail rules for themselves |
65 |
|
|
66 |
%changelog |
%changelog |
67 |
|
* Wed Dec 11 2013 JP Pialasse <tests@pialasse.com> 1.2-45.sme |
68 |
|
- fix bug as admin .procmail was not created [SME: 8023] |
69 |
|
|
70 |
|
* Fri Nov 29 2013 JP Pialasse <tests@pialasse.com> 1.2-44.sme |
71 |
|
- fix admin patch |
72 |
|
|
73 |
|
* Wed Nov 28 2013 Steph DL <stephdl@de-labrusse.fr> 1.2-43.sme |
74 |
|
- fix [SME: 8023] [SME: 8024] |
75 |
|
|
76 |
|
* Thu Oct 09 2013 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-42.sme |
77 |
|
- remove space from TO_ [SME: 6061] [SME: 2264] |
78 |
|
|
79 |
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.2-41.sme |
80 |
|
- apply locale 2013-07-14 patch |
81 |
|
- documentation fix [SME: 7586] |
82 |
|
- copy keeped even if forward [SME: 6847] |
83 |
|
|
84 |
|
|
85 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.2-40.sme |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.2-40.sme |
86 |
- apply locale 2011-03-06 patch |
- apply locale 2011-03-06 patch |
87 |
|
|
284 |
%patch28 -p1 |
%patch28 -p1 |
285 |
%patch29 -p1 |
%patch29 -p1 |
286 |
%patch30 -p1 |
%patch30 -p1 |
287 |
|
%patch31 -p1 |
288 |
|
%patch32 -p1 |
289 |
|
%patch33 -p1 |
290 |
|
%patch34 -p1 |
291 |
|
%patch35 -p1 |
292 |
|
%patch36 -p1 |
293 |
|
|
294 |
%build |
%build |
295 |
perl createlinks |
perl createlinks |
308 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
309 |
|
|
310 |
%clean |
%clean |
|
cd .. |
|
|
rm -rf %{name}-%{version} |
|
311 |
|
|
312 |
%pre |
%pre |
313 |
%preun |
%preun |
315 |
%post |
%post |
316 |
#new installs |
#new installs |
317 |
if [ $1 = 1 ] ; then |
if [ $1 = 1 ] ; then |
318 |
echo ' ' |
echo '' |
319 |
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
echo '#############################################################' |
320 |
|
echo ' Please visit the url below to apprehend all the db commands' |
321 |
|
echo ' http://wiki.contribs.org/Mailsorting#Configuration ' |
322 |
|
echo '#############################################################' |
323 |
|
echo '' |
324 |
fi |
fi |
325 |
|
|
326 |
#upgrades (and new installs) |
#upgrades (and new installs) |
327 |
/bin/touch /home/e-smith/db/processmail |
/bin/touch /home/e-smith/db/processmail |
328 |
|
# this one is essential to avoid to lose mails !!!! |
329 |
/sbin/e-smith/signal-event mailsorting-conf |
/sbin/e-smith/signal-event mailsorting-conf |
330 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
331 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
336 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
337 |
|
|
338 |
echo '' |
echo '' |
339 |
|
echo '##################################' |
340 |
echo 'to disable procmail or maildrop' |
echo 'to disable procmail or maildrop' |
341 |
echo 'config delprop qmail FilterType' |
echo 'config delprop qmail FilterType' |
342 |
echo 'signal-event email-update' |
echo 'signal-event email-update' |
343 |
|
echo '##################################' |
344 |
echo '' |
echo '' |
345 |
|
|
346 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |