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