/[smecontribs]/rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec
ViewVC logotype

Diff of /rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.25 by jpp, Sun Feb 5 16:54:49 2023 UTC Revision 1.27 by jpp, Tue Apr 23 03:25:29 2024 UTC
# Line 1  Line 1 
1  # $Id: smeserver-freepbx.spec,v 1.24 2023/02/05 16:43:05 jpp Exp $  # $Id: smeserver-freepbx.spec,v 1.26 2024/04/23 03:09:23 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
# Line 23  Patch5: smeserver-freepbx-14-bz12226.pat Line 23  Patch5: smeserver-freepbx-14-bz12226.pat
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/
# Line 82  This package provide the integration of Line 83  This package provide the integration of
83    
84    
85  %changelog  %changelog
86    * 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  * 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    
# Line 392  This package provide the integration of Line 397  This package provide the integration of
397  %patch6 -p1  %patch6 -p1
398  %patch7 -p1  %patch7 -p1
399  %patch8 -p1  %patch8 -p1
400    %patch9 -p1
401    rm root/var/log/php
402    
403  %build  %build
404  # Build symlinks  # Build symlinks
# Line 401  perl createlinks Line 408  perl createlinks
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 \
# Line 417  rm -rf $RPM_BUILD_ROOT Line 425  rm -rf $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$' \
# Line 437  if [ `stat -c %U /tmp` == "asterisk"  ]; Line 445  if [ `stat -c %U /tmp` == "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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed