1 |
slords |
1.1 |
Summary: Lets users configure procmail or maildrop rules. |
2 |
|
|
%define name smeserver-mailsorting |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.2 |
5 |
dungog |
1.13 |
%define release 15 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
URL: http://www.dungog.net/sme |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
|
|
Patch0: smeserver-mailsorting-1.2-maildropdups.patch |
13 |
|
|
Patch1: smeserver-mailsorting-1.2-esLocale.patch |
14 |
dungog |
1.7 |
Patch2: smeserver-mailsorting-1.2-frLocale3.patch |
15 |
dungog |
1.10 |
Patch3: smeserver-mailsorting-1.2-pootle.patch |
16 |
dungog |
1.11 |
Patch4: smeserver-mailsorting-1.2-locale-2008-03-11.patch |
17 |
dungog |
1.13 |
Patch5: smeserver-mailsorting-1.2-locale-2008-03-14.patch |
18 |
|
|
|
19 |
slords |
1.1 |
BuildArchitectures: noarch |
20 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
21 |
|
|
Requires: e-smith-release >= 7.0, |
22 |
|
|
Requires: perl-Unicode-IMAPUtf7 |
23 |
slords |
1.12 |
Requires: e-smith-formmagick >= 1.4.0-10 |
24 |
slords |
1.1 |
#Requires: smeserver-userpanel, userpanel causes endless problems |
25 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
26 |
|
|
AutoReqProv: no |
27 |
|
|
|
28 |
|
|
%description |
29 |
|
|
SME Server enhancement to enable procmail or maildrop filtering for users. |
30 |
|
|
Optionally provides user panels where users can create mail rules for themselves |
31 |
|
|
|
32 |
|
|
%changelog |
33 |
dungog |
1.13 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.2-15 |
34 |
|
|
- update locale 2008-03-14 |
35 |
|
|
|
36 |
slords |
1.12 |
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.2-14 |
37 |
|
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
38 |
|
|
|
39 |
dungog |
1.11 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.2-13 |
40 |
|
|
- Add 2008-03-11 locale patch |
41 |
|
|
|
42 |
|
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.2-12 |
43 |
dungog |
1.10 |
- prepare en lexicons for pootle translations |
44 |
|
|
|
45 |
dungog |
1.8 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-11 |
46 |
|
|
- french translation fix |
47 |
|
|
|
48 |
dungog |
1.5 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.2-10 |
49 |
|
|
- add french translation, thanks Sylvain Gomez |
50 |
dungog |
1.3 |
|
51 |
slords |
1.1 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.2-9 |
52 |
|
|
- add spanish translation, thanks Normando Hall [SME 3503] |
53 |
|
|
|
54 |
|
|
* Sun Jul 29 2007 Stephen Noble <support@dungog.net> 1.2-8 |
55 |
|
|
- Add Requires perl-Unicode-IMAPUtf7 [SME: 3218] |
56 |
|
|
|
57 |
|
|
* Thu Jul 05 2007 Stephen Noble <support@dungog.net> 1.2-7 |
58 |
|
|
- touch processmail db, thanks dclarke |
59 |
|
|
|
60 |
|
|
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> 1.2-6 |
61 |
|
|
- add global maildrop delete duplicate db value |
62 |
|
|
|
63 |
|
|
* Wed Jun 13 2007 Stephen Noble <stephen@dungog.net> |
64 |
|
|
- update .tar.gz to current version |
65 |
|
|
|
66 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
67 |
|
|
- Clean up spec so package can be built by koji/plague |
68 |
|
|
|
69 |
|
|
* Sat Mar 17 2007 Stephen Noble <stephen@dungog.net> |
70 |
|
|
- retry mail in .qmail [sme 2733] |
71 |
|
|
- [1.2-5] |
72 |
|
|
|
73 |
|
|
* Wed Feb 28 2007 Stephen Noble <stephen@dungog.net> |
74 |
|
|
- remove Requires: smeserver-userpanel |
75 |
|
|
- [1.2-4] |
76 |
|
|
|
77 |
|
|
* Tue Jan 9 2007 Stephen Noble <support@dungog.net> |
78 |
|
|
- remove .* after TO_ macro [sme 2264] |
79 |
|
|
- Existing mail folders search improved [sme 2265] |
80 |
|
|
- [1.2-3] |
81 |
|
|
|
82 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
83 |
|
|
- Update to new release naming. No functional changes. |
84 |
|
|
- Make Packager generic |
85 |
|
|
|
86 |
|
|
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
87 |
|
|
- improved german support, thanks Dietmar |
88 |
|
|
- Unicode-IMAPUtf7 support [sme 1446] |
89 |
|
|
- [1.2-2] |
90 |
|
|
|
91 |
|
|
* Sat Oct 21 2006 Stephen Noble <support@dungog.net> |
92 |
|
|
- FormMagick version |
93 |
|
|
- [1.2-1] |
94 |
|
|
|
95 |
|
|
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
96 |
|
|
- remove strict check on mailrule criterion [sme 1643] |
97 |
|
|
- fix log rotation |
98 |
|
|
- maildrop matching improved, [sme 1642] |
99 |
|
|
- allow for spaces in folder names for maildrop [sme 1640] |
100 |
|
|
- [0.9-6] |
101 |
|
|
|
102 |
|
|
* Sat May 6 2006 Stephen Noble <support@dungog.net> |
103 |
|
|
- default shell for maildrop set to /bin/bash |
104 |
|
|
- [contribs 1378] thanks mweinber neddix.de |
105 |
|
|
- [0.9-5] |
106 |
|
|
|
107 |
|
|
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
108 |
|
|
- delete duplicates |
109 |
|
|
- globally enabled for procmail, works ok |
110 |
|
|
- per user for maildrop, worked ok for user A, but started deleting mail for user B |
111 |
|
|
- [0.9-4] |
112 |
|
|
|
113 |
|
|
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
114 |
|
|
- remove preun actions |
115 |
|
|
- [0.9-3] |
116 |
|
|
|
117 |
|
|
* Thu Mar 9 2006 Stephen Noble <support@dungog.net> |
118 |
|
|
- Requires: smeserver-userpanel |
119 |
|
|
- bypass admin's .qmail |
120 |
|
|
- [0.9-2] |
121 |
|
|
|
122 |
|
|
* Sun Sep 25 2005 Stephen Noble <support@dungog.net> |
123 |
|
|
- initial release |
124 |
|
|
- [0.9-1] |
125 |
|
|
|
126 |
|
|
%prep |
127 |
|
|
%setup |
128 |
|
|
%patch0 -p1 |
129 |
|
|
%patch1 -p1 |
130 |
dungog |
1.7 |
%patch2 -p1 |
131 |
dungog |
1.10 |
%patch3 -p1 |
132 |
dungog |
1.11 |
%patch4 -p1 |
133 |
dungog |
1.13 |
%patch5 -p1 |
134 |
slords |
1.1 |
|
135 |
|
|
%build |
136 |
|
|
perl createlinks |
137 |
|
|
|
138 |
dungog |
1.9 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
139 |
|
|
for lexicon in $LEXICONS |
140 |
|
|
do |
141 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
142 |
|
|
done |
143 |
|
|
|
144 |
slords |
1.1 |
%install |
145 |
|
|
rm -rf $RPM_BUILD_ROOT |
146 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
147 |
|
|
rm -f %{name}-%{version}-filelist |
148 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
149 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
150 |
|
|
|
151 |
|
|
%clean |
152 |
|
|
cd .. |
153 |
|
|
rm -rf %{name}-%{version} |
154 |
|
|
|
155 |
|
|
%pre |
156 |
|
|
%preun |
157 |
|
|
|
158 |
|
|
%post |
159 |
|
|
#new installs |
160 |
|
|
if [ $1 = 1 ] ; then |
161 |
|
|
echo ' ' |
162 |
dungog |
1.10 |
echo 'http://www.dungog.net/wiki/Smeserver-mailsorting#Configuration' |
163 |
slords |
1.1 |
fi |
164 |
|
|
|
165 |
|
|
#upgrades (and new installs) |
166 |
|
|
/bin/touch /home/e-smith/db/processmail |
167 |
|
|
/sbin/e-smith/signal-event mailsorting-conf |
168 |
dungog |
1.10 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
169 |
|
|
/sbin/e-smith/signal-event conf-userpanel |
170 |
|
|
fi |
171 |
slords |
1.1 |
|
172 |
|
|
%postun |
173 |
|
|
#uninstall |
174 |
|
|
if [ $1 = 0 ] ; then |
175 |
|
|
|
176 |
|
|
echo '' |
177 |
|
|
echo 'to disable procmail or maildrop' |
178 |
|
|
echo 'config delprop qmail FilterType' |
179 |
|
|
echo 'signal-event email-update' |
180 |
|
|
echo '' |
181 |
|
|
|
182 |
|
|
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
183 |
|
|
for db in $DBS ; do |
184 |
|
|
/sbin/e-smith/db $db delete userpanel-mailsort 2>/dev/null |
185 |
|
|
done |
186 |
|
|
fi |
187 |
|
|
|
188 |
|
|
%files -f %{name}-%{version}-filelist |
189 |
|
|
%defattr(-,root,root) |