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