/[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.11 - (show annotations) (download)
Wed Sep 23 10:30:05 2015 UTC (9 years, 1 month ago) by mats-ng
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-10_el6_sme
Changes since 1.10: +7 -2 lines
suppress the mail output from the cron job [SME: 9065]

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

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