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

Annotation of /rpms/smeserver-freepbx/contribs9/smeserver-freepbx.spec

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


Revision 1.33 - (hide annotations) (download)
Tue Jan 21 04:28:36 2020 UTC (4 years, 9 months ago) by jpp
Branch: MAIN
Changes since 1.32: +8 -2 lines
* Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> %{version}-16.sme
- add required modules to enable cel and cdr logging and search [SME: 10620]

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

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