1 |
stephdl |
1.6 |
# $Id: smeserver-vacation.spec,v 1.5 2015/01/05 23:40:14 stephdl Exp $ |
2 |
unnilennium |
1.1 |
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
|
|
%define name smeserver-vacation |
6 |
|
|
%define version 1.0 |
7 |
stephdl |
1.6 |
%define release 43 |
8 |
unnilennium |
1.1 |
Summary: SME Server enhancement to enable vacation messages for users. |
9 |
|
|
Name: %{name} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GNU GPL version 2 |
13 |
|
|
URL: http://www.dungog.net/sme |
14 |
|
|
Group: SMEserver/addon |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Patch0: smeserver-vacation-1.0-frMenuSplit.patch |
17 |
|
|
Patch1: smeserver-vacation-1.0-pootle.patch |
18 |
|
|
Patch2: smeserver-vacation-1.0-locale-2008-03-11.patch |
19 |
|
|
Patch3: smeserver-vacation-1.0-locale-2008-03-14.patch |
20 |
|
|
Patch4: smeserver-vacation-1.0-locale-2008-04-01.patch |
21 |
|
|
Patch5: smeserver-vacation-1.0-locale-2008-04-22.patch |
22 |
|
|
Patch6: smeserver-vacation-1.0-add2general.patch |
23 |
|
|
Patch7: smeserver-vacation-1.0-dos2unix.patch |
24 |
|
|
Patch8: smeserver-vacation-1.0-locale-2008-07-01.patch |
25 |
|
|
Patch9: smeserver-vacation-1.0-Locale.patch |
26 |
|
|
Patch10: smeserver-vacation-1.0-addPrecedenceList.patch |
27 |
|
|
Patch11: smeserver-vacation-1.0-locale-2008-09-27.patch |
28 |
|
|
Patch12: smeserver-vacation-1.0-74vacationMessage.patch |
29 |
|
|
Patch13: smeserver-vacation-1.0-locale-2008-10-14.patch |
30 |
|
|
Patch14: smeserver-vacation-1.0-locale-2009-01-01.patch |
31 |
|
|
Patch15: smeserver-vacation-1.0-locale-2009-03-01.patch |
32 |
|
|
Patch16: smeserver-vacation-1.0-locale-2009-04-27.patch |
33 |
|
|
Patch17: smeserver-vacation-1.0-locale-2009-05-20.patch |
34 |
|
|
Patch18: smeserver-vacation-1.0-filterorder.patch |
35 |
|
|
Patch19: smeserver-vacation-1.0-utf8.patch |
36 |
|
|
Patch20: smeserver-vacation-1.0-locale-2009-08-24.patch |
37 |
|
|
Patch21: smeserver-vacation-1.0-locale-2009-10-27.patch |
38 |
|
|
Patch22: smeserver-vacation-1.0-locale-2010-05-23.patch |
39 |
|
|
Patch23: smeserver-vacation-1.0-locale-2011-03-06.patch |
40 |
unnilennium |
1.4 |
Patch24: smeserver-vacation-1.0-locale-2013-07-15.patch |
41 |
stephdl |
1.5 |
Patch25: smeserver-vacation-1.0-explain_better_virtual_sender_domain.patch |
42 |
stephdl |
1.6 |
Patch26: smeserver-vacation-1.0-locale-2015-09-17.patch |
43 |
unnilennium |
1.1 |
BuildArchitectures: noarch |
44 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
45 |
|
|
Requires: e-smith-release >= 7.0, |
46 |
|
|
Requires: e-smith-formmagick >= 1.4.0-12 |
47 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
48 |
|
|
AutoReqProv: no |
49 |
|
|
|
50 |
|
|
%description |
51 |
|
|
SME Server enhancement to enable vacation messages for users. |
52 |
|
|
Optionally provides a user-manager panel where users can |
53 |
|
|
enable vacation for themselves and to modify their own message |
54 |
|
|
|
55 |
|
|
%changelog |
56 |
stephdl |
1.6 |
* Thu Sep 17 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-43.sme |
57 |
|
|
- Added smeserver-vacation-1.0-locale-2015-09-17.patch |
58 |
|
|
|
59 |
stephdl |
1.5 |
* Tue Jan 6 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-42.sme |
60 |
|
|
- Updated instructions to use virtual sender domain for vacation message |
61 |
|
|
- Created by Mats Schuh m.schuh@neckargeo.net |
62 |
|
|
|
63 |
unnilennium |
1.4 |
* Mon Jul 15 2013 JP Pialasse <tests@pialasse.com> 1.0-41.sme |
64 |
|
|
- apply locale 2013-07-15 patch |
65 |
|
|
|
66 |
unnilennium |
1.1 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.0-40.sme |
67 |
|
|
- apply locale 2011-03-06 patch |
68 |
|
|
|
69 |
|
|
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 1.0-39.sme |
70 |
|
|
- apply locale 2010-05-23 patch |
71 |
|
|
|
72 |
|
|
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.0-38.sme |
73 |
|
|
- apply locale 2009-10-27 patch |
74 |
|
|
|
75 |
|
|
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.0-37.sme |
76 |
|
|
- apply locale 2009-08-24 patch |
77 |
|
|
|
78 |
|
|
* Thu Jun 11 2009 Stephen Noble <support@dungog.net> - 1.0-36 |
79 |
|
|
- send vacation mail in utf8 [SME 4389] |
80 |
|
|
|
81 |
|
|
* Sat Jun 06 2009 Stephen Noble <support@dungog.net> - 1.0-35 |
82 |
|
|
- cp .qmail fragment before SME filtering with filterorder prop [SME: 5327] |
83 |
|
|
|
84 |
|
|
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.0-34.sme |
85 |
|
|
- apply locale 2009-05-20 patch |
86 |
|
|
|
87 |
|
|
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.0-33.sme |
88 |
|
|
- apply locale 2009-04-27 patch |
89 |
|
|
|
90 |
|
|
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-32 |
91 |
|
|
- Apply 1 Mar 2009 locale patch [SME: 5018] |
92 |
|
|
|
93 |
|
|
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-31 |
94 |
|
|
- Apply 1 Jan 2009 locale patch [SME: 4900] |
95 |
|
|
|
96 |
|
|
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-30 |
97 |
|
|
- Apply 14 Oct 2008 locale patch |
98 |
|
|
|
99 |
|
|
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.0-29 |
100 |
|
|
- move .qmail fragment after SME forwarding [SME: 4603] |
101 |
|
|
- Apply 27 August 2008 locale patch |
102 |
|
|
|
103 |
|
|
* Sat Aug 13 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-28 |
104 |
|
|
- Add precedence list to ignore functions to ignore, for instance, |
105 |
|
|
mail from contribs.org mailinglists [SME: 4549] |
106 |
|
|
|
107 |
|
|
* Tue Aug 12 2008 Gavin Weight <gweight@gmail.com> 1.0-27 |
108 |
|
|
- Fix Locale to read vacation panel correctly. [SME: 4311] |
109 |
|
|
|
110 |
|
|
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-26 |
111 |
|
|
- Apply 1 July 2008 locale patch |
112 |
|
|
|
113 |
|
|
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-25 |
114 |
|
|
- Apply 5 May 2008 locale patch |
115 |
|
|
|
116 |
|
|
* Mon Apr 28 2008 Shad L. Lords <slords@mail.com> 1.0-24 |
117 |
|
|
- Convert dos line endings to unix |
118 |
|
|
|
119 |
|
|
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-23 |
120 |
|
|
- Add common <base> tags to e-smith-formmagick's general |
121 |
|
|
|
122 |
|
|
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-22 |
123 |
|
|
- Apply 22 April 2008 locale patch |
124 |
|
|
|
125 |
|
|
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-21 |
126 |
|
|
- Update to UTF-8 translations |
127 |
|
|
|
128 |
|
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-20 |
129 |
|
|
- update locale 2008-03-14, removed -13 |
130 |
|
|
|
131 |
|
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-19 |
132 |
|
|
- update locale 2008-03-13 |
133 |
|
|
|
134 |
|
|
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.0-18 |
135 |
|
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
136 |
|
|
|
137 |
|
|
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.0-17 |
138 |
|
|
- remove dud es patch |
139 |
|
|
|
140 |
|
|
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.0-16 |
141 |
|
|
- update locale 2008-03-11 |
142 |
|
|
|
143 |
|
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-15 |
144 |
|
|
- prepare en lexicons for pootle translations |
145 |
|
|
|
146 |
|
|
* Wed Dec 26 2007 Stephen Noble <support@dungog.net> 1.0-14 |
147 |
|
|
- fix spanish translation |
148 |
|
|
|
149 |
|
|
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13 |
150 |
|
|
- add spanish translation, thanks Normando Hall [SME 3503] |
151 |
|
|
|
152 |
|
|
* Thu Jun 14 2007 Stephen Noble <support@dungog.net> |
153 |
|
|
- apply updates up to -11 |
154 |
|
|
|
155 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
156 |
|
|
- Clean up spec so package can be built by koji/plague |
157 |
|
|
|
158 |
|
|
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
159 |
|
|
- display Vacation status correctly on modify page in server-manager [sme 2200] |
160 |
|
|
- [1.0-11] |
161 |
|
|
|
162 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
163 |
|
|
- Update to new release naming. No functional changes. |
164 |
|
|
- Make Packager generic |
165 |
|
|
|
166 |
|
|
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
167 |
|
|
- display description unshaded * |
168 |
|
|
- german lexicon fix |
169 |
|
|
- cosmetic log error fixed [sme 1992] |
170 |
|
|
- [1.0-10] |
171 |
|
|
|
172 |
|
|
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
173 |
|
|
- now finds corrects vacation text when used under userpanel. |
174 |
|
|
- german translation [sme 1101] |
175 |
|
|
- [1.0-9] |
176 |
|
|
|
177 |
|
|
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
178 |
|
|
- suppress description if no users [contribs 1243] |
179 |
|
|
- [1.0-8] |
180 |
|
|
|
181 |
|
|
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
182 |
|
|
- say no users if none exist [contribs 1243] |
183 |
|
|
- display DomainName in email address [contribs 1242] |
184 |
|
|
- [1.0-7] |
185 |
|
|
|
186 |
|
|
* Wed Apr 6 2006 Stephen Noble <support@dungog.net> |
187 |
|
|
- unlink .vacation.msg before writing [contribs 1192] |
188 |
|
|
- vacation doesn't respond to spam [contribs 1190] |
189 |
|
|
- [1.0-6] |
190 |
|
|
|
191 |
|
|
* Sat Mar 25 2006 Stephen Noble <support@dungog.net> |
192 |
|
|
- updated lexicons |
193 |
|
|
- removed event |
194 |
|
|
- [1.0-5] |
195 |
|
|
|
196 |
|
|
* Fri Mar 24 2006 Stephen Noble <support@dungog.net> |
197 |
|
|
- Change the interval between repeat replies to the same sender |
198 |
|
|
- config setprop qmail VacationDelay -t3d, man vacation |
199 |
|
|
- reset vacationDB when setting status to no |
200 |
|
|
- modified to, Subject: Re: $SUBJECT - Away from my email |
201 |
|
|
- updated fr lexicon |
202 |
|
|
- [1.0-4] |
203 |
|
|
|
204 |
|
|
* Wed Mar 22 2006 Stephen Noble <support@dungog.net> |
205 |
|
|
- updated lexicons |
206 |
|
|
- [1.0-3] |
207 |
|
|
|
208 |
|
|
* Wed Mar 22 2006 Stephen Noble <support@dungog.net> |
209 |
|
|
- fr lexicon |
210 |
|
|
- expand ~/.qmail on uninstall |
211 |
|
|
- [1.0-2] |
212 |
|
|
|
213 |
|
|
* Mon Mar 20 2006 Stephen Noble <support@dungog.net> |
214 |
|
|
- FormMagick version |
215 |
|
|
- [1.0-1] |
216 |
|
|
|
217 |
|
|
* Mon Dec 12 2005 Stephen Noble <support@dungog.net> |
218 |
|
|
- Strip out DOS Carriage Returns (CR) |
219 |
|
|
- thanks to mike sensney |
220 |
|
|
- [0.9-2] |
221 |
|
|
|
222 |
|
|
* Sat Sep 03 2005 Stephen Noble <support@dungog.net> |
223 |
|
|
- renamed smeserver-vacation, |
224 |
|
|
- contains vacation & userpanel-vacation |
225 |
|
|
- [0.9-1] |
226 |
|
|
|
227 |
|
|
* Sat Sep 03 2005 David Beveridge <davidb@nass.com.au> |
228 |
|
|
- [0.3-2] |
229 |
|
|
- upgrade to work with AccountsDB on SME 7.0 |
230 |
|
|
|
231 |
|
|
* Mon Dec 31 2001 Daniel van Raay <danielvr@caa.org.au> |
232 |
|
|
- [0.2-4] |
233 |
|
|
- Added generated 'From:' lines to default reply message |
234 |
|
|
- Minor cosmetic cleaning |
235 |
|
|
|
236 |
|
|
* Fri Nov 23 2001 Daniel van Raay <danielvr@caa.org.au> |
237 |
|
|
- [0.2-3] |
238 |
|
|
- .vacation.db files are now deleted in the user-modify event |
239 |
|
|
|
240 |
|
|
* Tue Nov 14 2001 Daniel van Raay <danielvr@caa.org.au> |
241 |
|
|
- [0.2-2] |
242 |
|
|
- fixed bug in vacation script that delivered multiple bounces to users |
243 |
|
|
|
244 |
|
|
* Mon Sep 04 2001 Daniel van Raay <danielvr@caa.org.au> |
245 |
|
|
- [0.2-1] |
246 |
|
|
- added -j option to vacation command line |
247 |
|
|
- updated for compatibility with e-smith 4.1 |
248 |
|
|
|
249 |
|
|
* Wed Dec 27 2000 Daniel van Raay <danielvr@caa.org.au> |
250 |
|
|
- [0.1-1] |
251 |
|
|
- initial release |
252 |
|
|
|
253 |
|
|
%prep |
254 |
|
|
%setup |
255 |
|
|
%patch0 -p1 |
256 |
|
|
%patch1 -p1 |
257 |
|
|
%patch2 -p1 |
258 |
|
|
%patch3 -p1 |
259 |
|
|
%patch4 -p1 |
260 |
|
|
%patch5 -p1 |
261 |
|
|
%patch6 -p1 |
262 |
|
|
%patch7 -p1 |
263 |
|
|
%patch8 -p1 |
264 |
|
|
%patch9 -p1 |
265 |
|
|
%patch10 -p1 |
266 |
|
|
%patch11 -p1 |
267 |
|
|
%patch12 -p1 |
268 |
|
|
%patch13 -p1 |
269 |
|
|
%patch14 -p1 |
270 |
|
|
%patch15 -p1 |
271 |
|
|
%patch16 -p1 |
272 |
|
|
%patch17 -p1 |
273 |
|
|
%patch18 -p1 |
274 |
|
|
%patch19 -p1 |
275 |
|
|
%patch20 -p1 |
276 |
|
|
%patch21 -p1 |
277 |
|
|
%patch22 -p1 |
278 |
|
|
%patch23 -p1 |
279 |
unnilennium |
1.4 |
%patch24 -p1 |
280 |
stephdl |
1.5 |
%patch25 -p1 |
281 |
stephdl |
1.6 |
%patch26 -p1 |
282 |
unnilennium |
1.1 |
|
283 |
|
|
%build |
284 |
|
|
perl createlinks |
285 |
|
|
|
286 |
|
|
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
287 |
|
|
for lexicon in $LEXICONS |
288 |
|
|
do |
289 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
290 |
|
|
done |
291 |
|
|
|
292 |
|
|
LINKS=$(find root/etc/e-smith/locale/ -type d -maxdepth 1 | sed 's/root\/etc\/e-smith\/locale\///') |
293 |
|
|
for link in $LINKS |
294 |
|
|
do |
295 |
|
|
/bin/ln -s uservacations root/etc/e-smith/locale/$link/etc/e-smith/web/functions/userpanel-vacation |
296 |
|
|
done |
297 |
|
|
|
298 |
|
|
%install |
299 |
|
|
rm -rf $RPM_BUILD_ROOT |
300 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
301 |
|
|
rm -f %{name}-%{version}-filelist |
302 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
303 |
|
|
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
304 |
|
|
> %{name}-%{version}-filelist |
305 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
306 |
|
|
|
307 |
|
|
%clean |
308 |
|
|
rm -rf $RPM_BUILD_ROOT |
309 |
|
|
|
310 |
|
|
%pre |
311 |
|
|
%preun |
312 |
|
|
|
313 |
|
|
%post |
314 |
|
|
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
315 |
|
|
/sbin/e-smith/signal-event conf-userpanel |
316 |
|
|
fi |
317 |
|
|
|
318 |
|
|
%postun |
319 |
|
|
#uninstall |
320 |
|
|
if [ $1 = 0 ] ; then |
321 |
|
|
|
322 |
|
|
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
323 |
|
|
for db in $DBS ; do |
324 |
|
|
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
325 |
|
|
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
326 |
|
|
done |
327 |
|
|
|
328 |
|
|
#need to expand ~/.qmail for users who are still enabled |
329 |
|
|
/etc/e-smith/events/actions/qmail-update-user |
330 |
|
|
|
331 |
|
|
fi |
332 |
|
|
|
333 |
|
|
|
334 |
|
|
%files -f %{name}-%{version}-filelist |
335 |
|
|
%defattr(-,root,root) |