/[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.19 - (hide annotations) (download)
Thu Jul 15 10:12:03 2010 UTC (13 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-27_el4_sme
Changes since 1.18: +7 -2 lines
* Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27]
- Read ARI password from the DB (and initialize a random one)

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

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