#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.2 # Package: Mate #=========================== # DB commit: 48bb9ee31306c82c48dfaaad707eb4f6a926eb8a # APP commit: 1ca4178aea919e4c9e869e3d650ff8af9678bd6f #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: Mate" echo "Release: 0.2.2" 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/Mate/ #Saving start timestamp date +%s > /var/log/ulfs-packages/Mate/start.time #Going to source directory... cd /sources #Checking dependances... #Checking X... if [ ! -f /var/cache/ulfs-packages/X ]; then echo "Dependance \"X\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/X/install -O - | bash if [ ! -f /var/cache/ulfs-packages/X ]; then echo "Dependance \"X\" is not installed. Exiting..." exit fi fi #Checking mate-desktop... if [ ! -f /var/cache/ulfs-packages/mate-desktop ]; then echo "Dependance \"mate-desktop\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-desktop/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-desktop ]; then echo "Dependance \"mate-desktop\" is not installed. Exiting..." exit fi fi #Checking mate-icon-theme... if [ ! -f /var/cache/ulfs-packages/mate-icon-theme ]; then echo "Dependance \"mate-icon-theme\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-icon-theme/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-icon-theme ]; then echo "Dependance \"mate-icon-theme\" is not installed. Exiting..." exit fi fi #Checking mate-backgrounds... if [ ! -f /var/cache/ulfs-packages/mate-backgrounds ]; then echo "Dependance \"mate-backgrounds\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-backgrounds/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-backgrounds ]; then echo "Dependance \"mate-backgrounds\" is not installed. Exiting..." exit fi fi #Checking mate-common... if [ ! -f /var/cache/ulfs-packages/mate-common ]; then echo "Dependance \"mate-common\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-common/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-common ]; then echo "Dependance \"mate-common\" is not installed. Exiting..." exit fi fi #Checking mate-menus... if [ ! -f /var/cache/ulfs-packages/mate-menus ]; then echo "Dependance \"mate-menus\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-menus/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-menus ]; then echo "Dependance \"mate-menus\" is not installed. Exiting..." exit fi fi #Checking mate-settings-daemon... if [ ! -f /var/cache/ulfs-packages/mate-settings-daemon ]; then echo "Dependance \"mate-settings-daemon\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-settings-daemon/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-settings-daemon ]; then echo "Dependance \"mate-settings-daemon\" is not installed. Exiting..." exit fi fi #Checking mate-control-center... if [ ! -f /var/cache/ulfs-packages/mate-control-center ]; then echo "Dependance \"mate-control-center\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-control-center/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-control-center ]; then echo "Dependance \"mate-control-center\" is not installed. Exiting..." exit fi fi #Checking mate-media... if [ ! -f /var/cache/ulfs-packages/mate-media ]; then echo "Dependance \"mate-media\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-media/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-media ]; then echo "Dependance \"mate-media\" is not installed. Exiting..." exit fi fi #Checking mate-applets... if [ ! -f /var/cache/ulfs-packages/mate-applets ]; then echo "Dependance \"mate-applets\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-applets/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-applets ]; then echo "Dependance \"mate-applets\" is not installed. Exiting..." exit fi fi #Checking mate-panel... if [ ! -f /var/cache/ulfs-packages/mate-panel ]; then echo "Dependance \"mate-panel\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-panel/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-panel ]; then echo "Dependance \"mate-panel\" is not installed. Exiting..." exit fi fi #Checking mate-netbook... if [ ! -f /var/cache/ulfs-packages/mate-netbook ]; then echo "Dependance \"mate-netbook\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-netbook/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-netbook ]; then echo "Dependance \"mate-netbook\" is not installed. Exiting..." exit fi fi #Checking mate-notification-daemon... if [ ! -f /var/cache/ulfs-packages/mate-notification-daemon ]; then echo "Dependance \"mate-notification-daemon\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-notification-daemon/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-notification-daemon ]; then echo "Dependance \"mate-notification-daemon\" is not installed. Exiting..." exit fi fi #Checking mate-polkit... if [ ! -f /var/cache/ulfs-packages/mate-polkit ]; then echo "Dependance \"mate-polkit\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-polkit/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-polkit ]; then echo "Dependance \"mate-polkit\" is not installed. Exiting..." exit fi fi #Checking mate-power-manager... if [ ! -f /var/cache/ulfs-packages/mate-power-manager ]; then echo "Dependance \"mate-power-manager\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-power-manager/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-power-manager ]; then echo "Dependance \"mate-power-manager\" is not installed. Exiting..." exit fi fi #Checking mate-screensaver... if [ ! -f /var/cache/ulfs-packages/mate-screensaver ]; then echo "Dependance \"mate-screensaver\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-screensaver/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-screensaver ]; then echo "Dependance \"mate-screensaver\" is not installed. Exiting..." exit fi fi #Checking mate-sensors-applet... if [ ! -f /var/cache/ulfs-packages/mate-sensors-applet ]; then echo "Dependance \"mate-sensors-applet\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-sensors-applet/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-sensors-applet ]; then echo "Dependance \"mate-sensors-applet\" is not installed. Exiting..." exit fi fi #Checking mate-session-manager... if [ ! -f /var/cache/ulfs-packages/mate-session-manager ]; then echo "Dependance \"mate-session-manager\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-session-manager/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-session-manager ]; then echo "Dependance \"mate-session-manager\" is not installed. Exiting..." exit fi fi #Checking mate-system-monitor... if [ ! -f /var/cache/ulfs-packages/mate-system-monitor ]; then echo "Dependance \"mate-system-monitor\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-system-monitor/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-system-monitor ]; then echo "Dependance \"mate-system-monitor\" is not installed. Exiting..." exit fi fi #Checking mate-terminal... if [ ! -f /var/cache/ulfs-packages/mate-terminal ]; then echo "Dependance \"mate-terminal\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-terminal/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-terminal ]; then echo "Dependance \"mate-terminal\" is not installed. Exiting..." exit fi fi #Checking mate-user-guide... if [ ! -f /var/cache/ulfs-packages/mate-user-guide ]; then echo "Dependance \"mate-user-guide\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-user-guide/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-user-guide ]; then echo "Dependance \"mate-user-guide\" is not installed. Exiting..." exit fi fi #Checking caja... if [ ! -f /var/cache/ulfs-packages/caja ]; then echo "Dependance \"caja\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/caja/install -O - | bash if [ ! -f /var/cache/ulfs-packages/caja ]; then echo "Dependance \"caja\" is not installed. Exiting..." exit fi fi #Checking atril... if [ ! -f /var/cache/ulfs-packages/atril ]; then echo "Dependance \"atril\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/atril/install -O - | bash if [ ! -f /var/cache/ulfs-packages/atril ]; then echo "Dependance \"atril\" is not installed. Exiting..." exit fi fi #Checking engrampa... if [ ! -f /var/cache/ulfs-packages/engrampa ]; then echo "Dependance \"engrampa\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/engrampa/install -O - | bash if [ ! -f /var/cache/ulfs-packages/engrampa ]; then echo "Dependance \"engrampa\" is not installed. Exiting..." exit fi fi #Checking eom... if [ ! -f /var/cache/ulfs-packages/eom ]; then echo "Dependance \"eom\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/eom/install -O - | bash if [ ! -f /var/cache/ulfs-packages/eom ]; then echo "Dependance \"eom\" is not installed. Exiting..." exit fi fi #Checking mate-calc... if [ ! -f /var/cache/ulfs-packages/mate-calc ]; then echo "Dependance \"mate-calc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-calc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-calc ]; then echo "Dependance \"mate-calc\" is not installed. Exiting..." exit fi fi #Checking pluma... if [ ! -f /var/cache/ulfs-packages/pluma ]; then echo "Dependance \"pluma\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/pluma/install -O - | bash if [ ! -f /var/cache/ulfs-packages/pluma ]; then echo "Dependance \"pluma\" is not installed. Exiting..." exit fi fi #Checking mate-themes... if [ ! -f /var/cache/ulfs-packages/mate-themes ]; then echo "Dependance \"mate-themes\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-themes/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-themes ]; then echo "Dependance \"mate-themes\" is not installed. Exiting..." exit fi fi #Checking mate-utils... if [ ! -f /var/cache/ulfs-packages/mate-utils ]; then echo "Dependance \"mate-utils\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mate-utils/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mate-utils ]; then echo "Dependance \"mate-utils\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/Mate/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/Mate/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/Mate/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/Mate/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/Mate else sudo touch /var/cache/ulfs-packages/Mate fi #Calculate prepare time a=`cat /var/log/ulfs-packages/Mate/start.time` b=`cat /var/log/ulfs-packages/Mate/configure.time` dp=$(($b-$a)) #Calculate download time a=`cat /var/log/ulfs-packages/Mate/download.time` b=`cat /var/log/ulfs-packages/Mate/unpack.time` dd=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/Mate/configure.time` b=`cat /var/log/ulfs-packages/Mate/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/Mate/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: Mate" echo "Release: 0.2.2" echo "Prepare time: $dp sec." echo "Download time: $dd sec." echo "Build time: $db sec." #End of script