/[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.29 - (show annotations) (download)
Sat Feb 25 21:54:03 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-12_el6_sme
Changes since 1.28: +8 -2 lines
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> -12.sme
- fix noise rebooting and restarting freepbx [SME: 10120]

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

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