Changeset 2758d94 for pkgmngt


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
Location:
pkgmngt
Files:
3 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 \
  • pkgmngt/packageManager.xml.porg

    radbd09b r2758d94  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
     3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     4<!ENTITY porg-version "0.10">
     5<!ENTITY porg-url "https://sourceforge.net/projects/porg/files/porg-&porg-version;.tar.gz">
     6<!ENTITY porg-md5 "2eceb8a73bb188dbb06b12d90cabdbb4">
     7]>
    48
    59<article>
     
    711<sect1 id="package">
    812  <title>Package Information</title>
    9         <para>Download: <ulink url="https://sourceforge.net/projects/porg/files/porg-0.10.tar.gz"/></para>
    10         <para>MD5 sum: <literal>2eceb8a73bb188dbb06b12d90cabdbb4</literal></para>
     13        <para>Download: <ulink url="&porg-url;"/></para>
     14        <para>MD5 sum: <literal>&porg-md5;</literal></para>
    1115</sect1>
    1216
    1317<sect1 id="ch-tools-pkgmngt" role="wrap">
    1418  <?dbhtml filename="porg.html"?>
     19
     20  <sect1info condition="script">
     21    <productname>porg</productname>
     22    <productnumber>&porg-version;</productnumber>
     23    <address>&porg-url;</address>
     24  </sect1info>
     25
    1526  <title>Porg in tools</title>
    1627  <sect2 role="installation">
     
    6071<sect1 id="ch-system-pkgmngt" role="wrap">
    6172  <?dbhtml filename="porg.html"?>
     73
     74  <sect1info condition="script">
     75    <productname>porg</productname>
     76    <productnumber>&porg-version;</productnumber>
     77    <address>&porg-url;</address>
     78  </sect1info>
     79
    6280  <title>Final Porg</title>
    6381  <sect2 role="installation">
  • pkgmngt/packageManager.xml.template

    radbd09b r2758d94  
    3232<!-- Do not change the next line. The name of the scriptlet will be taken
    3333from the dbhtml instruction: it is the name of the file less .html, with
    34 xxx-x-added before (x, digits). Furthermore, the tarball name must be in the form
    35 name_x.y.z(.extension) or name-x.y.z(.extension) if the dbhtml
    36 instruction  contains file="name.html" -->
     34xxx-x-added before (x, digits). -->
    3735<sect1 id="ch-tools-pkgmngt" role="wrap">
    3836  <?dbhtml filename="dpkg.html"?>
     37<!-- the next lines are now mandatory for unpacking the tarball at the
     38     beginning of the scriptlet -->
     39  <sect1info condition="script">
     40    <productname>dpkg</productname>
     41    <productnumber>x.y.z</productnumber><!-- version -->
     42    <address>http://where/is/your/package</address><!-- url -->
     43  </sect1info>
    3944<!-- next line mandatory without change, but feel free to add any title,
    4045other sect2 (with different role), sectinfo and so on -->
     
    101106<!-- Last but not least : Final instructions for installing the
    102107package manager at the end of chapter 6. Again, the scriptlet file name is
    103 taken from the dbhtml instruction, with digits added before and .html cut
    104 and the tarball name is formed from this name + version. So the file
    105 here _must_ be the same as in chapter 5. If rendering in html, both
    106 sets of instructions end up in the same file, which is usually not a problem.
     108taken from the dbhtml instruction, with digits added before and .html cut.
    107109-->
    108110<sect1 id="ch-system-pkgmngt" role="wrap">
    109111  <?dbhtml filename="dpkg.html"?>
     112
     113<!-- the next lines are now mandatory for unpacking the tarball at the
     114     beginning of the scriptlet -->
     115  <sect1info condition="script">
     116    <productname>dpkg</productname><!-- for example -->
     117    <productnumber>x.y.z</productnumber><!-- version -->
     118    <address>http://where/is/your/package</address><!-- url -->
     119  </sect1info>
    110120
    111121  <sect2 role="installation">
Note: See TracChangeset for help on using the changeset viewer.