/[smecontribs]/rpms/smeserver-freepbx/contribs7/smeserver-freepbx.spec
ViewVC logotype

Annotation of /rpms/smeserver-freepbx/contribs7/smeserver-freepbx.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.22 - (hide annotations) (download)
Thu Oct 13 16:09:43 2011 UTC (13 years ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-30_el4_sme
Changes since 1.21: +11 -2 lines
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme
- CHange session path [SME: 6661]

1 vip-ire 1.22 # $Id: smeserver-freepbx.spec,v 1.21 2011/01/05 14:46:04 vip-ire Exp $
2 slords 1.1 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5     #%define fpbxversion 2.5.0
6     %define version 0.1
7 vip-ire 1.22 %define release 30
8 slords 1.1 %define name smeserver-freepbx
9    
10 vip-ire 1.6 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 vip-ire 1.7 Patch12: smeserver-freepbx-0.1-recordings_security.patch
31 vip-ire 1.8 Patch13: smeserver-freepbx-0.1-remove_admin_alias.patch
32     Patch14: smeserver-freepbx-0.1-recordingsfix2bootstrap.patch
33 vip-ire 1.9 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 vip-ire 1.10 Patch20: smeserver-freepbx-0.1-http_cleanup.patch
39 vip-ire 1.11 Patch21: smeserver-freepbx-0.1-cdr_passwd.patch
40     Patch22: smeserver-freepbx-0.1-fop_separate_service.patch
41 vip-ire 1.12 Patch23: smeserver-freepbx-0.1-check_referer.patch
42 vip-ire 1.13 Patch24: smeserver-freepbx-0.1-dump_astdb_include_functions.patch
43 vip-ire 1.15 Patch25: smeserver-freepbx-0.1-disable_dynamic_hints.patch
44 vip-ire 1.17 Patch26: smeserver-freepbx-0.1-remove_logrotate_conf.patch
45 vip-ire 1.19 Patch27: smeserver-freepbx-0.1-ari_password_from_db.patch
46 vip-ire 1.20 Patch28: smeserver-freepbx-0.1-create_mysql.patch
47     Patch29: smeserver-freepbx-0.1-template_asterisk_conf.patch
48 vip-ire 1.21 Patch30: smeserver-freepbx-0.1-datadir_in_var_lib.patch
49     Patch31: smeserver-freepbx-0.1-templates_logrotate.patch
50 vip-ire 1.22 Patch32: smeserver-freepbx-0.1-session_path.patch
51 vip-ire 1.3
52 vip-ire 1.6 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
53     URL: http://www.freepbx.org/
54 slords 1.1
55     BuildRequires: e-smith-devtools
56     BuildRequires: tar
57    
58 vip-ire 1.6 Requires: mysql
59     Requires: httpd
60     Requires: php-pear
61 vip-ire 1.18 Requires: /usr/sbin/asterisk
62     Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so
63 vip-ire 1.6 Requires: dahdi-tools
64     Requires: dahdi-linux
65     Requires: sox
66     Requires: mod_auth_tkt
67     Requires: e-smith-base
68     Requires: freepbx-src
69 vip-ire 1.4
70 vip-ire 1.6 Buildarch: noarch
71     AutoReqProv: no
72 slords 1.1
73    
74     %description
75     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.
76     This package provide the integration of FreePBX on SME Server.
77    
78    
79     %changelog
80 vip-ire 1.22 * Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme
81     - CHange session path [SME: 6661]
82    
83 vip-ire 1.21 * Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme
84     - astdatadir is /var/lib/asterisk
85     - templates for /etc/logrotate.d/asterisk
86    
87 vip-ire 1.20 * Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme
88     - Create and populate the mysql databases in mysql.init
89     - Templates for /etc/asterisk/asterisk.conf
90    
91 vip-ire 1.19 * Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27]
92     - Read ARI password from the DB (and initialize a random one)
93    
94 vip-ire 1.18 * Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26]
95     - Remove hard-coded dependencies on asterisk and asterisk-addons14
96     Depends now on asterisk binary and app_addon_sql_mysql.so files
97     (so it can work with asterisk or asterisk14)
98    
99 vip-ire 1.17 * Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25]
100     - Remove /etc/logrotate.d/asterisk which is now included in asterisk14
101    
102 vip-ire 1.16 * Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24]
103     - Depends now on asterisk14 and asterisk-addons14
104    
105 vip-ire 1.15 * Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23]
106     - disable dynamic hints
107    
108 vip-ire 1.14 * Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22]
109 vip-ire 1.13 - include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb
110     action script for FreePBX 2.6 compatibility
111    
112 vip-ire 1.12 * Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21]
113     - Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some
114     modules (due to the ProxyPass configuration)
115    
116 vip-ire 1.11 * Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20]
117     - Fix CDR db password in cdr_mysql.conf template
118     - Use a separate service in SME db for FOP
119    
120 vip-ire 1.10 * Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19]
121     - remove scoreboard directive from httpd-fpbx config
122     - remove some modules (mod_ssl, mod_proxy)
123    
124 vip-ire 1.9 * Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18]
125     - templatize cdr_mysql.conf [SME: 5153]
126     - templatize manager.conf
127     - remove freepbx-cron-scheduler.php from root crontab so only
128     asterisk user runs it (prevent email error sent from cron)
129    
130 vip-ire 1.8 * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17]
131     - Remove obsolete /admin Alias from apache
132     - Run the security script on bootsrape-console-save event
133    
134 vip-ire 1.7 * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16]
135     - Security Fixe: put a random password for ARI admin (this should be documented)
136    
137 vip-ire 1.6 * Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15]
138     - Check if /opt/freepbx/admin exists (retry the install if a first one failed)
139     - Remove tabs from spec
140    
141 vip-ire 1.5 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14]
142     - Remove speex from dependencies
143    
144 vip-ire 1.4 * Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13]
145     - Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux
146    
147 vip-ire 1.3 * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12]
148     - Fix logrotate issue (send a sigusr1 signal to httpd-fpbx)
149    
150     * Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11]
151     - Full support for the new DAHDI driver, droping zaptel
152    
153     * Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10]
154     - add support for DAHDI channel
155    
156 slords 1.1 * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9]
157     - move expand-templates from post-upgrade event to bootstrap-console-save
158    
159     * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8]
160     - Add support for trunk name in mail alerts
161    
162     * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7]
163     - Add a simple script to alert admin by mail on trunk errors
164    
165     * Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6]
166     - Use AdminPanels props so access can be configured using
167     smeserver-userpanels contrib. AdminUsers and FopUsers
168     props aren't used anymore
169    
170     * Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5]
171     - add logrotate default config file for asterisk's logs
172     - spec cleanup
173    
174     * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
175     - fix logrotate issue
176    
177     * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
178     - split freepbx sources in a separate package (freepbx-src)
179     - alternative genzaptelconf
180    
181     * Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
182     - Fix fop not being displayed in admin page
183    
184     * Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
185     - updated to 2.5.0 final
186     - spec cleaning
187     - templates cleaning
188     - templates to update mysql informations
189    
190     * Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0]
191     - initial release
192    
193     %prep
194    
195     %setup -q -n %{name}-%{version}
196     %patch0 -p1
197     %patch1 -p1
198     %patch2 -p1
199     %patch3 -p1
200     %patch4 -p1
201     %patch5 -p1
202     %patch6 -p1
203     %patch7 -p1
204 vip-ire 1.3 %patch8 -p1
205     %patch9 -p1
206     %patch10 -p1
207 vip-ire 1.6 %patch11 -p1
208 vip-ire 1.7 %patch12 -p1
209 vip-ire 1.8 %patch13 -p1
210     %patch14 -p1
211 vip-ire 1.9 %patch15 -p1
212     %patch16 -p1
213     %patch17 -p1
214     %patch18 -p1
215     %patch19 -p1
216 vip-ire 1.10 %patch20 -p1
217 vip-ire 1.11 %patch21 -p1
218     %patch22 -p1
219 vip-ire 1.12 %patch23 -p1
220 vip-ire 1.13 %patch24 -p1
221 vip-ire 1.15 %patch25 -p1
222 vip-ire 1.17 %patch26 -p1
223 vip-ire 1.19 %patch27 -p1
224 vip-ire 1.20 %patch28 -p1
225     %patch29 -p1
226 vip-ire 1.21 %patch30 -p1
227     %patch31 -p1
228 vip-ire 1.22 %patch32 -p1
229 slords 1.1
230     %build
231     # Build symlinks
232     perl createlinks
233    
234    
235     %install
236     rm -rf $RPM_BUILD_ROOT
237 vip-ire 1.22
238     %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session
239    
240 slords 1.1 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
241     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
242     --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
243     --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
244     --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
245     --dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \
246     --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \
247     --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \
248     --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \
249     --dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \
250     --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \
251     --file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \
252     --file /etc/logrotate.d/asterisk 'config(noreplace)' \
253 vip-ire 1.22 --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \
254 slords 1.1 > %{name}-%{version}-%{release}-filelist
255    
256     %clean
257     rm -rf $RPM_BUILD_ROOT
258    
259     %files -f %{name}-%{version}-%{release}-filelist
260     %defattr(-,root,root)
261    
262    
263     %post
264    
265     %preun
266     if [ $1 = 0 ] ; then
267     /etc/rc.d/init.d/freepbx stop >& /dev/null || :
268     fi
269    
270     true
271    

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