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