--- rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec 2022/04/17 01:46:29 1.7 +++ rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec 2022/04/17 02:09:01 1.8 @@ -1,4 +1,4 @@ -# $Id: smeserver-freepbx.spec,v 1.6 2022/03/28 03:56:02 jpp Exp $ +# $Id: smeserver-freepbx.spec,v 1.7 2022/04/17 01:46:29 jpp Exp $ # Authority: vip-ire # Name: Daniel Berteaud @@ -15,6 +15,7 @@ License: GPL Group: System/Servers Source: %{name}-%{version}.tar.gz Patch0: smeserver-freepbx-14-bz11940-bz9756-cron.patch +Patch1: smeserver-freepbx-14-bz11924-sounds.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot URL: http://www.freepbx.org/ @@ -74,6 +75,7 @@ This package provide the integration of * Sat Apr 16 2022 Jean-Philippe Pialasse %{version}-2.sme - fix huge amount of error if asterisk disabled [SME: 9756] - fix multiple email sent because of asterisk cron php path [SME: 11940] +- on uninstall remove asterisk crontab to avoid noise [SME: 10131] * Sun Mar 27 2022 Jean-Philippe Pialasse 14-1.sme - first version 14 [SME: 11613] @@ -97,6 +99,7 @@ This package provide the integration of * Mon Jan 20 2020 Jean-Philipe Pialasse 13-16.sme - add required modules to enable cel and cdr logging and search [SME: 10620] - add requires lame [SME: 9859] +- fix sounds ownership so they can be handled via gui [SME: 11924] * Mon Jan 29 2018 Jean-Philipe Pialasse 13-15.sme - fix warning tampered files in GUI [SME: 10496] @@ -333,6 +336,7 @@ This package provide the integration of %prep %setup -q -n %{name}-%{version} %patch0 -p1 +%patch1 -p1 %build # Build symlinks @@ -380,8 +384,15 @@ fi %preun if [ $1 = 0 ] ; then - /etc/rc.d/init.d/freepbx stop >& /dev/null || : + /usr/bin/systemctl stop freepbx >& /dev/null || : +fi +true +%postun +if [ $1 = 0 ] ; then + #remove cron for asterisk on uninstallation to avoid noise + /usr/bin/crontab -u asterisk -r >& /dev/null || : fi - true + +