Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
freePBX
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Changed
freepbx.spec
@@ -21,8 +21,8 @@ Source1: freepbx-trixbox-ampperm.sql BuildRoot: %{_tmppath}/%{name}-%{version} URL: http://www.freepbx.org/ - -Requires: mysql php5 +AutoReqProv: off +Requires: mysql php5-cli php5-pear ruby bash coreutils sed Provides: perl(retrieve_parse_amportal_conf.pl) %description @@ -65,7 +65,15 @@ # Setting Permissions /usr/bin/mysql --user=root --password=passw0rd asterisk < /usr/src/%{name}-%{version}/SQL/newinstall.sql - cp /usr/src/%{name}-%{version}/amportal.conf /etc + cp /usr/src/%{name}-%{version}/amportal.conf %{_sysconfdir} + %if 0%{?suse_version} + #AMPWEBROOT=/var/www/html + #AMPCGIBIN=/var/www/cgi-bin + #FOPWEBROOT=/var/www/html/panel + sed -i s@AMPWEBROOT=/var/www/html@AMPWEBROOT=/srv/www/htdocs@g %{_sysconfdir}/amportal.conf + sed -i s@AMPCGIBIN=/var/www/cgi-bin@AMPCGIBIN=/srv/www/cgi-bin@g %{_sysconfdir}/amportal.conf + sed -i s@FOPWEBROOT=/var/www/html/panel@FOPWEBROOT=/srv/www/htdocs/panel@g %{_sysconfdir}/amportal.conf + %endif echo " *** Installing FreePBX.org app" cd /usr/src/%{name}-%{version} echo a | ./install_amp