El Lunes, 13 de Marzo de 2006 11:44, Tor Olav Stava escribió:
> I managed to modify the jhablfs
> script to download version 6.1 of the BLFS book, and it seems to parse
> the commands quite successfully. The only thing I noticed is that all
> the dependencies is missing in the final Makefile.
Yes, the dependencies are collected using an special XML attribute found only
in current BLFS SVN. Previous BLFS versions aren't supported.
> Basically what I wish, is to set a SOURCE dir in the .conf file, have
> jhalfs copy packages from there, and only download is the package don't
> exist.
We will see what could be done.
> Would be easy to make it work
> for jhalfs, but I haven't tested. The big problem is jhablfs where I
> could need some help.
In jhablfs the download code is generated by dump-blfs-scripts.xsl.
As a quick fix, change this code in dump-blfs-scripts.xsl
<xsl:when test="contains(string(),'HTTP')">
<xsl:text>wget </xsl:text>
<xsl:value-of select="ulink/@url"/>
<xsl:text> || \
</xsl:text>
</xsl:when>
<xsl:when test="contains(string(),'FTP')">
<xsl:text>wget </xsl:text>
<xsl:value-of select="ulink/@url"/>
<xsl:text> || \
</xsl:text>
</xsl:when>
<xsl:when test="contains(string(),'MD5')">
<xsl:text>wget </xsl:text>
<xsl:value-of select="$server"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="$ftpdir"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="$package"/>
<xsl:text>.bz2
</xsl:text>
to (if your repository is setup like the FTP mirrors)
<xsl:when test="contains(string(),'HTTP')"/>
<xsl:when test="contains(string(),'FTP')"/>
<xsl:when test="contains(string(),'MD5')">
<xsl:text>cp </xsl:text>
<xsl:value-of select="$server"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="$ftpdir"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="$package"/>
<xsl:text>.bz2
</xsl:text>
or (if all packages are found in the root dir)
<xsl:when test="contains(string(),'HTTP')"/>
<xsl:when test="contains(string(),'FTP')"/>
<xsl:when test="contains(string(),'MD5')">
<xsl:text>cp </xsl:text>
<xsl:value-of select="$server"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="$package"/>
<xsl:text>.bz2
</xsl:text>
Then set SERVER to the full path to the root dir of your local repository.
I. e.,
jhablfs -S /path/to_the/repository {other BLFS options}
--
Manuel Canales Esparcia
Usuario de LFS nº2886: http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.com
TLDP-ES: http://es.tldp.org
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page