1 |
# $Id: smeserver-vacation.spec,v 1.3 2020/05/19 14:34:51 brianr Exp $ |
# $Id: smeserver-vacation.spec,v 1.4 2020/06/12 05:52:10 brianr Exp $ |
2 |
# Authority: dungog |
# Authority: dungog |
3 |
# Name: Stephen Noble |
# Name: Stephen Noble |
4 |
|
|
5 |
%define name smeserver-vacation |
%define name smeserver-vacation |
6 |
%define version 1.1 |
%define version 1.1 |
7 |
%define release 29 |
%define release 30 |
8 |
Summary: SME Server enhancement to enable vacation messages for users. |
Summary: SME Server enhancement to enable vacation messages for users. |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
38 |
Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch |
Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch |
39 |
Patch23: smeserver-vacation-1.1-Better-display-dates-in-list.patch |
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 |
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 |
|
|
43 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
44 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
54 |
enable vacation for themselves and to modify their own message |
enable vacation for themselves and to modify their own message |
55 |
|
|
56 |
%changelog |
%changelog |
57 |
|
* Sat Oct 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-30.sme |
58 |
|
- Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052] |
59 |
|
- to smeserver-vacation-update event |
60 |
|
|
61 |
* Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme |
* Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme |
62 |
- Update for Apache-Mod-Proxy mode Server2 [SME:10927] |
- Update for Apache-Mod-Proxy mode Server2 [SME:10927] |
63 |
|
|
370 |
%patch22 -p1 |
%patch22 -p1 |
371 |
%patch23 -p1 |
%patch23 -p1 |
372 |
%patch24 -p1 |
%patch24 -p1 |
373 |
|
%patch25 -p1 |
374 |
|
|
375 |
%build |
%build |
376 |
perl createlinks |
perl createlinks |
407 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
408 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
409 |
fi |
fi |
410 |
/sbin/e-smith/signal-event manager2-refresh |
|
411 |
systemctl restart smanager |
#if (systemctl list-unit-files |grep smanager) then |
412 |
|
# echo "Smanager restart in spec file" |
413 |
|
# /sbin/e-smith/signal-event manager2-refresh; |
414 |
|
# systemctl restart smanager |
415 |
|
#else |
416 |
|
# echo "No smanager restart in spec file" |
417 |
|
#fi |
418 |
|
|
419 |
%postun |
%postun |
420 |
#uninstall |
#uninstall |