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

Contents of /rpms/smeserver-freepbx/contribs9/smeserver-freepbx.spec

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


Revision 1.15 - (show annotations) (download)
Sat Jun 11 08:35:10 2016 UTC (7 years, 11 months ago) by unnilennium
Branch: MAIN
Changes since 1.14: +6 -3 lines
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme
- fix missing config files (requires asterisk-configs) [SME: 9577]

1 # $Id: smeserver-freepbx.spec,v 1.14 2016/06/09 18:51:02 unnilennium Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4
5 #%define fpbxversion 2.5.0
6 %define version 0.1
7 %define release 46
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 Patch0: smeserver-freepbx-0.1-fop_link.patch
19 Patch1: smeserver-freepbx-0.1-genzaptelconf.patch
20 Patch2: smeserver-freepbx-0.1-logrotate.patch
21 Patch3: smeserver-freepbx-0.1-asterisk_logrotate.patch
22 Patch4: smeserver-freepbx-0.1-userpanels.patch
23 Patch5: smeserver-freepbx-0.1-trunk_alert_mail.patch
24 Patch6: smeserver-freepbx-0.1-trunk_name_in_alert.patch
25 Patch7: smeserver-freepbx-0.1-postupgrade_to_bootstrap.patch
26 Patch8: smeserver-freepbx-0.1-zap2dahdi.patch
27 Patch9: smeserver-freepbx-0.1-full_dahdi_support.patch
28 Patch10: smeserver-freepbx-0.1-fix_logrotate_event.patch
29 Patch11: smeserver-freepbx-0.1-retry_install.patch
30 Patch12: smeserver-freepbx-0.1-recordings_security.patch
31 Patch13: smeserver-freepbx-0.1-remove_admin_alias.patch
32 Patch14: smeserver-freepbx-0.1-recordingsfix2bootstrap.patch
33 Patch15: smeserver-freepbx-0.1-templatize_cdr_mysql.patch
34 Patch16: smeserver-freepbx-0.1-templatize_manager.patch
35 Patch17: smeserver-freepbx-0.1-cdr_mysql_template_begin.patch
36 Patch18: smeserver-freepbx-0.1-clean_crontab.patch
37 Patch19: smeserver-freepbx-0.1-crontab_script_fixe.patch
38 Patch20: smeserver-freepbx-0.1-http_cleanup.patch
39 Patch21: smeserver-freepbx-0.1-cdr_passwd.patch
40 Patch22: smeserver-freepbx-0.1-fop_separate_service.patch
41 Patch23: smeserver-freepbx-0.1-check_referer.patch
42 Patch24: smeserver-freepbx-0.1-dump_astdb_include_functions.patch
43 Patch25: smeserver-freepbx-0.1-disable_dynamic_hints.patch
44 Patch26: smeserver-freepbx-0.1-remove_logrotate_conf.patch
45 Patch27: smeserver-freepbx-0.1-ari_password_from_db.patch
46 Patch28: smeserver-freepbx-0.1-create_mysql.patch
47 Patch29: smeserver-freepbx-0.1-template_asterisk_conf.patch
48 Patch30: smeserver-freepbx-0.1-datadir_in_var_lib.patch
49 Patch31: smeserver-freepbx-0.1-templates_logrotate.patch
50 Patch32: smeserver-freepbx-0.1-session_path.patch
51 Patch33: smeserver-freepbx-0.1-logrotate_misdn.patch
52 Patch34: smeserver-freepbx-0.1-protect_by_location.patch
53 Patch35: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch
54 Patch36: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch
55 Patch37: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch
56 Patch38: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch
57 Patch39: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch
58 Patch40: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch
59 Patch41: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch
60 Patch42: smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch
61 Patch43: smeserver-freepbx-0.1-logrotate1.patch
62
63 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
64 URL: http://www.freepbx.org/
65
66 BuildRequires: e-smith-devtools
67 BuildRequires: tar
68
69 Requires: mysql
70 Requires: httpd
71 Requires: php-pear
72 Requires: /usr/sbin/asterisk
73 Requires: asterisk-addons
74 Requires: dahdi-tools
75 Requires: dahdi-linux
76 Requires: sox
77 Requires: mod_auth_tkt
78 Requires: e-smith-base
79 Requires: freepbx-src
80 Requires: asterisk-sounds-core-en-ulaw
81 Requires: asterisk-sounds-extra-en-ulaw
82 Requires: asterisk-voicemail
83 Requires: asterisk-configs
84 #Buildarch: noarch
85 AutoReqProv: no
86
87
88 %description
89 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.
90 This package provide the integration of FreePBX on SME Server.
91
92
93 %changelog
94 * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme
95 - fix missing config files (requires asterisk-configs) [SME: 9577]
96
97 * Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme
98 - fix wrong logrotate pattern [SME: 9516]
99 - as the contrib is only in smedev, i do not fix existing log files badly rotated
100
101 * Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme
102 - remove fop db [SME: 9495]
103 - add some mysql setting for freepbxdb (user, email)
104 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch
105
106 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-43.sme
107 - add path to ucp module [SME: 9495]
108 - add 256Mo as default for freepbx php Memory
109 - add AllowOveride All for .htaccess
110 - remove httpd config to old FOP panel
111 - add port 5061 for freepbx
112 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch
113 - configuration of amportal.conf and its mysql equivalent
114 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch
115
116 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-42.sme
117 - remove FOP patches [SME: 9495]
118 - deleted link to expand amportal.conf
119 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch
120
121 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-41.sme
122 - remove heading of /etc/asterisk/asterisk.conf [SME: 9495]
123 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch
124 - bump
125
126 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-38.sme
127 - remove expand template amportal.conf [SME: 9495]
128 - chown /var/lib/asterisk
129 - installation configuration options
130 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch
131 - Requires: asterisk-sounds-core-en-ulaw asterisk-sounds-extra-en-ulaw asterisk-voicemail
132
133 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-37.sme
134 - new path to sql files [SME: 9495]
135 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch
136
137 * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-36.sme
138 - adapt script to fpbx13 and asterisk 13 [SME: 9495]
139 - change Requires Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so to
140 - Requires: asterisk-addons as this is the paquet providing it, and it changed name to app_mysql.so
141
142 * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-35.sme
143 - adapt script to fpbx13 and asterisk 13 [SME: 9495]
144 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch
145
146 * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-34.sme
147 - first import to SME9 [SME: 9495]
148
149 * Sun May 12 2013 JP Pialasse <tests@pialasse.com> 0.1-33.sme
150 - buildarch removed in order to find the correct %{_libdir}/asterisk/modules/app_addon_sql_mysql.so
151
152 * Thu Oct 20 2011 Daniel B. <daniel@firewall-services.com> 0.1-32.sme
153 - Protect by locations (so other alias can be defined to protect with LL::NG for example)
154
155 * Mon Oct 17 2011 Daniel B. <daniel@firewall-services.com> 0.1-31.sme
156 - Add misdn.log to logrotate
157
158 * Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme
159 - Change session path [SME: 6661]
160
161 * Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme
162 - astdatadir is /var/lib/asterisk
163 - templates for /etc/logrotate.d/asterisk
164
165 * Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme
166 - Create and populate the mysql databases in mysql.init
167 - Templates for /etc/asterisk/asterisk.conf
168
169 * Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27]
170 - Read ARI password from the DB (and initialize a random one)
171
172 * Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26]
173 - Remove hard-coded dependencies on asterisk and asterisk-addons14
174 Depends now on asterisk binary and app_addon_sql_mysql.so files
175 (so it can work with asterisk or asterisk14)
176
177 * Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25]
178 - Remove /etc/logrotate.d/asterisk which is now included in asterisk14
179
180 * Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24]
181 - Depends now on asterisk14 and asterisk-addons14
182
183 * Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23]
184 - disable dynamic hints
185
186 * Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22]
187 - include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb
188 action script for FreePBX 2.6 compatibility
189
190 * Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21]
191 - Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some
192 modules (due to the ProxyPass configuration)
193
194 * Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20]
195 - Fix CDR db password in cdr_mysql.conf template
196 - Use a separate service in SME db for FOP
197
198 * Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19]
199 - remove scoreboard directive from httpd-fpbx config
200 - remove some modules (mod_ssl, mod_proxy)
201
202 * Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18]
203 - templatize cdr_mysql.conf [SME: 5153]
204 - templatize manager.conf
205 - remove freepbx-cron-scheduler.php from root crontab so only
206 asterisk user runs it (prevent email error sent from cron)
207
208 * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17]
209 - Remove obsolete /admin Alias from apache
210 - Run the security script on bootsrape-console-save event
211
212 * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16]
213 - Security Fixe: put a random password for ARI admin (this should be documented)
214
215 * Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15]
216 - Check if /opt/freepbx/admin exists (retry the install if a first one failed)
217 - Remove tabs from spec
218
219 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14]
220 - Remove speex from dependencies
221
222 * Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13]
223 - Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux
224
225 * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12]
226 - Fix logrotate issue (send a sigusr1 signal to httpd-fpbx)
227
228 * Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11]
229 - Full support for the new DAHDI driver, droping zaptel
230
231 * Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10]
232 - add support for DAHDI channel
233
234 * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9]
235 - move expand-templates from post-upgrade event to bootstrap-console-save
236
237 * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8]
238 - Add support for trunk name in mail alerts
239
240 * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7]
241 - Add a simple script to alert admin by mail on trunk errors
242
243 * Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6]
244 - Use AdminPanels props so access can be configured using
245 smeserver-userpanels contrib. AdminUsers and FopUsers
246 props aren't used anymore
247
248 * Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5]
249 - add logrotate default config file for asterisk's logs
250 - spec cleanup
251
252 * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
253 - fix logrotate issue
254
255 * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
256 - split freepbx sources in a separate package (freepbx-src)
257 - alternative genzaptelconf
258
259 * Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
260 - Fix fop not being displayed in admin page
261
262 * Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
263 - updated to 2.5.0 final
264 - spec cleaning
265 - templates cleaning
266 - templates to update mysql informations
267
268 * Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0]
269 - initial release
270
271 %prep
272
273 %setup -q -n %{name}-%{version}
274 %patch0 -p1
275 %patch1 -p1
276 %patch2 -p1
277 %patch3 -p1
278 %patch4 -p1
279 %patch5 -p1
280 %patch6 -p1
281 %patch7 -p1
282 %patch8 -p1
283 %patch9 -p1
284 %patch10 -p1
285 %patch11 -p1
286 %patch12 -p1
287 %patch13 -p1
288 %patch14 -p1
289 %patch15 -p1
290 %patch16 -p1
291 %patch17 -p1
292 %patch18 -p1
293 %patch19 -p1
294 %patch20 -p1
295 %patch21 -p1
296 %patch22 -p1
297 %patch23 -p1
298 %patch24 -p1
299 %patch25 -p1
300 %patch26 -p1
301 %patch27 -p1
302 %patch28 -p1
303 %patch29 -p1
304 %patch30 -p1
305 %patch31 -p1
306 %patch32 -p1
307 %patch33 -p1
308 %patch34 -p1
309 %patch35 -p1
310 %patch36 -p1
311 %patch37 -p1
312 %patch38 -p1
313 %patch39 -p1
314 %patch40 -p1
315 %patch41 -p1
316 %patch42 -p1
317 %patch43 -p1
318
319
320 #dirty temp fix to remove file that should not be there
321 rm root/etc/e-smith/events/freepbx-update/templates2expand/etc/amportal.conf
322
323 %build
324 # Build symlinks
325 perl createlinks
326
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 %preun
359 if [ $1 = 0 ] ; then
360 /etc/rc.d/init.d/freepbx stop >& /dev/null || :
361 fi
362
363 true
364

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