/[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.9 - (hide annotations) (download)
Fri Jan 7 12:05:54 2022 UTC (2 years, 10 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-34_el7_sme
Changes since 1.8: +7 -2 lines
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.1-34.sme
- Add-extra-class-in-div-for-AdminLTE [SME: 11834]

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

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