Changeset 49f8b03 for pkgmngt


Ignore:
Timestamp:
06/24/2020 06:26:05 AM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
d5a739a
Parents:
13e52a5
Message:

Fix package management for new book, and add a patch for porg

Location:
pkgmngt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pkgmngt/packageManager.xml.porg

    r13e52a5 r49f8b03  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <!-- $Id$ -->
    32<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    43  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     
    65<!ENTITY porg-url "https://sourceforge.net/projects/porg/files/porg-&porg-version;.tar.gz">
    76<!ENTITY porg-md5 "2eceb8a73bb188dbb06b12d90cabdbb4">
     7<!ENTITY porg-patch-url "http://www.linuxfromscratch.org/patches/downloads/porg/porg-0.10-renameat2-1.patch">
     8<!ENTITY porg-patch-md5 "cfc72c817d98902afeaf225f22b8e653">
    89]>
    910
     
    1516        <para>MD5 sum: <literal>&porg-md5;</literal></para>
    1617</sect1>
     18<sect1 id="patches">
     19  <title>Package Information</title>
     20        <para>Download: <ulink url="&porg-patch-url;"/></para>
     21        <para>MD5 sum: <literal>&porg-patch-md5;</literal></para>
     22</sect1>
     23
    1724
    1825<sect1 id="ch-tools-pkgmngt" role="wrap">
     
    2835  <sect2 role="installation">
    2936    <title>Instructions</title>
     37<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
    3038<screen><userinput remap="configure">./configure --prefix=/tools \
    3139           --disable-grop  \
     
    7078</sect1>
    7179
     80<sect1 id="ch-chroot-pkgmngt" role="wrap">
     81  <?dbhtml filename="porg.html"?>
     82
     83  <sect1info condition="script">
     84    <productname>porg</productname>
     85    <productnumber>&porg-version;</productnumber>
     86    <address>&porg-url;</address>
     87  </sect1info>
     88
     89  <title>Temporary Porg</title>
     90  <sect2 role="installation">
     91    <title>Instructions</title>
     92
     93<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
     94<screen><userinput remap="configure">./configure --prefix=/usr     \
     95            --disable-grop    \
     96            --sysconfdir=/etc \
     97            --with-porg-logdir=/var/lib/porg</userinput></screen>
     98
     99<screen><userinput remap="make">make</userinput></screen>
     100
     101<screen><userinput remap="install">make install
     102mkdir -p /usr/share/bash-completion/completions
     103mv /etc/bash_completion.d/porg* /usr/share/bash-completion/completions</userinput></screen>
     104
     105<screen><userinput>sed -e '/EXCLUDE/{s/^#//;s@$@:/sources:/home@}' \
     106    -e '/LOGDIR/s/^#//' \
     107    -i /etc/porgrc</userinput></screen>
     108  </sect2>
     109
     110</sect1>
     111
    72112<sect1 id="ch-system-pkgmngt" role="wrap">
    73113  <?dbhtml filename="porg.html"?>
     
    83123    <title>Instructions</title>
    84124
     125<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
    85126<screen><userinput remap="configure">./configure --prefix=/usr     \
    86127            --disable-grop    \
  • pkgmngt/packageManager.xml.template

    r13e52a5 r49f8b03  
    1717Only the next four lines are mandatory, but you can add anything
    1818to make the text look more like the LFS book.
     19You can add several packages (see packageManager.xml.pacman)
    1920Do not change  anything, except the url and the md5 checksum. -->
    2021<sect1 id="package">
     
    3031-->
    3132
    32 <!-- Do not change the next line. The name of the scriptlet will be taken
    33 from the dbhtml instruction: it is the name of the file less .html, with
    34 xxx-x-added before (x, digits). -->
     33<!-- We have three groups of sections with installation instructions:
     34  -  the one with id ch-tools-xxx is for old book, where
     35     the package manager (and its needed deps) is built as user
     36     lfs in /tools
     37  -  the one with id ch-chroot-xxx is for new book, where the
     38     package manager (and its needed deps) is built temporarily
     39     in chroot
     40  -  the one with id ch-system-xxx is for both book, when the
     41     package manager (and its deps) is rebuilt with instructions
     42     to make a package of it.
     43
     44     Do not change the next line, except the -pkgmngt part.
     45     The name of the scriptlet will be taken from the dbhtml instruction:
     46     it is the name of the file less .html, with xxx-x-added before
     47     (x, digits). -->
    3548<sect1 id="ch-tools-pkgmngt" role="wrap">
    36   <?dbhtml filename="dpkg.html"?>
     49  <?dbhtml filename="pkgmngt.html"?>
    3750<!-- the next lines are now mandatory for unpacking the tarball at the
    3851     beginning of the scriptlet -->
     
    8598</sect1>
    8699
     100<!-- for new book, at the end of chapter 7 -->
     101<sect1 id="ch-chroot-pkgmngt" role="wrap">
     102  <?dbhtml filename="pkgmngt.html"?>
     103<!-- the next lines are now mandatory for unpacking the tarball at the
     104     beginning of the scriptlet -->
     105  <sect1info condition="script">
     106    <productname>dpkg</productname>
     107    <productnumber>x.y.z</productnumber><!-- version -->
     108    <address>http://where/is/your/package</address><!-- url -->
     109  </sect1info>
     110<!-- next line mandatory without change, but feel free to add any title,
     111other sect2 (with different role), sectinfo and so on -->
     112  <sect2 role="installation">
     113<!-- You can use any number of remap="pre", "configure", "make", "test", "install"
     114<screen><userinput remap="something">Instructions</userinput></screen>.
     115They are executed in that order. "pre" can be used for patching for example.
     116In case testing is enabled, the instructions flagged test are logged to a different
     117file (test-log). If testing is not enabled, they are not executed at all. Do not
     118put line breaks before and after your instructions. <userinput> without
     119remap attribute are considered configuration instructions and executed last. You
     120can also use remap="adjust" for the same purpose. -->
     121<screen><userinput remap="configure">./configure --prefix=/tools \
     122    --disable-nls --without-dselect \
     123    --without-start-stop-daemon \
     124    --without-update-alternatives \
     125    --without-install-info \
     126    --without-zlib --with-bz2=static --without-selinux</userinput></screen>
     127
     128<screen><userinput remap="make">(cd lib  &amp;&amp; make)
     129(cd src &amp;&amp; make)
     130(cd dpkg-deb &amp;&amp; make)
     131(cd dpkg-split &amp;&amp; make)</userinput></screen>
     132
     133<screen><userinput remap="install">cp src/dpkg src/dpkg-* /tools/bin
     134cp dpkg-deb/dpkg-deb /tools/bin
     135cp dpkg-split/dpkg-split /tools/bin
     136mkdir -pv /tools/etc/dpkg/{,dpkg.cfg.d}
     137cp debian/dpkg.cfg /tools/etc/dpkg</userinput></screen>
     138
     139<screen><userinput>cat &gt;&gt; /tools/etc/dpkg/dpkg.cfg &lt;&lt; EOF
     140# admindir on LFS system
     141admindir /var/lib/dpkg
     142EOF</userinput></screen>
     143
     144<screen><userinput>cat &gt;&gt; /tools/etc/dpkg/dpkg.cfg &lt;&lt; EOF
     145# disable fatal error on path checking
     146force-bad-path
     147EOF</userinput></screen>
     148
     149  </sect2>
     150
     151</sect1>
     152
    87153<!-- Mandatory section for creating dirs. These instructions are added at the
    88154end of the creating dirs instructions of the book. Do not change the
     
    96162
    97163</sect1>
    98 <!-- Same for files. Do not change the following line -->
     164<!-- Same for files. Do not change the following line.
     165     Those instructions are not executed for the new book.
     166     If needed create files at the end of the temp install. -->
    99167<sect1 id="ch-pkgmngt-createfiles">
    100168
     
    107175package manager at the end of chapter 6. Again, the scriptlet file name is
    108176taken from the dbhtml instruction, with digits added before and .html cut.
     177There can be any number of sections for dependencies, all with id
     178ch-system-xxx (all the id's must be different).
    109179-->
    110180<sect1 id="ch-system-pkgmngt" role="wrap">
Note: See TracChangeset for help on using the changeset viewer.