#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.4 # Package: gimp3-rustless #=========================== # DB commit: 87572d7cf5c2e4fc6a7d33abc05341175a2c925a # APP commit: e905d50832f25d6e1ea1c062c557c2674e1072f0 #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: gimp3-rustless" echo "Release: 0.2.4" 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/gimp3-rustless/ #Saving start timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/start.time #Going to source directory... cd /sources #Checking dependances... #Checking python2-pycairo... if [ ! -f /var/cache/ulfs-packages/python2-pycairo ]; then echo "Dependance \"python2-pycairo\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/python2-pycairo/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/python2-pycairo/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/python2-pycairo ]; then echo "Dependance \"python2-pycairo\" is not installed. Exiting..." exit fi fi #Checking python3-pycairo... if [ ! -f /var/cache/ulfs-packages/python3-pycairo ]; then echo "Dependance \"python3-pycairo\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/python3-pycairo/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/python3-pycairo/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/python3-pycairo ]; then echo "Dependance \"python3-pycairo\" is not installed. Exiting..." exit fi fi #Checking libheif... if [ ! -f /var/cache/ulfs-packages/libheif ]; then echo "Dependance \"libheif\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/libheif/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/libheif/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libheif ]; then echo "Dependance \"libheif\" is not installed. Exiting..." exit fi fi #Checking libde265... if [ ! -f /var/cache/ulfs-packages/libde265 ]; then echo "Dependance \"libde265\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/libde265/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/libde265/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libde265 ]; then echo "Dependance \"libde265\" is not installed. Exiting..." exit fi fi #Checking appstream-glib... if [ ! -f /var/cache/ulfs-packages/appstream-glib ]; then echo "Dependance \"appstream-glib\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/appstream-glib/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/appstream-glib/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/appstream-glib ]; then echo "Dependance \"appstream-glib\" is not installed. Exiting..." exit fi fi #Checking libxml2... if [ ! -f /var/cache/ulfs-packages/libxml2 ]; then echo "Dependance \"libxml2\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/libxml2/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/libxml2/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libxml2 ]; then echo "Dependance \"libxml2\" is not installed. Exiting..." exit fi fi #Checking harfbuzz... if [ ! -f /var/cache/ulfs-packages/harfbuzz ]; then echo "Dependance \"harfbuzz\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/harfbuzz/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/harfbuzz/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/harfbuzz ]; then echo "Dependance \"harfbuzz\" is not installed. Exiting..." exit fi fi #Checking X... if [ ! -f /var/cache/ulfs-packages/X ]; then echo "Dependance \"X\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/X/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/X/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/X ]; then echo "Dependance \"X\" is not installed. Exiting..." exit fi fi #Checking gtk2... if [ ! -f /var/cache/ulfs-packages/gtk2 ]; then echo "Dependance \"gtk2\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/gtk2/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/gtk2/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/gtk2 ]; then echo "Dependance \"gtk2\" is not installed. Exiting..." exit fi fi #Checking libjpeg-turbo... if [ ! -f /var/cache/ulfs-packages/libjpeg-turbo ]; then echo "Dependance \"libjpeg-turbo\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/libjpeg-turbo/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/libjpeg-turbo/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libjpeg-turbo ]; then echo "Dependance \"libjpeg-turbo\" is not installed. Exiting..." exit fi fi #Checking tiff... if [ ! -f /var/cache/ulfs-packages/tiff ]; then echo "Dependance \"tiff\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/tiff/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/tiff/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/tiff ]; then echo "Dependance \"tiff\" is not installed. Exiting..." exit fi fi #Checking pygtk2... if [ ! -f /var/cache/ulfs-packages/pygtk2 ]; then echo "Dependance \"pygtk2\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/pygtk2/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/pygtk2/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/pygtk2 ]; then echo "Dependance \"pygtk2\" is not installed. Exiting..." exit fi fi #Checking dbus-glib... if [ ! -f /var/cache/ulfs-packages/dbus-glib ]; then echo "Dependance \"dbus-glib\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/dbus-glib/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/dbus-glib/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/dbus-glib ]; then echo "Dependance \"dbus-glib\" is not installed. Exiting..." exit fi fi #Checking graphviz... if [ ! -f /var/cache/ulfs-packages/graphviz ]; then echo "Dependance \"graphviz\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/graphviz/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/graphviz/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/graphviz ]; then echo "Dependance \"graphviz\" is not installed. Exiting..." exit fi fi #Checking iso-codes... if [ ! -f /var/cache/ulfs-packages/iso-codes ]; then echo "Dependance \"iso-codes\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/iso-codes/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/iso-codes/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/iso-codes ]; then echo "Dependance \"iso-codes\" is not installed. Exiting..." exit fi fi #Checking librsvg... if [ ! -f /var/cache/ulfs-packages/librsvg ]; then echo "Dependance \"librsvg\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/librsvg/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/librsvg/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/librsvg ]; then echo "Dependance \"librsvg\" is not installed. Exiting..." exit fi fi #Checking glib-networking... if [ ! -f /var/cache/ulfs-packages/glib-networking ]; then echo "Dependance \"glib-networking\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/glib-networking/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/glib-networking/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/glib-networking ]; then echo "Dependance \"glib-networking\" is not installed. Exiting..." exit fi fi #Checking libgudev... if [ ! -f /var/cache/ulfs-packages/libgudev ]; then echo "Dependance \"libgudev\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/libgudev/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/libgudev/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libgudev ]; then echo "Dependance \"libgudev\" is not installed. Exiting..." exit fi fi #Checking lcms2... if [ ! -f /var/cache/ulfs-packages/lcms2 ]; then echo "Dependance \"lcms2\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/lcms2/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/lcms2/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lcms2 ]; then echo "Dependance \"lcms2\" is not installed. Exiting..." exit fi fi #Checking gexiv2... if [ ! -f /var/cache/ulfs-packages/gexiv2 ]; then echo "Dependance \"gexiv2\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/gexiv2/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/gexiv2/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/gexiv2 ]; then echo "Dependance \"gexiv2\" is not installed. Exiting..." exit fi fi #Checking poppler... if [ ! -f /var/cache/ulfs-packages/poppler ]; then echo "Dependance \"poppler\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/poppler/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/poppler/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/poppler ]; then echo "Dependance \"poppler\" is not installed. Exiting..." exit fi fi #Checking xdg-utils... if [ ! -f /var/cache/ulfs-packages/xdg-utils ]; then echo "Dependance \"xdg-utils\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/xdg-utils/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/xdg-utils/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/xdg-utils ]; then echo "Dependance \"xdg-utils\" is not installed. Exiting..." exit fi fi #Checking ghostscript... if [ ! -f /var/cache/ulfs-packages/ghostscript ]; then echo "Dependance \"ghostscript\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/ghostscript/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/ghostscript/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ghostscript ]; then echo "Dependance \"ghostscript\" is not installed. Exiting..." exit fi fi #Checking gegl-rustless... if [ ! -f /var/cache/ulfs-packages/gegl-rustless ]; then echo "Dependance \"gegl-rustless\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/gegl-rustless/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/gegl-rustless/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/gegl-rustless ]; then echo "Dependance \"gegl-rustless\" is not installed. Exiting..." exit fi fi #Checking libmypaint... if [ ! -f /var/cache/ulfs-packages/libmypaint ]; then echo "Dependance \"libmypaint\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/libmypaint/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/libmypaint/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libmypaint ]; then echo "Dependance \"libmypaint\" is not installed. Exiting..." exit fi fi #Checking mypaint-brushes... if [ ! -f /var/cache/ulfs-packages/mypaint-brushes ]; then echo "Dependance \"mypaint-brushes\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.4/mypaint-brushes/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.4/mypaint-brushes/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/mypaint-brushes ]; then echo "Dependance \"mypaint-brushes\" is not installed. Exiting..." exit fi fi #Saving downloading timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/download.time #Downloading source package archive... downloadFile .md5sum downloadFile #Checking source package file existance if [ ! -f gimp-3.0.2.tar.xz ]; then echo "Error: Can't find gimp-3.0.2.tar.xz. Exiting!" exit fi #Checking source package file checksum if [ -f gimp-3.0.2.tar.xz.md5sum ]; then MD5=`LANG=C md5sum -c gimp-3.0.2.tar.xz.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of gimp-3.0.2.tar.xz is wrong. Exiting!" exit fi fi #Downloadning patches... downloadFile https://umvirt.com/linux/downloads/0.2.4/patches/gimp3-rustless-librsvg.patch #Downloadning patches... downloadFile https://umvirt.com/linux/downloads/0.2.4/patches/gimp3-remove-file-svg-plugin.patch #Saving cleanup timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/cleanup.time rm -rfv /sources/gimp-3.0.2/ #Saving extracting timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/unpack.time #Extracting tar source package archive with default parameters... tar -xf gimp-3.0.2.tar.xz #Checking package directory size after unpack... du -s gimp-3.0.2 | awk 'NR==1 {print $1}' > /var/log/ulfs-packages/gimp3-rustless/unpack.size #Going to source package directory... cd gimp-3.0.2 #Applying patches... patch -Np1 -i ../gimp3-rustless-librsvg.patch patch -Np1 -i ../gimp3-remove-file-svg-plugin.patch #Saving configuration timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/configure.time #Sleep 1 second sleep 1 if [[ "$ULFS_PKG_DATERESET" == "YES" ]] then #Changing all files creation time (except build configuration files) in source directory to find them after installation find /sources/gimp-3.0.2 \! -path "*/configure*" \! -path "*/Makefile*" \! -path "*.make" \! -path "*.m4" \! -path "*.am" \! -path "*.mk" \! -path "*.stamp" \! -path "*gentpl.py" -exec touch -m {} + fi #Running configuration script... 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 cat > ulfs_configure.sh << EOIS echo "Initializing distributed build environment... " if [[ "\$ULFS_ICECC" == "YES" ]] then export PATH="\$ULFS_ICECC_PATH:\$PATH" echo "ICECC" fi echo "Environment debug..." echo "PATH: \$PATH" echo "MAKEFLAGS: \$MAKEFLAGS" echo "NINJAJOBS: \$NINJAJOBS" env | grep ULFS mkdir gimp-build && cd gimp-build && meson setup --prefix=/usr \\ --buildtype=release \\ -D vector-icons=false \\ -D headless-tests=disabled .. EOIS cat ulfs_configure.sh | bash 2>&1 | tee /var/log/ulfs-packages/gimp3-rustless/configure.log #Saving build timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/build.time #Running build script... 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 cat > ulfs_build.sh << EOIS echo "Initializing distributed build environment... " if [[ "\$ULFS_ICECC" == "YES" ]] then export PATH="\$ULFS_ICECC_PATH:\$PATH" echo "ICECC" fi echo "Environment debug..." echo "PATH: \$PATH" echo "MAKEFLAGS: \$MAKEFLAGS" echo "NINJAJOBS: \$NINJAJOBS" env | grep ULFS cd gimp-build ninja EOIS cat ulfs_build.sh | bash 2>&1 | tee /var/log/ulfs-packages/gimp3-rustless/build.log #Saving install timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/install.time #Running install script... cat > ulfs_install.sh << EOIS cd gimp-build ninja install gtk-update-icon-cache -qtf /usr/share/icons/hicolor && update-desktop-database -q EOIS echo "/sbin/ldconfig" >> ulfs_install.sh USER=`whoami` if [ "$USER" == "root" ] ; then cat ulfs_install.sh | bash 2>&1 | tee /var/log/ulfs-packages/gimp3-rustless/install.log else cat ulfs_install.sh | sudo bash 2>&1 | tee /var/log/ulfs-packages/gimp3-rustless/install.log fi #Saving finish timestamp date +%s > /var/log/ulfs-packages/gimp3-rustless/finish.time #Checking package directory size after unpack... cd /sources du -s gimp-3.0.2 | awk 'NR==1 {print $1}' > /var/log/ulfs-packages/gimp3-rustless/install.size echo "ULFS package installation completed." #Producing files list echo "Looking for installed files..." if [ -f /var/log/ulfs-packages/gimp3-rustless/files.txt ]; then rm /var/log/ulfs-packages/gimp3-rustless/files.txt fi USER=`whoami` if [ "$USER" == "root" ] ; then find /bin -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /sbin -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /usr -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /etc -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time \! -path /etc/ld.so.cache >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /opt -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /lib -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /lib64 -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt find /var -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time \! -path "/var/log/ulfs-packages/gimp3-rustless/*" \! -path /var/cache/ldconfig/aux-cache >> /var/log/ulfs-packages/gimp3-rustless/files.txt else sudo find /bin -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /sbin -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /usr -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /etc -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time \! -path /etc/ld.so.cache >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /opt -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /lib -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /lib64 -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time >> /var/log/ulfs-packages/gimp3-rustless/files.txt sudo find /var -type f -newer /var/log/ulfs-packages/gimp3-rustless/configure.time \! -newer /var/log/ulfs-packages/gimp3-rustless/finish.time \! -path "/var/log/ulfs-packages/gimp3-rustless/*" \! -path /var/cache/ldconfig/aux-cache >> /var/log/ulfs-packages/gimp3-rustless/files.txt fi #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/gimp3-rustless else sudo touch /var/cache/ulfs-packages/gimp3-rustless fi #Calculate delta size a=`cat /var/log/ulfs-packages/gimp3-rustless/unpack.size` b=`cat /var/log/ulfs-packages/gimp3-rustless/install.size` c=$(($b-$a)) echo $c > /var/log/ulfs-packages/gimp3-rustless/delta.size #Calculate prepare time a=`cat /var/log/ulfs-packages/gimp3-rustless/start.time` b=`cat /var/log/ulfs-packages/gimp3-rustless/configure.time` dp=$(($b-$a)) #Calculate download time a=`cat /var/log/ulfs-packages/gimp3-rustless/download.time` b=`cat /var/log/ulfs-packages/gimp3-rustless/unpack.time` dd=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/gimp3-rustless/configure.time` b=`cat /var/log/ulfs-packages/gimp3-rustless/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/gimp3-rustless/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: gimp3-rustless" echo "Release: 0.2.4" echo "Build size: $c" echo "Prepare time: $dp sec." echo "Download time: $dd sec." echo "Build time: $db sec." #End of script