/[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.24 - (show annotations) (download)
Mon Jan 9 23:25:11 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-7_el6_sme
Changes since 1.23: +7 -3 lines
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme
- fix wrong default UDPPorts on new install [SME: 9918]

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

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