/[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.18 - (hide annotations) (download)
Mon Jun 13 12:16:46 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-1_el6_sme
Changes since 1.17: +100 -97 lines
bump to version 13

1 unnilennium 1.18 # $Id: smeserver-freepbx.spec,v 1.17 2016/06/13 10:28:17 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     %define release 1
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.18 #Patch0: smeserver-freepbx-0.1-fop_link.patch
19     #Patch1: smeserver-freepbx-0.1-genzaptelconf.patch
20     #Patch2: smeserver-freepbx-0.1-logrotate.patch
21     #Patch3: smeserver-freepbx-0.1-asterisk_logrotate.patch
22     #Patch4: smeserver-freepbx-0.1-userpanels.patch
23     #Patch5: smeserver-freepbx-0.1-trunk_alert_mail.patch
24     #Patch6: smeserver-freepbx-0.1-trunk_name_in_alert.patch
25     #Patch7: smeserver-freepbx-0.1-postupgrade_to_bootstrap.patch
26     #Patch8: smeserver-freepbx-0.1-zap2dahdi.patch
27     #Patch9: smeserver-freepbx-0.1-full_dahdi_support.patch
28     #Patch10: smeserver-freepbx-0.1-fix_logrotate_event.patch
29     #Patch11: smeserver-freepbx-0.1-retry_install.patch
30     #Patch12: smeserver-freepbx-0.1-recordings_security.patch
31     #Patch13: smeserver-freepbx-0.1-remove_admin_alias.patch
32     #Patch14: smeserver-freepbx-0.1-recordingsfix2bootstrap.patch
33     #Patch15: smeserver-freepbx-0.1-templatize_cdr_mysql.patch
34     #Patch16: smeserver-freepbx-0.1-templatize_manager.patch
35     #Patch17: smeserver-freepbx-0.1-cdr_mysql_template_begin.patch
36     #Patch18: smeserver-freepbx-0.1-clean_crontab.patch
37     #Patch19: smeserver-freepbx-0.1-crontab_script_fixe.patch
38     #Patch20: smeserver-freepbx-0.1-http_cleanup.patch
39     #Patch21: smeserver-freepbx-0.1-cdr_passwd.patch
40     #Patch22: smeserver-freepbx-0.1-fop_separate_service.patch
41     #Patch23: smeserver-freepbx-0.1-check_referer.patch
42     #Patch24: smeserver-freepbx-0.1-dump_astdb_include_functions.patch
43     #Patch25: smeserver-freepbx-0.1-disable_dynamic_hints.patch
44     #Patch26: smeserver-freepbx-0.1-remove_logrotate_conf.patch
45     #Patch27: smeserver-freepbx-0.1-ari_password_from_db.patch
46     #Patch28: smeserver-freepbx-0.1-create_mysql.patch
47     #Patch29: smeserver-freepbx-0.1-template_asterisk_conf.patch
48     #Patch30: smeserver-freepbx-0.1-datadir_in_var_lib.patch
49     #Patch31: smeserver-freepbx-0.1-templates_logrotate.patch
50     #Patch32: smeserver-freepbx-0.1-session_path.patch
51     #Patch33: smeserver-freepbx-0.1-logrotate_misdn.patch
52     #Patch34: smeserver-freepbx-0.1-protect_by_location.patch
53     #Patch35: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch
54     #Patch36: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch
55     #Patch37: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch
56     #Patch38: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch
57     #Patch39: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch
58     #Patch40: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch
59     #Patch41: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch
60     #Patch42: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch
61     #Patch43: smeserver-freepbx-0.1-logrotate1.patch
62     #Patch44: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-TcpPort-DigiumPhones.patch
63     #Patch45: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-moreUDPPorts.patch
64 unnilennium 1.6
65 unnilennium 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
66     URL: http://www.freepbx.org/
67    
68     BuildRequires: e-smith-devtools
69     BuildRequires: tar
70    
71     Requires: mysql
72     Requires: httpd
73     Requires: php-pear
74     Requires: /usr/sbin/asterisk
75 unnilennium 1.4 Requires: asterisk-addons
76 unnilennium 1.1 Requires: dahdi-tools
77     Requires: dahdi-linux
78     Requires: sox
79     Requires: mod_auth_tkt
80     Requires: e-smith-base
81     Requires: freepbx-src
82 unnilennium 1.6 Requires: asterisk-sounds-core-en-ulaw
83     Requires: asterisk-sounds-extra-en-ulaw
84     Requires: asterisk-voicemail
85 unnilennium 1.15 Requires: asterisk-configs
86 unnilennium 1.1 #Buildarch: noarch
87     AutoReqProv: no
88    
89    
90     %description
91     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.
92     This package provide the integration of FreePBX on SME Server.
93    
94    
95 unnilennium 1.3 %changelog
96 unnilennium 1.18 * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-1.sme
97     - bump version to current Freepbx version 13
98    
99 unnilennium 1.17 * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> -47.sme
100     - add all needed port for Freepbx sip pjsip and RTP [SME: 9495]
101    
102 unnilennium 1.15 * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme
103     - fix missing config files (requires asterisk-configs) [SME: 9577]
104 unnilennium 1.16 - fix recuring reconfiguration error while installing digium phone module [SME: 9575]
105     - added port 5061 for tls to TCP ports [SME: 9576]
106 unnilennium 1.15
107 unnilennium 1.14 * Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme
108     - fix wrong logrotate pattern [SME: 9516]
109     - as the contrib is only in smedev, i do not fix existing log files badly rotated
110    
111 unnilennium 1.13 * Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme
112     - remove fop db [SME: 9495]
113     - add some mysql setting for freepbxdb (user, email)
114     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch
115    
116 unnilennium 1.12 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-43.sme
117     - add path to ucp module [SME: 9495]
118     - add 256Mo as default for freepbx php Memory
119     - add AllowOveride All for .htaccess
120     - remove httpd config to old FOP panel
121     - add port 5061 for freepbx
122     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch
123     - configuration of amportal.conf and its mysql equivalent
124     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch
125    
126 unnilennium 1.10 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-42.sme
127     - remove FOP patches [SME: 9495]
128     - deleted link to expand amportal.conf
129     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch
130    
131 unnilennium 1.9 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-41.sme
132 unnilennium 1.7 - remove heading of /etc/asterisk/asterisk.conf [SME: 9495]
133 unnilennium 1.9 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch
134     - bump
135 unnilennium 1.7
136 unnilennium 1.6 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-38.sme
137     - remove expand template amportal.conf [SME: 9495]
138     - chown /var/lib/asterisk
139     - installation configuration options
140     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch
141     - Requires: asterisk-sounds-core-en-ulaw asterisk-sounds-extra-en-ulaw asterisk-voicemail
142    
143     * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-37.sme
144 unnilennium 1.5 - new path to sql files [SME: 9495]
145     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch
146    
147 unnilennium 1.4 * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-36.sme
148     - adapt script to fpbx13 and asterisk 13 [SME: 9495]
149     - change Requires Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so to
150     - Requires: asterisk-addons as this is the paquet providing it, and it changed name to app_mysql.so
151    
152     * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-35.sme
153 unnilennium 1.3 - adapt script to fpbx13 and asterisk 13 [SME: 9495]
154     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch
155    
156     * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-34.sme
157 unnilennium 1.2 - first import to SME9 [SME: 9495]
158 unnilennium 1.1
159     * Sun May 12 2013 JP Pialasse <tests@pialasse.com> 0.1-33.sme
160     - buildarch removed in order to find the correct %{_libdir}/asterisk/modules/app_addon_sql_mysql.so
161    
162     * Thu Oct 20 2011 Daniel B. <daniel@firewall-services.com> 0.1-32.sme
163     - Protect by locations (so other alias can be defined to protect with LL::NG for example)
164    
165     * Mon Oct 17 2011 Daniel B. <daniel@firewall-services.com> 0.1-31.sme
166     - Add misdn.log to logrotate
167    
168     * Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme
169     - Change session path [SME: 6661]
170    
171     * Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme
172     - astdatadir is /var/lib/asterisk
173     - templates for /etc/logrotate.d/asterisk
174    
175     * Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme
176     - Create and populate the mysql databases in mysql.init
177     - Templates for /etc/asterisk/asterisk.conf
178    
179     * Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27]
180     - Read ARI password from the DB (and initialize a random one)
181    
182     * Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26]
183     - Remove hard-coded dependencies on asterisk and asterisk-addons14
184     Depends now on asterisk binary and app_addon_sql_mysql.so files
185     (so it can work with asterisk or asterisk14)
186    
187     * Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25]
188     - Remove /etc/logrotate.d/asterisk which is now included in asterisk14
189    
190     * Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24]
191     - Depends now on asterisk14 and asterisk-addons14
192    
193     * Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23]
194     - disable dynamic hints
195    
196     * Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22]
197     - include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb
198     action script for FreePBX 2.6 compatibility
199    
200     * Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21]
201     - Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some
202     modules (due to the ProxyPass configuration)
203    
204     * Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20]
205     - Fix CDR db password in cdr_mysql.conf template
206     - Use a separate service in SME db for FOP
207    
208     * Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19]
209     - remove scoreboard directive from httpd-fpbx config
210     - remove some modules (mod_ssl, mod_proxy)
211    
212     * Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18]
213     - templatize cdr_mysql.conf [SME: 5153]
214     - templatize manager.conf
215     - remove freepbx-cron-scheduler.php from root crontab so only
216     asterisk user runs it (prevent email error sent from cron)
217    
218     * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17]
219     - Remove obsolete /admin Alias from apache
220     - Run the security script on bootsrape-console-save event
221    
222     * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16]
223     - Security Fixe: put a random password for ARI admin (this should be documented)
224    
225     * Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15]
226     - Check if /opt/freepbx/admin exists (retry the install if a first one failed)
227     - Remove tabs from spec
228    
229     * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14]
230     - Remove speex from dependencies
231    
232     * Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13]
233     - Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux
234    
235     * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12]
236     - Fix logrotate issue (send a sigusr1 signal to httpd-fpbx)
237    
238     * Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11]
239     - Full support for the new DAHDI driver, droping zaptel
240    
241     * Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10]
242     - add support for DAHDI channel
243    
244     * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9]
245     - move expand-templates from post-upgrade event to bootstrap-console-save
246    
247     * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8]
248     - Add support for trunk name in mail alerts
249    
250     * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7]
251     - Add a simple script to alert admin by mail on trunk errors
252    
253     * Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6]
254     - Use AdminPanels props so access can be configured using
255     smeserver-userpanels contrib. AdminUsers and FopUsers
256     props aren't used anymore
257    
258     * Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5]
259     - add logrotate default config file for asterisk's logs
260     - spec cleanup
261    
262     * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
263     - fix logrotate issue
264    
265     * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
266     - split freepbx sources in a separate package (freepbx-src)
267     - alternative genzaptelconf
268    
269     * Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
270     - Fix fop not being displayed in admin page
271    
272     * Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
273     - updated to 2.5.0 final
274     - spec cleaning
275     - templates cleaning
276     - templates to update mysql informations
277    
278     * Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0]
279     - initial release
280    
281     %prep
282    
283     %setup -q -n %{name}-%{version}
284 unnilennium 1.18 #%patch0 -p1
285     #%patch1 -p1
286     #%patch2 -p1
287     #%patch3 -p1
288     #%patch4 -p1
289     #%patch5 -p1
290     #%patch6 -p1
291     #%patch7 -p1
292     #%patch8 -p1
293     #%patch9 -p1
294     #%patch10 -p1
295     #%patch11 -p1
296     #%patch12 -p1
297     #%patch13 -p1
298     #%patch14 -p1
299     #%patch15 -p1
300     #%patch16 -p1
301     #%patch17 -p1
302     #%patch18 -p1
303     #%patch19 -p1
304     #%patch20 -p1
305     #%patch21 -p1
306     #%patch22 -p1
307     #%patch23 -p1
308     #%patch24 -p1
309     #%patch25 -p1
310     #%patch26 -p1
311     #%patch27 -p1
312     #%patch28 -p1
313     #%patch29 -p1
314     #%patch30 -p1
315     #%patch31 -p1
316     #%patch32 -p1
317     #%patch33 -p1
318     #%patch34 -p1
319     #%patch35 -p1
320     #%patch36 -p1
321     #%patch37 -p1
322     #%patch38 -p1
323     #%patch39 -p1
324     #%patch40 -p1
325     #%patch41 -p1
326     #%patch42 -p1
327     #%patch43 -p1
328     #%patch44 -p1
329     #%patch45 -p1
330 unnilennium 1.10
331 unnilennium 1.18 ##dirty temp fix to remove file that should not be there
332     #rm root/etc/e-smith/events/freepbx-update/templates2expand/etc/amportal.conf
333 unnilennium 1.1
334     %build
335     # Build symlinks
336     perl createlinks
337    
338    
339     %install
340     rm -rf $RPM_BUILD_ROOT
341    
342     %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session
343    
344     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
345     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
346     --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
347     --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
348     --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
349     --dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \
350     --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \
351     --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \
352     --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \
353     --dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \
354     --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \
355     --file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \
356     --file /etc/logrotate.d/asterisk 'config(noreplace)' \
357     --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \
358     > %{name}-%{version}-%{release}-filelist
359    
360     %clean
361     rm -rf $RPM_BUILD_ROOT
362    
363     %files -f %{name}-%{version}-%{release}-filelist
364     %defattr(-,root,root)
365    
366    
367     %post
368    
369     %preun
370     if [ $1 = 0 ] ; then
371     /etc/rc.d/init.d/freepbx stop >& /dev/null || :
372     fi
373    
374     true
375    

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