/[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.32 - (hide annotations) (download)
Mon Jan 29 21:31:58 2018 UTC (6 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-freepbx-13-15_el6_sme
Changes since 1.31: +14 -4 lines
* Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme
- fix warning tampered files in GUI [SME: 10496]
- remove DeviceAndUser property [SME: 10503]

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

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