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