#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.3 # Package: KDE6-apps-network #=========================== # DB commit: f64c98382982c764c3ba140bfcbbc73d93096acd # APP commit: e09dc78145b10de9481608254eb2ac99efd0068b #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: KDE6-apps-network" 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-network/ #Saving start timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-network/start.time #Going to source directory... cd /sources #Checking dependances... #Checking alligator... if [ ! -f /var/cache/ulfs-packages/alligator ]; then echo "Dependance \"alligator\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/alligator/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/alligator/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/alligator ]; then echo "Dependance \"alligator\" is not installed. Exiting..." exit fi fi #Checking angelfish... if [ ! -f /var/cache/ulfs-packages/angelfish ]; then echo "Dependance \"angelfish\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/angelfish/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/angelfish/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/angelfish ]; then echo "Dependance \"angelfish\" is not installed. Exiting..." exit fi fi #Checking kdeconnect-kde... if [ ! -f /var/cache/ulfs-packages/kdeconnect-kde ]; then echo "Dependance \"kdeconnect-kde\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdeconnect-kde/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdeconnect-kde/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdeconnect-kde ]; then echo "Dependance \"kdeconnect-kde\" is not installed. Exiting..." exit fi fi #Checking kdenetwork-filesharing... if [ ! -f /var/cache/ulfs-packages/kdenetwork-filesharing ]; then echo "Dependance \"kdenetwork-filesharing\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdenetwork-filesharing/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdenetwork-filesharing/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdenetwork-filesharing ]; then echo "Dependance \"kdenetwork-filesharing\" is not installed. Exiting..." exit fi fi #Checking kget... if [ ! -f /var/cache/ulfs-packages/kget ]; then echo "Dependance \"kget\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kget/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kget/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kget ]; then echo "Dependance \"kget\" is not installed. Exiting..." exit fi fi #Checking kio-gdrive... if [ ! -f /var/cache/ulfs-packages/kio-gdrive ]; then echo "Dependance \"kio-gdrive\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kio-gdrive/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kio-gdrive/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kio-gdrive ]; then echo "Dependance \"kio-gdrive\" is not installed. Exiting..." exit fi fi #Checking kio-zeroconf... if [ ! -f /var/cache/ulfs-packages/kio-zeroconf ]; then echo "Dependance \"kio-zeroconf\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kio-zeroconf/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kio-zeroconf/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kio-zeroconf ]; then echo "Dependance \"kio-zeroconf\" is not installed. Exiting..." exit fi fi #Checking konqueror... if [ ! -f /var/cache/ulfs-packages/konqueror ]; then echo "Dependance \"konqueror\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/konqueror/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/konqueror/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/konqueror ]; then echo "Dependance \"konqueror\" is not installed. Exiting..." exit fi fi #Checking krdc... if [ ! -f /var/cache/ulfs-packages/krdc ]; then echo "Dependance \"krdc\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/krdc/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/krdc/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/krdc ]; then echo "Dependance \"krdc\" is not installed. Exiting..." exit fi fi #Checking freerdp2... if [ ! -f /var/cache/ulfs-packages/freerdp2 ]; then echo "Dependance \"freerdp2\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/freerdp2/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/freerdp2/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/freerdp2 ]; then echo "Dependance \"freerdp2\" is not installed. Exiting..." exit fi fi #Checking krfb... if [ ! -f /var/cache/ulfs-packages/krfb ]; then echo "Dependance \"krfb\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/krfb/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/krfb/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/krfb ]; then echo "Dependance \"krfb\" is not installed. Exiting..." exit fi fi #Checking ktorrent... if [ ! -f /var/cache/ulfs-packages/ktorrent ]; then echo "Dependance \"ktorrent\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ktorrent/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ktorrent/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ktorrent ]; then echo "Dependance \"ktorrent\" is not installed. Exiting..." exit fi fi #Checking neochat... if [ ! -f /var/cache/ulfs-packages/neochat ]; then echo "Dependance \"neochat\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/neochat/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/neochat/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/neochat ]; then echo "Dependance \"neochat\" is not installed. Exiting..." exit fi fi #Checking tokodon... if [ ! -f /var/cache/ulfs-packages/tokodon ]; then echo "Dependance \"tokodon\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/tokodon/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/tokodon/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/tokodon ]; then echo "Dependance \"tokodon\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-network/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-network/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-network/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-network/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-network else sudo touch /var/cache/ulfs-packages/KDE6-apps-network fi #Calculate prepare time a=`cat /var/log/ulfs-packages/KDE6-apps-network/start.time` b=`cat /var/log/ulfs-packages/KDE6-apps-network/configure.time` dp=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/KDE6-apps-network/configure.time` b=`cat /var/log/ulfs-packages/KDE6-apps-network/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/KDE6-apps-network/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: KDE6-apps-network" echo "Release: 0.2.3" echo "Prepare time: $dp sec." echo "Build time: $db sec." #End of script