[bd00951] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!-- Above is a mandatory header for xml files. It must be the first
|
---|
| 3 | line in the file. Change encoding to the one you use on your computer -->
|
---|
| 4 | <!-- $Id$ -->
|
---|
| 5 | <!-- Mandatory DOCTYPE declaration. Fill free to add entities,
|
---|
| 6 | but no external entities in local files, since they would not
|
---|
| 7 | be accessible from JHALFSDIR. Change the document type `article' to
|
---|
| 8 | book if you prefer. That slightly changes the aspect if you render
|
---|
| 9 | it in html -->
|
---|
| 10 | <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 23 |
|
---|
| 24 | <!-- The first markup should be the one defined in the DOCTYPE DECLARATION -->
|
---|
| 25 | <article>
|
---|
| 26 |
|
---|
| 27 | <!-- First section for the tarball download address.
|
---|
| 28 | Only the next four lines are mandatory, but you can add anything
|
---|
| 29 | to make the text look more like the LFS book.
|
---|
| 30 | Do not change anything, except the url and the md5 checksum. -->
|
---|
| 31 | <sect1 id="package">
|
---|
[2758d94] | 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>
|
---|
[bd00951] | 41 | </sect1>
|
---|
| 42 |
|
---|
| 43 | <!-- If needed, uncomment and edit this:
|
---|
| 44 | <sect1 id="patches">
|
---|
| 45 | <para>Download: <ulink url="somepatch-url"/></para>
|
---|
| 46 | <para>MD5 sum: <literal>somepatch-md5</literal></para>
|
---|
| 47 | </sect1>
|
---|
| 48 | -->
|
---|
| 49 |
|
---|
| 50 | <!-- Do not change the next line. The name of the scriptlet will be taken
|
---|
| 51 | from the dbhtml instruction: it is the name of the file less .html, with
|
---|
[2758d94] | 52 | xxx-x-added before (x, digits).-->
|
---|
[bd00951] | 53 | <sect1 id="ch-tools-libarchive" role="wrap">
|
---|
| 54 | <?dbhtml filename="libarchive.html"?>
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 64 | <sect2 role="installation">
|
---|
[2758d94] | 65 | <title/>
|
---|
[bd00951] | 66 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
| 67 | --without-bz2lib \
|
---|
[240b1a8] | 68 | --without-xml2 \
|
---|
[bd00951] | 69 | --enable-bsdtar=static \
|
---|
| 70 | --enable-bsdcpio=static</userinput></screen>
|
---|
| 71 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 72 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | </sect1>
|
---|
[2758d94] | 76 |
|
---|
[bd00951] | 77 | <sect1 id="ch-tools-curl" role="wrap">
|
---|
| 78 | <?dbhtml filename="curl.html"?>
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 88 | <sect2 role="installation">
|
---|
[2758d94] | 89 | <title/>
|
---|
[bd00951] | 90 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
| 91 | --disable-static</userinput></screen>
|
---|
| 92 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 93 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | </sect1>
|
---|
| 97 |
|
---|
| 98 | <sect1 id="ch-tools-pkgmngt" role="wrap">
|
---|
| 99 | <?dbhtml filename="pacman.html"?>
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 109 | <sect2 role="installation">
|
---|
[2758d94] | 110 | <title/>
|
---|
[bd00951] | 111 | <!-- You can use any number of remap="pre", "configure", "make", "test", "install"
|
---|
| 112 | <screen><userinput remap="something">Instructions</userinput></screen>.
|
---|
| 113 | They are executed in that order. "pre" can be used for patching for example.
|
---|
| 114 | In case testing is enabled, the instructions flagged test are logged to a different
|
---|
| 115 | file (test-log). If testing is not enabled, they are not executed at all. Do not
|
---|
| 116 | put line breaks before and after your instructions. <userinput> without
|
---|
| 117 | remap attribute are considered configuration instructions and executed last. You
|
---|
| 118 | can also use remap="adjust" for the same purpose. -->
|
---|
| 119 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
[240b1a8] | 120 | --without-openssl \
|
---|
[bd00951] | 121 | PKG_CONFIG_PATH=/tools/lib/pkgconfig \
|
---|
| 122 | DUPATH=/tools/bin/du</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | <screen><userinput>sed -e 's@/usr@/tools@g' \
|
---|
| 129 | -e 's/\([^!]\)strip/\1!strip/' \
|
---|
| 130 | -e 's/\([^!]\)zipman/\1!zipman/' \
|
---|
| 131 | -i /tools/etc/makepkg.conf
|
---|
| 132 | cat >> /tools/etc/makepkg.conf << EOF
|
---|
| 133 | BUILDDIR=/sources
|
---|
| 134 | PKGDEST=/var/lib/packages
|
---|
| 135 | PACKAGER="Pierre Labastie <lnimbus@club-internet.fr>"
|
---|
| 136 | EOF
|
---|
| 137 | cat >> /tools/etc/pacman.conf << EOF
|
---|
| 138 | DBPath = /var/lib/pacman/
|
---|
| 139 | CacheDir = /var/cache/pacman/pkg/
|
---|
| 140 | LogFile = /var/log/pacman.log
|
---|
| 141 | SigLevel = Never
|
---|
| 142 | # Repository: do not add one now: repo-add needs openssl.
|
---|
| 143 | EOF</userinput></screen>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | </sect1>
|
---|
| 148 |
|
---|
| 149 | <!-- Mandatory section for creating dirs. These instructions are added at the
|
---|
| 150 | end of the creating dirs instructions of the book. Do not change the
|
---|
| 151 | following line -->
|
---|
| 152 | <sect1 id="ch-pkgmngt-creatingdirs">
|
---|
| 153 |
|
---|
[2758d94] | 154 | <title>Creating Directories</title>
|
---|
| 155 |
|
---|
[bd00951] | 156 | <screen><userinput>mkdir -pv /var/{lib/{packages,pacman},cache/pkg}</userinput></screen>
|
---|
| 157 |
|
---|
| 158 | </sect1>
|
---|
| 159 | <!-- Same for files. Do not change the following line -->
|
---|
| 160 | <sect1 id="ch-pkgmngt-createfiles">
|
---|
| 161 |
|
---|
[2758d94] | 162 | <title>Creating Essential Files</title>
|
---|
| 163 |
|
---|
[bd00951] | 164 | <para>No file?</para>
|
---|
| 165 |
|
---|
| 166 | </sect1>
|
---|
| 167 |
|
---|
| 168 | <!-- Last but not least : Final instructions for installing the
|
---|
| 169 | package manager at the end of chapter 6. Again, the scriptlet file name is
|
---|
| 170 | taken from the dbhtml instruction, with digits added before and .html cut
|
---|
| 171 | and the tarball name is formed from this name + version. So the file
|
---|
| 172 | here _must_ be the same as in chapter 5. If rendering in html, both
|
---|
| 173 | sets of instructions end up in the same file, which is usually not a problem.
|
---|
| 174 | -->
|
---|
| 175 | <sect1 id="ch-system-libarchive" role="wrap">
|
---|
| 176 | <?dbhtml filename="libarchive.html"?>
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 186 | <sect2 role="installation">
|
---|
[2758d94] | 187 | <title/>
|
---|
[bd00951] | 188 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 189 | --disable-static</userinput></screen>
|
---|
| 190 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 191 | <screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen>
|
---|
| 192 | </sect2>
|
---|
| 193 |
|
---|
| 194 | </sect1>
|
---|
| 195 | <sect1 id="ch-system-curl" role="wrap">
|
---|
| 196 | <?dbhtml filename="curl.html"?>
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 206 | <sect2 role="installation">
|
---|
[2758d94] | 207 | <title/>
|
---|
[bd00951] | 208 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 209 | --disable-static \
|
---|
| 210 | --enable-threaded-resolver</userinput></screen>
|
---|
| 211 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 212 | <screen><userinput remap="install">make DESTDIR=$PKG_DEST install
|
---|
| 213 | find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
|
---|
[2758d94] | 214 | install -v -d -m755 $PKG_DEST/usr/share/doc/curl-&curl-version;
|
---|
| 215 | cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[bd00951] | 216 | </sect2>
|
---|
| 217 |
|
---|
| 218 | </sect1>
|
---|
| 219 | <sect1 id="ch-system-pkgmngt" role="wrap">
|
---|
| 220 | <?dbhtml filename="pacman.html"?>
|
---|
| 221 |
|
---|
[2758d94] | 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 |
|
---|
[bd00951] | 230 | <sect2 role="installation">
|
---|
[2758d94] | 231 | <title/>
|
---|
[bd00951] | 232 |
|
---|
| 233 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 234 | --sysconfdir=/etc \
|
---|
| 235 | --localstatedir=/var</userinput></screen>
|
---|
| 236 |
|
---|
| 237 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 238 |
|
---|
| 239 | <!-- Those instructions are executed with PKG_DEST set. They are not processed
|
---|
| 240 | in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not
|
---|
| 241 | populated before, so it is basically empty. You have thus to create any directory
|
---|
| 242 | needed in $PKG_DEST and not otherwise created by the make install command. -->
|
---|
| 243 | <screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen>
|
---|
| 244 |
|
---|
| 245 | <screen><userinput>sed -e 's/\([^!]\)strip/\1!strip/' \
|
---|
| 246 | -e 's/\([^!]\)zipman/\1!zipman/' \
|
---|
| 247 | -i /etc/makepkg.conf
|
---|
| 248 | cat >> /etc/makepkg.conf << EOF
|
---|
| 249 | BUILDDIR=/sources
|
---|
| 250 | PKGDEST=/var/lib/packages
|
---|
| 251 | PACKAGER="Pierre Labastie <lnimbus@club-internet.fr<"
|
---|
| 252 | EOF
|
---|
| 253 | cat >> /etc/pacman.conf << EOF
|
---|
| 254 | DBPath = /var/lib/pacman/
|
---|
| 255 | CacheDir = /var/cache/pacman/pkg/
|
---|
| 256 | LogFile = /var/log/pacman.log
|
---|
| 257 | SigLevel = Never
|
---|
| 258 | EOF</userinput></screen>
|
---|
| 259 |
|
---|
| 260 | </sect2>
|
---|
| 261 |
|
---|
| 262 | </sect1>
|
---|
| 263 | </article>
|
---|