Ignore:
Timestamp:
04/11/2019 07:40:50 AM (5 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
0e4ddfa
Parents:
adbd09b
Message:

Use sect1info for getting informations on LFS packages:

  • add sect1info sections to packagemanager.xml.xxx + various fixes
  • add templates in LFS/lfs.xsl for script start and script end:
    • script start: define variables containing package information

print disk usage
unpack and change dir

  • script end: print disk usage

remove build dir

  • remove the corresponding operations from master.sh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pkgmngt/packageManager.xml.pacman

    radbd09b r2758d94  
    99it in html -->
    1010<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    11   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
     11  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     12<!ENTITY libarchive-version "3.1.2">
     13<!ENTITY curl-version       "7.39.0">
     14<!ENTITY pacman-version     "4.1.2">
     15<!ENTITY libarchive-url "http://www.libarchive.org/downloads/libarchive-&libarchive-version;.tar.gz">
     16<!ENTITY curl-url       "http://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
     17<!ENTITY pacman-url     "https://sources.archlinux.org/other/pacman/pacman-&pacman-version;.tar.gz">
     18<!ENTITY curl-md5       "e9aa6dec29920eba8ef706ea5823bad7">
     19<!ENTITY libarchive-md5 "efad5a503f66329bb9d2f4308b5de98a">
     20<!ENTITY pacman-md5     "063c8b0ff6bdf903dc235445525627cd">
     21]>
     22
    1223
    1324<!-- The first markup should be the one defined in the DOCTYPE DECLARATION -->
     
    1930Do not change  anything, except the url and the md5 checksum. -->
    2031<sect1 id="package">
    21         <para>Download: <ulink url="http://curl.haxx.se/download/curl-7.39.0.tar.lzma"/></para>
    22         <para>MD5 sum: <literal>e9aa6dec29920eba8ef706ea5823bad7</literal></para>
    23         <para>Download: <ulink url="http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz"/></para>
    24         <para>MD5 sum: <literal>efad5a503f66329bb9d2f4308b5de98a</literal></para>
    25         <para>Download: <ulink url="https://sources.archlinux.org/other/pacman/pacman-4.1.2.tar.gz"/></para>
    26         <para>MD5 sum: <literal>063c8b0ff6bdf903dc235445525627cd</literal></para>
     32  <?dbhtml filename="package.html"?>
     33
     34  <title>All Packages</title>
     35        <para>Download: <ulink url="&curl-url;"/></para>
     36        <para>MD5 sum: <literal>&curl-md5;</literal></para>
     37        <para>Download: <ulink url="&libarchive-url;"/></para>
     38        <para>MD5 sum: <literal>&libarchive-md5;</literal></para>
     39        <para>Download: <ulink url="&pacman-url;"/></para>
     40        <para>MD5 sum: <literal>&pacman-md5;</literal></para>
    2741</sect1>
    2842
     
    3650<!-- Do not change the next line. The name of the scriptlet will be taken
    3751from the dbhtml instruction: it is the name of the file less .html, with
    38 xxx-x-added before (x, digits). Furthermore, the tarball name must be in the form
    39 name_x.y.z(.extension) or name-x.y.z(.extension) if the dbhtml
    40 instruction  contains file="name.html" -->
     52xxx-x-added before (x, digits).-->
    4153<sect1 id="ch-tools-libarchive" role="wrap">
    4254  <?dbhtml filename="libarchive.html"?>
    43   <sect2 role="installation">
     55
     56  <sect1info condition="script">
     57    <productname>libarchive</productname>
     58    <productnumber>&libarchive-version;</productnumber>
     59    <address>&libarchive-url;</address>
     60  </sect1info>
     61
     62  <title>Libarchive-&libarchive-version;</title>
     63
     64  <sect2 role="installation">
     65    <title/>
    4466<screen><userinput remap="configure">./configure --prefix=/tools \
    4567            --without-bz2lib \
     
    5274
    5375</sect1>
     76
    5477<sect1 id="ch-tools-curl" role="wrap">
    5578  <?dbhtml filename="curl.html"?>
    56   <sect2 role="installation">
     79
     80  <sect1info condition="script">
     81    <productname>curl</productname>
     82    <productnumber>&curl-version;</productnumber>
     83    <address>&curl-url;</address>
     84  </sect1info>
     85
     86  <title>Curl-&curl-version;</title>
     87
     88  <sect2 role="installation">
     89    <title/>
    5790<screen><userinput remap="configure">./configure --prefix=/tools \
    5891            --disable-static</userinput></screen>
     
    6598<sect1 id="ch-tools-pkgmngt" role="wrap">
    6699  <?dbhtml filename="pacman.html"?>
    67 <!-- next line mandatory without change, but feel free to add any title,
    68 other sect2 (with different role), sectinfo and so on -->
    69   <sect2 role="installation">
     100
     101  <sect1info condition="script">
     102    <productname>pacman</productname>
     103    <productnumber>&pacman-version;</productnumber>
     104    <address>&pacman-url;</address>
     105  </sect1info>
     106
     107  <title>Pacman-&pacman-version;</title>
     108
     109  <sect2 role="installation">
     110    <title/>
    70111<!-- You can use any number of remap="pre", "configure", "make", "test", "install"
    71112<screen><userinput remap="something">Instructions</userinput></screen>.
     
    111152<sect1 id="ch-pkgmngt-creatingdirs">
    112153
    113 <!-- Put the create dir intructions there. feel free to add
    114 any explaining <title>Title</title> and <para>explanations</para> -->
     154  <title>Creating Directories</title>
     155
    115156<screen><userinput>mkdir -pv /var/{lib/{packages,pacman},cache/pkg}</userinput></screen>
    116157
     
    118159<!-- Same for files. Do not change the following line -->
    119160<sect1 id="ch-pkgmngt-createfiles">
     161
     162  <title>Creating Essential Files</title>
    120163
    121164<para>No file?</para>
     
    132175<sect1 id="ch-system-libarchive" role="wrap">
    133176  <?dbhtml filename="libarchive.html"?>
    134   <sect2 role="installation">
     177
     178  <sect1info condition="script">
     179    <productname>libarchive</productname>
     180    <productnumber>&libarchive-version;</productnumber>
     181    <address>&libarchive-url;</address>
     182  </sect1info>
     183
     184  <title>Libarchive-&libarchive-version;</title>
     185
     186  <sect2 role="installation">
     187    <title/>
    135188<screen><userinput remap="configure">./configure --prefix=/usr \
    136189            --disable-static</userinput></screen>
     
    142195<sect1 id="ch-system-curl" role="wrap">
    143196  <?dbhtml filename="curl.html"?>
    144   <sect2 role="installation">
     197
     198  <sect1info condition="script">
     199    <productname>curl</productname>
     200    <productnumber>&curl-version;</productnumber>
     201    <address>&curl-url;</address>
     202  </sect1info>
     203
     204  <title>Curl-&curl-version;</title>
     205
     206  <sect2 role="installation">
     207    <title/>
    145208<screen><userinput remap="configure">./configure --prefix=/usr \
    146209            --disable-static \
     
    149212<screen><userinput remap="install">make DESTDIR=$PKG_DEST install
    150213find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
    151 install -v -d -m755 $PKG_DEST/usr/share/doc/curl-7.39.0
    152 cp -v -R docs/*     $PKG_DEST/usr/share/doc/curl-7.39.0</userinput></screen>
     214install -v -d -m755 $PKG_DEST/usr/share/doc/curl-&curl-version;
     215cp -v -R docs/*     $PKG_DEST/usr/share/doc/curl-&curl-version;</userinput></screen>
    153216  </sect2>
    154217
     
    157220  <?dbhtml filename="pacman.html"?>
    158221
    159   <sect2 role="installation">
     222  <sect1info condition="script">
     223    <productname>pacman</productname>
     224    <productnumber>&pacman-version;</productnumber>
     225    <address>&pacman-url;</address>
     226  </sect1info>
     227
     228  <title>Pacman-&pacman-version;</title>
     229
     230  <sect2 role="installation">
     231    <title/>
    160232
    161233<screen><userinput remap="configure">./configure --prefix=/usr \
Note: See TracChangeset for help on using the changeset viewer.