1 |
jpp |
1.34 |
# $Id: smeserver-freepbx.spec,v 1.33 2020/01/21 04:28:36 jpp Exp $ |
2 |
unnilennium |
1.1 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
|
|
#%define fpbxversion 2.5.0 |
6 |
unnilennium |
1.18 |
%define version 13 |
7 |
jpp |
1.33 |
%define release 16 |
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 |
unnilennium |
1.19 |
Patch0: smeserver-freepbx-13.bz9702.udpports.patch |
19 |
unnilennium |
1.20 |
Patch1: smeserver-freepbx-13.bz9744.patch |
20 |
unnilennium |
1.21 |
Patch2: smeserver-freepbx-13.bz9702-2.patch |
21 |
unnilennium |
1.23 |
Patch3: smeserver-freepbx-13.bz9760.patch |
22 |
unnilennium |
1.24 |
Patch4: smeserver-freepbx-13.bz9918.defaultUDPports.patch |
23 |
unnilennium |
1.28 |
Patch5: smeserver-freepbx-13.bz9860.AutoUpgradeModules.patch |
24 |
|
|
Patch6: smeserver-freepbx-13.bz9637.backupFBX.patch |
25 |
unnilennium |
1.29 |
Patch7: smeserver-freepbx-13.bz10120.noiseAmportal.patch |
26 |
unnilennium |
1.31 |
Patch8: smeserver-freepbx-13.bz10268.updatetktauth.patch |
27 |
jpp |
1.32 |
Patch9: smeserver-freepbx-13.bz10496.missing-tampered-files.patch |
28 |
|
|
Patch10: smeserver-freepbx-13.bz10503.DeviceAndUser.patch |
29 |
unnilennium |
1.31 |
|
30 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
31 |
|
|
URL: http://www.freepbx.org/ |
32 |
|
|
|
33 |
|
|
BuildRequires: e-smith-devtools |
34 |
|
|
BuildRequires: tar |
35 |
|
|
|
36 |
|
|
Requires: mysql |
37 |
|
|
Requires: httpd |
38 |
|
|
Requires: php-pear |
39 |
|
|
Requires: /usr/sbin/asterisk |
40 |
unnilennium |
1.4 |
Requires: asterisk-addons |
41 |
unnilennium |
1.1 |
Requires: dahdi-tools |
42 |
|
|
Requires: dahdi-linux |
43 |
|
|
Requires: sox |
44 |
|
|
Requires: mod_auth_tkt |
45 |
|
|
Requires: e-smith-base |
46 |
|
|
Requires: freepbx-src |
47 |
unnilennium |
1.6 |
Requires: asterisk-sounds-core-en-ulaw |
48 |
|
|
Requires: asterisk-sounds-extra-en-ulaw |
49 |
jpp |
1.34 |
Requires: asterisk-resample |
50 |
unnilennium |
1.6 |
Requires: asterisk-voicemail |
51 |
unnilennium |
1.15 |
Requires: asterisk-configs |
52 |
unnilennium |
1.27 |
Requires: ffmpeg |
53 |
|
|
Requires: mpg123 |
54 |
jpp |
1.33 |
Requires: mysql-connector-odbc |
55 |
|
|
Requires: unixODBC |
56 |
|
|
Requires: asterisk-odbc |
57 |
jpp |
1.34 |
Requires: lame |
58 |
unnilennium |
1.31 |
Requires: e-smith-manager >= 2.6.0-22 |
59 |
|
|
|
60 |
unnilennium |
1.1 |
#Buildarch: noarch |
61 |
|
|
AutoReqProv: no |
62 |
|
|
|
63 |
|
|
|
64 |
|
|
%description |
65 |
|
|
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. |
66 |
|
|
This package provide the integration of FreePBX on SME Server. |
67 |
|
|
|
68 |
|
|
|
69 |
unnilennium |
1.3 |
%changelog |
70 |
jpp |
1.34 |
* Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 13-16.sme |
71 |
jpp |
1.33 |
- add required modules to enable cel and cdr logging and search [SME: 10620] |
72 |
jpp |
1.34 |
- add requires lame [SME: 9859] |
73 |
jpp |
1.33 |
|
74 |
jpp |
1.32 |
* Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme |
75 |
|
|
- fix warning tampered files in GUI [SME: 10496] |
76 |
|
|
- remove DeviceAndUser property [SME: 10503] |
77 |
|
|
|
78 |
|
|
* Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-14.sme |
79 |
unnilennium |
1.31 |
- update TKT auth parameter for SME 9.2 [SME: 10268] |
80 |
|
|
|
81 |
unnilennium |
1.30 |
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-13.sme |
82 |
unnilennium |
1.29 |
- fix noise rebooting and restarting freepbx [SME: 10120] |
83 |
|
|
|
84 |
unnilennium |
1.28 |
* Wed Jan 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-11.sme |
85 |
|
|
- NFR: auto backup of whole FBX config during pre-backup event [SME: 9637] |
86 |
|
|
- both asdb and fpbx, asterisk config files, freepbx folders, voicemails are part of backup |
87 |
|
|
- 2 versions are kepts |
88 |
|
|
- weekly backup is also done. |
89 |
|
|
|
90 |
|
|
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-10.sme |
91 |
unnilennium |
1.27 |
- fix Missing HTML5 format converters [SME: 9859] |
92 |
|
|
- added requirement for mpg123 and ffmpeg available in smecontribs |
93 |
|
|
|
94 |
unnilennium |
1.28 |
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-9.sme |
95 |
unnilennium |
1.26 |
- update framework before other modules [SME: 9860] |
96 |
|
|
|
97 |
unnilennium |
1.25 |
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme |
98 |
|
|
- autoupgrade modules [SME: 9860] |
99 |
|
|
|
100 |
unnilennium |
1.24 |
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme |
101 |
|
|
- fix wrong default UDPPorts on new install [SME: 9918] |
102 |
|
|
|
103 |
unnilennium |
1.23 |
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme |
104 |
|
|
- fix error while backup with workstation [SME: 9760] |
105 |
|
|
|
106 |
|
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme |
107 |
unnilennium |
1.22 |
-fix typo in smeserver-freepbx-13.bz9744.patch |
108 |
|
|
|
109 |
unnilennium |
1.21 |
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme |
110 |
|
|
- fix [SME: 9702] |
111 |
|
|
- corrected syntax for port range |
112 |
|
|
|
113 |
|
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme |
114 |
unnilennium |
1.20 |
- fix [SME: 9744] |
115 |
|
|
- fix wrong /tmp folder permission after update |
116 |
|
|
- Thank you Hsing-Foo Wang. |
117 |
|
|
|
118 |
unnilennium |
1.19 |
* Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme |
119 |
|
|
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
120 |
|
|
|
121 |
unnilennium |
1.18 |
* Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-1.sme |
122 |
|
|
- bump version to current Freepbx version 13 |
123 |
|
|
|
124 |
unnilennium |
1.17 |
* Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> -47.sme |
125 |
|
|
- add all needed port for Freepbx sip pjsip and RTP [SME: 9495] |
126 |
|
|
|
127 |
unnilennium |
1.15 |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme |
128 |
|
|
- fix missing config files (requires asterisk-configs) [SME: 9577] |
129 |
unnilennium |
1.16 |
- fix recuring reconfiguration error while installing digium phone module [SME: 9575] |
130 |
|
|
- added port 5061 for tls to TCP ports [SME: 9576] |
131 |
unnilennium |
1.15 |
|
132 |
unnilennium |
1.14 |
* Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme |
133 |
|
|
- fix wrong logrotate pattern [SME: 9516] |
134 |
|
|
- as the contrib is only in smedev, i do not fix existing log files badly rotated |
135 |
|
|
|
136 |
unnilennium |
1.13 |
* Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme |
137 |
|
|
- remove fop db [SME: 9495] |
138 |
|
|
- add some mysql setting for freepbxdb (user, email) |
139 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch |
140 |
|
|
|
141 |
unnilennium |
1.12 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-43.sme |
142 |
|
|
- add path to ucp module [SME: 9495] |
143 |
|
|
- add 256Mo as default for freepbx php Memory |
144 |
|
|
- add AllowOveride All for .htaccess |
145 |
|
|
- remove httpd config to old FOP panel |
146 |
|
|
- add port 5061 for freepbx |
147 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch |
148 |
|
|
- configuration of amportal.conf and its mysql equivalent |
149 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch |
150 |
|
|
|
151 |
unnilennium |
1.10 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-42.sme |
152 |
|
|
- remove FOP patches [SME: 9495] |
153 |
|
|
- deleted link to expand amportal.conf |
154 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch |
155 |
|
|
|
156 |
unnilennium |
1.9 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-41.sme |
157 |
unnilennium |
1.7 |
- remove heading of /etc/asterisk/asterisk.conf [SME: 9495] |
158 |
unnilennium |
1.9 |
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch |
159 |
|
|
- bump |
160 |
unnilennium |
1.7 |
|
161 |
unnilennium |
1.6 |
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-38.sme |
162 |
|
|
- remove expand template amportal.conf [SME: 9495] |
163 |
|
|
- chown /var/lib/asterisk |
164 |
|
|
- installation configuration options |
165 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch |
166 |
|
|
- Requires: asterisk-sounds-core-en-ulaw asterisk-sounds-extra-en-ulaw asterisk-voicemail |
167 |
|
|
|
168 |
|
|
* Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-37.sme |
169 |
unnilennium |
1.5 |
- new path to sql files [SME: 9495] |
170 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch |
171 |
|
|
|
172 |
unnilennium |
1.4 |
* Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-36.sme |
173 |
|
|
- adapt script to fpbx13 and asterisk 13 [SME: 9495] |
174 |
|
|
- change Requires Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so to |
175 |
|
|
- Requires: asterisk-addons as this is the paquet providing it, and it changed name to app_mysql.so |
176 |
|
|
|
177 |
|
|
* Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-35.sme |
178 |
unnilennium |
1.3 |
- adapt script to fpbx13 and asterisk 13 [SME: 9495] |
179 |
|
|
- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch |
180 |
|
|
|
181 |
|
|
* Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-34.sme |
182 |
unnilennium |
1.2 |
- first import to SME9 [SME: 9495] |
183 |
unnilennium |
1.1 |
|
184 |
|
|
* Sun May 12 2013 JP Pialasse <tests@pialasse.com> 0.1-33.sme |
185 |
|
|
- buildarch removed in order to find the correct %{_libdir}/asterisk/modules/app_addon_sql_mysql.so |
186 |
|
|
|
187 |
|
|
* Thu Oct 20 2011 Daniel B. <daniel@firewall-services.com> 0.1-32.sme |
188 |
|
|
- Protect by locations (so other alias can be defined to protect with LL::NG for example) |
189 |
|
|
|
190 |
|
|
* Mon Oct 17 2011 Daniel B. <daniel@firewall-services.com> 0.1-31.sme |
191 |
|
|
- Add misdn.log to logrotate |
192 |
|
|
|
193 |
|
|
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme |
194 |
|
|
- Change session path [SME: 6661] |
195 |
|
|
|
196 |
|
|
* Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme |
197 |
|
|
- astdatadir is /var/lib/asterisk |
198 |
|
|
- templates for /etc/logrotate.d/asterisk |
199 |
|
|
|
200 |
|
|
* Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme |
201 |
|
|
- Create and populate the mysql databases in mysql.init |
202 |
|
|
- Templates for /etc/asterisk/asterisk.conf |
203 |
|
|
|
204 |
|
|
* Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27] |
205 |
|
|
- Read ARI password from the DB (and initialize a random one) |
206 |
|
|
|
207 |
|
|
* Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26] |
208 |
|
|
- Remove hard-coded dependencies on asterisk and asterisk-addons14 |
209 |
|
|
Depends now on asterisk binary and app_addon_sql_mysql.so files |
210 |
|
|
(so it can work with asterisk or asterisk14) |
211 |
|
|
|
212 |
|
|
* Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25] |
213 |
|
|
- Remove /etc/logrotate.d/asterisk which is now included in asterisk14 |
214 |
|
|
|
215 |
|
|
* Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24] |
216 |
|
|
- Depends now on asterisk14 and asterisk-addons14 |
217 |
|
|
|
218 |
|
|
* Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23] |
219 |
|
|
- disable dynamic hints |
220 |
|
|
|
221 |
|
|
* Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22] |
222 |
|
|
- include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb |
223 |
|
|
action script for FreePBX 2.6 compatibility |
224 |
|
|
|
225 |
|
|
* Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21] |
226 |
|
|
- Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some |
227 |
|
|
modules (due to the ProxyPass configuration) |
228 |
|
|
|
229 |
|
|
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20] |
230 |
|
|
- Fix CDR db password in cdr_mysql.conf template |
231 |
|
|
- Use a separate service in SME db for FOP |
232 |
|
|
|
233 |
|
|
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19] |
234 |
|
|
- remove scoreboard directive from httpd-fpbx config |
235 |
|
|
- remove some modules (mod_ssl, mod_proxy) |
236 |
|
|
|
237 |
|
|
* Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18] |
238 |
|
|
- templatize cdr_mysql.conf [SME: 5153] |
239 |
|
|
- templatize manager.conf |
240 |
|
|
- remove freepbx-cron-scheduler.php from root crontab so only |
241 |
|
|
asterisk user runs it (prevent email error sent from cron) |
242 |
|
|
|
243 |
|
|
* Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17] |
244 |
|
|
- Remove obsolete /admin Alias from apache |
245 |
|
|
- Run the security script on bootsrape-console-save event |
246 |
|
|
|
247 |
|
|
* Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16] |
248 |
|
|
- Security Fixe: put a random password for ARI admin (this should be documented) |
249 |
|
|
|
250 |
|
|
* Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15] |
251 |
|
|
- Check if /opt/freepbx/admin exists (retry the install if a first one failed) |
252 |
|
|
- Remove tabs from spec |
253 |
|
|
|
254 |
|
|
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14] |
255 |
|
|
- Remove speex from dependencies |
256 |
|
|
|
257 |
|
|
* Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13] |
258 |
|
|
- Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux |
259 |
|
|
|
260 |
|
|
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12] |
261 |
|
|
- Fix logrotate issue (send a sigusr1 signal to httpd-fpbx) |
262 |
|
|
|
263 |
|
|
* Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11] |
264 |
|
|
- Full support for the new DAHDI driver, droping zaptel |
265 |
|
|
|
266 |
|
|
* Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10] |
267 |
|
|
- add support for DAHDI channel |
268 |
|
|
|
269 |
|
|
* Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9] |
270 |
|
|
- move expand-templates from post-upgrade event to bootstrap-console-save |
271 |
|
|
|
272 |
|
|
* Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8] |
273 |
|
|
- Add support for trunk name in mail alerts |
274 |
|
|
|
275 |
|
|
* Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7] |
276 |
|
|
- Add a simple script to alert admin by mail on trunk errors |
277 |
|
|
|
278 |
|
|
* Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6] |
279 |
|
|
- Use AdminPanels props so access can be configured using |
280 |
|
|
smeserver-userpanels contrib. AdminUsers and FopUsers |
281 |
|
|
props aren't used anymore |
282 |
|
|
|
283 |
|
|
* Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5] |
284 |
|
|
- add logrotate default config file for asterisk's logs |
285 |
|
|
- spec cleanup |
286 |
|
|
|
287 |
|
|
* Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4] |
288 |
|
|
- fix logrotate issue |
289 |
|
|
|
290 |
|
|
* Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3] |
291 |
|
|
- split freepbx sources in a separate package (freepbx-src) |
292 |
|
|
- alternative genzaptelconf |
293 |
|
|
|
294 |
|
|
* Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2] |
295 |
|
|
- Fix fop not being displayed in admin page |
296 |
|
|
|
297 |
|
|
* Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
298 |
|
|
- updated to 2.5.0 final |
299 |
|
|
- spec cleaning |
300 |
|
|
- templates cleaning |
301 |
|
|
- templates to update mysql informations |
302 |
|
|
|
303 |
|
|
* Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0] |
304 |
|
|
- initial release |
305 |
|
|
|
306 |
|
|
%prep |
307 |
|
|
|
308 |
|
|
%setup -q -n %{name}-%{version} |
309 |
unnilennium |
1.19 |
%patch0 -p1 |
310 |
unnilennium |
1.20 |
%patch1 -p1 |
311 |
unnilennium |
1.21 |
%patch2 -p1 |
312 |
unnilennium |
1.23 |
%patch3 -p1 |
313 |
unnilennium |
1.24 |
%patch4 -p1 |
314 |
unnilennium |
1.25 |
%patch5 -p1 |
315 |
unnilennium |
1.28 |
%patch6 -p1 |
316 |
unnilennium |
1.29 |
%patch7 -p1 |
317 |
unnilennium |
1.31 |
%patch8 -p1 |
318 |
jpp |
1.32 |
%patch9 -p1 |
319 |
|
|
%patch10 -p1 |
320 |
|
|
|
321 |
|
|
# until rebuilt of a smeserver-freepbx tar file: |
322 |
|
|
rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser |
323 |
unnilennium |
1.1 |
|
324 |
|
|
%build |
325 |
|
|
# Build symlinks |
326 |
|
|
perl createlinks |
327 |
|
|
|
328 |
|
|
%install |
329 |
|
|
rm -rf $RPM_BUILD_ROOT |
330 |
|
|
|
331 |
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session |
332 |
|
|
|
333 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
334 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
335 |
|
|
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
336 |
|
|
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
337 |
|
|
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |
338 |
|
|
--dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \ |
339 |
|
|
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
340 |
|
|
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
341 |
|
|
--dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \ |
342 |
|
|
--dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \ |
343 |
|
|
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
344 |
|
|
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
345 |
|
|
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
346 |
|
|
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
347 |
|
|
> %{name}-%{version}-%{release}-filelist |
348 |
|
|
|
349 |
|
|
%clean |
350 |
|
|
rm -rf $RPM_BUILD_ROOT |
351 |
|
|
|
352 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
353 |
|
|
%defattr(-,root,root) |
354 |
|
|
|
355 |
|
|
|
356 |
|
|
%post |
357 |
|
|
|
358 |
unnilennium |
1.20 |
#bug 9744, restore tmp permissions |
359 |
|
|
if [ `stat -c %U /tmp` == "asterisk" ]; then |
360 |
|
|
chmod o+rwxt /tmp/ |
361 |
|
|
chown root:root /tmp/ |
362 |
|
|
fi |
363 |
|
|
|
364 |
unnilennium |
1.1 |
%preun |
365 |
|
|
if [ $1 = 0 ] ; then |
366 |
|
|
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
367 |
|
|
fi |
368 |
|
|
|
369 |
|
|
true |
370 |
|
|
|