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

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

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


Revision 1.21 - (show annotations) (download)
Wed Jan 5 14:46:04 2011 UTC (13 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-29_el4_sme
Changes since 1.20: +10 -2 lines
* Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme
- astdatadir is /var/lib/asterisk
- templates for /etc/logrotate.d/asterisk

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

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