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

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

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


Revision 1.31 - (show annotations) (download)
Wed May 3 20:03:42 2017 UTC (7 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-14_el6_sme
Changes since 1.30: +11 -3 lines
* Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> -14.sme
- update TKT auth parameter for SME 9.2 [SME: 10268]

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

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