1 |
# $Id: smeserver-freepbx.spec,v 1.20 2022/12/15 05:08:55 jpp Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
#%define fpbxversion 2.5.0 |
6 |
%define version 14 |
7 |
%define release 11 |
8 |
%define name smeserver-freepbx |
9 |
|
10 |
Summary: Asterisk web GUI |
11 |
Name: %{name} |
12 |
Version: %{version} |
13 |
Release: %{release}%{?dist} |
14 |
License: GPL |
15 |
Group: System/Servers |
16 |
Source: %{name}-%{version}.tar.gz |
17 |
Patch0: smeserver-freepbx-14-bz11940-bz9756-cron.patch |
18 |
Patch1: smeserver-freepbx-14-bz11924-sounds.patch |
19 |
Patch2: smeserver-freepbx-14-bz11986-service-fwconsole.patch |
20 |
Patch3: smeserver-freepbx-14-bz12009-backup.patch |
21 |
Patch4: smeserver-freepbx-14-bz12046-httpd24.patch |
22 |
Patch5: smeserver-freepbx-14-bz12226.patch |
23 |
Patch6: smeserver-freepbx-14-bz10703-backup.patch |
24 |
Patch7: smeserver-freepbx-14-bz11923-bz12256.patch |
25 |
Patch8: smeserver-freepbx-14-go15.patch |
26 |
|
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
URL: http://www.freepbx.org/ |
29 |
|
30 |
BuildRequires: e-smith-devtools |
31 |
BuildRequires: tar |
32 |
|
33 |
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 |
44 |
Requires: php-pear |
45 |
Requires: /usr/sbin/asterisk |
46 |
#Requires: dahdi-tools |
47 |
#Requires: dahdi-linux |
48 |
Requires: sox |
49 |
Requires: mod_auth_tkt |
50 |
Requires: e-smith-base |
51 |
Requires: freepbx-src |
52 |
Requires: asterisk-sounds-core-en-ulaw |
53 |
Requires: asterisk-voicemail |
54 |
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 |
60 |
Requires: mpg123 |
61 |
Requires: mysql-connector-odbc |
62 |
Requires: unixODBC |
63 |
Requires: asterisk-odbc |
64 |
Requires: lame |
65 |
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 |
76 |
AutoReqProv: no |
77 |
|
78 |
|
79 |
%description |
80 |
FreePBX is a Standardised Implementation of Asterisk that gives you a GUI to manage your system. If you have looked into Asterisk, you would know that it does not come with any built in programming. You cannot plug a phone into it and make it work without editing configuration files, writing dialplans, and various messing about. FreePBX simplifies this by giving you a pre-written set of dialplans that allow you to have a fully functional PBX pretty much straight away. |
81 |
This package provide the integration of FreePBX on SME Server. |
82 |
|
83 |
|
84 |
%changelog |
85 |
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme |
86 |
- fix bugs installing FPBX 15 |
87 |
|
88 |
* Tue Dec 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-10.sme |
89 |
- fix backup for FreePBX 15 and higher [SME: 12256] |
90 |
- make compatible up to FreePBX 16 [SME: 11923] |
91 |
|
92 |
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-9.sme |
93 |
- improve backup [SME: 10703] |
94 |
|
95 |
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-8.sme |
96 |
- fix patch for asterisk crontab [SME: 12227] |
97 |
|
98 |
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-7.sme |
99 |
- fix voicemail not visible in UCP [SME: 12254] |
100 |
force asterisk-voicemail-plain |
101 |
|
102 |
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-6.sme |
103 |
- fix creation of folder preventing migration [SME: 12226] |
104 |
|
105 |
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 14-5.sme |
106 |
- Re-build and link to latest devtools [SME: 11997] |
107 |
|
108 |
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-4.sme |
109 |
- add to core backup [SME: 12009] |
110 |
- httpd 2.4 syntax [SME: 12046] |
111 |
|
112 |
* Tue May 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-3.sme |
113 |
- Re-build and link to latest devtools service file fwconsole path [SME: 11986] |
114 |
|
115 |
* Sat Apr 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-2.sme |
116 |
- Re-build and link to latest devtools huge amount of error if asterisk disabled [SME: 9756] |
117 |
- Re-build and link to latest devtools multiple email sent because of asterisk cron php path [SME: 11940] |
118 |
- on uninstall remove asterisk crontab to avoid noise [SME: 10131] |
119 |
- allow access to sounds folder for gui [SME: 11924] |
120 |
|
121 |
* Sun Mar 27 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-1.sme |
122 |
- first version 14 [SME: 11613] |
123 |
|
124 |
* Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme |
125 |
- first import to SME10 [SME: 11613] |
126 |
- make it Freepbx 14 compatible [SME: 10705] |
127 |
add dependencies for SME10 mariadb nodejs >= 10 php70* |
128 |
remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons |
129 |
remove double owned folders /etc/asterisk /var/lib/asterisk |
130 |
systemd ready for asterisk(disabled), freepbx, httpd-fpbx |
131 |
smeserver-freepbx-update event created NEED TEST |
132 |
php70-php-fpm fragment |
133 |
update httpd-fpbx template for php-fpm use |
134 |
update httpd-e-smith to use php-fpm for fpbx |
135 |
update install script for php74 |
136 |
add a copy of safe_asterisk |
137 |
create php folders and set rights |
138 |
improve logrotate |
139 |
|
140 |
* Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 13-16.sme |
141 |
- add required modules to enable cel and cdr logging and search [SME: 10620] |
142 |
- add requires lame [SME: 9859] |
143 |
- Re-build and link to latest devtools sounds ownership so they can be handled via gui [SME: 11924] |
144 |
|
145 |
* Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme |
146 |
- Re-build and link to latest devtools warning tampered files in GUI [SME: 10496] |
147 |
- remove DeviceAndUser property [SME: 10503] |
148 |
|
149 |
* Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-14.sme |
150 |
- update TKT auth parameter for SME 9.2 [SME: 10268] |
151 |
|
152 |
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-13.sme |
153 |
- Re-build and link to latest devtools noise rebooting and restarting freepbx [SME: 10120] |
154 |
|
155 |
* Wed Jan 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-11.sme |
156 |
- NFR: auto backup of whole FBX config during pre-backup event [SME: 9637] |
157 |
- both asdb and fpbx, asterisk config files, freepbx folders, voicemails are part of backup |
158 |
- 2 versions are kepts |
159 |
- weekly backup is also done. |
160 |
|
161 |
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-10.sme |
162 |
- Re-build and link to latest devtools Missing HTML5 format converters [SME: 9859] |
163 |
- added requirement for mpg123 and ffmpeg available in smecontribs |
164 |
|
165 |
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-9.sme |
166 |
- update framework before other modules [SME: 9860] |
167 |
|
168 |
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme |
169 |
- autoupgrade modules [SME: 9860] |
170 |
|
171 |
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme |
172 |
- Re-build and link to latest devtools wrong default UDPPorts on new install [SME: 9918] |
173 |
|
174 |
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme |
175 |
- Re-build and link to latest devtools error while backup with workstation [SME: 9760] |
176 |
|
177 |
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme |
178 |
-fix typo in smeserver-freepbx-13.bz9744.patch |
179 |
|
180 |
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme |
181 |
- Re-build and link to latest devtools [SME: 9702] |
182 |
- corrected syntax for port range |
183 |
|
184 |
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme |
185 |
- Re-build and link to latest devtools [SME: 9744] |
186 |
- Re-build and link to latest devtools wrong /tmp folder permission after update |
187 |
- Thank you Hsing-Foo Wang. |
188 |
|
189 |
* Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme |
190 |
- Re-build and link to latest devtools wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
191 |
|
192 |
* Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-1.sme |
193 |
- bump version to current Freepbx version 13 |
194 |
|
195 |
* Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> -47.sme |
196 |
- add all needed port for Freepbx sip pjsip and RTP [SME: 9495] |
197 |
|
198 |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme |
199 |
- Re-build and link to latest devtools missing config files (requires asterisk-configs) [SME: 9577] |
200 |
- Re-build and link to latest devtools recuring reconfiguration error while installing digium phone module [SME: 9575] |
201 |
- added port 5061 for tls to TCP ports [SME: 9576] |
202 |
|
203 |
* Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme |
204 |
- Re-build and link to latest devtools wrong logrotate pattern [SME: 9516] |
205 |
- as the contrib is only in smedev, i do not fix existing log files badly rotated |
206 |
|
207 |
* Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme |
208 |
- remove fop db [SME: 9495] |
209 |
- add some mysql setting for freepbxdb (user, email) |
210 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch |
211 |
|
212 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-43.sme |
213 |
- add path to ucp module [SME: 9495] |
214 |
- add 256Mo as default for freepbx php Memory |
215 |
- add AllowOveride All for .htaccess |
216 |
- remove httpd config to old FOP panel |
217 |
- add port 5061 for freepbx |
218 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch |
219 |
- configuration of amportal.conf and its mysql equivalent |
220 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch |
221 |
|
222 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-42.sme |
223 |
- remove FOP patches [SME: 9495] |
224 |
- deleted link to expand amportal.conf |
225 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch |
226 |
|
227 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-41.sme |
228 |
- remove heading of /etc/asterisk/asterisk.conf [SME: 9495] |
229 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch |
230 |
- bump |
231 |
|
232 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-38.sme |
233 |
- remove expand template amportal.conf [SME: 9495] |
234 |
- chown /var/lib/asterisk |
235 |
- installation configuration options |
236 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch |
237 |
- Requires: asterisk-sounds-core-en-ulaw asterisk-sounds-extra-en-ulaw asterisk-voicemail |
238 |
|
239 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-37.sme |
240 |
- new path to sql files [SME: 9495] |
241 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch |
242 |
|
243 |
* Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-36.sme |
244 |
- adapt script to fpbx13 and asterisk 13 [SME: 9495] |
245 |
- change Requires Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so to |
246 |
- Requires: asterisk-addons as this is the paquet providing it, and it changed name to app_mysql.so |
247 |
|
248 |
* Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-35.sme |
249 |
- adapt script to fpbx13 and asterisk 13 [SME: 9495] |
250 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch |
251 |
|
252 |
* Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-34.sme |
253 |
- first import to SME9 [SME: 9495] |
254 |
|
255 |
* Sun May 12 2013 JP Pialasse <tests@pialasse.com> 0.1-33.sme |
256 |
- buildarch removed in order to find the correct %{_libdir}/asterisk/modules/app_addon_sql_mysql.so |
257 |
|
258 |
* Thu Oct 20 2011 Daniel B. <daniel@firewall-services.com> 0.1-32.sme |
259 |
- Protect by locations (so other alias can be defined to protect with LL::NG for example) |
260 |
|
261 |
* Mon Oct 17 2011 Daniel B. <daniel@firewall-services.com> 0.1-31.sme |
262 |
- Add misdn.log to logrotate |
263 |
|
264 |
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme |
265 |
- Change session path [SME: 6661] |
266 |
|
267 |
* Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme |
268 |
- astdatadir is /var/lib/asterisk |
269 |
- templates for /etc/logrotate.d/asterisk |
270 |
|
271 |
* Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme |
272 |
- Create and populate the mysql databases in mysql.init |
273 |
- Templates for /etc/asterisk/asterisk.conf |
274 |
|
275 |
* Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27] |
276 |
- Read ARI password from the DB (and initialize a random one) |
277 |
|
278 |
* Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26] |
279 |
- Remove hard-coded dependencies on asterisk and asterisk-addons14 |
280 |
Depends now on asterisk binary and app_addon_sql_mysql.so files |
281 |
(so it can work with asterisk or asterisk14) |
282 |
|
283 |
* Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25] |
284 |
- Remove /etc/logrotate.d/asterisk which is now included in asterisk14 |
285 |
|
286 |
* Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24] |
287 |
- Depends now on asterisk14 and asterisk-addons14 |
288 |
|
289 |
* Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23] |
290 |
- disable dynamic hints |
291 |
|
292 |
* Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22] |
293 |
- include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb |
294 |
action script for FreePBX 2.6 compatibility |
295 |
|
296 |
* Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21] |
297 |
- Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some |
298 |
modules (due to the ProxyPass configuration) |
299 |
|
300 |
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20] |
301 |
- Fix CDR db password in cdr_mysql.conf template |
302 |
- Use a separate service in SME db for FOP |
303 |
|
304 |
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19] |
305 |
- remove scoreboard directive from httpd-fpbx config |
306 |
- remove some modules (mod_ssl, mod_proxy) |
307 |
|
308 |
* Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18] |
309 |
- templatize cdr_mysql.conf [SME: 5153] |
310 |
- templatize manager.conf |
311 |
- remove freepbx-cron-scheduler.php from root crontab so only |
312 |
asterisk user runs it (prevent email error sent from cron) |
313 |
|
314 |
* Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17] |
315 |
- Remove obsolete /admin Alias from apache |
316 |
- Run the security script on bootsrape-console-save event |
317 |
|
318 |
* Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16] |
319 |
- Security Fixe: put a random password for ARI admin (this should be documented) |
320 |
|
321 |
* Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15] |
322 |
- Check if /opt/freepbx/admin exists (retry the install if a first one failed) |
323 |
- Remove tabs from spec |
324 |
|
325 |
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14] |
326 |
- Remove speex from dependencies |
327 |
|
328 |
* Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13] |
329 |
- Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux |
330 |
|
331 |
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12] |
332 |
- Fix logrotate issue (send a sigusr1 signal to httpd-fpbx) |
333 |
|
334 |
* Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11] |
335 |
- Full support for the new DAHDI driver, droping zaptel |
336 |
|
337 |
* Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10] |
338 |
- add support for DAHDI channel |
339 |
|
340 |
* Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9] |
341 |
- move expand-templates from post-upgrade event to bootstrap-console-save |
342 |
|
343 |
* Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8] |
344 |
- Add support for trunk name in mail alerts |
345 |
|
346 |
* Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7] |
347 |
- Add a simple script to alert admin by mail on trunk errors |
348 |
|
349 |
* Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6] |
350 |
- Use AdminPanels props so access can be configured using |
351 |
smeserver-userpanels contrib. AdminUsers and FopUsers |
352 |
props aren't used anymore |
353 |
|
354 |
* Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5] |
355 |
- add logrotate default config file for asterisk's logs |
356 |
- spec cleanup |
357 |
|
358 |
* Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4] |
359 |
- Re-build and link to latest devtools logrotate issue |
360 |
|
361 |
* Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3] |
362 |
- split freepbx sources in a separate package (freepbx-src) |
363 |
- alternative genzaptelconf |
364 |
|
365 |
* Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2] |
366 |
- Fix fop not being displayed in admin page |
367 |
|
368 |
* Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
369 |
- updated to 2.5.0 final |
370 |
- spec cleaning |
371 |
- templates cleaning |
372 |
- templates to update mysql informations |
373 |
|
374 |
* Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0] |
375 |
- initial release |
376 |
|
377 |
%prep |
378 |
%setup -q -n %{name}-%{version} |
379 |
%patch0 -p1 |
380 |
%patch1 -p1 |
381 |
%patch2 -p1 |
382 |
%patch3 -p1 |
383 |
%patch4 -p1 |
384 |
%patch5 -p1 |
385 |
%patch6 -p1 |
386 |
%patch7 -p1 |
387 |
%patch8 -p1 |
388 |
|
389 |
%build |
390 |
# Build symlinks |
391 |
perl createlinks |
392 |
|
393 |
%install |
394 |
rm -rf $RPM_BUILD_ROOT |
395 |
|
396 |
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session |
397 |
|
398 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
399 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
400 |
--file /sbin/e-smith/fwconsole 'attr(0755,root,root)' \ |
401 |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
402 |
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
403 |
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |
404 |
--dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \ |
405 |
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
406 |
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
407 |
--dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \ |
408 |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
409 |
--file /usr/share/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
410 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
411 |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
412 |
--file /usr/sbin/safe_asterisk 'attr(0755,root,root)' \ |
413 |
--dir /var/log/php/freepbx 'attr(0770,root,asterisk)' \ |
414 |
--dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \ |
415 |
--dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \ |
416 |
|grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ |
417 |
> %{name}-%{version}-%{release}-filelist |
418 |
|
419 |
%clean |
420 |
rm -rf $RPM_BUILD_ROOT |
421 |
|
422 |
%files -f %{name}-%{version}-%{release}-filelist |
423 |
%defattr(-,root,root) |
424 |
|
425 |
|
426 |
%post |
427 |
|
428 |
#bug 9744, restore tmp permissions |
429 |
if [ `stat -c %U /tmp` == "asterisk" ]; then |
430 |
chmod o+rwxt /tmp/ |
431 |
chown root:root /tmp/ |
432 |
fi |
433 |
|
434 |
%preun |
435 |
if [ $1 = 0 ] ; then |
436 |
/usr/bin/systemctl stop freepbx >& /dev/null || : |
437 |
fi |
438 |
true |
439 |
%postun |
440 |
if [ $1 = 0 ] ; then |
441 |
#remove cron for asterisk on uninstallation to avoid noise |
442 |
/usr/bin/crontab -u asterisk -r >& /dev/null || : |
443 |
fi |
444 |
true |
445 |
|
446 |
|
447 |
|