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

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

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


Revision 1.4 - (hide annotations) (download)
Fri Jun 12 05:52:10 2020 UTC (4 years, 4 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-29_el7_sme
Changes since 1.3: +10 -3 lines
* Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme
- Update for Apache-Mod-Proxy mode Server2 [SME:10927]

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

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