#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 4145625122 # Package: Xdrivers #=========================== # DB commit: c9dd8835b9e79548f70e25c8ffb9d09430f622a0 # APP commit: #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: Xdrivers" echo "Release: 4145625122" 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/Xdrivers/ #Saving start timestamp date +%s > /var/log/ulfs-packages/Xdrivers/start.time #Going to source directory... cd /sources #Checking dependances... #Checking xf86-input-evdev... if [ ! -f /var/cache/ulfs-packages/xf86-input-evdev ]; then echo "Dependance \"xf86-input-evdev\" not found. Trying to install..."; wget --no-check-certificate https://ulfs.org/linux/packages//4145625122/xf86-input-evdev/install -O - | bash if [ ! -f /var/cache/ulfs-packages/xf86-input-evdev ]; then echo "Dependance \"xf86-input-evdev\" is not installed. Exiting..." exit fi fi #Checking xf86-input-libinput... if [ ! -f /var/cache/ulfs-packages/xf86-input-libinput ]; then echo "Dependance \"xf86-input-libinput\" not found. Trying to install..."; wget --no-check-certificate https://ulfs.org/linux/packages//4145625122/xf86-input-libinput/install -O - | bash if [ ! -f /var/cache/ulfs-packages/xf86-input-libinput ]; then echo "Dependance \"xf86-input-libinput\" is not installed. Exiting..." exit fi fi #Checking xf86-input-synaptics... if [ ! -f /var/cache/ulfs-packages/xf86-input-synaptics ]; then echo "Dependance \"xf86-input-synaptics\" not found. Trying to install..."; wget --no-check-certificate https://ulfs.org/linux/packages//4145625122/xf86-input-synaptics/install -O - | bash if [ ! -f /var/cache/ulfs-packages/xf86-input-synaptics ]; then echo "Dependance \"xf86-input-synaptics\" is not installed. Exiting..." exit fi fi #Checking xf86-input-wacom... if [ ! -f /var/cache/ulfs-packages/xf86-input-wacom ]; then echo "Dependance \"xf86-input-wacom\" not found. Trying to install..."; wget --no-check-certificate https://ulfs.org/linux/packages//4145625122/xf86-input-wacom/install -O - | bash if [ ! -f /var/cache/ulfs-packages/xf86-input-wacom ]; then echo "Dependance \"xf86-input-wacom\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/Xdrivers/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/Xdrivers/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/Xdrivers/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/Xdrivers/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/Xdrivers else sudo touch /var/cache/ulfs-packages/Xdrivers fi #Calculate prepare time a=`cat /var/log/ulfs-packages/Xdrivers/start.time` b=`cat /var/log/ulfs-packages/Xdrivers/configure.time` dp=$(($b-$a)) #Calculate download time a=`cat /var/log/ulfs-packages/Xdrivers/download.time` b=`cat /var/log/ulfs-packages/Xdrivers/unpack.time` dd=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/Xdrivers/configure.time` b=`cat /var/log/ulfs-packages/Xdrivers/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/Xdrivers/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: Xdrivers" echo "Release: 4145625122" echo "Prepare time: $dp sec." echo "Download time: $dd sec." echo "Build time: $db sec." #End of script