/[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.20 - (hide annotations) (download)
Mon Oct 24 02:58:18 2016 UTC (8 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-3_el6_sme
Changes since 1.19: +15 -3 lines
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> -3.sme
- fix [SME: 9744]
- fix wrong /tmp folder permission after update
- Thank you Hsing-Foo Wang.

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

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