/[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.13 - (show annotations) (download)
Tue Mar 8 08:31:02 2016 UTC (8 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-12_el6_sme
Changes since 1.12: +7 -2 lines
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.1-12.sme
- Added smeserver-vacation-1.1-locale-2016-03-08.patch

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

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