1 |
# $Id: smeserver-freepbx.spec,v 1.23 2023/01/04 05:25:17 jpp Exp $ |
# $Id: smeserver-freepbx.spec,v 1.27 2024/04/23 03:25:29 jpp Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
#%define fpbxversion 2.5.0 |
#%define fpbxversion 2.5.0 |
6 |
%define version 14 |
%define version 14 |
7 |
%define release 13 |
%define release 14 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
23 |
Patch6: smeserver-freepbx-14-bz10703-backup.patch |
Patch6: smeserver-freepbx-14-bz10703-backup.patch |
24 |
Patch7: smeserver-freepbx-14-bz11923-bz12256.patch |
Patch7: smeserver-freepbx-14-bz11923-bz12256.patch |
25 |
Patch8: smeserver-freepbx-14-go15.patch |
Patch8: smeserver-freepbx-14-go15.patch |
26 |
|
Patch9: smeserver-freepbx-14-bz12481-bz12506.patch |
27 |
|
|
28 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
29 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
83 |
|
|
84 |
|
|
85 |
%changelog |
%changelog |
86 |
* Wed Jan 04 2023 Jean-Philippe Pialasse <tests@pialasse.com> 14-12.sme |
* Mon Apr 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 14-14.sme |
87 |
|
- some logs not rotated [SME: 12506] |
88 |
|
- moving freepbx php error log from /var/log/php [SME: 12481] |
89 |
|
|
90 |
|
* Wed Jan 04 2023 Jean-Philippe Pialasse <tests@pialasse.com> 14-13.sme |
91 |
- fix permission denied on /usr/local/sbin/fwconsole from cron |
- fix permission denied on /usr/local/sbin/fwconsole from cron |
92 |
|
|
93 |
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme |
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme |
397 |
%patch6 -p1 |
%patch6 -p1 |
398 |
%patch7 -p1 |
%patch7 -p1 |
399 |
%patch8 -p1 |
%patch8 -p1 |
400 |
|
%patch9 -p1 |
401 |
|
rm -rf root/var/log/php |
402 |
|
|
403 |
%build |
%build |
404 |
# Build symlinks |
# Build symlinks |
408 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
409 |
|
|
410 |
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session |
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session |
411 |
|
%{__mkdir_p} $RPM_BUILD_ROOT/var/log/freepbx |
412 |
|
|
413 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
414 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
425 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
426 |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
427 |
--file /usr/sbin/safe_asterisk 'attr(0755,root,root)' \ |
--file /usr/sbin/safe_asterisk 'attr(0755,root,root)' \ |
428 |
--dir /var/log/php/freepbx 'attr(0770,root,asterisk)' \ |
--dir /var/log/freepbx 'attr(0770,root,asterisk)' \ |
429 |
--dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \ |
--dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \ |
430 |
--dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \ |
--dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \ |
431 |
|grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ |
|grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ |
445 |
chmod o+rwxt /tmp/ |
chmod o+rwxt /tmp/ |
446 |
chown root:root /tmp/ |
chown root:root /tmp/ |
447 |
fi |
fi |
448 |
|
if [ -f /var/log/php/freepbx/error.log ]; then |
449 |
|
mv /var/log/php/freepbx/* /var/log/freepbx/ >& /dev/null || : |
450 |
|
fi |
451 |
|
|
452 |
%preun |
%preun |
453 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |