1 |
# $Id: smeserver-freepbx.spec,v 1.8 2009/03/27 11:27:42 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 18 |
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 |
|
39 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
40 |
URL: http://www.freepbx.org/ |
41 |
|
42 |
BuildRequires: e-smith-devtools |
43 |
BuildRequires: tar |
44 |
|
45 |
Requires: mysql |
46 |
Requires: httpd |
47 |
Requires: php-pear |
48 |
Requires: asterisk |
49 |
Requires: asterisk-addons |
50 |
Requires: dahdi-tools |
51 |
Requires: dahdi-linux |
52 |
Requires: sox |
53 |
Requires: mod_auth_tkt |
54 |
Requires: e-smith-base |
55 |
Requires: freepbx-src |
56 |
|
57 |
Buildarch: noarch |
58 |
AutoReqProv: no |
59 |
|
60 |
|
61 |
%description |
62 |
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. |
63 |
This package provide the integration of FreePBX on SME Server. |
64 |
|
65 |
|
66 |
%changelog |
67 |
* Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18] |
68 |
- templatize cdr_mysql.conf [SME: 5153] |
69 |
- templatize manager.conf |
70 |
- remove freepbx-cron-scheduler.php from root crontab so only |
71 |
asterisk user runs it (prevent email error sent from cron) |
72 |
|
73 |
* Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17] |
74 |
- Remove obsolete /admin Alias from apache |
75 |
- Run the security script on bootsrape-console-save event |
76 |
|
77 |
* Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16] |
78 |
- Security Fixe: put a random password for ARI admin (this should be documented) |
79 |
|
80 |
* Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15] |
81 |
- Check if /opt/freepbx/admin exists (retry the install if a first one failed) |
82 |
- Remove tabs from spec |
83 |
|
84 |
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14] |
85 |
- Remove speex from dependencies |
86 |
|
87 |
* Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13] |
88 |
- Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux |
89 |
|
90 |
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12] |
91 |
- Fix logrotate issue (send a sigusr1 signal to httpd-fpbx) |
92 |
|
93 |
* Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11] |
94 |
- Full support for the new DAHDI driver, droping zaptel |
95 |
|
96 |
* Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10] |
97 |
- add support for DAHDI channel |
98 |
|
99 |
* Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9] |
100 |
- move expand-templates from post-upgrade event to bootstrap-console-save |
101 |
|
102 |
* Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8] |
103 |
- Add support for trunk name in mail alerts |
104 |
|
105 |
* Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7] |
106 |
- Add a simple script to alert admin by mail on trunk errors |
107 |
|
108 |
* Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6] |
109 |
- Use AdminPanels props so access can be configured using |
110 |
smeserver-userpanels contrib. AdminUsers and FopUsers |
111 |
props aren't used anymore |
112 |
|
113 |
* Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5] |
114 |
- add logrotate default config file for asterisk's logs |
115 |
- spec cleanup |
116 |
|
117 |
* Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4] |
118 |
- fix logrotate issue |
119 |
|
120 |
* Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3] |
121 |
- split freepbx sources in a separate package (freepbx-src) |
122 |
- alternative genzaptelconf |
123 |
|
124 |
* Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2] |
125 |
- Fix fop not being displayed in admin page |
126 |
|
127 |
* Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
128 |
- updated to 2.5.0 final |
129 |
- spec cleaning |
130 |
- templates cleaning |
131 |
- templates to update mysql informations |
132 |
|
133 |
* Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0] |
134 |
- initial release |
135 |
|
136 |
%prep |
137 |
|
138 |
%setup -q -n %{name}-%{version} |
139 |
%patch0 -p1 |
140 |
%patch1 -p1 |
141 |
%patch2 -p1 |
142 |
%patch3 -p1 |
143 |
%patch4 -p1 |
144 |
%patch5 -p1 |
145 |
%patch6 -p1 |
146 |
%patch7 -p1 |
147 |
%patch8 -p1 |
148 |
%patch9 -p1 |
149 |
%patch10 -p1 |
150 |
%patch11 -p1 |
151 |
%patch12 -p1 |
152 |
%patch13 -p1 |
153 |
%patch14 -p1 |
154 |
%patch15 -p1 |
155 |
%patch16 -p1 |
156 |
%patch17 -p1 |
157 |
%patch18 -p1 |
158 |
%patch19 -p1 |
159 |
|
160 |
%build |
161 |
# Build symlinks |
162 |
perl createlinks |
163 |
|
164 |
|
165 |
%install |
166 |
rm -rf $RPM_BUILD_ROOT |
167 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
168 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
169 |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
170 |
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
171 |
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |
172 |
--dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \ |
173 |
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
174 |
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
175 |
--dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \ |
176 |
--dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \ |
177 |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
178 |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
179 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
180 |
> %{name}-%{version}-%{release}-filelist |
181 |
|
182 |
%clean |
183 |
rm -rf $RPM_BUILD_ROOT |
184 |
|
185 |
%files -f %{name}-%{version}-%{release}-filelist |
186 |
%defattr(-,root,root) |
187 |
|
188 |
|
189 |
%post |
190 |
|
191 |
%preun |
192 |
if [ $1 = 0 ] ; then |
193 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
194 |
fi |
195 |
|
196 |
true |
197 |
|