/[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.28 - (show annotations) (download)
Wed Jan 25 21:09:53 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-11_el6_sme
Changes since 1.27: +13 -7 lines
* Wed Jan 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-11.sme
- NFR: auto backup of whole FBX config during pre-backup event [SME: 9637]
- both asdb and fpbx, asterisk config files, freepbx folders, voicemails are part of backup
- 2 versions are kepts
- weekly backup is also done.

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

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