/[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.20 - (hide annotations) (download)
Thu Dec 15 05:08:55 2022 UTC (17 months, 3 weeks ago) by jpp
Branch: MAIN
Changes since 1.19: +7 -2 lines
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme
- fix bugs installing FPBX 15

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

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