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

Annotation of /rpms/smeserver-vacation/contribs9/smeserver-vacation.spec

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


Revision 1.28 - (hide annotations) (download)
Sun Feb 26 19:15:53 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-25_el6_sme
Changes since 1.27: +6 -2 lines
* Sun Feb 26 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-25.sme
- html message autodection: swith to html when "<html" and "</html>" are present
- in the content, update patch [SME: 6614]

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

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