1 |
# $Id: smeserver-vacation.spec,v 1.9 2022/01/07 12:05:54 brianr Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
%define name smeserver-vacation |
6 |
%define version 1.1 |
7 |
%define release 35 |
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.xz |
16 |
Patch0: smeserver-vacation-1.1-fix_dbmopen.patch |
17 |
Patch1: smeserver-vacation-1.1-multiline_matching.patch |
18 |
Patch2: smeserver-vacation-1.1-explain_better_virtual_sender_domain.patch |
19 |
Patch3: smeserver-vacation-1.1-do_not_localize_from_header.patch |
20 |
Patch4: smeserver-vacation-1.1-subject_match_case_insensitive.patch |
21 |
Patch5: smeserver-vacation-1.1-auto_enable_disable_vacation.patch |
22 |
Patch6: smeserver-vacation-1.1-locale-2015-09-12.patch |
23 |
Patch7: smeserver-vacation-1.1-suppress_cron_mail.patch |
24 |
Patch8: smeserver-vacation-1.1-locale-2015-09-29.patch |
25 |
Patch9: smeserver-vacation-1.1-locale-2016-03-08.patch |
26 |
Patch10: smeserver-vacation-1.1.auto_enable_disable_vacation_userpanel.patch |
27 |
Patch11: smeserver-vacation-1.1-locale-2016-06-21.patch |
28 |
Patch12: smeserver-vacation-1.1.delegate_vacation_message_by_groups.patch |
29 |
Patch13: smeserver-vacation-1.1-locale-2016-07-06.patch |
30 |
Patch14: smeserver-vacation-1.1-locale-2016-07-07.patch |
31 |
Patch15: smeserver-vacation-1.1.bz9661.fix_auto_enable_disable_vacation.patch |
32 |
Patch16: smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch |
33 |
Patch17: smeserver-vacation-1.1-locale-2016-07-15.patch |
34 |
Patch18: smeserver-vacation-1.1-bz9073-race.condition.vulnarability.patch |
35 |
Patch19: smeserver-vacation-1.1-locale-2017-01-16.patch |
36 |
Patch20: smeserver-vacation-1.1-bz6614-autodetect.html.patch |
37 |
Patch21: smeserver-vacation-1.1-locale-2018-12-14.patch |
38 |
Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch |
39 |
Patch23: smeserver-vacation-1.1-Better-display-dates-in-list.patch |
40 |
Patch24: smeserver-vacation-1.1-Update-for-Apache-Mod-Proxy-based-server2.patch |
41 |
Patch25: smeserver-vacation-1.1-Add-in-update-action-to-restart-smanager.patch |
42 |
Patch26: smeserver-vacation-1.1-bz11399-tableEncoding.patch |
43 |
Patch27: smeserver-vacation-1.1-locale-2021-08-25.patch |
44 |
Patch28: smeserver-vacation-1.1-Add-extra-class-in-div-for-AdminLTE.patch |
45 |
Patch29: smeserver-vacation-1.1-Sort-out-html-chars-in-email-template.patch |
46 |
|
47 |
BuildArchitectures: noarch |
48 |
BuildRoot: /var/tmp/%{name}-%{version} |
49 |
Requires: e-smith-release >= 9.0, |
50 |
Requires: e-smith-formmagick >= 1.4.0-12 |
51 |
# needs /usr/share/perl5/vendor_perl/ctime.pl |
52 |
Requires: perl-Perl4-CoreLibs |
53 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
54 |
#BuildRequires: smeserver-manager >= 24 |
55 |
AutoReqProv: no |
56 |
|
57 |
%description |
58 |
SME Server enhancement to enable vacation messages for users. |
59 |
Optionally provides a user-manager panel where users can |
60 |
enable vacation for themselves and to modify their own message |
61 |
|
62 |
%changelog |
63 |
* Fri Feb 16 2024 Brian Read <brianr@koozali.org> 1.1-35.sme |
64 |
- Sort out html chars in email default [SME: 12475] |
65 |
- Add signal-event refresh to spec file. [sme 12474] |
66 |
|
67 |
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.1-34.sme |
68 |
- Add-extra-class-in-div-for-AdminLTE [SME: 11834] |
69 |
|
70 |
* Wed Aug 25 2021 Terry Fage <tfage@yahoo.com.au> 1.1-33.sme |
71 |
- apply locale 2021-08-25 patch |
72 |
|
73 |
* Fri Feb 26 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-32.sme |
74 |
- avoid reencoding of strings in admin table of users [SME: 11399] |
75 |
|
76 |
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-31.sme |
77 |
- add requirement ctime.pl to display log [SME: 10927] |
78 |
|
79 |
* Sat Oct 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-30.sme |
80 |
- Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052] |
81 |
- to smeserver-vacation-update event |
82 |
|
83 |
* Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme |
84 |
- Update for Apache-Mod-Proxy mode Server2 [SME:10927] |
85 |
|
86 |
* Tue May 19 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-28.sme |
87 |
- Part of SME10 Server manager2 - Better display of dates in list [SME:10927 ] |
88 |
|
89 |
* Tue Apr 28 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-27.sme |
90 |
- Update to SME10 - rework server manager panels to use manager2 [SME:10927] |
91 |
|
92 |
* Fri Dec 14 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1-26.sme |
93 |
- apply locale 2018-12-14 patch |
94 |
|
95 |
* Sun Feb 26 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-25.sme |
96 |
- html message autodection: swith to html when "<html" and "</html>" are present |
97 |
- in the content, update patch [SME: 6614] |
98 |
|
99 |
* Mon Jan 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-24.sme |
100 |
- NFR allow html message and auto detect to switch from text to html [SME: 6614] |
101 |
|
102 |
* Mon Jan 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-23.sme |
103 |
- Fix possible race condition vulnerability during creation of vacation.msg [SME: 9073] |
104 |
- thanks to Mats Schuh and Charlie Brady for the work. |
105 |
- Translation smeserver-vacation-1.1-locale-2017-01-16.patch |
106 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
107 |
by assuming the date is correct and changing the weekday. |
108 |
|
109 |
* Sat Jul 16 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-22.sme |
110 |
- Added a capital to subject : Subject [SME: 8772] |
111 |
|
112 |
* Fri Jul 15 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-21.sme |
113 |
- Translation patch added |
114 |
- Added smeserver-vacation-1.1-locale-2016-07-15.patch |
115 |
- Added a signature in the email body |
116 |
- modified smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch |
117 |
|
118 |
* Thu Jul 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-19.sme |
119 |
- corrected the object email issue [SME: 8772] |
120 |
- modified smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch |
121 |
|
122 |
* Sun Jul 10 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-17.sme |
123 |
- Fixed the auto enabled and disable vacation message [SME: 9661] |
124 |
- Added smeserver-vacation-1.1.bz9661.fix_auto_enable_disable_vacation.patch |
125 |
- Fixed the translation of the vacation message [SME: 8772] |
126 |
- Added smeserver-vacation-1.1.bz8772.fix.vacation.message.translation.patch |
127 |
|
128 |
* Wed Jul 06 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-15.sme |
129 |
- Add translation smeserver-vacation-1.1-locale-2016-07-07.patch |
130 |
- Add translation smeserver-vacation-1.1-locale-2016-07-06.patch |
131 |
- delegate the vacation messages by group permissions [SME: 9657] |
132 |
|
133 |
* Wed Jun 22 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-13.sme |
134 |
- Add the automated and disabling user vacations on given date in the user panel. |
135 |
- Add translation smeserver-vacation-1.1-locale-2016-06-21.patch |
136 |
|
137 |
* Tue Mar 08 2016 JP Pialasse <tests@pialasse.com> 1.1-12.sme |
138 |
- Added smeserver-vacation-1.1-locale-2016-03-08.patch |
139 |
|
140 |
* Tue Sep 29 2015 mats schuh <m.schuh@neckargeo.net> 1.1-11.sme |
141 |
- Added smeserver-vacation-1.1-locale-2015-09-29.patch |
142 |
|
143 |
* Wed Sep 23 2015 mats schuh <m.schuh@neckargeo.net> 1.1-10.sme |
144 |
- suppress the mail output from the cron job [SME: 9065] |
145 |
|
146 |
* Sat Sep 12 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-9.sme |
147 |
- Added smeserver-vacation-1.1-locale-2015-09-12.patch |
148 |
|
149 |
* Fri Sep 4 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-7.sme |
150 |
- code done by Mats Schuh <m.schuh@neckargeo.net> |
151 |
- Allow automated enabling and disabling of user vacations on given dates [SME: 7555] |
152 |
- Above functionality provided by additional db accounts entries and a cron script |
153 |
|
154 |
* Thu Jan 8 2015 Daniel Berteaud <daniel@firewall-services.com> 1.1-6.sme |
155 |
- Make the subject header match case insensitive (patch from Mats Schuh) [SME: 8777] |
156 |
|
157 |
* Thu Jan 8 2015 Daniel Berteaud <daniel@firewall-services.com> 1.1-5.sme |
158 |
- Do not localize From header (patch from Mats Schuh) [SME: 8776] |
159 |
|
160 |
* Tue Jan 6 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-4.sme |
161 |
- Updated instructions to use virtual sender domain for vacation message |
162 |
- Created by Mats Schuh m.schuh@neckargeo.net |
163 |
|
164 |
* Wed Dec 24 2014 Daniel Berteaud <daniel@firewall-services.com> 1.1-3.sme |
165 |
- Fix multiline matching [SME: 8741] |
166 |
|
167 |
* Wed Dec 24 2014 Daniel Berteaud <daniel@firewall-services.com> 1.1-2.sme |
168 |
- Fix dbmopen by specifying the dbm module to use (DB_File) [SME: 8741] |
169 |
|
170 |
* Wed Nov 13 2013 Daniel Berteaud <daniel@firewall-services.com> 1.1-1.sme |
171 |
- Rebuild for SME9 |
172 |
|
173 |
* Mon Jul 15 2013 JP Pialasse <tests@pialasse.com> 1.0-41.sme |
174 |
- apply locale 2013-07-15 patch |
175 |
|
176 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.0-40.sme |
177 |
- apply locale 2011-03-06 patch |
178 |
|
179 |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 1.0-39.sme |
180 |
- apply locale 2010-05-23 patch |
181 |
|
182 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.0-38.sme |
183 |
- apply locale 2009-10-27 patch |
184 |
|
185 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.0-37.sme |
186 |
- apply locale 2009-08-24 patch |
187 |
|
188 |
* Thu Jun 11 2009 Stephen Noble <support@dungog.net> - 1.0-36 |
189 |
- send vacation mail in utf8 [SME 4389] |
190 |
|
191 |
* Sat Jun 06 2009 Stephen Noble <support@dungog.net> - 1.0-35 |
192 |
- cp .qmail fragment before SME filtering with filterorder prop [SME: 5327] |
193 |
|
194 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.0-34.sme |
195 |
- apply locale 2009-05-20 patch |
196 |
|
197 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.0-33.sme |
198 |
- apply locale 2009-04-27 patch |
199 |
|
200 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-32 |
201 |
- Apply 1 Mar 2009 locale patch [SME: 5018] |
202 |
|
203 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-31 |
204 |
- Apply 1 Jan 2009 locale patch [SME: 4900] |
205 |
|
206 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-30 |
207 |
- Apply 14 Oct 2008 locale patch |
208 |
|
209 |
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.0-29 |
210 |
- move .qmail fragment after SME forwarding [SME: 4603] |
211 |
- Apply 27 August 2008 locale patch |
212 |
|
213 |
* Wed Aug 13 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-28 |
214 |
Sat Aug 13 2008 --> Sat Aug 09 2008 or Wed Aug 13 2008 or Sat Aug 16 2008 or .... |
215 |
- Add precedence list to ignore functions to ignore, for instance, |
216 |
mail from contribs.org mailinglists [SME: 4549] |
217 |
|
218 |
* Tue Aug 12 2008 Gavin Weight <gweight@gmail.com> 1.0-27 |
219 |
- Fix Locale to read vacation panel correctly. [SME: 4311] |
220 |
|
221 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-26 |
222 |
- Apply 1 July 2008 locale patch |
223 |
|
224 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-25 |
225 |
- Apply 5 May 2008 locale patch |
226 |
|
227 |
* Mon Apr 28 2008 Shad L. Lords <slords@mail.com> 1.0-24 |
228 |
- Convert dos line endings to unix |
229 |
|
230 |
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-23 |
231 |
- Add common <base> tags to e-smith-formmagick's general |
232 |
|
233 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-22 |
234 |
- Apply 22 April 2008 locale patch |
235 |
|
236 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-21 |
237 |
- Update to UTF-8 translations |
238 |
|
239 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-20 |
240 |
- update locale 2008-03-14, removed -13 |
241 |
|
242 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-19 |
243 |
- update locale 2008-03-13 |
244 |
|
245 |
* Wed Mar 12 2008 Shad L. Lords <slords@mail.com> - 1.0-18 |
246 |
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
247 |
|
248 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.0-17 |
249 |
- remove dud es patch |
250 |
|
251 |
* Tue Mar 11 2008 Stephen Noble <support@dungog.net> - 1.0-16 |
252 |
- update locale 2008-03-11 |
253 |
|
254 |
* Sat Mar 08 2008 Stephen Noble <support@dungog.net> - 1.0-15 |
255 |
- prepare en lexicons for pootle translations |
256 |
|
257 |
* Wed Dec 26 2007 Stephen Noble <support@dungog.net> 1.0-14 |
258 |
- fix spanish translation |
259 |
|
260 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-13 |
261 |
- add spanish translation, thanks Normando Hall [SME 3503] |
262 |
|
263 |
* Thu Jun 14 2007 Stephen Noble <support@dungog.net> |
264 |
- apply updates up to -11 |
265 |
|
266 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
267 |
- Clean up spec so package can be built by koji/plague |
268 |
|
269 |
* Fri Dec 29 2006 Stephen Noble <support@dungog.net> |
270 |
- display Vacation status correctly on modify page in server-manager [sme 2200] |
271 |
- [1.0-11] |
272 |
|
273 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
274 |
- Update to new release naming. No functional changes. |
275 |
- Make Packager generic |
276 |
|
277 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
278 |
- display description unshaded * |
279 |
- german lexicon fix |
280 |
- cosmetic log error fixed [sme 1992] |
281 |
- [1.0-10] |
282 |
|
283 |
* Thu Aug 24 2006 Stephen Noble <support@dungog.net> |
284 |
- now finds corrects vacation text when used under userpanel. |
285 |
- german translation [sme 1101] |
286 |
- [1.0-9] |
287 |
|
288 |
* Thu Apr 06 2006 Stephen Noble <support@dungog.net> |
289 |
Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or .... |
290 |
- suppress description if no users [contribs 1243] |
291 |
- [1.0-8] |
292 |
|
293 |
* Thu Apr 06 2006 Stephen Noble <support@dungog.net> |
294 |
Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or .... |
295 |
- say no users if none exist [contribs 1243] |
296 |
- display DomainName in email address [contribs 1242] |
297 |
- [1.0-7] |
298 |
|
299 |
* Thu Apr 06 2006 Stephen Noble <support@dungog.net> |
300 |
Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or .... |
301 |
- unlink .vacation.msg before writing [contribs 1192] |
302 |
- vacation doesn't respond to spam [contribs 1190] |
303 |
- [1.0-6] |
304 |
|
305 |
* Sat Mar 25 2006 Stephen Noble <support@dungog.net> |
306 |
- updated lexicons |
307 |
- removed event |
308 |
- [1.0-5] |
309 |
|
310 |
* Fri Mar 24 2006 Stephen Noble <support@dungog.net> |
311 |
- Change the interval between repeat replies to the same sender |
312 |
- config setprop qmail VacationDelay -t3d, man vacation |
313 |
- reset vacationDB when setting status to no |
314 |
- modified to, Subject: Re: $SUBJECT - Away from my email |
315 |
- updated fr lexicon |
316 |
- [1.0-4] |
317 |
|
318 |
* Wed Mar 22 2006 Stephen Noble <support@dungog.net> |
319 |
- updated lexicons |
320 |
- [1.0-3] |
321 |
|
322 |
* Wed Mar 22 2006 Stephen Noble <support@dungog.net> |
323 |
- fr lexicon |
324 |
- expand ~/.qmail on uninstall |
325 |
- [1.0-2] |
326 |
|
327 |
* Mon Mar 20 2006 Stephen Noble <support@dungog.net> |
328 |
- FormMagick version |
329 |
- [1.0-1] |
330 |
|
331 |
* Mon Dec 12 2005 Stephen Noble <support@dungog.net> |
332 |
- Strip out DOS Carriage Returns (CR) |
333 |
- thanks to mike sensney |
334 |
- [0.9-2] |
335 |
|
336 |
* Sat Sep 03 2005 Stephen Noble <support@dungog.net> |
337 |
- renamed smeserver-vacation, |
338 |
- contains vacation & userpanel-vacation |
339 |
- [0.9-1] |
340 |
|
341 |
* Sat Sep 03 2005 David Beveridge <davidb@nass.com.au> |
342 |
- [0.3-2] |
343 |
- upgrade to work with AccountsDB on SME 7.0 |
344 |
|
345 |
* Mon Dec 31 2001 Daniel van Raay <danielvr@caa.org.au> |
346 |
- [0.2-4] |
347 |
- Added generated 'From:' lines to default reply message |
348 |
- Minor cosmetic cleaning |
349 |
|
350 |
* Fri Nov 23 2001 Daniel van Raay <danielvr@caa.org.au> |
351 |
- [0.2-3] |
352 |
- .vacation.db files are now deleted in the user-modify event |
353 |
|
354 |
* Wed Nov 14 2001 Daniel van Raay <danielvr@caa.org.au> |
355 |
Tue Nov 14 2001 --> Tue Nov 13 2001 or Wed Nov 14 2001 or Tue Nov 20 2001 or .... |
356 |
- [0.2-2] |
357 |
- fixed bug in vacation script that delivered multiple bounces to users |
358 |
|
359 |
* Tue Sep 04 2001 Daniel van Raay <danielvr@caa.org.au> |
360 |
- [0.2-1] |
361 |
- added -j option to vacation command line |
362 |
- updated for compatibility with e-smith 4.1 |
363 |
|
364 |
* Wed Dec 27 2000 Daniel van Raay <danielvr@caa.org.au> |
365 |
- [0.1-1] |
366 |
- initial release |
367 |
|
368 |
%prep |
369 |
%setup |
370 |
%patch0 -p1 |
371 |
%patch1 -p1 |
372 |
%patch2 -p1 |
373 |
%patch3 -p1 |
374 |
%patch4 -p1 |
375 |
%patch5 -p1 |
376 |
%patch6 -p1 |
377 |
%patch7 -p1 |
378 |
%patch8 -p1 |
379 |
%patch9 -p1 |
380 |
%patch10 -p1 |
381 |
%patch11 -p1 |
382 |
%patch12 -p1 |
383 |
%patch13 -p1 |
384 |
%patch14 -p1 |
385 |
%patch15 -p1 |
386 |
%patch16 -p1 |
387 |
%patch17 -p1 |
388 |
%patch18 -p1 |
389 |
%patch19 -p1 |
390 |
%patch20 -p1 |
391 |
%patch21 -p1 |
392 |
%patch22 -p1 |
393 |
%patch23 -p1 |
394 |
%patch24 -p1 |
395 |
%patch25 -p1 |
396 |
%patch26 -p1 |
397 |
%patch27 -p1 |
398 |
%patch28 -p1 |
399 |
%patch29 -p1 |
400 |
|
401 |
%build |
402 |
perl createlinks |
403 |
|
404 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
405 |
for lexicon in $LEXICONS |
406 |
do |
407 |
/sbin/e-smith/validate-lexicon $lexicon |
408 |
done |
409 |
|
410 |
LINKS=$(find root/etc/e-smith/locale/ -type d -maxdepth 1 | sed 's/root\/etc\/e-smith\/locale\///') |
411 |
for link in $LINKS |
412 |
do |
413 |
/bin/ln -s uservacations root/etc/e-smith/locale/$link/etc/e-smith/web/functions/userpanel-vacation |
414 |
done |
415 |
|
416 |
%install |
417 |
rm -rf $RPM_BUILD_ROOT |
418 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
419 |
rm -f %{name}-%{version}-filelist |
420 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
421 |
--file '/usr/local/bin/vacation' 'attr(0755,root,root)' \ |
422 |
--file '/sbin/e-smith/vacation/check_vacation_dates.sh' 'attr(0755,root,root)' \ |
423 |
> %{name}-%{version}-filelist |
424 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
425 |
|
426 |
%clean |
427 |
rm -rf $RPM_BUILD_ROOT |
428 |
|
429 |
%pre |
430 |
%preun |
431 |
|
432 |
%post |
433 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
434 |
/sbin/e-smith/signal-event conf-userpanel |
435 |
fi |
436 |
|
437 |
if (systemctl list-unit-files |grep smanager) then |
438 |
echo "Smanager restart in spec file" |
439 |
/sbin/e-smith/signal-event smanager-refresh; |
440 |
fi |
441 |
|
442 |
%postun |
443 |
#uninstall |
444 |
if [ $1 = 0 ] ; then |
445 |
|
446 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
447 |
for db in $DBS ; do |
448 |
/sbin/e-smith/db $db delete userpanel-vacation 2>/dev/null |
449 |
/sbin/e-smith/db $db delete uservacations 2>/dev/null |
450 |
done |
451 |
|
452 |
#need to expand ~/.qmail for users who are still enabled |
453 |
/etc/e-smith/events/actions/qmail-update-user |
454 |
|
455 |
fi |
456 |
|
457 |
|
458 |
%files -f %{name}-%{version}-filelist |
459 |
%defattr(-,root,root) |