[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"
|
---|
| 11 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" >
|
---|
| 12 |
|
---|
| 13 | <!-- The first markup should be the one defined in the DOCTYPE DECLARATION -->
|
---|
| 14 | <article>
|
---|
| 15 |
|
---|
| 16 | <!-- First section for the tarball download address.
|
---|
| 17 | Only the next four lines are mandatory, but you can add anything
|
---|
| 18 | to make the text look more like the LFS book.
|
---|
| 19 | Do not change anything, except the url and the md5 checksum. -->
|
---|
| 20 | <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>
|
---|
[7e5ff87] | 25 | <para>Download: <ulink url="https://sources.archlinux.org/other/pacman/pacman-4.1.2.tar.gz"/></para>
|
---|
[bd00951] | 26 | <para>MD5 sum: <literal>063c8b0ff6bdf903dc235445525627cd</literal></para>
|
---|
| 27 | </sect1>
|
---|
| 28 |
|
---|
| 29 | <!-- If needed, uncomment and edit this:
|
---|
| 30 | <sect1 id="patches">
|
---|
| 31 | <para>Download: <ulink url="somepatch-url"/></para>
|
---|
| 32 | <para>MD5 sum: <literal>somepatch-md5</literal></para>
|
---|
| 33 | </sect1>
|
---|
| 34 | -->
|
---|
| 35 |
|
---|
| 36 | <!-- Do not change the next line. The name of the scriptlet will be taken
|
---|
| 37 | from 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" -->
|
---|
| 41 | <sect1 id="ch-tools-libarchive" role="wrap">
|
---|
| 42 | <?dbhtml filename="libarchive.html"?>
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
| 45 | --without-bz2lib \
|
---|
[7e5ff87] | 46 | --without-xml2 \
|
---|
[bd00951] | 47 | --enable-bsdtar=static \
|
---|
| 48 | --enable-bsdcpio=static</userinput></screen>
|
---|
| 49 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 50 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 51 | </sect2>
|
---|
| 52 |
|
---|
| 53 | </sect1>
|
---|
| 54 | <sect1 id="ch-tools-curl" role="wrap">
|
---|
| 55 | <?dbhtml filename="curl.html"?>
|
---|
| 56 | <sect2 role="installation">
|
---|
| 57 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
| 58 | --disable-static</userinput></screen>
|
---|
| 59 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 60 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 61 | </sect2>
|
---|
| 62 |
|
---|
| 63 | </sect1>
|
---|
| 64 |
|
---|
| 65 | <sect1 id="ch-tools-pkgmngt" role="wrap">
|
---|
| 66 | <?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">
|
---|
| 70 | <!-- You can use any number of remap="pre", "configure", "make", "test", "install"
|
---|
| 71 | <screen><userinput remap="something">Instructions</userinput></screen>.
|
---|
| 72 | They are executed in that order. "pre" can be used for patching for example.
|
---|
| 73 | In case testing is enabled, the instructions flagged test are logged to a different
|
---|
| 74 | file (test-log). If testing is not enabled, they are not executed at all. Do not
|
---|
| 75 | put line breaks before and after your instructions. <userinput> without
|
---|
| 76 | remap attribute are considered configuration instructions and executed last. You
|
---|
| 77 | can also use remap="adjust" for the same purpose. -->
|
---|
| 78 | <screen><userinput remap="configure">./configure --prefix=/tools \
|
---|
[7e5ff87] | 79 | --without-openssl \
|
---|
[bd00951] | 80 | PKG_CONFIG_PATH=/tools/lib/pkgconfig \
|
---|
| 81 | DUPATH=/tools/bin/du</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput>sed -e 's@/usr@/tools@g' \
|
---|
| 88 | -e 's/\([^!]\)strip/\1!strip/' \
|
---|
| 89 | -e 's/\([^!]\)zipman/\1!zipman/' \
|
---|
| 90 | -i /tools/etc/makepkg.conf
|
---|
| 91 | cat >> /tools/etc/makepkg.conf << EOF
|
---|
| 92 | BUILDDIR=/sources
|
---|
| 93 | PKGDEST=/var/lib/packages
|
---|
| 94 | PACKAGER="Pierre Labastie <lnimbus@club-internet.fr>"
|
---|
| 95 | EOF
|
---|
| 96 | cat >> /tools/etc/pacman.conf << EOF
|
---|
| 97 | DBPath = /var/lib/pacman/
|
---|
| 98 | CacheDir = /var/cache/pacman/pkg/
|
---|
| 99 | LogFile = /var/log/pacman.log
|
---|
| 100 | SigLevel = Never
|
---|
| 101 | # Repository: do not add one now: repo-add needs openssl.
|
---|
| 102 | EOF</userinput></screen>
|
---|
| 103 |
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | </sect1>
|
---|
| 107 |
|
---|
| 108 | <!-- Mandatory section for creating dirs. These instructions are added at the
|
---|
| 109 | end of the creating dirs instructions of the book. Do not change the
|
---|
| 110 | following line -->
|
---|
| 111 | <sect1 id="ch-pkgmngt-creatingdirs">
|
---|
| 112 |
|
---|
| 113 | <!-- Put the create dir intructions there. feel free to add
|
---|
| 114 | any explaining <title>Title</title> and <para>explanations</para> -->
|
---|
| 115 | <screen><userinput>mkdir -pv /var/{lib/{packages,pacman},cache/pkg}</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect1>
|
---|
| 118 | <!-- Same for files. Do not change the following line -->
|
---|
| 119 | <sect1 id="ch-pkgmngt-createfiles">
|
---|
| 120 |
|
---|
| 121 | <para>No file?</para>
|
---|
| 122 |
|
---|
| 123 | </sect1>
|
---|
| 124 |
|
---|
| 125 | <!-- Last but not least : Final instructions for installing the
|
---|
| 126 | package manager at the end of chapter 6. Again, the scriptlet file name is
|
---|
| 127 | taken from the dbhtml instruction, with digits added before and .html cut
|
---|
| 128 | and the tarball name is formed from this name + version. So the file
|
---|
| 129 | here _must_ be the same as in chapter 5. If rendering in html, both
|
---|
| 130 | sets of instructions end up in the same file, which is usually not a problem.
|
---|
| 131 | -->
|
---|
| 132 | <sect1 id="ch-system-libarchive" role="wrap">
|
---|
| 133 | <?dbhtml filename="libarchive.html"?>
|
---|
| 134 | <sect2 role="installation">
|
---|
| 135 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 136 | --disable-static</userinput></screen>
|
---|
| 137 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 138 | <screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen>
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | </sect1>
|
---|
| 142 | <sect1 id="ch-system-curl" role="wrap">
|
---|
| 143 | <?dbhtml filename="curl.html"?>
|
---|
| 144 | <sect2 role="installation">
|
---|
| 145 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 146 | --disable-static \
|
---|
| 147 | --enable-threaded-resolver</userinput></screen>
|
---|
| 148 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 149 | <screen><userinput remap="install">make DESTDIR=$PKG_DEST install
|
---|
| 150 | find 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>
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | </sect1>
|
---|
| 156 | <sect1 id="ch-system-pkgmngt" role="wrap">
|
---|
| 157 | <?dbhtml filename="pacman.html"?>
|
---|
| 158 |
|
---|
| 159 | <sect2 role="installation">
|
---|
| 160 |
|
---|
| 161 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 162 | --sysconfdir=/etc \
|
---|
| 163 | --localstatedir=/var</userinput></screen>
|
---|
| 164 |
|
---|
| 165 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 166 |
|
---|
| 167 | <!-- Those instructions are executed with PKG_DEST set. They are not processed
|
---|
| 168 | in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not
|
---|
| 169 | populated before, so it is basically empty. You have thus to create any directory
|
---|
| 170 | needed in $PKG_DEST and not otherwise created by the make install command. -->
|
---|
| 171 | <screen><userinput remap="install">make DESTDIR=$PKG_DEST install</userinput></screen>
|
---|
| 172 |
|
---|
| 173 | <screen><userinput>sed -e 's/\([^!]\)strip/\1!strip/' \
|
---|
| 174 | -e 's/\([^!]\)zipman/\1!zipman/' \
|
---|
| 175 | -i /etc/makepkg.conf
|
---|
| 176 | cat >> /etc/makepkg.conf << EOF
|
---|
| 177 | BUILDDIR=/sources
|
---|
| 178 | PKGDEST=/var/lib/packages
|
---|
| 179 | PACKAGER="Pierre Labastie <lnimbus@club-internet.fr<"
|
---|
| 180 | EOF
|
---|
| 181 | cat >> /etc/pacman.conf << EOF
|
---|
| 182 | DBPath = /var/lib/pacman/
|
---|
| 183 | CacheDir = /var/cache/pacman/pkg/
|
---|
| 184 | LogFile = /var/log/pacman.log
|
---|
| 185 | SigLevel = Never
|
---|
| 186 | EOF</userinput></screen>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|
| 191 | </article>
|
---|