#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.2 # Package: libreoffice #=========================== # DB commit: 48bb9ee31306c82c48dfaaad707eb4f6a926eb8a # APP commit: 1ca4178aea919e4c9e869e3d650ff8af9678bd6f #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: libreoffice" 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/libreoffice/ #Saving start timestamp date +%s > /var/log/ulfs-packages/libreoffice/start.time #Going to source directory... cd /sources #Checking dependances... #Checking gettext... if [ ! -f /var/cache/ulfs-packages/gettext ]; then echo "Dependance \"gettext\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/gettext/install -O - | bash if [ ! -f /var/cache/ulfs-packages/gettext ]; then echo "Dependance \"gettext\" 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 icu... if [ ! -f /var/cache/ulfs-packages/icu ]; then echo "Dependance \"icu\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/icu/install -O - | bash if [ ! -f /var/cache/ulfs-packages/icu ]; then echo "Dependance \"icu\" is not installed. Exiting..." exit fi fi #Checking libxslt... if [ ! -f /var/cache/ulfs-packages/libxslt ]; then echo "Dependance \"libxslt\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libxslt/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libxslt ]; then echo "Dependance \"libxslt\" is not installed. Exiting..." exit fi fi #Checking unzip... if [ ! -f /var/cache/ulfs-packages/unzip ]; then echo "Dependance \"unzip\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/unzip/install -O - | bash if [ ! -f /var/cache/ulfs-packages/unzip ]; then echo "Dependance \"unzip\" is not installed. Exiting..." exit fi fi #Checking zip... if [ ! -f /var/cache/ulfs-packages/zip ]; then echo "Dependance \"zip\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/zip/install -O - | bash if [ ! -f /var/cache/ulfs-packages/zip ]; then echo "Dependance \"zip\" is not installed. Exiting..." exit fi fi #Checking curl... if [ ! -f /var/cache/ulfs-packages/curl ]; then echo "Dependance \"curl\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/curl/install -O - | bash if [ ! -f /var/cache/ulfs-packages/curl ]; then echo "Dependance \"curl\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/harfbuzz/install -O - | bash if [ ! -f /var/cache/ulfs-packages/harfbuzz ]; then echo "Dependance \"harfbuzz\" is not installed. Exiting..." exit fi fi #Checking llvm... if [ ! -f /var/cache/ulfs-packages/llvm ]; then echo "Dependance \"llvm\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/llvm/install -O - | bash if [ ! -f /var/cache/ulfs-packages/llvm ]; then echo "Dependance \"llvm\" is not installed. Exiting..." exit fi fi #Checking mesa... if [ ! -f /var/cache/ulfs-packages/mesa ]; then echo "Dependance \"mesa\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mesa/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mesa ]; then echo "Dependance \"mesa\" is not installed. Exiting..." exit fi fi #Checking libepoxy... if [ ! -f /var/cache/ulfs-packages/libepoxy ]; then echo "Dependance \"libepoxy\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libepoxy/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libepoxy ]; then echo "Dependance \"libepoxy\" is not installed. Exiting..." exit fi fi #Checking graphite2... if [ ! -f /var/cache/ulfs-packages/graphite2 ]; then echo "Dependance \"graphite2\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/graphite2/install -O - | bash if [ ! -f /var/cache/ulfs-packages/graphite2 ]; then echo "Dependance \"graphite2\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libjpeg-turbo/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libjpeg-turbo ]; then echo "Dependance \"libjpeg-turbo\" is not installed. Exiting..." exit fi fi #Checking glu... if [ ! -f /var/cache/ulfs-packages/glu ]; then echo "Dependance \"glu\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/glu/install -O - | bash if [ ! -f /var/cache/ulfs-packages/glu ]; then echo "Dependance \"glu\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/tiff/install -O - | bash if [ ! -f /var/cache/ulfs-packages/tiff ]; then echo "Dependance \"tiff\" is not installed. Exiting..." exit fi fi #Checking gtk3... if [ ! -f /var/cache/ulfs-packages/gtk3 ]; then echo "Dependance \"gtk3\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/gtk3/install -O - | bash if [ ! -f /var/cache/ulfs-packages/gtk3 ]; then echo "Dependance \"gtk3\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/dbus-glib/install -O - | bash if [ ! -f /var/cache/ulfs-packages/dbus-glib ]; then echo "Dependance \"dbus-glib\" 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 OpenLDAP-client... if [ ! -f /var/cache/ulfs-packages/OpenLDAP-client ]; then echo "Dependance \"OpenLDAP-client\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/OpenLDAP-client/install -O - | bash if [ ! -f /var/cache/ulfs-packages/OpenLDAP-client ]; then echo "Dependance \"OpenLDAP-client\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/librsvg/install -O - | bash if [ ! -f /var/cache/ulfs-packages/librsvg ]; then echo "Dependance \"librsvg\" is not installed. Exiting..." exit fi fi #Checking gst-plugins-base... if [ ! -f /var/cache/ulfs-packages/gst-plugins-base ]; then echo "Dependance \"gst-plugins-base\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/gst-plugins-base/install -O - | bash if [ ! -f /var/cache/ulfs-packages/gst-plugins-base ]; then echo "Dependance \"gst-plugins-base\" is not installed. Exiting..." exit fi fi #Checking libwebp... if [ ! -f /var/cache/ulfs-packages/libwebp ]; then echo "Dependance \"libwebp\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libwebp/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libwebp ]; then echo "Dependance \"libwebp\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/lcms2/install -O - | bash if [ ! -f /var/cache/ulfs-packages/lcms2 ]; then echo "Dependance \"lcms2\" is not installed. Exiting..." exit fi fi #Checking which... if [ ! -f /var/cache/ulfs-packages/which ]; then echo "Dependance \"which\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/which/install -O - | bash if [ ! -f /var/cache/ulfs-packages/which ]; then echo "Dependance \"which\" is not installed. Exiting..." exit fi fi #Checking nss... if [ ! -f /var/cache/ulfs-packages/nss ]; then echo "Dependance \"nss\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/nss/install -O - | bash if [ ! -f /var/cache/ulfs-packages/nss ]; then echo "Dependance \"nss\" is not installed. Exiting..." exit fi fi #Checking boost... if [ ! -f /var/cache/ulfs-packages/boost ]; then echo "Dependance \"boost\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/boost/install -O - | bash if [ ! -f /var/cache/ulfs-packages/boost ]; then echo "Dependance \"boost\" 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..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/poppler/install -O - | bash if [ ! -f /var/cache/ulfs-packages/poppler ]; then echo "Dependance \"poppler\" is not installed. Exiting..." exit fi fi #Checking cups... if [ ! -f /var/cache/ulfs-packages/cups ]; then echo "Dependance \"cups\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/cups/install -O - | bash if [ ! -f /var/cache/ulfs-packages/cups ]; then echo "Dependance \"cups\" is not installed. Exiting..." exit fi fi #Checking gpgme... if [ ! -f /var/cache/ulfs-packages/gpgme ]; then echo "Dependance \"gpgme\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/gpgme/install -O - | bash if [ ! -f /var/cache/ulfs-packages/gpgme ]; then echo "Dependance \"gpgme\" is not installed. Exiting..." exit fi fi #Checking python3-lxml... if [ ! -f /var/cache/ulfs-packages/python3-lxml ]; then echo "Dependance \"python3-lxml\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/python3-lxml/install -O - | bash if [ ! -f /var/cache/ulfs-packages/python3-lxml ]; then echo "Dependance \"python3-lxml\" is not installed. Exiting..." exit fi fi #Checking mariadb-client... if [ ! -f /var/cache/ulfs-packages/mariadb-client ]; then echo "Dependance \"mariadb-client\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/mariadb-client/install -O - | bash if [ ! -f /var/cache/ulfs-packages/mariadb-client ]; then echo "Dependance \"mariadb-client\" is not installed. Exiting..." exit fi fi #Checking unixODBC... if [ ! -f /var/cache/ulfs-packages/unixODBC ]; then echo "Dependance \"unixODBC\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/unixODBC/install -O - | bash if [ ! -f /var/cache/ulfs-packages/unixODBC ]; then echo "Dependance \"unixODBC\" is not installed. Exiting..." exit fi fi #Checking postgresql-client... if [ ! -f /var/cache/ulfs-packages/postgresql-client ]; then echo "Dependance \"postgresql-client\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/postgresql-client/install -O - | bash if [ ! -f /var/cache/ulfs-packages/postgresql-client ]; then echo "Dependance \"postgresql-client\" is not installed. Exiting..." exit fi fi #Checking perl-Archive-Zip... if [ ! -f /var/cache/ulfs-packages/perl-Archive-Zip ]; then echo "Dependance \"perl-Archive-Zip\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/perl-Archive-Zip/install -O - | bash if [ ! -f /var/cache/ulfs-packages/perl-Archive-Zip ]; then echo "Dependance \"perl-Archive-Zip\" is not installed. Exiting..." exit fi fi #Checking clucene... if [ ! -f /var/cache/ulfs-packages/clucene ]; then echo "Dependance \"clucene\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/clucene/install -O - | bash if [ ! -f /var/cache/ulfs-packages/clucene ]; then echo "Dependance \"clucene\" is not installed. Exiting..." exit fi fi #Checking glm... if [ ! -f /var/cache/ulfs-packages/glm ]; then echo "Dependance \"glm\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/glm/install -O - | bash if [ ! -f /var/cache/ulfs-packages/glm ]; then echo "Dependance \"glm\" is not installed. Exiting..." exit fi fi #Checking libatomic_ops... if [ ! -f /var/cache/ulfs-packages/libatomic_ops ]; then echo "Dependance \"libatomic_ops\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/libatomic_ops/install -O - | bash if [ ! -f /var/cache/ulfs-packages/libatomic_ops ]; then echo "Dependance \"libatomic_ops\" is not installed. Exiting..." exit fi fi #Checking redland... if [ ! -f /var/cache/ulfs-packages/redland ]; then echo "Dependance \"redland\" not found. Trying to install..."; wget --no-check-certificate https://umvirt.com/linux/packages//0.2.2/redland/install -O - | bash if [ ! -f /var/cache/ulfs-packages/redland ]; then echo "Dependance \"redland\" is not installed. Exiting..." exit fi fi #Saving downloading timestamp date +%s > /var/log/ulfs-packages/libreoffice/download.time #Downloading source package archive... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-24.8.0.3.tar.xz.md5sum wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-24.8.0.3.tar.xz #Checking source package file existance if [ ! -f libreoffice-24.8.0.3.tar.xz ]; then echo "Error: Can't find libreoffice-24.8.0.3.tar.xz. Exiting!" exit fi #Checking source package file checksum if [ -f libreoffice-24.8.0.3.tar.xz.md5sum ]; then MD5=`LANG=C md5sum -c libreoffice-24.8.0.3.tar.xz.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of libreoffice-24.8.0.3.tar.xz is wrong. Exiting!" exit fi fi #Downloadning add-ons... #Downloadning add-on "libreoffice-dictionaries-24.8.0.3.tar.xz"... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-dictionaries-24.8.0.3.tar.xz.md5sum wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-dictionaries-24.8.0.3.tar.xz #Checking addon file existance if [ ! -f libreoffice-dictionaries-24.8.0.3.tar.xz ]; then echo "Error: Can't find libreoffice-dictionaries-24.8.0.3.tar.xz. Exiting!" exit fi #Checking add-on file checksum if [ -f libreoffice-dictionaries-24.8.0.3.tar.xz.md5sum ]; then MD5=`LANG=C md5sum -c libreoffice-dictionaries-24.8.0.3.tar.xz.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of libreoffice-dictionaries-24.8.0.3.tar.xz is wrong. Exiting!" exit fi fi #Downloadning add-on "libreoffice-help-24.8.0.3.tar.xz"... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-help-24.8.0.3.tar.xz.md5sum wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-help-24.8.0.3.tar.xz #Checking addon file existance if [ ! -f libreoffice-help-24.8.0.3.tar.xz ]; then echo "Error: Can't find libreoffice-help-24.8.0.3.tar.xz. Exiting!" exit fi #Checking add-on file checksum if [ -f libreoffice-help-24.8.0.3.tar.xz.md5sum ]; then MD5=`LANG=C md5sum -c libreoffice-help-24.8.0.3.tar.xz.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of libreoffice-help-24.8.0.3.tar.xz is wrong. Exiting!" exit fi fi #Downloadning add-on "libreoffice-translations-24.8.0.3.tar.xz"... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-translations-24.8.0.3.tar.xz.md5sum wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-translations-24.8.0.3.tar.xz #Checking addon file existance if [ ! -f libreoffice-translations-24.8.0.3.tar.xz ]; then echo "Error: Can't find libreoffice-translations-24.8.0.3.tar.xz. Exiting!" exit fi #Checking add-on file checksum if [ -f libreoffice-translations-24.8.0.3.tar.xz.md5sum ]; then MD5=`LANG=C md5sum -c libreoffice-translations-24.8.0.3.tar.xz.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of libreoffice-translations-24.8.0.3.tar.xz is wrong. Exiting!" exit fi fi #Downloadning add-on "libreoffice-tarballs-24.8.0.3.tar"... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-tarballs-24.8.0.3.tar.md5sum wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/packages/l/libreoffice-tarballs-24.8.0.3.tar #Checking addon file existance if [ ! -f libreoffice-tarballs-24.8.0.3.tar ]; then echo "Error: Can't find libreoffice-tarballs-24.8.0.3.tar. Exiting!" exit fi #Checking add-on file checksum if [ -f libreoffice-tarballs-24.8.0.3.tar.md5sum ]; then MD5=`LANG=C md5sum -c libreoffice-tarballs-24.8.0.3.tar.md5sum | grep OK` if [ "$MD5" == "" ] ; then echo "Error: Checksum of libreoffice-tarballs-24.8.0.3.tar is wrong. Exiting!" exit fi fi #Downloadning patches... wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.2.2/patches/libreoffice-24.8.0.3-boost_fixes-1.patch #Saving cleanup timestamp date +%s > /var/log/ulfs-packages/libreoffice/cleanup.time rm -rfv /sources/libreoffice-24.8.0.3/ #Saving extracting timestamp date +%s > /var/log/ulfs-packages/libreoffice/unpack.time #Extracting tar source package archive with default parameters... tar -xf libreoffice-24.8.0.3.tar.xz #Checking package directory size after unpack... du -s libreoffice-24.8.0.3 | awk 'NR==1 {print $1}' > /var/log/ulfs-packages/libreoffice/unpack.size #Going to source package directory... cd libreoffice-24.8.0.3 #Applying patches... patch -Np1 -i ../libreoffice-24.8.0.3-boost_fixes-1.patch #Saving configuration timestamp date +%s > /var/log/ulfs-packages/libreoffice/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/libreoffice-24.8.0.3 \! -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 sed -i '/icuuc \\\\/a zlib\\\\' writerperfect/Library_wpftdraw.mk install -dm755 external/tarballs && ln -sv ../../../libreoffice-dictionaries-24.8.0.3.tar.xz external/tarballs/ && ln -sv ../../../libreoffice-help-24.8.0.3.tar.xz external/tarballs/ && ln -sv ../../../libreoffice-translations-24.8.0.3.tar.xz external/tarballs/ ln -sv src/libreoffice-help-24.8.0.3/helpcontent2/ && ln -sv src/libreoffice-dictionaries-24.8.0.3/dictionaries/ && ln -sv src/libreoffice-translations-24.8.0.3/translations/ export LO_PREFIX=/opt/libreoffice-24.8.0.3 case \$(uname -m) in i?86) sed /-Os/d -i solenv/gbuild/platform/LINUX_INTEL_GCC.mk ;; esac sed -e "/gzip -f/d" \\ -e "s|.1.gz|.1|g" \\ -i bin/distro-install-desktop-integration && sed -e "/distro-install-file-lists/d" -i Makefile.in && ./autogen.sh --prefix=\$LO_PREFIX \\ --sysconfdir=/etc \\ --with-vendor=BLFS \\ --with-lang='en-GB ru' \\ --with-help \\ --with-myspell-dicts \\ --without-junit \\ --without-system-dicts \\ --disable-dconf \\ --disable-odk \\ --disable-mariadb-sdbc \\ --enable-release-build=yes \\ --enable-python=system \\ --without-java \\ --with-system-boost \\ --with-system-clucene \\ --with-system-curl \\ --with-system-epoxy \\ --with-system-expat \\ --with-system-glm \\ --with-system-gpgmepp \\ --with-system-graphite \\ --with-system-harfbuzz \\ --with-system-icu \\ --with-system-jpeg \\ --with-system-lcms2 \\ --with-system-libatomic_ops \\ --with-system-libpng \\ --with-system-libxml \\ --with-system-nss \\ --with-system-odbc \\ --with-system-openldap \\ --with-system-openssl \\ --with-system-poppler \\ --with-system-postgresql \\ --with-system-redland \\ --with-system-libtiff \\ --with-system-libwebp \\ --with-system-zlib \\ --disable-gstreamer-1-0 tar -xf ../libreoffice-tarballs-24.8.0.3.tar mv -v libreoffice-tarballs-24.8.0.3/* external/tarballs EOIS cat ulfs_configure.sh | bash 2>&1 | tee /var/log/ulfs-packages/libreoffice/configure.log #Saving build timestamp date +%s > /var/log/ulfs-packages/libreoffice/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 build EOIS cat ulfs_build.sh | bash 2>&1 | tee /var/log/ulfs-packages/libreoffice/build.log #Saving install timestamp date +%s > /var/log/ulfs-packages/libreoffice/install.time #Running install script... cat > ulfs_install.sh << EOIS export LO_PREFIX=/opt/libreoffice-24.8.0.3 make distro-pack-install if [ "\$LO_PREFIX" != "/usr" ]; then # This symlink is necessary for the desktop menu entries ln -svf \$LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice && # Set up a generic location independent of version number ln -sfv \$LO_PREFIX /opt/libreoffice # Icons mkdir -vp /usr/share/pixmaps for i in \$LO_PREFIX/share/icons/hicolor/32x32/apps/*; do ln -svf \$i /usr/share/pixmaps done && # Desktop menu entries for i in \$LO_PREFIX/lib/libreoffice/share/xdg/*; do ln -svf \$i /usr/share/applications/libreoffice-\$(basename \$i) done && # Man pages for i in \$LO_PREFIX/share/man/man1/*; do ln -svf \$i /usr/share/man/man1/ done unset i fi update-desktop-database EOIS USER=`whoami` if [ "$USER" == "root" ] ; then cat ulfs_install.sh | bash 2>&1 | tee /var/log/ulfs-packages/libreoffice/install.log else cat ulfs_install.sh | sudo bash 2>&1 | tee /var/log/ulfs-packages/libreoffice/install.log fi #Saving finish timestamp date +%s > /var/log/ulfs-packages/libreoffice/finish.time #Checking package directory size after unpack... cd /sources du -s libreoffice-24.8.0.3 | awk 'NR==1 {print $1}' > /var/log/ulfs-packages/libreoffice/install.size echo "ULFS package installation completed." #Producing files list echo "Looking for installed files..." if [ -f /var/log/ulfs-packages/libreoffice/files.txt ]; then rm /var/log/ulfs-packages/libreoffice/files.txt fi USER=`whoami` if [ "$USER" == "root" ] ; then find /bin -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /sbin -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /usr -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /etc -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /opt -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /lib -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /lib64 -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt find /var -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time \! -path "/var/log/ulfs-packages/libreoffice/*" >> /var/log/ulfs-packages/libreoffice/files.txt else sudo find /bin -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /sbin -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /usr -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /etc -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /opt -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /lib -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /lib64 -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time >> /var/log/ulfs-packages/libreoffice/files.txt sudo find /var -type f -newer /var/log/ulfs-packages/libreoffice/configure.time \! -newer /var/log/ulfs-packages/libreoffice/finish.time \! -path "/var/log/ulfs-packages/libreoffice/*" >> /var/log/ulfs-packages/libreoffice/files.txt fi #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/libreoffice else sudo touch /var/cache/ulfs-packages/libreoffice fi #Calculate delta size a=`cat /var/log/ulfs-packages/libreoffice/unpack.size` b=`cat /var/log/ulfs-packages/libreoffice/install.size` c=$(($b-$a)) echo $c > /var/log/ulfs-packages/libreoffice/delta.size #Calculate prepare time a=`cat /var/log/ulfs-packages/libreoffice/start.time` b=`cat /var/log/ulfs-packages/libreoffice/configure.time` dp=$(($b-$a)) #Calculate download time a=`cat /var/log/ulfs-packages/libreoffice/download.time` b=`cat /var/log/ulfs-packages/libreoffice/unpack.time` dd=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/libreoffice/configure.time` b=`cat /var/log/ulfs-packages/libreoffice/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/libreoffice/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: libreoffice" 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