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

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

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


Revision 1.12 - (show annotations) (download)
Tue May 19 17:42:07 2009 UTC (15 years ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-21_el4_sme
Changes since 1.11: +8 -2 lines
Add checkreferer=false

1 # $Id: smeserver-freepbx.spec,v 1.11 2009/04/28 14:04:54 vip-ire Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4
5 #%define fpbxversion 2.5.0
6 %define version 0.1
7 %define release 21
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
43 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
44 URL: http://www.freepbx.org/
45
46 BuildRequires: e-smith-devtools
47 BuildRequires: tar
48
49 Requires: mysql
50 Requires: httpd
51 Requires: php-pear
52 Requires: asterisk
53 Requires: asterisk-addons
54 Requires: dahdi-tools
55 Requires: dahdi-linux
56 Requires: sox
57 Requires: mod_auth_tkt
58 Requires: e-smith-base
59 Requires: freepbx-src
60
61 Buildarch: noarch
62 AutoReqProv: no
63
64
65 %description
66 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.
67 This package provide the integration of FreePBX on SME Server.
68
69
70 %changelog
71 * Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21]
72 - Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some
73 modules (due to the ProxyPass configuration)
74
75 * Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20]
76 - Fix CDR db password in cdr_mysql.conf template
77 - Use a separate service in SME db for FOP
78
79 * Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19]
80 - remove scoreboard directive from httpd-fpbx config
81 - remove some modules (mod_ssl, mod_proxy)
82
83 * Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18]
84 - templatize cdr_mysql.conf [SME: 5153]
85 - templatize manager.conf
86 - remove freepbx-cron-scheduler.php from root crontab so only
87 asterisk user runs it (prevent email error sent from cron)
88
89 * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17]
90 - Remove obsolete /admin Alias from apache
91 - Run the security script on bootsrape-console-save event
92
93 * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16]
94 - Security Fixe: put a random password for ARI admin (this should be documented)
95
96 * Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15]
97 - Check if /opt/freepbx/admin exists (retry the install if a first one failed)
98 - Remove tabs from spec
99
100 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14]
101 - Remove speex from dependencies
102
103 * Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13]
104 - Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux
105
106 * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12]
107 - Fix logrotate issue (send a sigusr1 signal to httpd-fpbx)
108
109 * Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11]
110 - Full support for the new DAHDI driver, droping zaptel
111
112 * Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10]
113 - add support for DAHDI channel
114
115 * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9]
116 - move expand-templates from post-upgrade event to bootstrap-console-save
117
118 * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8]
119 - Add support for trunk name in mail alerts
120
121 * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7]
122 - Add a simple script to alert admin by mail on trunk errors
123
124 * Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6]
125 - Use AdminPanels props so access can be configured using
126 smeserver-userpanels contrib. AdminUsers and FopUsers
127 props aren't used anymore
128
129 * Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5]
130 - add logrotate default config file for asterisk's logs
131 - spec cleanup
132
133 * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
134 - fix logrotate issue
135
136 * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
137 - split freepbx sources in a separate package (freepbx-src)
138 - alternative genzaptelconf
139
140 * Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
141 - Fix fop not being displayed in admin page
142
143 * Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
144 - updated to 2.5.0 final
145 - spec cleaning
146 - templates cleaning
147 - templates to update mysql informations
148
149 * Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0]
150 - initial release
151
152 %prep
153
154 %setup -q -n %{name}-%{version}
155 %patch0 -p1
156 %patch1 -p1
157 %patch2 -p1
158 %patch3 -p1
159 %patch4 -p1
160 %patch5 -p1
161 %patch6 -p1
162 %patch7 -p1
163 %patch8 -p1
164 %patch9 -p1
165 %patch10 -p1
166 %patch11 -p1
167 %patch12 -p1
168 %patch13 -p1
169 %patch14 -p1
170 %patch15 -p1
171 %patch16 -p1
172 %patch17 -p1
173 %patch18 -p1
174 %patch19 -p1
175 %patch20 -p1
176 %patch21 -p1
177 %patch22 -p1
178 %patch23 -p1
179
180 %build
181 # Build symlinks
182 perl createlinks
183
184
185 %install
186 rm -rf $RPM_BUILD_ROOT
187 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
188 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
189 --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
190 --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
191 --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
192 --dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \
193 --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \
194 --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \
195 --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \
196 --dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \
197 --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \
198 --file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \
199 --file /etc/logrotate.d/asterisk 'config(noreplace)' \
200 > %{name}-%{version}-%{release}-filelist
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %files -f %{name}-%{version}-%{release}-filelist
206 %defattr(-,root,root)
207
208
209 %post
210
211 %preun
212 if [ $1 = 0 ] ; then
213 /etc/rc.d/init.d/freepbx stop >& /dev/null || :
214 fi
215
216 true
217

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