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