1 |
# $Id: smeserver-freepbx.spec,v 1.34 2020/01/21 08:52:40 jpp Exp $ |
# $Id: smeserver-freepbx.spec,v 1.24 2023/02/05 16:43:05 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 16 |
%define release 13 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
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 |
|
Patch8: smeserver-freepbx-13.bz10268.updatetktauth.patch |
|
|
Patch9: smeserver-freepbx-13.bz10496.missing-tampered-files.patch |
|
|
Patch10: smeserver-freepbx-13.bz10503.DeviceAndUser.patch |
|
26 |
|
|
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
30 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
31 |
BuildRequires: tar |
BuildRequires: tar |
32 |
|
|
33 |
Requires: mysql |
Requires: mariadb |
34 |
|
Requires: nodejs >= 10 |
35 |
|
Requires: jq |
36 |
|
# freepbx 14 requires php56 |
37 |
|
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 |
38 |
|
# freepbx 15 and 16 |
39 |
|
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 |
40 |
|
# freepbx 16 |
41 |
|
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 |
42 |
|
|
43 |
Requires: httpd |
Requires: httpd |
44 |
Requires: php-pear |
Requires: php-pear |
45 |
Requires: /usr/sbin/asterisk |
Requires: /usr/sbin/asterisk |
46 |
Requires: asterisk-addons |
#Requires: dahdi-tools |
47 |
Requires: dahdi-tools |
#Requires: dahdi-linux |
|
Requires: dahdi-linux |
|
48 |
Requires: sox |
Requires: sox |
49 |
Requires: mod_auth_tkt |
Requires: mod_auth_tkt |
50 |
Requires: e-smith-base |
Requires: e-smith-base |
51 |
Requires: freepbx-src |
Requires: freepbx-src |
52 |
Requires: asterisk-sounds-core-en-ulaw |
Requires: asterisk-sounds-core-en-ulaw |
|
Requires: asterisk-sounds-extra-en-ulaw |
|
|
Requires: asterisk-resample |
|
53 |
Requires: asterisk-voicemail |
Requires: asterisk-voicemail |
54 |
Requires: asterisk-configs |
Requires: asterisk-configs |
55 |
|
#SME10 |
56 |
|
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 |
57 |
|
Requires: asterisk-voicemail-plain |
58 |
|
# conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain |
59 |
Requires: ffmpeg |
Requires: ffmpeg |
60 |
Requires: mpg123 |
Requires: mpg123 |
61 |
Requires: mysql-connector-odbc |
Requires: mysql-connector-odbc |
62 |
Requires: unixODBC |
Requires: unixODBC |
63 |
Requires: asterisk-odbc |
Requires: asterisk-odbc |
64 |
Requires: lame |
Requires: lame |
65 |
Requires: e-smith-manager >= 2.6.0-22 |
Requires: xz |
66 |
|
Requires: asterisk-ael asterisk-iax2 asterisk-fax asterisk-ldap asterisk-misdn |
67 |
|
Requires: MySQL-python opus nmap icu vsftpd libicu-devel gcc-c++ |
68 |
|
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 |
69 |
|
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 |
70 |
|
# 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 |
71 |
|
# 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 |
72 |
|
# 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 |
73 |
|
Requires: e-smith-apache >= 2.6.0-19 |
74 |
|
Requires: smeserver-php >= 3.0.0-43 |
75 |
#Buildarch: noarch |
#Buildarch: noarch |
76 |
AutoReqProv: no |
AutoReqProv: no |
77 |
|
|
82 |
|
|
83 |
|
|
84 |
%changelog |
%changelog |
85 |
|
* Wed Jan 04 2023 Jean-Philippe Pialasse <tests@pialasse.com> 14-13.sme |
86 |
|
- fix permission denied on /usr/local/sbin/fwconsole from cron |
87 |
|
|
88 |
|
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme |
89 |
|
- fix bugs installing FPBX 15 |
90 |
|
- fix amportal alerts [SME: 12259] |
91 |
|
- compatible FBX 16 [SME: 12276] |
92 |
|
- fix duplicate logrotate [SME: 12237] |
93 |
|
- force php memory on install [SME: 10221] |
94 |
|
|
95 |
|
* Tue Dec 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-10.sme |
96 |
|
- fix backup for FreePBX 15 and higher [SME: 12256] |
97 |
|
- make compatible up to FreePBX 16 [SME: 11923] |
98 |
|
|
99 |
|
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-9.sme |
100 |
|
- improve backup [SME: 10703] |
101 |
|
|
102 |
|
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-8.sme |
103 |
|
- fix patch for asterisk crontab [SME: 12227] |
104 |
|
|
105 |
|
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-7.sme |
106 |
|
- fix voicemail not visible in UCP [SME: 12254] |
107 |
|
force asterisk-voicemail-plain |
108 |
|
|
109 |
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-6.sme |
110 |
|
- fix creation of folder preventing migration [SME: 12226] |
111 |
|
|
112 |
|
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 14-5.sme |
113 |
|
- Re-build and link to latest devtools [SME: 11997] |
114 |
|
|
115 |
|
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-4.sme |
116 |
|
- add to core backup [SME: 12009] |
117 |
|
- httpd 2.4 syntax [SME: 12046] |
118 |
|
|
119 |
|
* Tue May 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-3.sme |
120 |
|
- Re-build and link to latest devtools service file fwconsole path [SME: 11986] |
121 |
|
|
122 |
|
* Sat Apr 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-2.sme |
123 |
|
- Re-build and link to latest devtools huge amount of error if asterisk disabled [SME: 9756] |
124 |
|
- Re-build and link to latest devtools multiple email sent because of asterisk cron php path [SME: 11940] |
125 |
|
- on uninstall remove asterisk crontab to avoid noise [SME: 10131] |
126 |
|
- allow access to sounds folder for gui [SME: 11924] |
127 |
|
|
128 |
|
* Sun Mar 27 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-1.sme |
129 |
|
- first version 14 [SME: 11613] |
130 |
|
|
131 |
|
* Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme |
132 |
|
- first import to SME10 [SME: 11613] |
133 |
|
- make it Freepbx 14 compatible [SME: 10705] |
134 |
|
add dependencies for SME10 mariadb nodejs >= 10 php70* |
135 |
|
remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons |
136 |
|
remove double owned folders /etc/asterisk /var/lib/asterisk |
137 |
|
systemd ready for asterisk(disabled), freepbx, httpd-fpbx |
138 |
|
smeserver-freepbx-update event created NEED TEST |
139 |
|
php70-php-fpm fragment |
140 |
|
update httpd-fpbx template for php-fpm use |
141 |
|
update httpd-e-smith to use php-fpm for fpbx |
142 |
|
update install script for php74 |
143 |
|
add a copy of safe_asterisk |
144 |
|
create php folders and set rights |
145 |
|
improve logrotate |
146 |
|
|
147 |
* 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 |
148 |
- 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] |
149 |
- add requires lame [SME: 9859] |
- add requires lame [SME: 9859] |
150 |
|
- Re-build and link to latest devtools sounds ownership so they can be handled via gui [SME: 11924] |
151 |
|
|
152 |
* 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 |
153 |
- fix warning tampered files in GUI [SME: 10496] |
- Re-build and link to latest devtools warning tampered files in GUI [SME: 10496] |
154 |
- remove DeviceAndUser property [SME: 10503] |
- remove DeviceAndUser property [SME: 10503] |
155 |
|
|
156 |
* 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 |
157 |
- update TKT auth parameter for SME 9.2 [SME: 10268] |
- update TKT auth parameter for SME 9.2 [SME: 10268] |
158 |
|
|
159 |
* 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 |
160 |
- fix noise rebooting and restarting freepbx [SME: 10120] |
- Re-build and link to latest devtools noise rebooting and restarting freepbx [SME: 10120] |
161 |
|
|
162 |
* 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 |
163 |
- 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] |
166 |
- weekly backup is also done. |
- weekly backup is also done. |
167 |
|
|
168 |
* 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 |
169 |
- fix Missing HTML5 format converters [SME: 9859] |
- Re-build and link to latest devtools Missing HTML5 format converters [SME: 9859] |
170 |
- added requirement for mpg123 and ffmpeg available in smecontribs |
- added requirement for mpg123 and ffmpeg available in smecontribs |
171 |
|
|
172 |
* 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 |
176 |
- autoupgrade modules [SME: 9860] |
- autoupgrade modules [SME: 9860] |
177 |
|
|
178 |
* 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 |
179 |
- fix wrong default UDPPorts on new install [SME: 9918] |
- Re-build and link to latest devtools wrong default UDPPorts on new install [SME: 9918] |
180 |
|
|
181 |
* 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 |
182 |
- fix error while backup with workstation [SME: 9760] |
- Re-build and link to latest devtools error while backup with workstation [SME: 9760] |
183 |
|
|
184 |
* 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 |
185 |
-fix typo in smeserver-freepbx-13.bz9744.patch |
-fix typo in smeserver-freepbx-13.bz9744.patch |
186 |
|
|
187 |
* 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 |
188 |
- fix [SME: 9702] |
- Re-build and link to latest devtools [SME: 9702] |
189 |
- corrected syntax for port range |
- corrected syntax for port range |
190 |
|
|
191 |
* 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 |
192 |
- fix [SME: 9744] |
- Re-build and link to latest devtools [SME: 9744] |
193 |
- fix wrong /tmp folder permission after update |
- Re-build and link to latest devtools wrong /tmp folder permission after update |
194 |
- Thank you Hsing-Foo Wang. |
- Thank you Hsing-Foo Wang. |
195 |
|
|
196 |
* 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 |
197 |
- 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] |
198 |
|
|
199 |
* 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 |
200 |
- bump version to current Freepbx version 13 |
- bump version to current Freepbx version 13 |
203 |
- add all needed port for Freepbx sip pjsip and RTP [SME: 9495] |
- add all needed port for Freepbx sip pjsip and RTP [SME: 9495] |
204 |
|
|
205 |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme |
206 |
- fix missing config files (requires asterisk-configs) [SME: 9577] |
- Re-build and link to latest devtools missing config files (requires asterisk-configs) [SME: 9577] |
207 |
- 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] |
208 |
- added port 5061 for tls to TCP ports [SME: 9576] |
- added port 5061 for tls to TCP ports [SME: 9576] |
209 |
|
|
210 |
* Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme |
* Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme |
211 |
- fix wrong logrotate pattern [SME: 9516] |
- Re-build and link to latest devtools wrong logrotate pattern [SME: 9516] |
212 |
- 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 |
213 |
|
|
214 |
* 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 |
363 |
- spec cleanup |
- spec cleanup |
364 |
|
|
365 |
* 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] |
366 |
- fix logrotate issue |
- Re-build and link to latest devtools logrotate issue |
367 |
|
|
368 |
* 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] |
369 |
- split freepbx sources in a separate package (freepbx-src) |
- split freepbx sources in a separate package (freepbx-src) |
382 |
- initial release |
- initial release |
383 |
|
|
384 |
%prep |
%prep |
|
|
|
385 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
386 |
%patch0 -p1 |
%patch0 -p1 |
387 |
%patch1 -p1 |
%patch1 -p1 |
392 |
%patch6 -p1 |
%patch6 -p1 |
393 |
%patch7 -p1 |
%patch7 -p1 |
394 |
%patch8 -p1 |
%patch8 -p1 |
|
%patch9 -p1 |
|
|
%patch10 -p1 |
|
|
|
|
|
# until rebuilt of a smeserver-freepbx tar file: |
|
|
rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser |
|
395 |
|
|
396 |
%build |
%build |
397 |
# Build symlinks |
# Build symlinks |
404 |
|
|
405 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
406 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
407 |
|
--file /sbin/e-smith/fwconsole 'attr(0755,root,root)' \ |
408 |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
409 |
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
410 |
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |
412 |
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
413 |
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
414 |
--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)' \ |
|
415 |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
416 |
--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)' \ |
417 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
418 |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
419 |
|
--file /usr/sbin/safe_asterisk 'attr(0755,root,root)' \ |
420 |
|
--dir /var/log/php/freepbx 'attr(0770,root,asterisk)' \ |
421 |
|
--dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \ |
422 |
|
--dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \ |
423 |
|
|grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ |
424 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
425 |
|
|
426 |
%clean |
%clean |
440 |
|
|
441 |
%preun |
%preun |
442 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
443 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/usr/bin/systemctl stop freepbx >& /dev/null || : |
444 |
|
fi |
445 |
|
true |
446 |
|
%postun |
447 |
|
if [ $1 = 0 ] ; then |
448 |
|
#remove cron for asterisk on uninstallation to avoid noise |
449 |
|
/usr/bin/crontab -u asterisk -r >& /dev/null || : |
450 |
fi |
fi |
|
|
|
451 |
true |
true |
452 |
|
|
453 |
|
|
454 |
|
|