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

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

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


Revision 1.24 - (show annotations) (download)
Mon Jan 16 21:37:46 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
Changes since 1.23: +12 -2 lines
* Mon Jan 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-23.sme
- Fix possible race condition vulnerability during creation of vacation.msg [SME: 9073]
- thanks to Mats Schuh and Charlie Brady for the work.
- Translation smeserver-vacation-1.1-locale-2017-01-16.patch

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

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