/[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.3 by jpp, Fri Mar 25 04:44:48 2022 UTC Revision 1.26 by jpp, Tue Apr 23 03:09:23 2024 UTC
# Line 1  Line 1 
1  # $Id: smeserver-freepbx.spec,v 1.2 2021/11/11 04:56:32 jpp Exp $  # $Id: smeserver-freepbx.spec,v 1.25 2023/02/05 16:54:49 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 13  %define version 14
7  %define release 17  %define release 14
8  %define name smeserver-freepbx  %define name smeserver-freepbx
9    
10  Summary: Asterisk web GUI  Summary: Asterisk web GUI
# Line 14  Release: %{release}%{?dist} Line 14  Release: %{release}%{?dist}
14  License: GPL  License: GPL
15  Group: System/Servers  Group: System/Servers
16  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
17    Patch0: smeserver-freepbx-14-bz11940-bz9756-cron.patch
18  Patch0: smeserver-freepbx-13.bz9702.udpports.patch  Patch1: smeserver-freepbx-14-bz11924-sounds.patch
19  Patch1: smeserver-freepbx-13.bz9744.patch  Patch2: smeserver-freepbx-14-bz11986-service-fwconsole.patch
20  Patch2: smeserver-freepbx-13.bz9702-2.patch  Patch3: smeserver-freepbx-14-bz12009-backup.patch
21  Patch3: smeserver-freepbx-13.bz9760.patch  Patch4: smeserver-freepbx-14-bz12046-httpd24.patch
22  Patch4: smeserver-freepbx-13.bz9918.defaultUDPports.patch  Patch5: smeserver-freepbx-14-bz12226.patch
23  Patch5: smeserver-freepbx-13.bz9860.AutoUpgradeModules.patch  Patch6: smeserver-freepbx-14-bz10703-backup.patch
24  Patch6: smeserver-freepbx-13.bz9637.backupFBX.patch  Patch7: smeserver-freepbx-14-bz11923-bz12256.patch
25  Patch7: smeserver-freepbx-13.bz10120.noiseAmportal.patch  Patch8: smeserver-freepbx-14-go15.patch
26  Patch8: smeserver-freepbx-13.bz10268.updatetktauth.patch  Patch9: smeserver-freepbx-14-bz12481-bz12506.patch
 Patch9: smeserver-freepbx-13.bz10496.missing-tampered-files.patch  
 Patch10: smeserver-freepbx-13.bz10503.DeviceAndUser.patch  
 #### start SME10 patch  
 Patch11: smeserver-freepbx-bz11613-sme10.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 37  BuildRequires: tar Line 33  BuildRequires: tar
33    
34  Requires: mariadb  Requires: mariadb
35  Requires: nodejs >= 10  Requires: nodejs >= 10
36  #Requires: php-pear php-cgi php-common php-curl php-mbstring php-gd php-mysql php-gettext php-bcmath php-zip php-xml php-imap php-json php-process php-snmp  Requires: jq
37    # freepbx 14 requires php56
38    Requires: php56-php-pear php56-php-cgi php56-php-common php56-php-curl php56-php-mbstring php56-php-gd php56-php-mysql php56-php-gettext php56-php-bcmath php56-php-zip php56-php-xml php56-php-imap php56-php-json php56-php-process php56-php-snmp
39    # freepbx 15 and 16
40  Requires: php74-php-pear php74-php-cgi php74-php-common php74-php-curl php74-php-mbstring php74-php-gd php74-php-mysql php74-php-gettext php74-php-bcmath php74-php-zip php74-php-xml php74-php-imap php74-php-json php74-php-process php74-php-snmp  Requires: php74-php-pear php74-php-cgi php74-php-common php74-php-curl php74-php-mbstring php74-php-gd php74-php-mysql php74-php-gettext php74-php-bcmath php74-php-zip php74-php-xml php74-php-imap php74-php-json php74-php-process php74-php-snmp
41    # freepbx 16
42    Requires: php80-php-pear php80-php-cgi php80-php-common php80-php-curl php80-php-mbstring php80-php-gd php80-php-mysql php80-php-gettext php80-php-bcmath php80-php-zip php80-php-xml php80-php-imap php80-php-json php80-php-process php80-php-snmp
43    
44  Requires: httpd  Requires: httpd
45  Requires: php-pear  Requires: php-pear
46  Requires: /usr/sbin/asterisk  Requires: /usr/sbin/asterisk
 # not available for SME10 need to find module for mysql Requires: asterisk-addons  
47  #Requires: dahdi-tools  #Requires: dahdi-tools
48  #Requires: dahdi-linux  #Requires: dahdi-linux
49  Requires: sox  Requires: sox
# Line 50  Requires: mod_auth_tkt Line 51  Requires: mod_auth_tkt
51  Requires: e-smith-base  Requires: e-smith-base
52  Requires: freepbx-src  Requires: freepbx-src
53  Requires: asterisk-sounds-core-en-ulaw    Requires: asterisk-sounds-core-en-ulaw  
 # not available for sme10 Requires: asterisk-sounds-extra-en-ulaw  
 # not available for sme10 Requires: asterisk-resample  
54  Requires: asterisk-voicemail  Requires: asterisk-voicemail
55  Requires: asterisk-configs  Requires: asterisk-configs
56  #SME10  #SME10
57  Requires: asterisk-mysql asterisk-odbc asterisk-pjsip asterisk-sip  asterisk-festival asterisk-moh-opsound asterisk-snmp asterisk-mp3 asterisk-sounds-core-en asterisk-moh-opsound  Requires: asterisk-mysql asterisk-odbc asterisk-pjsip asterisk-sip  asterisk-festival asterisk-moh-opsound asterisk-snmp asterisk-mp3 asterisk-sounds-core-en asterisk-moh-opsound
58    Requires: asterisk-voicemail-plain
59  # conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain  # conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain
60  Requires: ffmpeg  Requires: ffmpeg
61  Requires: mpg123  Requires: mpg123
# Line 64  Requires: unixODBC Line 64  Requires: unixODBC
64  Requires: asterisk-odbc  Requires: asterisk-odbc
65  Requires: lame  Requires: lame
66  Requires: xz  Requires: xz
67    Requires: asterisk-ael asterisk-iax2 asterisk-fax asterisk-ldap asterisk-misdn
68    Requires: MySQL-python opus nmap icu vsftpd libicu-devel gcc-c++
69    Requires: asterisk-moh-opsound-alaw asterisk-moh-opsound-g722 asterisk-moh-opsound-g729 asterisk-moh-opsound-gsm asterisk-moh-opsound-siren14 asterisk-moh-opsound-siren7 asterisk-moh-opsound-sln16 asterisk-moh-opsound-ulaw asterisk-moh-opsound-wav
70    Requires: asterisk-sounds-core-en-alaw asterisk-sounds-core-en-g722 asterisk-sounds-core-en-g729 asterisk-sounds-core-en-gsm asterisk-sounds-core-en-siren14 asterisk-sounds-core-en-siren7 asterisk-sounds-core-en-sln16 asterisk-sounds-core-en-ulaw asterisk-sounds-core-en-wav
71    # Requires: asterisk-sounds-core-fr-alaw asterisk-sounds-core-fr-g722 asterisk-sounds-core-fr-g729 asterisk-sounds-core-fr-gsm asterisk-sounds-core-fr-siren14 asterisk-sounds-core-fr-siren7 asterisk-sounds-core-fr-sln16 asterisk-sounds-core-fr-ulaw asterisk-sounds-core-fr-wav
72    # Requires:  asterisk-sounds-core-it-alaw asterisk-sounds-core-it-g722 asterisk-sounds-core-it-g729 asterisk-sounds-core-it-gsm asterisk-sounds-core-it-siren14 asterisk-sounds-core-it-siren7 asterisk-sounds-core-it-sln16 asterisk-sounds-core-it-ulaw asterisk-sounds-core-it-wav
73    # Requires: asterisk-sounds-core-es-alaw asterisk-sounds-core-es-g722 asterisk-sounds-core-es-g729 asterisk-sounds-core-es-gsm asterisk-sounds-core-es-siren14 asterisk-sounds-core-es-siren7 asterisk-sounds-core-es-sln16 asterisk-sounds-core-es-ulaw asterisk-sounds-core-es-wav
74    Requires: e-smith-apache >= 2.6.0-19
75    Requires: smeserver-php >= 3.0.0-43
76  #Buildarch: noarch  #Buildarch: noarch
77  AutoReqProv: no  AutoReqProv: no
78    
# Line 75  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
91    - 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
94    - fix bugs installing FPBX 15
95    - fix amportal alerts [SME: 12259]
96    - compatible FBX 16 [SME: 12276]
97    - fix duplicate logrotate [SME: 12237]
98    - force php memory on install [SME: 10221]
99    
100    * Tue Dec 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-10.sme
101    - fix backup for FreePBX 15 and higher [SME: 12256]
102    - make compatible up to FreePBX 16 [SME: 11923]
103    
104    * Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-9.sme
105    - improve backup  [SME: 10703]
106    
107    * Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-8.sme
108    - fix patch for asterisk crontab [SME: 12227]
109    
110    * Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-7.sme
111    - fix voicemail not visible in UCP [SME: 12254]
112      force asterisk-voicemail-plain
113    
114    * Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-6.sme
115    - fix creation of folder preventing migration [SME: 12226]
116    
117    * Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 14-5.sme
118    - Re-build and link to latest devtools [SME: 11997]
119    
120    * Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-4.sme
121    - add to core backup [SME: 12009]
122    - httpd 2.4 syntax [SME: 12046]
123    
124    * Tue May 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-3.sme
125    - Re-build and link to latest devtools service file fwconsole path [SME: 11986]
126    
127    * Sat Apr 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-2.sme
128    - Re-build and link to latest devtools huge amount of error if asterisk disabled [SME: 9756]
129    - Re-build and link to latest devtools multiple email sent because of asterisk cron php path [SME: 11940]
130    - on uninstall remove asterisk crontab to avoid noise [SME: 10131]
131    - allow access to sounds folder for gui [SME: 11924]
132    
133    * Sun Mar 27 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-1.sme
134    - first version 14 [SME: 11613]
135    
136  * Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme  * Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme
137  - first import to SME10 [SME: 11613]  - first import to SME10 [SME: 11613]
138  - make it Freepbx 14 compatible [SME: 10705]   - make it Freepbx 14 compatible [SME: 10705] 
139    add dependencies for SME10 mariadb nodejs >= 10 php74*    add dependencies for SME10 mariadb nodejs >= 10 php70*
140    remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons    remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons
141    remove double owned folders /etc/asterisk /var/lib/asterisk    remove double owned folders /etc/asterisk /var/lib/asterisk
142    systemd ready for asterisk(disabled), freepbx, httpd-fpbx    systemd ready for asterisk(disabled), freepbx, httpd-fpbx
143    smeserver-freepbx-update event created NEED TEST    smeserver-freepbx-update event created NEED TEST
144    php74-php-fpm fragment    php70-php-fpm fragment
145    update httpd-fpbx template for php-fpm use    update httpd-fpbx template for php-fpm use
146    TODO : update httpd-e-smith to use php-fpm for fpbx    update httpd-e-smith to use php-fpm for fpbx
147    TODO : update install script for php74    update install script for php74
148    add a copy of safe_asterisk    add a copy of safe_asterisk
149    TODO : create php folders and set rights    create php folders and set rights
150    improve logrotate    improve logrotate
151    
152  * Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 13-16.sme  * Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 13-16.sme
153  - add required modules to enable cel and cdr logging and search [SME: 10620]  - add required modules to enable cel and cdr logging and search [SME: 10620]
154  - add requires lame [SME: 9859]  - add requires lame [SME: 9859]
155    - Re-build and link to latest devtools sounds ownership so they can be handled via gui [SME: 11924]
156    
157  * Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme  * Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme
158  - fix warning tampered files in GUI [SME: 10496]  - Re-build and link to latest devtools warning tampered files in GUI [SME: 10496]
159  - remove DeviceAndUser property [SME: 10503]  - remove DeviceAndUser property [SME: 10503]
160    
161  * Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-14.sme  * Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-14.sme
162  - update TKT auth parameter for SME 9.2 [SME: 10268]  - update TKT auth parameter for SME 9.2 [SME: 10268]
163    
164  * Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-13.sme  * Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-13.sme
165  - fix noise rebooting and restarting freepbx [SME: 10120]  - Re-build and link to latest devtools noise rebooting and restarting freepbx [SME: 10120]
166    
167  * Wed Jan 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-11.sme  * Wed Jan 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-11.sme
168  - NFR: auto backup of whole FBX config during pre-backup event [SME: 9637]  - NFR: auto backup of whole FBX config during pre-backup event [SME: 9637]
# Line 112  This package provide the integration of Line 171  This package provide the integration of
171  - weekly backup is also done.  - weekly backup is also done.
172    
173  * Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-10.sme  * Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-10.sme
174  - fix Missing HTML5 format converters  [SME: 9859]  - Re-build and link to latest devtools Missing HTML5 format converters  [SME: 9859]
175  - added requirement for mpg123 and ffmpeg available in smecontribs  - added requirement for mpg123 and ffmpeg available in smecontribs
176    
177  * Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-9.sme  * Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-9.sme
# Line 122  This package provide the integration of Line 181  This package provide the integration of
181  - autoupgrade modules [SME: 9860]  - autoupgrade modules [SME: 9860]
182    
183  * Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme  * Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme
184  - fix wrong default UDPPorts on new install [SME: 9918]  - Re-build and link to latest devtools wrong default UDPPorts on new install [SME: 9918]
185    
186  * Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme  * Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme
187  - fix error while backup with workstation [SME: 9760]  - Re-build and link to latest devtools error while backup with workstation [SME: 9760]
188    
189  * Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme  * Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme
190  -fix typo in smeserver-freepbx-13.bz9744.patch  -fix typo in smeserver-freepbx-13.bz9744.patch
191    
192  * Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme  * Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme
193  - fix [SME: 9702]  - Re-build and link to latest devtools [SME: 9702]
194  - corrected syntax for port range  - corrected syntax for port range
195    
196  * Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme  * Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme
197  - fix [SME: 9744]  - Re-build and link to latest devtools [SME: 9744]
198  - fix wrong /tmp folder permission after update  - Re-build and link to latest devtools wrong /tmp folder permission after update
199  - Thank you Hsing-Foo Wang.  - Thank you Hsing-Foo Wang.
200    
201  * Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme  * Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme
202  - fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702]  - Re-build and link to latest devtools wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702]
203    
204  * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-1.sme  * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-1.sme
205  - bump version to current Freepbx version 13  - bump version to current Freepbx version 13
# Line 149  This package provide the integration of Line 208  This package provide the integration of
208  - add all needed port for Freepbx sip pjsip and RTP [SME: 9495]  - add all needed port for Freepbx sip pjsip and RTP [SME: 9495]
209    
210  * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme  * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme
211  - fix missing config files (requires asterisk-configs) [SME: 9577]  - Re-build and link to latest devtools missing config files (requires asterisk-configs) [SME: 9577]
212  - fix recuring reconfiguration error while installing digium phone module [SME: 9575]  - Re-build and link to latest devtools recuring reconfiguration error while installing digium phone module [SME: 9575]
213  - added port 5061 for tls to TCP ports [SME: 9576]  - added port 5061 for tls to TCP ports [SME: 9576]
214    
215  * Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme  * Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme
216  - fix wrong logrotate pattern [SME: 9516]  - Re-build and link to latest devtools wrong logrotate pattern [SME: 9516]
217  - as the contrib is only in smedev, i do not fix existing log files badly rotated  - as the contrib is only in smedev, i do not fix existing log files badly rotated
218    
219  * Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme  * Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme
# Line 309  This package provide the integration of Line 368  This package provide the integration of
368  - spec cleanup  - spec cleanup
369    
370  * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]  * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
371  - fix logrotate issue  - Re-build and link to latest devtools logrotate issue
372    
373  * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]  * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
374  - split freepbx sources in a separate package (freepbx-src)  - split freepbx sources in a separate package (freepbx-src)
# Line 328  This package provide the integration of Line 387  This package provide the integration of
387  - initial release  - initial release
388    
389  %prep  %prep
   
390  %setup -q -n %{name}-%{version}  %setup -q -n %{name}-%{version}
391  %patch0 -p1  %patch0 -p1
392  %patch1 -p1  %patch1 -p1
# Line 340  This package provide the integration of Line 398  This package provide the integration of
398  %patch7 -p1  %patch7 -p1
399  %patch8 -p1  %patch8 -p1
400  %patch9 -p1  %patch9 -p1
 %patch10 -p1  
   
 # until rebuilt of a smeserver-freepbx tar file:  
 rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser  
 %patch11 -p1  
401    
402  %build  %build
403  # Build symlinks  # Build symlinks
# Line 357  rm -rf $RPM_BUILD_ROOT Line 410  rm -rf $RPM_BUILD_ROOT
410    
411  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
412  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
413            --file /sbin/e-smith/fwconsole 'attr(0755,root,root)' \
414          --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \          --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
415          --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \          --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
416          --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \          --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
# Line 364  rm -rf $RPM_BUILD_ROOT Line 418  rm -rf $RPM_BUILD_ROOT
418          --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \          --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \
419          --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \          --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \
420          --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \          --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \
         --dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \  
421          --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \          --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \
422          --file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \          --file /usr/share/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \
423          --file /etc/logrotate.d/asterisk 'config(noreplace)' \          --file /etc/logrotate.d/asterisk 'config(noreplace)' \
424          --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \          --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \
425          --file /usr/local/bin/safe_asterisk  'attr(0755,root,root)' \          --file /usr/sbin/safe_asterisk  'attr(0755,root,root)' \
426            --dir /var/log/freepbx 'attr(0770,root,asterisk)' \
427            --dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \
428            --dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \
429  |grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \  |grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \
430           > %{name}-%{version}-%{release}-filelist           > %{name}-%{version}-%{release}-filelist
431    
# Line 387  if [ `stat -c %U /tmp` == "asterisk"  ]; Line 443  if [ `stat -c %U /tmp` == "asterisk"  ];
443          chmod o+rwxt /tmp/          chmod o+rwxt /tmp/
444          chown root:root /tmp/          chown root:root /tmp/
445  fi  fi
446    if [ -f /var/log/php/freepbx/error.log ]; then
447            mv /var/log/php/freepbx/* /var/log/freepbx/  >& /dev/null || :
448    fi
449    
450  %preun  %preun
451  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
452    /etc/rc.d/init.d/freepbx stop >& /dev/null || :    /usr/bin/systemctl stop  freepbx  >& /dev/null || :
453  fi  fi
   
454  true  true
455    %postun
456    if [ $1 = 0 ] ; then
457       #remove cron for asterisk on uninstallation to avoid noise
458       /usr/bin/crontab -u asterisk -r  >& /dev/null || :
459    fi
460    true
461    
462    
463    


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