UmVirt LFS Assistant command info

🐒Command info

🔙Parent Directory  -

add_fasm

Info: FASM blob & sources install
Commands:
cd /sources

wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.1/blobs/fasm/fasm-1.73.25.tgz
wget --no-check-certificate -nc https://umvirt.com/linux/downloads/0.1/blobs/fasm/fasm-1.73.25.tgz.md5sum

#Checking source package file existance
if [ ! -f fasm-1.73.25.tgz ]; then
echo "Error: Can't find fasm-1.73.25.tgz. Exiting!"
exit
fi

#Checking source package file checksum
if [ -f fasm-1.73.25.tgz.md5sum ]; then
    MD5=`LANG=C md5sum -c fasm-1.73.25.tgz.md5sum | grep OK`
    if [ "$MD5" == "" ] ; then
    echo "Error: Checksum of fasm-1.73.25.tgz is wrong. Exiting!"
    exit
    fi
fi

tar xf fasm-1.73.25.tgz
cd fasm

#selfbuild
if [ $(uname -m) = i686 ]; then
./fasm source/Linux/fasm.asm
else
./fasm.x64 source/Linux/x64/fasm.asm
fi

#install
if [ $(uname -m) = i686 ]; then
install -v -m755 source/Linux/fasm /usr/bin
else
install -v -m755 source/Linux/x64/fasm /usr/bin 
fi


Apache/2.4.62 (Debian) Server at ulfs.org Port 443