/[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.12 - (show annotations) (download)
Tue Sep 29 13:29:11 2015 UTC (9 years, 1 month ago) by mats-ng
Branch: MAIN
Changes since 1.11: +7 -2 lines
* Tue Sep 29 2015 mats schuh <m.schuh@neckargeo.net> 1.1-11.sme
- Added smeserver-vacation-1.1-locale-2015-09-29.patch

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

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