/[smecontribs]/rpms/smeserver-vacation/contribs10/smeserver-vacation.spec
ViewVC logotype

Contents of /rpms/smeserver-vacation/contribs10/smeserver-vacation.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations) (download)
Fri Mar 1 09:40:09 2024 UTC (2 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-36_el7_sme, HEAD
Changes since 1.10: +7 -2 lines
* Fri Mar 01 2024 Brian Read <brianr@koozali.org> 1.1-36.sme
- Edit Menu entry to conform to new arrangements [SME: 12493]

1 # $Id: smeserver-vacation.spec,v 1.10 2024/02/16 16:02:37 brianr Exp $
2 # Authority: dungog
3 # Name: Stephen Noble
4
5 %define name smeserver-vacation
6 %define version 1.1
7 %define release 36
8 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.xz
16 Patch0: smeserver-vacation-1.1-fix_dbmopen.patch
17 Patch1: smeserver-vacation-1.1-multiline_matching.patch
18 Patch2: smeserver-vacation-1.1-explain_better_virtual_sender_domain.patch
19 Patch3: smeserver-vacation-1.1-do_not_localize_from_header.patch
20 Patch4: smeserver-vacation-1.1-subject_match_case_insensitive.patch
21 Patch5: smeserver-vacation-1.1-auto_enable_disable_vacation.patch
22 Patch6: smeserver-vacation-1.1-locale-2015-09-12.patch
23 Patch7: smeserver-vacation-1.1-suppress_cron_mail.patch
24 Patch8: smeserver-vacation-1.1-locale-2015-09-29.patch
25 Patch9: smeserver-vacation-1.1-locale-2016-03-08.patch
26 Patch10: smeserver-vacation-1.1.auto_enable_disable_vacation_userpanel.patch
27 Patch11: smeserver-vacation-1.1-locale-2016-06-21.patch
28 Patch12: smeserver-vacation-1.1.delegate_vacation_message_by_groups.patch
29 Patch13: smeserver-vacation-1.1-locale-2016-07-06.patch
30 Patch14: smeserver-vacation-1.1-locale-2016-07-07.patch
31 Patch15: smeserver-vacation-1.1.bz9661.fix_auto_enable_disable_vacation.patch
32 Patch16: smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch
33 Patch17: smeserver-vacation-1.1-locale-2016-07-15.patch
34 Patch18: smeserver-vacation-1.1-bz9073-race.condition.vulnarability.patch
35 Patch19: smeserver-vacation-1.1-locale-2017-01-16.patch
36 Patch20: smeserver-vacation-1.1-bz6614-autodetect.html.patch
37 Patch21: smeserver-vacation-1.1-locale-2018-12-14.patch
38 Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch
39 Patch23: smeserver-vacation-1.1-Better-display-dates-in-list.patch
40 Patch24: smeserver-vacation-1.1-Update-for-Apache-Mod-Proxy-based-server2.patch
41 Patch25: smeserver-vacation-1.1-Add-in-update-action-to-restart-smanager.patch
42 Patch26: smeserver-vacation-1.1-bz11399-tableEncoding.patch
43 Patch27: smeserver-vacation-1.1-locale-2021-08-25.patch
44 Patch28: smeserver-vacation-1.1-Add-extra-class-in-div-for-AdminLTE.patch
45 Patch29: smeserver-vacation-1.1-Sort-out-html-chars-in-email-template.patch
46 Patch30: smeserver-vacation-1.1-Alter-menu-category-for-new-arrangement.patch
47
48 BuildArchitectures: noarch
49 BuildRoot: /var/tmp/%{name}-%{version}
50 Requires: e-smith-release >= 9.0,
51 Requires: e-smith-formmagick >= 1.4.0-12
52 # needs /usr/share/perl5/vendor_perl/ctime.pl
53 Requires: perl-Perl4-CoreLibs
54 BuildRequires: e-smith-devtools >= 1.13.1-03
55 #BuildRequires: smeserver-manager >= 24
56 AutoReqProv: no
57
58 %description
59 SME Server enhancement to enable vacation messages for users.
60 Optionally provides a user-manager panel where users can
61 enable vacation for themselves and to modify their own message
62
63 %changelog
64 * Fri Mar 01 2024 Brian Read <brianr@koozali.org> 1.1-36.sme
65 - Edit Menu entry to conform to new arrangements [SME: 12493]
66
67 * Fri Feb 16 2024 Brian Read <brianr@koozali.org> 1.1-35.sme
68 - Sort out html chars in email default [SME: 12475]
69 - Add signal-event refresh to spec file. [sme 12474]
70
71 * Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.1-34.sme
72 - Add-extra-class-in-div-for-AdminLTE [SME: 11834]
73
74 * Wed Aug 25 2021 Terry Fage <tfage@yahoo.com.au> 1.1-33.sme
75 - apply locale 2021-08-25 patch
76
77 * Fri Feb 26 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-32.sme
78 - avoid reencoding of strings in admin table of users [SME: 11399]
79
80 * Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-31.sme
81 - add requirement ctime.pl to display log [SME: 10927]
82
83 * Sat Oct 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-30.sme
84 - Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052]
85 - to smeserver-vacation-update event
86
87 * Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme
88 - Update for Apache-Mod-Proxy mode Server2 [SME:10927]
89
90 * Tue May 19 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-28.sme
91 - Part of SME10 Server manager2 - Better display of dates in list [SME:10927 ]
92
93 * Tue Apr 28 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-27.sme
94 - Update to SME10 - rework server manager panels to use manager2 [SME:10927]
95
96 * Fri Dec 14 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1-26.sme
97 - apply locale 2018-12-14 patch
98
99 * Sun Feb 26 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-25.sme
100 - html message autodection: swith to html when "<html" and "</html>" are present
101 - in the content, update patch [SME: 6614]
102
103 * Mon Jan 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-24.sme
104 - NFR allow html message and auto detect to switch from text to html [SME: 6614]
105
106 * Mon Jan 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-23.sme
107 - Fix possible race condition vulnerability during creation of vacation.msg [SME: 9073]
108 - thanks to Mats Schuh and Charlie Brady for the work.
109 - Translation smeserver-vacation-1.1-locale-2017-01-16.patch
110 - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
111 by assuming the date is correct and changing the weekday.
112
113 * Sat Jul 16 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-22.sme
114 - Added a capital to subject : Subject [SME: 8772]
115
116 * Fri Jul 15 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-21.sme
117 - Translation patch added
118 - Added smeserver-vacation-1.1-locale-2016-07-15.patch
119 - Added a signature in the email body
120 - modified smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch
121
122 * Thu Jul 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-19.sme
123 - corrected the object email issue [SME: 8772]
124 - modified smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch
125
126 * Sun Jul 10 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-17.sme
127 - Fixed the auto enabled and disable vacation message [SME: 9661]
128 - Added smeserver-vacation-1.1.bz9661.fix_auto_enable_disable_vacation.patch
129 - Fixed the translation of the vacation message [SME: 8772]
130 - Added smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch
131
132 * Wed Jul 06 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-15.sme
133 - Add translation smeserver-vacation-1.1-locale-2016-07-07.patch
134 - Add translation smeserver-vacation-1.1-locale-2016-07-06.patch
135 - delegate the vacation messages by group permissions [SME: 9657]
136
137 * Wed Jun 22 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-13.sme
138 - Add the automated and disabling user vacations on given date in the user panel.
139 - Add translation smeserver-vacation-1.1-locale-2016-06-21.patch
140
141 * Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.1-12.sme
142 - Added smeserver-vacation-1.1-locale-2016-03-08.patch
143
144 * Tue Sep 29 2015 mats schuh <m.schuh@neckargeo.net> 1.1-11.sme
145 - Added smeserver-vacation-1.1-locale-2015-09-29.patch
146
147 * Wed Sep 23 2015 mats schuh <m.schuh@neckargeo.net> 1.1-10.sme
148 - suppress the mail output from the cron job [SME: 9065]
149
150 * Sat Sep 12 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-9.sme
151 - Added smeserver-vacation-1.1-locale-2015-09-12.patch
152
153 * Fri Sep 4 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-7.sme
154 - code done by Mats Schuh <m.schuh@neckargeo.net>
155 - Allow automated enabling and disabling of user vacations on given dates [SME: 7555]
156 - Above functionality provided by additional db accounts entries and a cron script
157
158 * Thu Jan 8 2015 Daniel Berteaud <daniel@firewall-services.com> 1.1-6.sme
159 - Make the subject header match case insensitive (patch from Mats Schuh) [SME: 8777]
160
161 * Thu Jan 8 2015 Daniel Berteaud <daniel@firewall-services.com> 1.1-5.sme
162 - Do not localize From header (patch from Mats Schuh) [SME: 8776]
163
164 * Tue Jan 6 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-4.sme
165 - Updated instructions to use virtual sender domain for vacation message
166 - Created by Mats Schuh m.schuh@neckargeo.net
167
168 * Wed Dec 24 2014 Daniel Berteaud <daniel@firewall-services.com> 1.1-3.sme
169 - Fix multiline matching [SME: 8741]
170
171 * Wed Dec 24 2014 Daniel Berteaud <daniel@firewall-services.com> 1.1-2.sme
172 - Fix dbmopen by specifying the dbm module to use (DB_File) [SME: 8741]
173
174 * Wed Nov 13 2013 Daniel Berteaud <daniel@firewall-services.com> 1.1-1.sme
175 - Rebuild for SME9
176
177 * Mon Jul 15 2013 JP Pialasse <tests@pialasse.com> 1.0-41.sme
178 - apply locale 2013-07-15 patch
179
180 * Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.0-40.sme
181 - apply locale 2011-03-06 patch
182
183 * Sun May 23 2010 SME Translation Server <translations@contribs.org> 1.0-39.sme
184 - apply locale 2010-05-23 patch
185
186 * Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.0-38.sme
187 - apply locale 2009-10-27 patch
188
189 * Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.0-37.sme
190 - apply locale 2009-08-24 patch
191
192 * Thu Jun 11 2009 Stephen Noble <support@dungog.net> - 1.0-36
193 - send vacation mail in utf8 [SME 4389]
194
195 * Sat Jun 06 2009 Stephen Noble <support@dungog.net> - 1.0-35
196 - cp .qmail fragment before SME filtering with filterorder prop [SME: 5327]
197
198 * Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.0-34.sme
199 - apply locale 2009-05-20 patch
200
201 * Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.0-33.sme
202 - apply locale 2009-04-27 patch
203
204 * Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-32
205 - Apply 1 Mar 2009 locale patch [SME: 5018]
206
207 * Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-31
208 - Apply 1 Jan 2009 locale patch [SME: 4900]
209
210 * Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-30
211 - Apply 14 Oct 2008 locale patch
212
213 * Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.0-29
214 - move .qmail fragment after SME forwarding [SME: 4603]
215 - Apply 27 August 2008 locale patch
216
217 * Wed Aug 13 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-28
218 Sat Aug 13 2008 --> Sat Aug 09 2008 or Wed Aug 13 2008 or Sat Aug 16 2008 or ....
219 - Add precedence list to ignore functions to ignore, for instance,
220 mail from contribs.org mailinglists [SME: 4549]
221
222 * Tue Aug 12 2008 Gavin Weight <gweight@gmail.com> 1.0-27
223 - Fix Locale to read vacation panel correctly. [SME: 4311]
224
225 * Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-26
226 - Apply 1 July 2008 locale patch
227
228 * Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-25
229 - Apply 5 May 2008 locale patch
230
231 * Mon Apr 28 2008 Shad L. Lords <slords@mail.com> 1.0-24
232 - Convert dos line endings to unix
233
234 * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-23
235 - Add common <base> tags to e-smith-formmagick's general
236
237 * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-22
238 - Apply 22 April 2008 locale patch
239
240 * Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-21
241 - Update to UTF-8 translations
242
243 * Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-20
244 - update locale 2008-03-14, removed -13
245
246 * Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-19
247 - update locale 2008-03-13
248
249 * Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.0-18
250 - Add requires for e-smith-formmagick for UTF-8 support [SME: 3858]
251
252 * Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.0-17
253 - remove dud es patch
254
255 * Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.0-16
256 - update locale 2008-03-11
257
258 * Sat Mar 08 2008 Stephen Noble <support@dungog.net> - 1.0-15
259 - prepare en lexicons for pootle translations
260
261 * Wed Dec 26 2007 Stephen Noble <support@dungog.net> 1.0-14
262 - fix spanish translation
263
264 * Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13
265 - add spanish translation, thanks Normando Hall [SME 3503]
266
267 * Thu Jun 14 2007 Stephen Noble <support@dungog.net>
268 - apply updates up to -11
269
270 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
271 - Clean up spec so package can be built by koji/plague
272
273 * Fri Dec 29 2006 Stephen Noble <support@dungog.net>
274 - display Vacation status correctly on modify page in server-manager [sme 2200]
275 - [1.0-11]
276
277 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
278 - Update to new release naming. No functional changes.
279 - Make Packager generic
280
281 * Mon Oct 30 2006 Stephen Noble <support@dungog.net>
282 - display description unshaded *
283 - german lexicon fix
284 - cosmetic log error fixed [sme 1992]
285 - [1.0-10]
286
287 * Thu Aug 24 2006 Stephen Noble <support@dungog.net>
288 - now finds corrects vacation text when used under userpanel.
289 - german translation [sme 1101]
290 - [1.0-9]
291
292 * Thu Apr 06 2006 Stephen Noble <support@dungog.net>
293 Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or ....
294 - suppress description if no users [contribs 1243]
295 - [1.0-8]
296
297 * Thu Apr 06 2006 Stephen Noble <support@dungog.net>
298 Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or ....
299 - say no users if none exist [contribs 1243]
300 - display DomainName in email address [contribs 1242]
301 - [1.0-7]
302
303 * Thu Apr 06 2006 Stephen Noble <support@dungog.net>
304 Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or ....
305 - unlink .vacation.msg before writing [contribs 1192]
306 - vacation doesn't respond to spam [contribs 1190]
307 - [1.0-6]
308
309 * Sat Mar 25 2006 Stephen Noble <support@dungog.net>
310 - updated lexicons
311 - removed event
312 - [1.0-5]
313
314 * Fri Mar 24 2006 Stephen Noble <support@dungog.net>
315 - Change the interval between repeat replies to the same sender
316 - config setprop qmail VacationDelay -t3d, man vacation
317 - reset vacationDB when setting status to no
318 - modified to, Subject: Re: $SUBJECT - Away from my email
319 - updated fr lexicon
320 - [1.0-4]
321
322 * Wed Mar 22 2006 Stephen Noble <support@dungog.net>
323 - updated lexicons
324 - [1.0-3]
325
326 * Wed Mar 22 2006 Stephen Noble <support@dungog.net>
327 - fr lexicon
328 - expand ~/.qmail on uninstall
329 - [1.0-2]
330
331 * Mon Mar 20 2006 Stephen Noble <support@dungog.net>
332 - FormMagick version
333 - [1.0-1]
334
335 * Mon Dec 12 2005 Stephen Noble <support@dungog.net>
336 - Strip out DOS Carriage Returns (CR)
337 - thanks to mike sensney
338 - [0.9-2]
339
340 * Sat Sep 03 2005 Stephen Noble <support@dungog.net>
341 - renamed smeserver-vacation,
342 - contains vacation & userpanel-vacation
343 - [0.9-1]
344
345 * Sat Sep 03 2005 David Beveridge <davidb@nass.com.au>
346 - [0.3-2]
347 - upgrade to work with AccountsDB on SME 7.0
348
349 * Mon Dec 31 2001 Daniel van Raay <danielvr@caa.org.au>
350 - [0.2-4]
351 - Added generated 'From:' lines to default reply message
352 - Minor cosmetic cleaning
353
354 * Fri Nov 23 2001 Daniel van Raay <danielvr@caa.org.au>
355 - [0.2-3]
356 - .vacation.db files are now deleted in the user-modify event
357
358 * Wed Nov 14 2001 Daniel van Raay <danielvr@caa.org.au>
359 Tue Nov 14 2001 --> Tue Nov 13 2001 or Wed Nov 14 2001 or Tue Nov 20 2001 or ....
360 - [0.2-2]
361 - fixed bug in vacation script that delivered multiple bounces to users
362
363 * Tue Sep 04 2001 Daniel van Raay <danielvr@caa.org.au>
364 - [0.2-1]
365 - added -j option to vacation command line
366 - updated for compatibility with e-smith 4.1
367
368 * Wed Dec 27 2000 Daniel van Raay <danielvr@caa.org.au>
369 - [0.1-1]
370 - initial release
371
372 %prep
373 %setup
374 %patch0 -p1
375 %patch1 -p1
376 %patch2 -p1
377 %patch3 -p1
378 %patch4 -p1
379 %patch5 -p1
380 %patch6 -p1
381 %patch7 -p1
382 %patch8 -p1
383 %patch9 -p1
384 %patch10 -p1
385 %patch11 -p1
386 %patch12 -p1
387 %patch13 -p1
388 %patch14 -p1
389 %patch15 -p1
390 %patch16 -p1
391 %patch17 -p1
392 %patch18 -p1
393 %patch19 -p1
394 %patch20 -p1
395 %patch21 -p1
396 %patch22 -p1
397 %patch23 -p1
398 %patch24 -p1
399 %patch25 -p1
400 %patch26 -p1
401 %patch27 -p1
402 %patch28 -p1
403 %patch29 -p1
404 %patch30 -p1
405
406 %build
407 perl createlinks
408
409 LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f )
410 for lexicon in $LEXICONS
411 do
412 /sbin/e-smith/validate-lexicon $lexicon
413 done
414
415 LINKS=$(find root/etc/e-smith/locale/ -type d -maxdepth 1 | sed 's/root\/etc\/e-smith\/locale\///')
416 for link in $LINKS
417 do
418 /bin/ln -s uservacations root/etc/e-smith/locale/$link/etc/e-smith/web/functions/userpanel-vacation
419 done
420
421 %install
422 rm -rf $RPM_BUILD_ROOT
423 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
424 rm -f %{name}-%{version}-filelist
425 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
426 --file '/usr/local/bin/vacation' 'attr(0755,root,root)' \
427 --file '/sbin/e-smith/vacation/check_vacation_dates.sh' 'attr(0755,root,root)' \
428 > %{name}-%{version}-filelist
429 echo "%doc COPYING" >> %{name}-%{version}-filelist
430
431 %clean
432 rm -rf $RPM_BUILD_ROOT
433
434 %pre
435 %preun
436
437 %post
438 if [ -d /etc/e-smith/events/conf-userpanel ] ; then
439 /sbin/e-smith/signal-event conf-userpanel
440 fi
441
442 if (systemctl list-unit-files |grep smanager) then
443 echo "Smanager restart in spec file"
444 /sbin/e-smith/signal-event smanager-refresh;
445 fi
446
447 %postun
448 #uninstall
449 if [ $1 = 0 ] ; then
450
451 DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
452 for db in $DBS ; do
453 /sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null
454 /sbin/e-smith/db $db delete uservacations 2>/dev/null
455 done
456
457 #need to expand ~/.qmail for users who are still enabled
458 /etc/e-smith/events/actions/qmail-update-user
459
460 fi
461
462
463 %files -f %{name}-%{version}-filelist
464 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed