Changeset 7b50e2c


Ignore:
Timestamp:
09/29/2007 12:31:07 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
5a9b043
Parents:
bfcaaa0
Message:

Writting blfs-tool.xsl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XSL/blfs-tool.xsl

    rbfcaaa0 r7b50e2c  
    1313      <!-- Fixed directory and ch_order values -->
    1414    <xsl:variable name="basedir">blfs-tool-deps/30_</xsl:variable>
    15       <!-- One exsl:document block for each blfs-tool dependency
    16            TO BE WRITTEN -->
    17     <exsl:document href="{$basedir}01-dummy" method="text">
    18       <xsl:call-template name="header"/>
    19       <xsl:text>
    20 PKG_PHASE=dummy
    21 PACKAGE=dummy
    22 VERSION=0.0.0
    23 TARBALL=dummy-0.0.0.tar.bz2
     15      <!-- libxml2 -->
     16    <exsl:document href="{$basedir}01-libxml2" method="text">
     17      <xsl:call-template name="header"/>
     18      <xsl:text>
     19PKG_PHASE="libxml2"
     20PACKAGE="libxml2"
     21VERSION="2.6.29"
     22TARBALL="${PACKAGE}-${VERSION}.tar.gz"
     23DOWNLOAD="ftp://xmlsoft.org/libxml2/${TARBALL}"
     24MD5SUM="8b99b6e8b08e838438d9e6b639d79ebd"
    2425      </xsl:text>
    2526      <xsl:call-template name="disk_usage"/>
     
    2930./configure --prefix=/usr
    3031make
    31 make check
    32 make install
     32make install
     33      </xsl:text>
     34      <xsl:call-template name="disk_usage"/>
     35      <xsl:call-template name="clean_sources"/>
     36      <xsl:call-template name="footer"/>
     37    </exsl:document>
     38      <!-- libxslt -->
     39    <exsl:document href="{$basedir}02-libxslt" method="text">
     40      <xsl:call-template name="header"/>
     41      <xsl:text>
     42PKG_PHASE="libxslt"
     43PACKAGE="libxslt"
     44VERSION="1.1.21"
     45TARBALL="${PACKAGE}-${VERSION}.tar.gz"
     46DOWNLOAD="ftp://xmlsoft.org/libxslt/${TARBALL}"
     47MD5SUM="59fe34e85692f71df2a38c2ee291b3ca"
     48      </xsl:text>
     49      <xsl:call-template name="disk_usage"/>
     50      <xsl:call-template name="unpack"/>
     51      <xsl:text>
     52cd $PKGDIR
     53./configure --prefix=/usr
     54make
     55make install
     56      </xsl:text>
     57      <xsl:call-template name="disk_usage"/>
     58      <xsl:call-template name="clean_sources"/>
     59      <xsl:call-template name="footer"/>
     60    </exsl:document>
     61      <!-- tidy -->
     62    <exsl:document href="{$basedir}03-tidy" method="text">
     63      <xsl:call-template name="header"/>
     64      <xsl:text>
     65PKG_PHASE="tidy"
     66PACKAGE="tidy"
     67VERSION="cvs_20070326"
     68TARBALL="${PACKAGE}-${VERSION}.tar.bz2"
     69DOWNLOAD="http://anduin.linuxfromscratch.org/files/BLFS/sources/${TARBALL}"
     70MD5SUM="468bfaa5cf917a8ecbe7834c13a61376"
     71      </xsl:text>
     72      <xsl:call-template name="disk_usage"/>
     73      <xsl:call-template name="unpack"/>
     74      <xsl:text>
     75cd $PKGDIR
     76./configure --prefix=/usr
     77make
     78make install
     79make -C htmldoc install_apidocs
     80      </xsl:text>
     81      <xsl:call-template name="disk_usage"/>
     82      <xsl:call-template name="clean_sources"/>
     83      <xsl:call-template name="footer"/>
     84    </exsl:document>
     85      <!-- unzip -->
     86    <exsl:document href="{$basedir}04-unzip" method="text">
     87      <xsl:call-template name="header"/>
     88      <xsl:text>
     89PKG_PHASE="unzip"
     90PACKAGE="unzip"
     91VERSION="552"
     92TARBALL="${PACKAGE}${VERSION}.tar.gz"
     93DOWNLOAD="http://downloads.sourceforge.net/infozip/${TARBALL}"
     94MD5SUM="9d23919999d6eac9217d1f41472034a9"
     95
     96PATCH1="http://www.linuxfromscratch.org/patches/blfs/svn/unzip-5.52-security_fix-1.patch 00ebf64fdda2ad54ddfc619f85f328bb"
     97      </xsl:text>
     98      <xsl:call-template name="disk_usage"/>
     99      <xsl:call-template name="unpack"/>
     100      <xsl:text>
     101cd $PKGDIR
     102patch -Np1 -i ../unzip-5.52-security_fix-1.patch
     103make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux
     104make prefix=/usr install
     105      </xsl:text>
     106      <xsl:call-template name="disk_usage"/>
     107      <xsl:call-template name="clean_sources"/>
     108      <xsl:call-template name="footer"/>
     109    </exsl:document>
     110      <!-- DocBook XML DTD -->
     111    <exsl:document href="{$basedir}05-docbook-xml" method="text">
     112      <xsl:call-template name="header"/>
     113      <xsl:text>
     114PKG_PHASE="docbook-xml"
     115PACKAGE="docboo-xml"
     116VERSION="4.5"
     117TARBALL="${PACKAGE}-${VERSION}.zip"
     118DOWNLOAD="http://www.docbook.org/xml/4.5/${TARBALL}"
     119MD5SUM="03083e288e87a7e829e437358da7ef9e"
     120      </xsl:text>
     121      <xsl:call-template name="disk_usage"/>
     122      <xsl:text>
     123cd /sources
     124mkdir docbook-xml
     125cd docbook-xml
     126unzip ../docbook-xml-4.5.zip
     127install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
     128install -v -d -m755 /etc/xml
     129chown -R root:root .
     130cp -v -af docbook.cat *.dtd ent/ *.mod \
     131    /usr/share/xml/docbook/xml-dtd-4.5
     132if [ ! -e /etc/xml/docbook ]; then
     133    xmlcatalog --noout --create /etc/xml/docbook
     134fi
     135xmlcatalog --noout --add "public" \
     136    "-//OASIS//DTD DocBook XML V4.5//EN" \
     137    "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
     138    /etc/xml/docbook
     139xmlcatalog --noout --add "public" \
     140    "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
     141    "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
     142    /etc/xml/docbook
     143xmlcatalog --noout --add "public" \
     144    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
     145    "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
     146    /etc/xml/docbook
     147xmlcatalog --noout --add "public" \
     148    "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
     149    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
     150    /etc/xml/docbook
     151xmlcatalog --noout --add "public" \
     152    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
     153    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
     154    /etc/xml/docbook
     155xmlcatalog --noout --add "public" \
     156    "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
     157    "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
     158    /etc/xml/docbook
     159xmlcatalog --noout --add "public" \
     160    "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
     161    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
     162    /etc/xml/docbook
     163xmlcatalog --noout --add "public" \
     164    "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
     165    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
     166    /etc/xml/docbook
     167xmlcatalog --noout --add "public" \
     168    "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
     169    "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
     170    /etc/xml/docbook
     171xmlcatalog --noout --add "rewriteSystem" \
     172    "http://www.oasis-open.org/docbook/xml/4.5" \
     173    "file:///usr/share/xml/docbook/xml-dtd-4.5" \
     174    /etc/xml/docbook
     175xmlcatalog --noout --add "rewriteURI" \
     176    "http://www.oasis-open.org/docbook/xml/4.5" \
     177    "file:///usr/share/xml/docbook/xml-dtd-4.5" \
     178    /etc/xml/docbook
     179if [ ! -e /etc/xml/catalog ]; then
     180    xmlcatalog --noout --create /etc/xml/catalog
     181fi
     182xmlcatalog --noout --add "delegatePublic" \
     183    "-//OASIS//ENTITIES DocBook XML" \
     184    "file:///etc/xml/docbook" \
     185    /etc/xml/catalog
     186xmlcatalog --noout --add "delegatePublic" \
     187    "-//OASIS//DTD DocBook XML" \
     188    "file:///etc/xml/docbook" \
     189    /etc/xml/catalog
     190xmlcatalog --noout --add "delegateSystem" \
     191    "http://www.oasis-open.org/docbook/" \
     192    "file:///etc/xml/docbook" \
     193    /etc/xml/catalog
     194xmlcatalog --noout --add "delegateURI" \
     195    "http://www.oasis-open.org/docbook/" \
     196    "file:///etc/xml/docbook" \
     197    /etc/xml/catalog
     198for DTDVERSION in 4.1.2 4.2 4.3 4.4
     199do
     200  xmlcatalog --noout --add "public" \
     201    "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
     202    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
     203    /etc/xml/docbook
     204  xmlcatalog --noout --add "rewriteSystem" \
     205    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
     206    "file:///usr/share/xml/docbook/xml-dtd-4.5" \
     207    /etc/xml/docbook
     208  xmlcatalog --noout --add "rewriteURI" \
     209    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
     210    "file:///usr/share/xml/docbook/xml-dtd-4.5" \
     211    /etc/xml/docbook
     212  xmlcatalog --noout --add "delegateSystem" \
     213    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
     214    "file:///etc/xml/docbook" \
     215    /etc/xml/catalog
     216  xmlcatalog --noout --add "delegateURI" \
     217    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
     218    "file:///etc/xml/docbook" \
     219    /etc/xml/catalog
     220done
     221      </xsl:text>
     222      <xsl:call-template name="disk_usage"/>
     223      <xsl:text>
     224cd /sources
     225rm -rf docbook-xml
     226      </xsl:text>
     227      <xsl:call-template name="footer"/>
     228    </exsl:document>
     229      <!-- DocBook XSL (empty and commented-out, it's not required for now) -->
     230    <!--<exsl:document href="{$basedir}06-docbook-xsl" method="text">
     231      <xsl:call-template name="header"/>
     232      <xsl:text>
     233PKG_PHASE="docbook-xsl"
     234PACKAGE="docbook-xsl"
     235VERSION=""
     236TARBALL="${PACKAGE}-${VERSION}.tar.bz2"
     237DOWNLOAD="http://prdownloads.sourceforge.net/docbook/${TARBALL}"
     238MD5SUM=""
     239      </xsl:text>
     240      <xsl:call-template name="disk_usage"/>
     241      <xsl:call-template name="unpack"/>
     242      <xsl:text>
     243cd $PKGDIR
     244      </xsl:text>
     245      <xsl:call-template name="disk_usage"/>
     246      <xsl:call-template name="clean_sources"/>
     247      <xsl:call-template name="footer"/>
     248    </exsl:document>-->
     249      <!--  -->
     250    <exsl:document href="{$basedir}07-gpm" method="text">
     251      <xsl:call-template name="header"/>
     252      <xsl:text>
     253PKG_PHASE="gpm"
     254PACKAGE="gpm"
     255VERSION="1.20.1"
     256TARBALL="${PACKAGE}-${VERSION}.tar.bz2"
     257DOWNLOAD="ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/${TARBALL}"
     258MD5SUM="2c63e827d755527950d9d13fe3d87692"
     259
     260PATCH1="http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-segfault-1.patch 8c88f92990ba7613014fcd1db14ca7ac"
     261PATCH2="http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-silent-1.patch bf6cbefe20c6f15b587f19ebc1c8a37a"
     262      </xsl:text>
     263      <xsl:call-template name="disk_usage"/>
     264      <xsl:call-template name="unpack"/>
     265      <xsl:text>
     266cd $PKGDIR
     267patch -Np1 -i ../gpm-1.20.1-segfault-1.patch
     268patch -Np1 -i ../gpm-1.20.1-silent-1.patch
     269./configure --prefix=/usr --sysconfdir=/etc
     270LDFLAGS="$LDFLAGS -lm" make
     271make install
     272cp -v conf/gpm-root.conf /etc
     273ldconfig
     274      </xsl:text>
     275      <xsl:call-template name="disk_usage"/>
     276      <xsl:call-template name="clean_sources"/>
     277      <xsl:call-template name="footer"/>
     278    </exsl:document>
     279      <!--  -->
     280    <exsl:document href="{$basedir}08-lynx" method="text">
     281      <xsl:call-template name="header"/>
     282      <xsl:text>
     283PKG_PHASE="lynx"
     284PACKAGE="lynx"
     285VERSION="2.8.6"
     286TARBALL="${PACKAGE}${VERSION}.tar.bz2"
     287DOWNLOAD="http://lynx.isc.org/release/${TARBALL}"
     288MD5SUM="dc80497b7dda6a28fd80404684d27548"
     289      </xsl:text>
     290      <xsl:call-template name="disk_usage"/>
     291      <xsl:call-template name="unpack"/>
     292      <xsl:text>
     293cd $PKGDIR
     294./configure --prefix=/usr \
     295            --sysconfdir=/etc/lynx \
     296            --datadir=/usr/share/doc/lynx-2.8.6 \
     297            --with-zlib \
     298            --with-bzlib \
     299            --with-screen=ncursesw \
     300            --enable-locale-charset
     301make
     302make install-full
     303chgrp -v -R root /usr/share/doc/lynx-2.8.6/lynx_doc
     304      </xsl:text>
     305      <xsl:call-template name="disk_usage"/>
     306      <xsl:call-template name="clean_sources"/>
     307      <xsl:call-template name="footer"/>
     308    </exsl:document>
     309      <!--  -->
     310    <exsl:document href="{$basedir}09-sudo" method="text">
     311      <xsl:call-template name="header"/>
     312      <xsl:text>
     313PKG_PHASE="sudo"
     314PACKAGE="sudo"
     315VERSION="1.6.8p12"
     316TARBALL="${PACKAGE}-${VERSION}.tar.gz"
     317DOWNLOAD="http://anduin.linuxfromscratch.org/sources/BLFS/svn/s/${TARBALL}"
     318MD5SUM="b29893c06192df6230dd5f340f3badf5"
     319
     320PATCH1="http://www.linuxfromscratch.org/patches/blfs/svn/sudo-1.6.8p12-envvar_fix-1.patch 454925aedfe054dff8fe0d03b209f986"
     321      </xsl:text>
     322      <xsl:call-template name="disk_usage"/>
     323      <xsl:call-template name="unpack"/>
     324      <xsl:text>
     325cd $PKGDIR
     326patch -Np1 -i ../sudo-1.6.8p12-envvar_fix-1.patch
     327./configure --prefix=/usr --libexecdir=/usr/lib \
     328    --enable-noargs-shell --with-ignore-dot --with-all-insults \
     329    --enable-shell-sets-home
     330make
     331make install
     332      </xsl:text>
     333      <xsl:call-template name="disk_usage"/>
     334      <xsl:call-template name="clean_sources"/>
     335      <xsl:call-template name="footer"/>
     336    </exsl:document>
     337      <!--  -->
     338    <exsl:document href="{$basedir}10-wget" method="text">
     339      <xsl:call-template name="header"/>
     340      <xsl:text>
     341PKG_PHASE="wget"
     342PACKAGE="wget"
     343VERSION="1.10.2"
     344TARBALL="${PACKAGE}-${VERSION}.tar.gz"
     345DOWNLOAD="ftp://ftp.gnu.org/gnu/wget/${TARBALL}"
     346MD5SUM="795fefbb7099f93e2d346b026785c4b8"
     347      </xsl:text>
     348      <xsl:call-template name="disk_usage"/>
     349      <xsl:call-template name="unpack"/>
     350      <xsl:text>
     351cd $PKGDIR
     352./configure --prefix=/usr --sysconfdir=/etc
     353make
     354make install
     355      </xsl:text>
     356      <xsl:call-template name="disk_usage"/>
     357      <xsl:call-template name="clean_sources"/>
     358      <xsl:call-template name="footer"/>
     359    </exsl:document>
     360      <!--  -->
     361    <exsl:document href="{$basedir}11-subversion" method="text">
     362      <xsl:call-template name="header"/>
     363      <xsl:text>
     364PKG_PHASE="subversion"
     365PACKAGE="subversion"
     366VERSION="1.3.1"
     367TARBALL="${PACKAGE}-${VERSION}.tar.bz2"
     368DOWNLOAD="http://subversion.tigris.org/tarballs/${TARBALL}"
     369MD5SUM="07b95963968ae345541ca99d0e7bf082"
     370      </xsl:text>
     371      <xsl:call-template name="disk_usage"/>
     372      <xsl:call-template name="unpack"/>
     373      <xsl:text>
     374cd $PKGDIR
     375./configure --prefix=/usr \
     376            --without-berkeley-db \
     377            --with-installbuilddir=/usr/lib/apr-0
     378make
     379make install
     380rm doc/{Makefile,doxygen.conf}
     381find doc -type d -exec chmod 755 {} \;
     382find doc -type f -exec chmod 644 {} \;
     383install -v -m755 -d /usr/share/doc/subversion-1.3.1
     384cp -v -R doc/* /usr/share/doc/subversion-1.3.1
    33385      </xsl:text>
    34386      <xsl:call-template name="disk_usage"/>
Note: See TracChangeset for help on using the changeset viewer.