/[smecontribs]/rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec
ViewVC logotype

Annotation of /rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (hide annotations) (download)
Fri Jul 22 06:47:36 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-freepbx-14-4_el7_sme
Changes since 1.11: +6 -2 lines
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> %{version}-4.sme
- add to core backup [SME: 12009]
- httpd 2.4 syntax [SME: 12046]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed