/[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.12 - (hide annotations) (download)
Mon May 16 04:58:37 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-43_el6_sme
Changes since 1.11: +16 -2 lines
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-43.sme
- add path to ucp module [SME: 9495]
- add 256Mo as default for freepbx php Memory
- add AllowOveride All for .htaccess
- remove httpd config to old FOP panel
- add port 5061 for freepbx
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch
- configuration of amportal.conf and its mysql equivalent
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch

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

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