2015-01-18 17:58:24 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- Above is a mandatory header for xml files. It must be the first
|
|
|
|
line in the file. Change encoding to the one you use on your computer -->
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<!-- Mandatory DOCTYPE declaration. Fill free to add entities,
|
|
|
|
but no external entities in local files, since they would not
|
|
|
|
be accessible from JHALFSDIR. Change the document type `article' to
|
|
|
|
book if you prefer. That slightly changes the aspect if you render
|
|
|
|
it in html -->
|
|
|
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
2019-04-11 09:40:50 +02:00
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2020-07-06 07:31:55 +02:00
|
|
|
<!ENTITY libarchive-version "3.4.3">
|
|
|
|
<!ENTITY curl-version "7.71.1">
|
|
|
|
<!ENTITY fakeroot-version "1.24">
|
|
|
|
<!ENTITY pacman-version "5.2.2">
|
|
|
|
<!ENTITY libarchive-url "https://github.com/libarchive/libarchive/releases/download/v&libarchive-version;/libarchive-&libarchive-version;.tar.xz">
|
|
|
|
<!ENTITY curl-url "https://curl.haxx.se/download/curl-&curl-version;.tar.xz">
|
|
|
|
<!ENTITY fakeroot-url "http://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_&fakeroot-version;.orig.tar.gz">
|
2019-04-11 09:40:50 +02:00
|
|
|
<!ENTITY pacman-url "https://sources.archlinux.org/other/pacman/pacman-&pacman-version;.tar.gz">
|
2020-07-06 07:31:55 +02:00
|
|
|
<!ENTITY curl-md5 "b54b386057846ce3edd3584b19741569">
|
|
|
|
<!ENTITY libarchive-md5 "4b216ea3015ecf8ae555a2026f9a6b73">
|
|
|
|
<!ENTITY fakeroot-md5 "964e5f438f1951e5a515dd54edd50fa6">
|
|
|
|
<!ENTITY pacman-md5 "3a9b078a83996a3272844807b91959c6">
|
|
|
|
<!ENTITY % general-entities SYSTEM "BOOK/general.ent">
|
|
|
|
%general-entities;
|
2019-04-11 09:40:50 +02:00
|
|
|
]>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
|
|
|
|
<!-- The first markup should be the one defined in the DOCTYPE DECLARATION -->
|
|
|
|
<article>
|
|
|
|
|
|
|
|
<!-- First section for the tarball download address.
|
|
|
|
Only the next four lines are mandatory, but you can add anything
|
|
|
|
to make the text look more like the LFS book.
|
|
|
|
Do not change anything, except the url and the md5 checksum. -->
|
|
|
|
<sect1 id="package">
|
2019-04-11 09:40:50 +02:00
|
|
|
<?dbhtml filename="package.html"?>
|
|
|
|
|
|
|
|
<title>All Packages</title>
|
|
|
|
<para>Download: <ulink url="&curl-url;"/></para>
|
|
|
|
<para>MD5 sum: <literal>&curl-md5;</literal></para>
|
2020-07-06 07:31:55 +02:00
|
|
|
<para>Download: <ulink url="&fakeroot-url;"/></para>
|
|
|
|
<para>MD5 sum: <literal>&fakeroot-md5;</literal></para>
|
2019-04-11 09:40:50 +02:00
|
|
|
<para>Download: <ulink url="&libarchive-url;"/></para>
|
|
|
|
<para>MD5 sum: <literal>&libarchive-md5;</literal></para>
|
|
|
|
<para>Download: <ulink url="&pacman-url;"/></para>
|
|
|
|
<para>MD5 sum: <literal>&pacman-md5;</literal></para>
|
2015-01-18 17:58:24 +01:00
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- If needed, uncomment and edit this:
|
|
|
|
<sect1 id="patches">
|
|
|
|
<para>Download: <ulink url="somepatch-url"/></para>
|
|
|
|
<para>MD5 sum: <literal>somepatch-md5</literal></para>
|
|
|
|
</sect1>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Do not change the next line. The name of the scriptlet will be taken
|
|
|
|
from the dbhtml instruction: it is the name of the file less .html, with
|
2019-04-11 09:40:50 +02:00
|
|
|
xxx-x-added before (x, digits).-->
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect1 id="ch-tools-libarchive" role="wrap">
|
|
|
|
<?dbhtml filename="libarchive.html"?>
|
2019-04-11 09:40:50 +02:00
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>libarchive</productname>
|
|
|
|
<productnumber>&libarchive-version;</productnumber>
|
|
|
|
<address>&libarchive-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Libarchive-&libarchive-version;</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect2 role="installation">
|
2019-04-11 09:40:50 +02:00
|
|
|
<title/>
|
2015-01-18 17:58:24 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/tools \
|
|
|
|
--without-bz2lib \
|
2017-03-11 17:47:43 +01:00
|
|
|
--without-xml2 \
|
2015-01-18 17:58:24 +01:00
|
|
|
--enable-bsdtar=static \
|
|
|
|
--enable-bsdcpio=static</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
2019-04-11 09:40:50 +02:00
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<sect1 id="ch-tools-openssl" role="wrap">
|
|
|
|
<?dbhtml filename="openssl.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>openssl</productname>
|
|
|
|
<productnumber>&openssl-version;</productnumber>
|
|
|
|
<address>&openssl-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>openssl-&openssl-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./config --prefix=/tools \
|
|
|
|
--openssldir=/tools/etc/ssl \
|
|
|
|
--libdir=lib</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect1 id="ch-tools-curl" role="wrap">
|
|
|
|
<?dbhtml filename="curl.html"?>
|
2019-04-11 09:40:50 +02:00
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>curl</productname>
|
|
|
|
<productnumber>&curl-version;</productnumber>
|
|
|
|
<address>&curl-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Curl-&curl-version;</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect2 role="installation">
|
2019-04-11 09:40:50 +02:00
|
|
|
<title/>
|
2015-01-18 17:58:24 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/tools \
|
|
|
|
--disable-static</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<sect1 id="ch-tools-libcap" role="wrap">
|
|
|
|
<?dbhtml filename="libcap.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>libcap</productname>
|
|
|
|
<productnumber>&libcap-version;</productnumber>
|
|
|
|
<address>&libcap-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libcap-&libcap-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="make">make lib=lib prefix=/tools GOLANG=no PAM_CAP=no</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make lib=lib prefix=/tools GOLANG=no PAM_CAP=no install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-tools-fakeroot" role="wrap">
|
|
|
|
<?dbhtml filename="fakeroot.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>fakeroot</productname>
|
|
|
|
<productnumber>&fakeroot-version;</productnumber>
|
|
|
|
<address>&fakeroot-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>fakeroot-&fakeroot-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect1 id="ch-tools-pkgmngt" role="wrap">
|
|
|
|
<?dbhtml filename="pacman.html"?>
|
2019-04-11 09:40:50 +02:00
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>pacman</productname>
|
|
|
|
<productnumber>&pacman-version;</productnumber>
|
|
|
|
<address>&pacman-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Pacman-&pacman-version;</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect2 role="installation">
|
2019-04-11 09:40:50 +02:00
|
|
|
<title/>
|
2015-01-18 17:58:24 +01:00
|
|
|
<!-- You can use any number of remap="pre", "configure", "make", "test", "install"
|
|
|
|
<screen><userinput remap="something">Instructions</userinput></screen>.
|
|
|
|
They are executed in that order. "pre" can be used for patching for example.
|
|
|
|
In case testing is enabled, the instructions flagged test are logged to a different
|
|
|
|
file (test-log). If testing is not enabled, they are not executed at all. Do not
|
|
|
|
put line breaks before and after your instructions. <userinput> without
|
|
|
|
remap attribute are considered configuration instructions and executed last. You
|
|
|
|
can also use remap="adjust" for the same purpose. -->
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput remap="configure">mkdir build
|
|
|
|
cd build
|
|
|
|
meson --prefix=/tools \
|
|
|
|
--sysconfdir=/tools/etc \
|
|
|
|
--localstatedir=/tools/var \
|
|
|
|
-Dcrypto=openssl \
|
|
|
|
-Ddoc=disabled \
|
|
|
|
-Dgpgme=disabled \
|
|
|
|
-Dpkg_config_path=/tools/lib/pkgconfig</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput remap="make">ninja</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput remap="install">ninja install</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
|
|
|
<screen><userinput>sed -e 's@/usr@/tools@g' \
|
|
|
|
-e 's/\([^!]\)strip/\1!strip/' \
|
2020-07-06 07:31:55 +02:00
|
|
|
-e 's/\([^!]\)libtool/\1!libtool/' \
|
2015-01-18 17:58:24 +01:00
|
|
|
-e 's/\([^!]\)zipman/\1!zipman/' \
|
|
|
|
-i /tools/etc/makepkg.conf
|
|
|
|
cat >> /tools/etc/makepkg.conf << EOF
|
|
|
|
BUILDDIR=/sources
|
|
|
|
PKGDEST=/var/lib/packages
|
|
|
|
PACKAGER="Pierre Labastie <lnimbus@club-internet.fr>"
|
|
|
|
EOF
|
|
|
|
cat >> /tools/etc/pacman.conf << EOF
|
|
|
|
DBPath = /var/lib/pacman/
|
|
|
|
CacheDir = /var/cache/pacman/pkg/
|
|
|
|
LogFile = /var/log/pacman.log
|
|
|
|
SigLevel = Never
|
|
|
|
# Repository: do not add one now: repo-add needs openssl.
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<!-- version for new book: needs ninja and meson, which needs
|
|
|
|
Python rebuilt with libffi and zlib. Needs also pkg-config -->
|
|
|
|
<sect1 id="ch-chroot-libarchive" role="wrap">
|
|
|
|
<?dbhtml filename="libarchive.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>libarchive</productname>
|
|
|
|
<productnumber>&libarchive-version;</productnumber>
|
|
|
|
<address>&libarchive-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Libarchive-&libarchive-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--without-bz2lib \
|
|
|
|
--without-xml2 \
|
|
|
|
--enable-bsdtar=static \
|
|
|
|
--enable-bsdcpio=static</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-openssl" role="wrap">
|
|
|
|
<?dbhtml filename="openssl.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>openssl</productname>
|
|
|
|
<productnumber>&openssl-version;</productnumber>
|
|
|
|
<address>&openssl-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>openssl-&openssl-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">
|
|
|
|
./config --prefix=/usr \
|
|
|
|
--openssldir=/etc/ssl \
|
|
|
|
--libdir=lib \
|
|
|
|
shared</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-curl" role="wrap">
|
|
|
|
<?dbhtml filename="curl.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>curl</productname>
|
|
|
|
<productnumber>&curl-version;</productnumber>
|
|
|
|
<address>&curl-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Curl-&curl-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--disable-static</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-libcap" role="wrap">
|
|
|
|
<?dbhtml filename="libcap.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>libcap</productname>
|
|
|
|
<productnumber>&libcap-version;</productnumber>
|
|
|
|
<address>&libcap-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libcap-&libcap-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="pre">sed -i '/install.*STACAPLIBNAME/d' libcap/Makefile</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make lib=lib</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install
|
|
|
|
chmod -v 755 /lib/libcap.so.&libcap-version;
|
|
|
|
mv -v /lib/libpsx.a /usr/lib
|
|
|
|
rm -v /lib/libcap.so
|
|
|
|
ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-fakeroot" role="wrap">
|
|
|
|
<?dbhtml filename="fakeroot.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>fakeroot</productname>
|
|
|
|
<productnumber>&fakeroot-version;</productnumber>
|
|
|
|
<address>&fakeroot-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>fakeroot-&fakeroot-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-zlib" role="wrap">
|
|
|
|
<?dbhtml filename="zlib.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>zlib</productname>
|
|
|
|
<productnumber>&zlib-version;</productnumber>
|
|
|
|
<address>&zlib-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>zlib-&zlib-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install
|
|
|
|
mv -v /usr/lib/libz.so.* /lib
|
|
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-libffi" role="wrap">
|
|
|
|
<?dbhtml filename="libffi.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>libffi</productname>
|
|
|
|
<productnumber>&libffi-version;</productnumber>
|
|
|
|
<address>&libffi-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libffi-&libffi-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr --disable-static --with-gcc-arch=native</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-python" role="wrap">
|
|
|
|
<?dbhtml filename="Python-pass2.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>Python</productname>
|
|
|
|
<productnumber>&python-version;</productnumber>
|
|
|
|
<address>&python-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Python-&python-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr --without-ensurepip --enable-shared</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-ninja" role="wrap">
|
|
|
|
<?dbhtml filename="ninja.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>ninja</productname>
|
|
|
|
<productnumber>&ninja-version;</productnumber>
|
|
|
|
<address>&ninja-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>ninja-&ninja-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">python3 configure.py --bootstrap</userinput></screen>
|
|
|
|
<screen><userinput remap="install">install -vm755 ninja /usr/bin/</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-meson" role="wrap">
|
|
|
|
<?dbhtml filename="meson.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>meson</productname>
|
|
|
|
<productnumber>&meson-version;</productnumber>
|
|
|
|
<address>&meson-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>meson-&meson-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="install">cp meson.py /usr/bin/meson
|
|
|
|
cp -rv mesonbuild /usr/bin</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-pkgconfig" role="wrap">
|
|
|
|
<?dbhtml filename="pkgconfig.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>pkg-config</productname>
|
|
|
|
<productnumber>&pkgconfig-version;</productnumber>
|
|
|
|
<address>&pkgconfig-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>pkg-config-&pkgconfig-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--with-internal-glib \
|
|
|
|
--disable-host-tool \
|
|
|
|
--docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-pkgmngt" role="wrap">
|
|
|
|
<?dbhtml filename="pacman.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>pacman</productname>
|
|
|
|
<productnumber>&pacman-version;</productnumber>
|
|
|
|
<address>&pacman-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Pacman-&pacman-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">mkdir build
|
|
|
|
cd build
|
|
|
|
meson --prefix=/usr \
|
|
|
|
-Dcrypto=openssl \
|
|
|
|
-Ddoc=disabled \
|
|
|
|
-Dgpgme=disabled</userinput></screen>
|
|
|
|
|
|
|
|
<screen><userinput remap="make">ninja</userinput></screen>
|
|
|
|
|
|
|
|
<screen><userinput remap="install">ninja install</userinput></screen>
|
|
|
|
|
|
|
|
<screen><userinput>sed -e 's/\([^!]\)strip/\1!strip/' \
|
|
|
|
-e 's/\([^!]\)libtool/\1!libtool/' \
|
|
|
|
-e 's/\([^!]\)zipman/\1!zipman/' \
|
|
|
|
-i /etc/makepkg.conf
|
|
|
|
cat >> /etc/makepkg.conf << EOF
|
|
|
|
BUILDDIR=/sources
|
|
|
|
PKGDEST=/var/lib/packages
|
|
|
|
PACKAGER="Pierre Labastie <lnimbus@club-internet.fr>"
|
|
|
|
EOF
|
|
|
|
cat >> /etc/pacman.conf << EOF
|
|
|
|
DBPath = /var/lib/pacman/
|
|
|
|
CacheDir = /var/cache/pacman/pkg/
|
|
|
|
LogFile = /var/log/pacman.log
|
|
|
|
SigLevel = Never
|
|
|
|
# Repository: do not add one now: repo-add needs openssl.
|
2020-07-07 17:27:54 +02:00
|
|
|
EOF</userinput></screen>
|
2020-07-06 07:31:55 +02:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 id="ch-chroot-shadow" role="wrap">
|
|
|
|
<?dbhtml filename="shadow.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>shadow</productname>
|
|
|
|
<productnumber>&shadow-version;</productnumber>
|
|
|
|
<address>&shadow-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>shadow-&shadow-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="pre">sed -i 's/groups$(EXEEXT) //' src/Makefile.in
|
|
|
|
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
|
|
|
|
find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
|
|
|
|
find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
|
|
|
|
sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
|
|
|
|
-e 's:/var/spool/mail:/var/mail:' \
|
|
|
|
-i etc/login.defs
|
|
|
|
sed -i 's/1000/999/' etc/useradd</userinput></screen>
|
|
|
|
<screen><userinput remap="configure">touch /usr/bin/passwd
|
|
|
|
./configure --sysconfdir=/etc \
|
|
|
|
--with-group-name-max-length=32</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<!-- Mandatory section for creating dirs. These instructions are added at the
|
|
|
|
end of the creating dirs instructions of the book. Do not change the
|
|
|
|
following line -->
|
|
|
|
<sect1 id="ch-pkgmngt-creatingdirs">
|
|
|
|
|
2019-04-11 09:40:50 +02:00
|
|
|
<title>Creating Directories</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<screen><userinput>mkdir -pv /var/{lib/{packages,pacman},cache/pkg}</userinput></screen>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
<!-- Same for files. Do not change the following line -->
|
|
|
|
<sect1 id="ch-pkgmngt-createfiles">
|
|
|
|
|
2019-04-11 09:40:50 +02:00
|
|
|
<title>Creating Essential Files</title>
|
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput>if ! grep -q tester /etc/passwd; then
|
2020-07-07 17:27:54 +02:00
|
|
|
echo "builder:x:101:101::/home/builder:/bin/bash" >> /etc/passwd
|
|
|
|
echo "builder:x:101:" >> /etc/group
|
|
|
|
install -o builder -d /home/builder
|
|
|
|
else
|
|
|
|
TEST_UID=$(grep tester /etc/passwd | cut -d: -f3)
|
|
|
|
TEST_GID=$(grep tester /etc/group | cut -d: -f3)
|
|
|
|
echo "builder:x:$((TEST_UID+1)):$((TEST_GID+1))::/home/builder:/bin/bash" >> /etc/passwd
|
|
|
|
echo "builder:x:$((TEST_GID+1)):" >> /etc/group
|
|
|
|
install -o builder -d /home/builder
|
2020-07-06 07:31:55 +02:00
|
|
|
fi
|
2020-07-07 17:27:54 +02:00
|
|
|
chown builder:builder /var/lib/{packages,pacman}</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- Last but not least : Final instructions for installing the
|
|
|
|
package manager at the end of chapter 6. Again, the scriptlet file name is
|
|
|
|
taken from the dbhtml instruction, with digits added before and .html cut
|
|
|
|
and the tarball name is formed from this name + version. So the file
|
|
|
|
here _must_ be the same as in chapter 5. If rendering in html, both
|
|
|
|
sets of instructions end up in the same file, which is usually not a problem.
|
|
|
|
-->
|
|
|
|
<sect1 id="ch-system-libarchive" role="wrap">
|
|
|
|
<?dbhtml filename="libarchive.html"?>
|
2019-04-11 09:40:50 +02:00
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>libarchive</productname>
|
|
|
|
<productnumber>&libarchive-version;</productnumber>
|
|
|
|
<address>&libarchive-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Libarchive-&libarchive-version;</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect2 role="installation">
|
2019-04-11 09:40:50 +02:00
|
|
|
<title/>
|
2015-01-18 17:58:24 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--disable-static</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
<sect1 id="ch-system-curl" role="wrap">
|
|
|
|
<?dbhtml filename="curl.html"?>
|
2019-04-11 09:40:50 +02:00
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>curl</productname>
|
|
|
|
<productnumber>&curl-version;</productnumber>
|
|
|
|
<address>&curl-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Curl-&curl-version;</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect2 role="installation">
|
2019-04-11 09:40:50 +02:00
|
|
|
<title/>
|
2015-01-18 17:58:24 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--enable-threaded-resolver</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make DESTDIR=$PKG_DEST install
|
|
|
|
find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
|
2019-04-11 09:40:50 +02:00
|
|
|
install -v -d -m755 $PKG_DEST/usr/share/doc/curl-&curl-version;
|
|
|
|
cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
2020-07-06 07:31:55 +02:00
|
|
|
|
|
|
|
<sect1 id="ch-system-fakeroot" role="wrap">
|
|
|
|
<?dbhtml filename="fakeroot.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>fakeroot</productname>
|
|
|
|
<productnumber>&fakeroot-version;</productnumber>
|
|
|
|
<address>&fakeroot-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>fakeroot-&fakeroot-version;</title>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title/>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect1 id="ch-system-pkgmngt" role="wrap">
|
|
|
|
<?dbhtml filename="pacman.html"?>
|
|
|
|
|
2019-04-11 09:40:50 +02:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>pacman</productname>
|
|
|
|
<productnumber>&pacman-version;</productnumber>
|
|
|
|
<address>&pacman-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Pacman-&pacman-version;</title>
|
|
|
|
|
2015-01-18 17:58:24 +01:00
|
|
|
<sect2 role="installation">
|
2019-04-11 09:40:50 +02:00
|
|
|
<title/>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput remap="configure">mkdir build
|
|
|
|
cd build
|
|
|
|
meson --prefix=/usr \
|
|
|
|
-Dcrypto=openssl</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput remap="make">ninja</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
|
|
|
<!-- Those instructions are executed with PKG_DEST set. They are not processed
|
|
|
|
in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not
|
|
|
|
populated before, so it is basically empty. You have thus to create any directory
|
|
|
|
needed in $PKG_DEST and not otherwise created by the make install command. -->
|
2020-07-06 07:31:55 +02:00
|
|
|
<screen><userinput remap="install">DESTDIR=$PKG_DEST ninja install</userinput></screen>
|
2015-01-18 17:58:24 +01:00
|
|
|
|
|
|
|
<screen><userinput>sed -e 's/\([^!]\)strip/\1!strip/' \
|
|
|
|
-e 's/\([^!]\)zipman/\1!zipman/' \
|
2020-07-06 07:31:55 +02:00
|
|
|
-e 's/\([^!]\)libtool/\1!libtool/' \
|
2015-01-18 17:58:24 +01:00
|
|
|
-i /etc/makepkg.conf
|
|
|
|
cat >> /etc/makepkg.conf << EOF
|
|
|
|
BUILDDIR=/sources
|
|
|
|
PKGDEST=/var/lib/packages
|
|
|
|
PACKAGER="Pierre Labastie <lnimbus@club-internet.fr<"
|
|
|
|
EOF
|
|
|
|
cat >> /etc/pacman.conf << EOF
|
|
|
|
DBPath = /var/lib/pacman/
|
|
|
|
CacheDir = /var/cache/pacman/pkg/
|
|
|
|
LogFile = /var/log/pacman.log
|
|
|
|
SigLevel = Never
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
</article>
|