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

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

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


Revision 1.2 - (show annotations) (download)
Thu Nov 11 04:56:32 2021 UTC (2 years, 6 months ago) by jpp
Branch: MAIN
Changes since 1.1: +12 -6 lines
* Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme
- first import to SME10 [SME: ]
  add dependencies for SME10

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

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