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

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

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


Revision 1.8 - (hide annotations) (download)
Fri Mar 27 11:27:42 2009 UTC (15 years, 2 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-17_el4_sme
Changes since 1.7: +10 -2 lines
Remove /admin alias and run security script

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

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