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