/[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.5 - (show annotations) (download)
Mon Oct 26 10:00:28 2020 UTC (4 years, 1 month ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-30_el7_sme
Changes since 1.4: +16 -4 lines
* Sat Oct 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-30.sme
- Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052]
- to smeserver-vacation-update event

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

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