/[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.25 - (hide annotations) (download)
Mon Jan 9 23:41:56 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-8_el6_sme
Changes since 1.24: +9 -2 lines
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme
- autoupgrade modules [SME: 9860]

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

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