* FusionForge Installation Dependency Setup
*
* Copyright 2006 GForge, LLC
- * http://gforge.org/
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
+ * http://fusionforge.org/
*
* @version
*
* This file is part of GInstaller. It is be called by install.sh.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * GForge is distributed in the hope that it will be useful,
+ * FusionForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with GForge; if not, write to the Free Software
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
* Francisco Gimeno
*/
define ("RED", "\033[01;31m" );
function printUsage() {
- echo "Usage: fusionforge-install-1-deps [RHEL4|RHEL5|DEBIAN|FEDORA|CENTOS|ARK|SUSE|OPENSUSE]\n";
+ echo "Usage: fusionforge-install-1-deps [RHEL5|DEBIAN|FEDORA|CENTOS|ARK|SUSE|OPENSUSE]\n";
}
function INFO($message)
{
global $depth, $myLog;
if(VERBOSE) for ($i=0; $i < $depth; $i++) echo " ";
- if(VERBOSE) echo $message;
+ if(VERBOSE) echo $message."\n";
for($i=0; $i < $depth; $i++ ) $myLog.=" ";
$myLog.=$message;
}
addFusionForgeYumRepo();
addDagRPMForgeYumRepo();
INFO("Installing packages: Executing YUM. Please wait...\n\n\n");
- passthru("yum -y install httpd php mailman cvs postgresql postgresql-libs postgresql-server postgresql-contrib perl-URI php-pgsql subversion mod_dav_svn postfix rcs php-gd mod_ssl wget openssh which liberation-fonts htmlpurifier php-mbstring php-jpgraph-1.5.2 poppler-utils php-pecl-zip antiword");
-}
-
-function installRHEL4() {
- INFO("Installing packages: Executing UP2DATE. Please wait...\n\n\n");
- passthru("up2date --install php php-gd php-pgsql mailman postgresql-server postgresql-contrib rcs cvs httpd subversion perl-URI mod_dav_svn ssh postfix mod_ssl wget");
- INFO(RED."You Must Install htmlpurifier manually.");
+ passthru("yum -y install httpd php mailman cvs postgresql postgresql-libs postgresql-server postgresql-contrib perl-URI php-pgsql subversion mod_dav_svn postfix rcs php-gd mod_ssl wget openssh which liberation-fonts htmlpurifier php-mbstring php-jpgraph-1.5.2 poppler-utils php-pecl-zip php-pear-HTTP_WebDAV_Server antiword");
}
function installDebian() {
INFO("Installing Packages with apt-get");
- passthru("apt-get -y install apache2 php5 php5-cli php5-pgsql cvs postgresql postgresql-contrib libipc-run-perl liburi-perl libapache2-svn libapache2-mod-php5 subversion subversion-tools php5-curl curl ssh lsb-release");
+ passthru("apt-get -y install apache2 php5 php5-cli php5-pgsql cvs postgresql postgresql-contrib libipc-run-perl liburi-perl libapache2-svn libapache2-mod-php5 subversion subversion-tools php5-curl curl ssh lsb-release php-htmlpurifier");
passthru("a2enmod headers");
passthru("a2enmod proxy");
passthru("a2enmod ssl");
passthru("a2enmod rewrite");
+ passthru("a2enmod vhost_alias");
- INFO(RED."You Must Install Mailman Manually: apt-get install mailman postfix");
+ INFO(RED."You Must Install Mailman Manually: apt-get install mailman postfix".NORMAL);
}
function installSUSE() {
INFO("Starting Apache");
passthru("/etc/init.d/apache2 start");
- INFO(RED."You Must Install htmlpurifier manually.");
+ INFO(RED."You Must Install htmlpurifier manually.".NORMAL);
}
function installOPENSUSE() {
INFO("Restarting Apache...");
passthru("rcapache2 restart");
- INFO(RED."You Must Install htmlpurifier manually.");
+ INFO(RED."You Must Install htmlpurifier manually.".NORMAL);
}
function installArk() {
INFO("Restarting PostgreSQL\n");
passthru("/sbin/service postgresql restart");
- INFO(RED."You Must Install htmlpurifier manually.");
+ INFO(RED."You Must Install htmlpurifier manually.".NORMAL);
}
function addFusionForgeYumRepo() {
if ($platform == 'FEDORA' || $platform == 'CENTOS' || $platform == 'RHEL5') {
installRedhat();
-} elseif ($platform == 'RHEL4') {
- installRHEL4();
} elseif ($platform == 'DEBIAN') {
installDebian(); /* Debian and friends */
} elseif ($platform == 'SUSE') {