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