/[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.21 - (hide annotations) (download)
Mon Oct 24 03:31:36 2016 UTC (7 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-4_el6_sme
Changes since 1.20: +9 -3 lines
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme
- fix [SME: 9702]
- corrected syntax for port range

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

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