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