FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
prepare a system for install testing. More...
Go to the source code of this file.
Classes | |
class | ConfigSys |
Functions | |
insertDeb ($objRef) | |
insert the fossology debian line in /etc/apt/sources.list More... | |
installFossology ($objRef) | |
Install fossology using either apt or yum. More... | |
ckInstallLog ($log) | |
Check the fossology install output for errors in the install. More... | |
copyFiles ($files, $dest) | |
copyFiles, copy one or more files to the destination, throws exception if file is not copied. More... | |
findVerPsql () | |
find the version of postgres and return major release and sub release. For example, if postgres is at 8.4.8, this function will return 8.4. More... | |
tuneKernel () | |
tune the kernel for this boot and successive boots More... | |
configApache2 ($osType) | |
check to see if fossology is configured into apache. If not copy the config file and configure it. Restart apache if configured. More... | |
configDebian ($osType, $osVersion) | |
config a debian based system to install fossology. More... | |
configRhel ($osType, $osVersion) | |
copy configuration files and restart apache and postgres More... | |
configYum ($objRef) | |
config yum on a redhat based system to install fossology. More... | |
restart ($application) | |
restart the application passed in, so any config changes will take affect. Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d More... | |
start ($application) | |
start the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d More... | |
stop ($application) | |
stop the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d More... | |
getPGhba ($destPath) | |
wget the pg_hba.conf file and place it in $destPath 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) | |
$testUtils = new TestRun() | |
prepare a system for install testing.
pkgConfig prepares a system for the installation of fossology packages and installs the fossology packages.
string | $fossVersion | the version of fossology to install? |
pkgConfig prepares a system for the installation of fossology packages and installs the fossology packages.
string | $fossVersion | the version of fossology to install? |
pkgConfig prepares a system for the installation of fossology packages and installs the fossology packages.
string | $fossVersion | the version of fossology to install? |
Definition in file pkgConfig.php.
ckInstallLog | ( | $log | ) |
Check the fossology install output for errors in the install.
These errors do not cause apt to think that the install failed, so the output should be checked for typical failures during an install of packages. See the code for the specific checks.
string | $log | the output from a fossology install with packages |
Definition at line 630 of file pkgConfig.php.
configApache2 | ( | $osType | ) |
check to see if fossology is configured into apache. If not copy the config file and configure it. Restart apache if configured.
string | $osType | type of the os, e.g. Debian, Ubuntu, Red, Fedora |
Definition at line 802 of file pkgConfig.php.
configDebian | ( | $osType, | |
$osVersion | |||
) |
config a debian based system to install fossology.
copy postgres, php config files so that fossology can run.
string | $osType | either Debian or Ubuntu |
string | $osVersion | the particular version to install |
Definition at line 867 of file pkgConfig.php.
configRhel | ( | $osType, | |
$osVersion | |||
) |
copy configuration files and restart apache and postgres
string | $osType | |
string | $osVersion |
Definition at line 1041 of file pkgConfig.php.
configYum | ( | $objRef | ) |
config yum on a redhat based system to install fossology.
Copies the Yum configuration file for fossology to
object | $objRef,a | reference to the ConfigSys object |
Definition at line 1097 of file pkgConfig.php.
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.
mixed | $files | the files to copy (string), use an array for multiple files. |
string | $dest | the destination path (must exist, must be writable). |
@retrun boolean
Definition at line 673 of file pkgConfig.php.
findVerPsql | ( | ) |
find the version of postgres and return major release and sub release. For example, if postgres is at 8.4.8, this function will return 8.4.
Definition at line 742 of file pkgConfig.php.
getPGhba | ( | $destPath | ) |
wget the pg_hba.conf file and place it in $destPath
string | $destPath | the full path to the destination |
Definition at line 1272 of file pkgConfig.php.
insertDeb | ( | $objRef | ) |
insert the fossology debian line in /etc/apt/sources.list
object | $objRef | the object with the deb attribute |
Definition at line 487 of file pkgConfig.php.
installFossology | ( | $objRef | ) |
Install fossology using either apt or yum.
installFossology assumes that the correct configuration for yum and the correct fossology version has been configured into the system.
object | $objRef | an object reference (should be to ConfigSys) |
Definition at line 529 of file pkgConfig.php.
restart | ( | $application | ) |
restart the application passed in, so any config changes will take affect. Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d
string | $application | the application to restart. The application passed in should match the script name in /etc/init.d |
Definition at line 1187 of file pkgConfig.php.
start | ( | $application | ) |
start the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d
string | $application | the application to start. The application passed in should match the script name in /etc/init.d |
Definition at line 1214 of file pkgConfig.php.
stop | ( | $application | ) |
stop the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d
string | $application | the application to stop. The application passed in should match the script name in /etc/init.d |
Definition at line 1248 of file pkgConfig.php.
tuneKernel | ( | ) |
tune the kernel for this boot and successive boots
returns void
Definition at line 765 of file pkgConfig.php.