/[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.5 - (hide annotations) (download)
Mon Mar 28 03:13:09 2022 UTC (2 years, 7 months ago) by jpp
Branch: MAIN
Changes since 1.4: +3 -3 lines
* Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme
- first import to SME10 [SME: 11613]
- make it Freepbx 14 compatible [SME: 10705] 
  add dependencies for SME10 mariadb nodejs >= 10 php70*
  remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons
  remove double owned folders /etc/asterisk /var/lib/asterisk
  systemd ready for asterisk(disabled), freepbx, httpd-fpbx
  smeserver-freepbx-update event created NEED TEST
  php70-php-fpm fragment
  update httpd-fpbx template for php-fpm use
  update httpd-e-smith to use php-fpm for fpbx
  update install script for php74
  add a copy of safe_asterisk
  create php folders and set rights
  improve logrotate

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

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