Hi... I'm new in the list, and I want to contribute to the LiveCD
Project. I've found a few errors in the nALFS system used in LiveCD.
When I tried to build the system the first time, I've got MD5 digest
errors. Apparently, most of the packages in the /sources directory have
the expected MD5 digest, but some oh them not. I've written a little
shell script to check and correct that:
Here is the code:
---------------------------------------------------------
#!/bin/bash
for ENTITY in `grep -e "-md5"
/root/nALFS-profile-LFS-6.1/config/package.ent | sed -e "s/ /#/g"`
do
LINE=`echo $ENTITY | sed -e "s/#/ /g"`
PKG=`echo $ENTITY | cut -d "#" -f 2 | sed -e "s/-md5//g"`
VERSION=`grep "$PKG-version \""
/root/nALFS-profile-LFS-6.1/config/package.ent | cut -d " " -f 3 | sed
-e "s/\"//g" -e "s/>//g"`
MD5SUM=`echo $ENTITY | cut -d "#" -f 3 | sed -e "s/\"//g" -e "s/>//g"`
TARBALL="$PKG-$VERSION.tar.bz2"
if [ -f "/sources/$TARBALL" ]; then
REALMD5=`md5sum /sources/$TARBALL | awk '{print $1}'`
if [ "$MD5SUM" != "$REALMD5" ]; then
echo "Expected MD5Sum for package $PKG: $MD5SUM. Real MD5:
$REALMD5"
sed -i -e "s/$PKG-md5 \"$MD5SUM\"/$PKG-md5 \"$REALMD5\"/g"
/root/nALFS-profile-LFS-6.1/config/package.ent
fi
fi
done
---------------------------------------------------------
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page