#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.2 # Package: vlc #=========================== # DB commit: 48bb9ee31306c82c48dfaaad707eb4f6a926eb8a # APP commit: 1ca4178aea919e4c9e869e3d650ff8af9678bd6f #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: vlc" 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/vlc/ #Saving start timestamp date +%s > /var/log/ulfs-packages/vlc/start.time #Going to source directory... cd /sources #Checking dependances... #Checking lua-5.4... if [ ! -f /var/cache/ulfs-packages/lua-5.4 ]; then echo "Dependance \"lua-5.4\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/lua-5.4/install -O - | bash if [ ! -f /var/cache/ulfs-packages/lua-5.4 ]; then echo "Dependance \"lua-5.4\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libxml2/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libxml2 ]; then echo "Dependance \"libxml2\" is not installed. Exiting..." exit fi fi #Checking libssh2... if [ ! -f /var/cache/ulfs-packages/libssh2 ]; then echo "Dependance \"libssh2\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libssh2/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libssh2 ]; then echo "Dependance \"libssh2\" is not installed. Exiting..." exit fi fi #Checking freetype... if [ ! -f /var/cache/ulfs-packages/freetype ]; then echo "Dependance \"freetype\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/freetype/install -O - | bash if [ ! -f /var/cache/ulfs-packages/freetype ]; then echo "Dependance \"freetype\" is not installed. Exiting..." exit fi fi #Checking libarchive... if [ ! -f /var/cache/ulfs-packages/libarchive ]; then echo "Dependance \"libarchive\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libarchive/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libarchive ]; then echo "Dependance \"libarchive\" is not installed. Exiting..." exit fi fi #Checking fontconfig... if [ ! -f /var/cache/ulfs-packages/fontconfig ]; then echo "Dependance \"fontconfig\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/fontconfig/install -O - | bash if [ ! -f /var/cache/ulfs-packages/fontconfig ]; then echo "Dependance \"fontconfig\" is not installed. Exiting..." exit fi fi #Checking libpng... if [ ! -f /var/cache/ulfs-packages/libpng ]; then echo "Dependance \"libpng\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libpng/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libpng ]; then echo "Dependance \"libpng\" is not installed. Exiting..." exit fi fi #Checking dbus... if [ ! -f /var/cache/ulfs-packages/dbus ]; then echo "Dependance \"dbus\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/dbus/install -O - | bash if [ ! -f /var/cache/ulfs-packages/dbus ]; then echo "Dependance \"dbus\" is not installed. Exiting..." exit fi fi #Checking fribidi... if [ ! -f /var/cache/ulfs-packages/fribidi ]; then echo "Dependance \"fribidi\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/fribidi/install -O - | bash if [ ! -f /var/cache/ulfs-packages/fribidi ]; then echo "Dependance \"fribidi\" is not installed. Exiting..." exit fi fi #Checking desktop-file-utils... if [ ! -f /var/cache/ulfs-packages/desktop-file-utils ]; then echo "Dependance \"desktop-file-utils\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/desktop-file-utils/install -O - | bash if [ ! -f /var/cache/ulfs-packages/desktop-file-utils ]; then echo "Dependance \"desktop-file-utils\" is not installed. Exiting..." exit fi fi #Checking gnutls... if [ ! -f /var/cache/ulfs-packages/gnutls ]; then echo "Dependance \"gnutls\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/gnutls/install -O - | bash if [ ! -f /var/cache/ulfs-packages/gnutls ]; then echo "Dependance \"gnutls\" is not installed. Exiting..." exit fi fi #Checking libgcrypt... if [ ! -f /var/cache/ulfs-packages/libgcrypt ]; then echo "Dependance \"libgcrypt\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libgcrypt/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libgcrypt ]; then echo "Dependance \"libgcrypt\" is not installed. Exiting..." exit fi fi #Checking alsa-lib... if [ ! -f /var/cache/ulfs-packages/alsa-lib ]; then echo "Dependance \"alsa-lib\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/alsa-lib/install -O - | bash if [ ! -f /var/cache/ulfs-packages/alsa-lib ]; then echo "Dependance \"alsa-lib\" is not installed. Exiting..." exit fi fi #Checking libogg... if [ ! -f /var/cache/ulfs-packages/libogg ]; then echo "Dependance \"libogg\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libogg/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libogg ]; then echo "Dependance \"libogg\" is not installed. Exiting..." exit fi fi #Checking libvorbis... if [ ! -f /var/cache/ulfs-packages/libvorbis ]; then echo "Dependance \"libvorbis\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libvorbis/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libvorbis ]; then echo "Dependance \"libvorbis\" is not installed. Exiting..." exit fi fi #Checking libtheora... if [ ! -f /var/cache/ulfs-packages/libtheora ]; then echo "Dependance \"libtheora\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libtheora/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libtheora ]; then echo "Dependance \"libtheora\" is not installed. Exiting..." exit fi fi #Checking libdvdread... if [ ! -f /var/cache/ulfs-packages/libdvdread ]; then echo "Dependance \"libdvdread\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libdvdread/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libdvdread ]; then echo "Dependance \"libdvdread\" is not installed. Exiting..." exit fi fi #Checking libdvdnav... if [ ! -f /var/cache/ulfs-packages/libdvdnav ]; then echo "Dependance \"libdvdnav\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libdvdnav/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libdvdnav ]; then echo "Dependance \"libdvdnav\" is not installed. Exiting..." exit fi fi #Checking sdl12-compat... if [ ! -f /var/cache/ulfs-packages/sdl12-compat ]; then echo "Dependance \"sdl12-compat\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/sdl12-compat/install -O - | bash if [ ! -f /var/cache/ulfs-packages/sdl12-compat ]; then echo "Dependance \"sdl12-compat\" is not installed. Exiting..." exit fi fi #Checking avahi... if [ ! -f /var/cache/ulfs-packages/avahi ]; then echo "Dependance \"avahi\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/avahi/install -O - | bash if [ ! -f /var/cache/ulfs-packages/avahi ]; then echo "Dependance \"avahi\" is not installed. Exiting..." exit fi fi #Checking libaom... if [ ! -f /var/cache/ulfs-packages/libaom ]; then echo "Dependance \"libaom\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libaom/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libaom ]; then echo "Dependance \"libaom\" is not installed. Exiting..." exit fi fi #Checking ffmpeg... if [ ! -f /var/cache/ulfs-packages/ffmpeg ]; then echo "Dependance \"ffmpeg\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/ffmpeg/install -O - | bash if [ ! -f /var/cache/ulfs-packages/ffmpeg ]; then echo "Dependance \"ffmpeg\" is not installed. Exiting..." exit fi fi #Checking libass... if [ ! -f /var/cache/ulfs-packages/libass ]; then echo "Dependance \"libass\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libass/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libass ]; then echo "Dependance \"libass\" is not installed. Exiting..." exit fi fi #Checking opus... if [ ! -f /var/cache/ulfs-packages/opus ]; then echo "Dependance \"opus\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/opus/install -O - | bash if [ ! -f /var/cache/ulfs-packages/opus ]; then echo "Dependance \"opus\" is not installed. Exiting..." exit fi fi #Checking x264... if [ ! -f /var/cache/ulfs-packages/x264 ]; then echo "Dependance \"x264\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/x264/install -O - | bash if [ ! -f /var/cache/ulfs-packages/x264 ]; then echo "Dependance \"x264\" is not installed. Exiting..." exit fi fi #Checking libva... if [ ! -f /var/cache/ulfs-packages/libva ]; then echo "Dependance \"libva\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libva/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libva ]; then echo "Dependance \"libva\" is not installed. Exiting..." exit fi fi #Checking libvpx... if [ ! -f /var/cache/ulfs-packages/libvpx ]; then echo "Dependance \"libvpx\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libvpx/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libvpx ]; then echo "Dependance \"libvpx\" is not installed. Exiting..." exit fi fi #Checking flac... if [ ! -f /var/cache/ulfs-packages/flac ]; then echo "Dependance \"flac\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/flac/install -O - | bash if [ ! -f /var/cache/ulfs-packages/flac ]; then echo "Dependance \"flac\" is not installed. Exiting..." exit fi fi #Checking speex... if [ ! -f /var/cache/ulfs-packages/speex ]; then echo "Dependance \"speex\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/speex/install -O - | bash if [ ! -f /var/cache/ulfs-packages/speex ]; then echo "Dependance \"speex\" is not installed. Exiting..." exit fi fi #Checking pulseaudio... if [ ! -f /var/cache/ulfs-packages/pulseaudio ]; then echo "Dependance \"pulseaudio\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/pulseaudio/install -O - | bash if [ ! -f /var/cache/ulfs-packages/pulseaudio ]; then echo "Dependance \"pulseaudio\" is not installed. Exiting..." exit fi fi #Checking libcddb... if [ ! -f /var/cache/ulfs-packages/libcddb ]; then echo "Dependance \"libcddb\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libcddb/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libcddb ]; then echo "Dependance \"libcddb\" is not installed. Exiting..." exit fi fi #Checking libnotify... if [ ! -f /var/cache/ulfs-packages/libnotify ]; then echo "Dependance \"libnotify\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libnotify/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libnotify ]; then echo "Dependance \"libnotify\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/xdg-utils/install -O - | bash if [ ! -f /var/cache/ulfs-packages/xdg-utils ]; then echo "Dependance \"xdg-utils\" is not installed. Exiting..." exit fi fi #Checking samba... if [ ! -f /var/cache/ulfs-packages/samba ]; then echo "Dependance \"samba\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/samba/install -O - | bash if [ ! -f /var/cache/ulfs-packages/samba ]; then echo "Dependance \"samba\" is not installed. Exiting..." exit fi fi #Checking v4l-utils... if [ ! -f /var/cache/ulfs-packages/v4l-utils ]; then echo "Dependance \"v4l-utils\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/v4l-utils/install -O - | bash if [ ! -f /var/cache/ulfs-packages/v4l-utils ]; then echo "Dependance \"v4l-utils\" is not installed. Exiting..." exit fi fi #Checking a52dec... if [ ! -f /var/cache/ulfs-packages/a52dec ]; then echo "Dependance \"a52dec\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/a52dec/install -O - | bash if [ ! -f /var/cache/ulfs-packages/a52dec ]; then echo "Dependance \"a52dec\" is not installed. Exiting..." exit fi fi #Checking libmad... if [ ! -f /var/cache/ulfs-packages/libmad ]; then echo "Dependance \"libmad\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libmad/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libmad ]; then echo "Dependance \"libmad\" is not installed. Exiting..." exit fi fi #Checking libidn1... if [ ! -f /var/cache/ulfs-packages/libidn1 ]; then echo "Dependance \"libidn1\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libidn1/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libidn1 ]; then echo "Dependance \"libidn1\" is not installed. Exiting..." exit fi fi #Checking libdv... if [ ! -f /var/cache/ulfs-packages/libdv ]; then echo "Dependance \"libdv\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libdv/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libdv ]; then echo "Dependance \"libdv\" is not installed. Exiting..." exit fi fi #Checking libdvdcss... if [ ! -f /var/cache/ulfs-packages/libdvdcss ]; then echo "Dependance \"libdvdcss\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libdvdcss/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libdvdcss ]; then echo "Dependance \"libdvdcss\" is not installed. Exiting..." exit fi fi #Checking faad2... if [ ! -f /var/cache/ulfs-packages/faad2 ]; then echo "Dependance \"faad2\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/faad2/install -O - | bash if [ ! -f /var/cache/ulfs-packages/faad2 ]; then echo "Dependance \"faad2\" is not installed. Exiting..." exit fi fi #Checking libmpeg2... if [ ! -f /var/cache/ulfs-packages/libmpeg2 ]; then echo "Dependance \"libmpeg2\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libmpeg2/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libmpeg2 ]; then echo "Dependance \"libmpeg2\" is not installed. Exiting..." exit fi fi #Checking aalib... if [ ! -f /var/cache/ulfs-packages/aalib ]; then echo "Dependance \"aalib\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/aalib/install -O - | bash if [ ! -f /var/cache/ulfs-packages/aalib ]; then echo "Dependance \"aalib\" is not installed. Exiting..." exit fi fi #Checking libsamplerate... if [ ! -f /var/cache/ulfs-packages/libsamplerate ]; then echo "Dependance \"libsamplerate\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libsamplerate/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libsamplerate ]; then echo "Dependance \"libsamplerate\" is not installed. Exiting..." exit fi fi #Checking taglib... if [ ! -f /var/cache/ulfs-packages/taglib ]; then echo "Dependance \"taglib\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/taglib/install -O - | bash if [ ! -f /var/cache/ulfs-packages/taglib ]; then echo "Dependance \"taglib\" is not installed. Exiting..." exit fi fi #Saving downloading timestamp date +%s > /var/log/ulfs-packages/vlc/download.time #Downloading source package archive... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/v/vlc-3.0.21.tar.xz.md5sum wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/v/vlc-3.0.21.tar.xz #Checking source package file existance if [ ! -f vlc-3.0.21.tar.xz ]; then echo "Error: Can't find vlc-3.0.21.tar.xz. Exiting!" exit fi #Checking source package file checksum if [ -f vlc-3.0.21.tar.xz.md5sum ]; then MD5=`LANG=C md5sum -c vlc-3.0.21.tar.xz.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of vlc-3.0.21.tar.xz is wrong. Exiting!" exit fi fi #Downloadning patches... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/patches/vlc-3.0.21-taglib-1.patch #Downloadning patches... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/patches/vlc-3.0.21-fedora_ffmpeg7-1.patch #Saving cleanup timestamp date +%s > /var/log/ulfs-packages/vlc/cleanup.time rm -rfv /sources/vlc-3.0.21/ #Saving extracting timestamp date +%s > /var/log/ulfs-packages/vlc/unpack.time #Extracting tar source package archive with default parameters... tar -xf vlc-3.0.21.tar.xz #Checking package directory size after unpack... du -s vlc-3.0.21 | awk 'NR==1 {print $1}' > /var/log/ulfs-packages/vlc/unpack.size #Going to source package directory... cd vlc-3.0.21 #Applying patches... patch -Np1 -i ../vlc-3.0.21-taglib-1.patch patch -Np1 -i ../vlc-3.0.21-fedora_ffmpeg7-1.patch #Saving configuration timestamp date +%s > /var/log/ulfs-packages/vlc/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/vlc-3.0.21 \! -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 "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 export LUAC=/usr/bin/luac5.2 && export LUA_LIBS="\$(pkg-config --libs lua52)" && export CPPFLAGS="\$(pkg-config --cflags lua52)" BUILDCC=gcc ./configure --prefix=/usr --disable-libplacebo EOIS cat ulfs_configure.sh | bash 2>&1 | tee /var/log/ulfs-packages/vlc/configure.log #Saving build timestamp date +%s > /var/log/ulfs-packages/vlc/build.time #Running build script... 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 make if [[ "\$ULFS_PKG_TEST" == "YES" ]] then make check fi EOIS cat ulfs_build.sh | bash 2>&1 | tee /var/log/ulfs-packages/vlc/build.log #Saving install timestamp date +%s > /var/log/ulfs-packages/vlc/install.time #Running install script... cat > ulfs_install.sh << EOIS make docdir=/usr/share/doc/vlc-3.0.21 install gtk-update-icon-cache -qtf /usr/share/icons/hicolor && update-desktop-database -q EOIS USER=`whoami` if [ "$USER" == "root" ] ; then cat ulfs_install.sh | bash 2>&1 | tee /var/log/ulfs-packages/vlc/install.log else cat ulfs_install.sh | sudo bash 2>&1 | tee /var/log/ulfs-packages/vlc/install.log fi #Saving finish timestamp date +%s > /var/log/ulfs-packages/vlc/finish.time #Checking package directory size after unpack... cd /sources du -s vlc-3.0.21 | awk 'NR==1 {print $1}' > /var/log/ulfs-packages/vlc/install.size echo "ULFS package installation completed." #Producing files list echo "Looking for installed files..." if [ -f /var/log/ulfs-packages/vlc/files.txt ]; then rm /var/log/ulfs-packages/vlc/files.txt fi USER=`whoami` if [ "$USER" == "root" ] ; then find /bin -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /sbin -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /usr -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /etc -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /opt -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /lib -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /lib64 -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt find /var -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time \! -path "/var/log/ulfs-packages/vlc/*" >> /var/log/ulfs-packages/vlc/files.txt else sudo find /bin -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /sbin -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /usr -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /etc -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /opt -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /lib -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /lib64 -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time >> /var/log/ulfs-packages/vlc/files.txt sudo find /var -type f -newer /var/log/ulfs-packages/vlc/configure.time \! -newer /var/log/ulfs-packages/vlc/finish.time \! -path "/var/log/ulfs-packages/vlc/*" >> /var/log/ulfs-packages/vlc/files.txt fi #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/vlc else sudo touch /var/cache/ulfs-packages/vlc fi #Calculate delta size a=`cat /var/log/ulfs-packages/vlc/unpack.size` b=`cat /var/log/ulfs-packages/vlc/install.size` c=$(($b-$a)) echo $c > /var/log/ulfs-packages/vlc/delta.size #Calculate prepare time a=`cat /var/log/ulfs-packages/vlc/start.time` b=`cat /var/log/ulfs-packages/vlc/configure.time` dp=$(($b-$a)) #Calculate download time a=`cat /var/log/ulfs-packages/vlc/download.time` b=`cat /var/log/ulfs-packages/vlc/unpack.time` dd=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/vlc/configure.time` b=`cat /var/log/ulfs-packages/vlc/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/vlc/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: vlc" echo "Release: 0.2.2" echo "Build size: $c" echo "Prepare time: $dp sec." echo "Download time: $dd sec." echo "Build time: $db sec." #End of script