#!/bin/sh
# @function install pigz()
function InstallPigz()
{
    ShowResult "[green]正在安装Pigz... [/green]" 1
    
    eval rpm -ivh --force ${_PATH_SOFTWARE_}/pigz-*.rpm ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}

# @function install pbzip2()
function InstallPbzip2()
{
    ShowResult "[green]正在安装Pigz... [/green]" 1
    
    # install
    eval cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval rm -rf ./pbzip2-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval tar zxvf ${_PATH_SOFTWARE_}/pbzip2-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd pbzip2-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}
