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