#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.3 # Package: KDE6-apps-utils #=========================== # DB commit: e480449868ca4262eee264eafd6c2d45b7f54583 # APP commit: b0e7f121177a769c20a4c985867d650259b096ce #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: KDE6-apps-utils" echo "Release: 0.2.3" downloadFile() { local filename=$1 echo "Downloading $filename ..." if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl -k -O $filename else wget --no-check-certificate -nc $filename fi } echo "loading environment settings(profile)" . /etc/profile echo "checking config file" if [ -f $ULFS_CONFIG_FILE ] then echo "loading config file $ULFS_CONFIG_FILE..." . $ULFS_CONFIG_FILE fi #Creating log directory mkdir -p /var/log/ulfs-packages/KDE6-apps-utils/ #Saving start timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-utils/start.time #Going to source directory... cd /sources #Checking dependances... #Checking filelight... if [ ! -f /var/cache/ulfs-packages/filelight ]; then echo "Dependance \"filelight\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/filelight/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/filelight/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/filelight ]; then echo "Dependance \"filelight\" is not installed. Exiting..." exit fi fi #Checking francis... if [ ! -f /var/cache/ulfs-packages/francis ]; then echo "Dependance \"francis\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/francis/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/francis/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/francis ]; then echo "Dependance \"francis\" is not installed. Exiting..." exit fi fi #Checking isoimagewriter... if [ ! -f /var/cache/ulfs-packages/isoimagewriter ]; then echo "Dependance \"isoimagewriter\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/isoimagewriter/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/isoimagewriter/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/isoimagewriter ]; then echo "Dependance \"isoimagewriter\" is not installed. Exiting..." exit fi fi #Checking kalk... if [ ! -f /var/cache/ulfs-packages/kalk ]; then echo "Dependance \"kalk\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kalk/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kalk/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kalk ]; then echo "Dependance \"kalk\" is not installed. Exiting..." exit fi fi #Checking kalm... if [ ! -f /var/cache/ulfs-packages/kalm ]; then echo "Dependance \"kalm\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kalm/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kalm/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kalm ]; then echo "Dependance \"kalm\" is not installed. Exiting..." exit fi fi #Checking kate... if [ ! -f /var/cache/ulfs-packages/kate ]; then echo "Dependance \"kate\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kate/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kate/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kate ]; then echo "Dependance \"kate\" is not installed. Exiting..." exit fi fi #Checking kbackup... if [ ! -f /var/cache/ulfs-packages/kbackup ]; then echo "Dependance \"kbackup\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kbackup/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kbackup/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kbackup ]; then echo "Dependance \"kbackup\" is not installed. Exiting..." exit fi fi #Checking kcalc... if [ ! -f /var/cache/ulfs-packages/kcalc ]; then echo "Dependance \"kcalc\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kcalc/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kcalc/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kcalc ]; then echo "Dependance \"kcalc\" is not installed. Exiting..." exit fi fi #Checking kcharselect... if [ ! -f /var/cache/ulfs-packages/kcharselect ]; then echo "Dependance \"kcharselect\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kcharselect/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kcharselect/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kcharselect ]; then echo "Dependance \"kcharselect\" is not installed. Exiting..." exit fi fi #Checking kclock... if [ ! -f /var/cache/ulfs-packages/kclock ]; then echo "Dependance \"kclock\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kclock/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kclock/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kclock ]; then echo "Dependance \"kclock\" is not installed. Exiting..." exit fi fi #Checking kdebugsettings... if [ ! -f /var/cache/ulfs-packages/kdebugsettings ]; then echo "Dependance \"kdebugsettings\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdebugsettings/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdebugsettings/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdebugsettings ]; then echo "Dependance \"kdebugsettings\" is not installed. Exiting..." exit fi fi #Checking kdf... if [ ! -f /var/cache/ulfs-packages/kdf ]; then echo "Dependance \"kdf\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdf/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdf/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdf ]; then echo "Dependance \"kdf\" is not installed. Exiting..." exit fi fi #Checking kdialog... if [ ! -f /var/cache/ulfs-packages/kdialog ]; then echo "Dependance \"kdialog\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdialog/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdialog/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdialog ]; then echo "Dependance \"kdialog\" is not installed. Exiting..." exit fi fi #Checking keditbookmarks... if [ ! -f /var/cache/ulfs-packages/keditbookmarks ]; then echo "Dependance \"keditbookmarks\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/keditbookmarks/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/keditbookmarks/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/keditbookmarks ]; then echo "Dependance \"keditbookmarks\" is not installed. Exiting..." exit fi fi #Checking keysmith... if [ ! -f /var/cache/ulfs-packages/keysmith ]; then echo "Dependance \"keysmith\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/keysmith/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/keysmith/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/keysmith ]; then echo "Dependance \"keysmith\" is not installed. Exiting..." exit fi fi #Checking kfind... if [ ! -f /var/cache/ulfs-packages/kfind ]; then echo "Dependance \"kfind\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kfind/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kfind/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kfind ]; then echo "Dependance \"kfind\" is not installed. Exiting..." exit fi fi #Checking kgpg... if [ ! -f /var/cache/ulfs-packages/kgpg ]; then echo "Dependance \"kgpg\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kgpg/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kgpg/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kgpg ]; then echo "Dependance \"kgpg\" is not installed. Exiting..." exit fi fi #Checking kongress... if [ ! -f /var/cache/ulfs-packages/kongress ]; then echo "Dependance \"kongress\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kongress/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kongress/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kongress ]; then echo "Dependance \"kongress\" is not installed. Exiting..." exit fi fi #Checking krecorder... if [ ! -f /var/cache/ulfs-packages/krecorder ]; then echo "Dependance \"krecorder\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/krecorder/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/krecorder/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/krecorder ]; then echo "Dependance \"krecorder\" is not installed. Exiting..." exit fi fi #Checking kteatime... if [ ! -f /var/cache/ulfs-packages/kteatime ]; then echo "Dependance \"kteatime\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kteatime/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kteatime/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kteatime ]; then echo "Dependance \"kteatime\" is not installed. Exiting..." exit fi fi #Checking ktimer... if [ ! -f /var/cache/ulfs-packages/ktimer ]; then echo "Dependance \"ktimer\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ktimer/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ktimer/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ktimer ]; then echo "Dependance \"ktimer\" is not installed. Exiting..." exit fi fi #Checking ktrip... if [ ! -f /var/cache/ulfs-packages/ktrip ]; then echo "Dependance \"ktrip\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ktrip/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ktrip/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ktrip ]; then echo "Dependance \"ktrip\" is not installed. Exiting..." exit fi fi #Checking kwalletmanager... if [ ! -f /var/cache/ulfs-packages/kwalletmanager ]; then echo "Dependance \"kwalletmanager\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kwalletmanager/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kwalletmanager/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kwalletmanager ]; then echo "Dependance \"kwalletmanager\" is not installed. Exiting..." exit fi fi #Checking kweather... if [ ! -f /var/cache/ulfs-packages/kweather ]; then echo "Dependance \"kweather\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kweather/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kweather/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kweather ]; then echo "Dependance \"kweather\" is not installed. Exiting..." exit fi fi #Checking markdownpart... if [ ! -f /var/cache/ulfs-packages/markdownpart ]; then echo "Dependance \"markdownpart\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/markdownpart/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/markdownpart/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/markdownpart ]; then echo "Dependance \"markdownpart\" is not installed. Exiting..." exit fi fi #Checking skanpage... if [ ! -f /var/cache/ulfs-packages/skanpage ]; then echo "Dependance \"skanpage\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/skanpage/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/skanpage/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/skanpage ]; then echo "Dependance \"skanpage\" is not installed. Exiting..." exit fi fi #Checking sweeper... if [ ! -f /var/cache/ulfs-packages/sweeper ]; then echo "Dependance \"sweeper\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/sweeper/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/sweeper/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/sweeper ]; then echo "Dependance \"sweeper\" is not installed. Exiting..." exit fi fi #Checking telly-skout... if [ ! -f /var/cache/ulfs-packages/telly-skout ]; then echo "Dependance \"telly-skout\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/telly-skout/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/telly-skout/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/telly-skout ]; then echo "Dependance \"telly-skout\" is not installed. Exiting..." exit fi fi #Checking yakuake... if [ ! -f /var/cache/ulfs-packages/yakuake ]; then echo "Dependance \"yakuake\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/yakuake/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/yakuake/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/yakuake ]; then echo "Dependance \"yakuake\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-utils/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-utils/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-utils/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-utils/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/KDE6-apps-utils else sudo touch /var/cache/ulfs-packages/KDE6-apps-utils fi #Calculate prepare time a=`cat /var/log/ulfs-packages/KDE6-apps-utils/start.time` b=`cat /var/log/ulfs-packages/KDE6-apps-utils/configure.time` dp=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/KDE6-apps-utils/configure.time` b=`cat /var/log/ulfs-packages/KDE6-apps-utils/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/KDE6-apps-utils/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: KDE6-apps-utils" echo "Release: 0.2.3" echo "Prepare time: $dp sec." echo "Build time: $db sec." #End of script