1 |
# $Id: smeserver-freepbx.spec,v 1.9 2009/04/10 23:29:40 vip-ire Exp $ |
# $Id: smeserver-freepbx.spec,v 1.23 2011/10/17 08:11:39 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
#%define fpbxversion 2.5.0 |
#%define fpbxversion 2.5.0 |
6 |
%define version 0.1 |
%define version 0.1 |
7 |
%define release 19 |
%define release 32 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
36 |
Patch18: smeserver-freepbx-0.1-clean_crontab.patch |
Patch18: smeserver-freepbx-0.1-clean_crontab.patch |
37 |
Patch19: smeserver-freepbx-0.1-crontab_script_fixe.patch |
Patch19: smeserver-freepbx-0.1-crontab_script_fixe.patch |
38 |
Patch20: smeserver-freepbx-0.1-http_cleanup.patch |
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 |
|
|
54 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
55 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
60 |
Requires: mysql |
Requires: mysql |
61 |
Requires: httpd |
Requires: httpd |
62 |
Requires: php-pear |
Requires: php-pear |
63 |
Requires: asterisk |
Requires: /usr/sbin/asterisk |
64 |
Requires: asterisk-addons |
Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so |
65 |
Requires: dahdi-tools |
Requires: dahdi-tools |
66 |
Requires: dahdi-linux |
Requires: dahdi-linux |
67 |
Requires: sox |
Requires: sox |
79 |
|
|
80 |
|
|
81 |
%changelog |
%changelog |
82 |
|
* Thu Oct 20 2011 Daniel B. <daniel@firewall-services.com> 0.1-32.sme |
83 |
|
- Protect by locations (so other alias can be defined to protect with LL::NG for example) |
84 |
|
|
85 |
|
* Mon Oct 17 2011 Daniel B. <daniel@firewall-services.com> 0.1-31.sme |
86 |
|
- Add misdn.log to logrotate |
87 |
|
|
88 |
|
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme |
89 |
|
- Change session path [SME: 6661] |
90 |
|
|
91 |
|
* Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme |
92 |
|
- astdatadir is /var/lib/asterisk |
93 |
|
- templates for /etc/logrotate.d/asterisk |
94 |
|
|
95 |
|
* Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme |
96 |
|
- Create and populate the mysql databases in mysql.init |
97 |
|
- Templates for /etc/asterisk/asterisk.conf |
98 |
|
|
99 |
|
* Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27] |
100 |
|
- Read ARI password from the DB (and initialize a random one) |
101 |
|
|
102 |
|
* Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26] |
103 |
|
- Remove hard-coded dependencies on asterisk and asterisk-addons14 |
104 |
|
Depends now on asterisk binary and app_addon_sql_mysql.so files |
105 |
|
(so it can work with asterisk or asterisk14) |
106 |
|
|
107 |
|
* Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25] |
108 |
|
- Remove /etc/logrotate.d/asterisk which is now included in asterisk14 |
109 |
|
|
110 |
|
* Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24] |
111 |
|
- Depends now on asterisk14 and asterisk-addons14 |
112 |
|
|
113 |
|
* Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23] |
114 |
|
- disable dynamic hints |
115 |
|
|
116 |
|
* Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22] |
117 |
|
- include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb |
118 |
|
action script for FreePBX 2.6 compatibility |
119 |
|
|
120 |
|
* Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21] |
121 |
|
- Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some |
122 |
|
modules (due to the ProxyPass configuration) |
123 |
|
|
124 |
|
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20] |
125 |
|
- Fix CDR db password in cdr_mysql.conf template |
126 |
|
- Use a separate service in SME db for FOP |
127 |
|
|
128 |
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19] |
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19] |
129 |
- remove scoreboard directive from httpd-fpbx config |
- remove scoreboard directive from httpd-fpbx config |
130 |
- remove some modules (mod_ssl, mod_proxy) |
- remove some modules (mod_ssl, mod_proxy) |
222 |
%patch18 -p1 |
%patch18 -p1 |
223 |
%patch19 -p1 |
%patch19 -p1 |
224 |
%patch20 -p1 |
%patch20 -p1 |
225 |
|
%patch21 -p1 |
226 |
|
%patch22 -p1 |
227 |
|
%patch23 -p1 |
228 |
|
%patch24 -p1 |
229 |
|
%patch25 -p1 |
230 |
|
%patch26 -p1 |
231 |
|
%patch27 -p1 |
232 |
|
%patch28 -p1 |
233 |
|
%patch29 -p1 |
234 |
|
%patch30 -p1 |
235 |
|
%patch31 -p1 |
236 |
|
%patch32 -p1 |
237 |
|
%patch33 -p1 |
238 |
|
%patch34 -p1 |
239 |
|
|
240 |
%build |
%build |
241 |
# Build symlinks |
# Build symlinks |
244 |
|
|
245 |
%install |
%install |
246 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
247 |
|
|
248 |
|
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session |
249 |
|
|
250 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
251 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
252 |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
260 |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
261 |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
262 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
263 |
|
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
264 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
265 |
|
|
266 |
%clean |
%clean |