FOSSology  4.4.0
Open Source License Compliance by Open Source Software
srcConfig.php File Reference

prepare a system for source install testing. More...

Go to the source code of this file.

Classes

class  ConfigSys
 

Functions

 configFossology ($objRef)
 Config fossology. More...
 
 copyFiles ($files, $dest)
 copyFiles, copy one or more files to the destination, throws exception if file is not copied. More...
 
 configDebian ($osType, $osVersion)
 config a debian based system to install fossology. More...
 
 configYum ($objRef)
 config redhat based system to install fossology. More...
 

Variables

global $Debian
 
global $RedHat
 
 $debian = NULL
 
 $redHat = NULL
 
 $fedora = NULL
 
 $ubuntu = NULL
 
 $euid = posix_getuid()
 
if($euid !=0) $distros = array()
 
 $f = exec('cat /etc/issue', $dist, $dRtn)
 

Detailed Description

prepare a system for source install testing.

srcConfig prepares a system for the installation of fossology from source

Definition in file srcConfig.php.

Function Documentation

◆ configDebian()

configDebian (   $osType,
  $osVersion 
)

config a debian based system to install fossology.

copy postgres, php config files so that fossology can run.

Parameters
string$osTypeeither Debian or Ubuntu
string$osVersionthe particular version to install
Returns
boolean

Definition at line 429 of file srcConfig.php.

◆ configFossology()

configFossology (   $objRef)

Config fossology.

Parameters
object$objRefan object reference (should be to ConfigSys)
Returns
boolean

Definition at line 271 of file srcConfig.php.

◆ configYum()

configYum (   $objRef)

config redhat based system to install fossology.

Copies the Yum configuration file for fossology to

Parameters
object$objRef,areference to the ConfigSys object
Returns
boolean

Definition at line 479 of file srcConfig.php.

◆ copyFiles()

copyFiles (   $files,
  $dest 
)

copyFiles, copy one or more files to the destination, throws exception if file is not copied.

The method can be used to rename a single file, but not a directory. It cannot rename multiple files.

Parameters
mixed$filesthe files to copy (string), use an array for multiple files.
string$destthe destination path (must exist, must be writable).

@retrun boolean

Definition at line 356 of file srcConfig.php.