/[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.23 - (hide annotations) (download)
Mon Oct 24 04:46:10 2016 UTC (7 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-6_el6_sme
Changes since 1.22: +9 -3 lines
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme
- fix error while backup with workstation [SME: 9760]

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

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