#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.2 # Package: Xfonts-misc #=========================== # DB commit: 48bb9ee31306c82c48dfaaad707eb4f6a926eb8a # APP commit: 1ca4178aea919e4c9e869e3d650ff8af9678bd6f #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: Xfonts-misc" 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/Xfonts-misc/ #Saving start timestamp date +%s > /var/log/ulfs-packages/Xfonts-misc/start.time #Going to source directory... cd /sources #Checking dependances... #Checking font-cursor-misc... if [ ! -f /var/cache/ulfs-packages/font-cursor-misc ]; then echo "Dependance \"font-cursor-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-cursor-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-cursor-misc ]; then echo "Dependance \"font-cursor-misc\" is not installed. Exiting..." exit fi fi #Checking font-daewoo-misc... if [ ! -f /var/cache/ulfs-packages/font-daewoo-misc ]; then echo "Dependance \"font-daewoo-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-daewoo-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-daewoo-misc ]; then echo "Dependance \"font-daewoo-misc\" is not installed. Exiting..." exit fi fi #Checking font-dec-misc... if [ ! -f /var/cache/ulfs-packages/font-dec-misc ]; then echo "Dependance \"font-dec-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-dec-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-dec-misc ]; then echo "Dependance \"font-dec-misc\" is not installed. Exiting..." exit fi fi #Checking font-isas-misc... if [ ! -f /var/cache/ulfs-packages/font-isas-misc ]; then echo "Dependance \"font-isas-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-isas-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-isas-misc ]; then echo "Dependance \"font-isas-misc\" is not installed. Exiting..." exit fi fi #Checking font-jis-misc... if [ ! -f /var/cache/ulfs-packages/font-jis-misc ]; then echo "Dependance \"font-jis-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-jis-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-jis-misc ]; then echo "Dependance \"font-jis-misc\" is not installed. Exiting..." exit fi fi #Checking font-micro-misc... if [ ! -f /var/cache/ulfs-packages/font-micro-misc ]; then echo "Dependance \"font-micro-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-micro-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-micro-misc ]; then echo "Dependance \"font-micro-misc\" is not installed. Exiting..." exit fi fi #Checking font-mutt-misc... if [ ! -f /var/cache/ulfs-packages/font-mutt-misc ]; then echo "Dependance \"font-mutt-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-mutt-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-mutt-misc ]; then echo "Dependance \"font-mutt-misc\" is not installed. Exiting..." exit fi fi #Checking font-misc-misc... if [ ! -f /var/cache/ulfs-packages/font-misc-misc ]; then echo "Dependance \"font-misc-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-misc-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-misc-misc ]; then echo "Dependance \"font-misc-misc\" is not installed. Exiting..." exit fi fi #Checking font-schumacher-misc... if [ ! -f /var/cache/ulfs-packages/font-schumacher-misc ]; then echo "Dependance \"font-schumacher-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-schumacher-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-schumacher-misc ]; then echo "Dependance \"font-schumacher-misc\" is not installed. Exiting..." exit fi fi #Checking font-sony-misc... if [ ! -f /var/cache/ulfs-packages/font-sony-misc ]; then echo "Dependance \"font-sony-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-sony-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-sony-misc ]; then echo "Dependance \"font-sony-misc\" is not installed. Exiting..." exit fi fi #Checking font-sun-misc... if [ ! -f /var/cache/ulfs-packages/font-sun-misc ]; then echo "Dependance \"font-sun-misc\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/font-sun-misc/install -O - | bash if [ ! -f /var/cache/ulfs-packages/font-sun-misc ]; then echo "Dependance \"font-sun-misc\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/Xfonts-misc/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/Xfonts-misc/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/Xfonts-misc/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/Xfonts-misc/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/Xfonts-misc else sudo touch /var/cache/ulfs-packages/Xfonts-misc fi #Calculate prepare time a=`cat /var/log/ulfs-packages/Xfonts-misc/start.time` b=`cat /var/log/ulfs-packages/Xfonts-misc/configure.time` dp=$(($b-$a)) #Calculate download time a=`cat /var/log/ulfs-packages/Xfonts-misc/download.time` b=`cat /var/log/ulfs-packages/Xfonts-misc/unpack.time` dd=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/Xfonts-misc/configure.time` b=`cat /var/log/ulfs-packages/Xfonts-misc/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/Xfonts-misc/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: Xfonts-misc" echo "Release: 0.2.2" echo "Prepare time: $dp sec." echo "Download time: $dd sec." echo "Build time: $db sec." #End of script