source: pkgmngt/packageManager.xml.pacman@ 2c603d8

ablfs-more legacy trunk
Last change on this file since 2c603d8 was 2758d94, checked in by Pierre Labastie <pierre@…>, 6 years ago

Use sect1info for getting informations on LFS packages:

  • add sect1info sections to packagemanager.xml.xxx + various fixes
  • add templates in LFS/lfs.xsl for script start and script end:
    • script start: define variables containing package information

print disk usage
unpack and change dir

  • script end: print disk usage

remove build dir

  • remove the corresponding operations from master.sh
  • Property mode set to 100644
File size: 9.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Above is a mandatory header for xml files. It must be the first
3line in the file. Change encoding to the one you use on your computer -->
4<!-- $Id$ -->
5<!-- Mandatory DOCTYPE declaration. Fill free to add entities,
6but no external entities in local files, since they would not
7be accessible from JHALFSDIR. Change the document type `article' to
8book if you prefer. That slightly changes the aspect if you render
9it 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<!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
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.
28Only the next four lines are mandatory, but you can add anything
29to make the text look more like the LFS book.
30Do not change anything, except the url and the md5 checksum. -->
31<sect1 id="package">
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>
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
51from the dbhtml instruction: it is the name of the file less .html, with
52xxx-x-added before (x, digits).-->
53<sect1 id="ch-tools-libarchive" role="wrap">
54 <?dbhtml filename="libarchive.html"?>
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
64 <sect2 role="installation">
65 <title/>
66<screen><userinput remap="configure">./configure --prefix=/tools \
67 --without-bz2lib \
68 --without-xml2 \
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>
76
77<sect1 id="ch-tools-curl" role="wrap">
78 <?dbhtml filename="curl.html"?>
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
88 <sect2 role="installation">
89 <title/>
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"?>
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
109 <sect2 role="installation">
110 <title/>
111<!-- You can use any number of remap="pre", "configure", "make", "test", "install"
112<screen><userinput remap="something">Instructions</userinput></screen>.
113They are executed in that order. "pre" can be used for patching for example.
114In case testing is enabled, the instructions flagged test are logged to a different
115file (test-log). If testing is not enabled, they are not executed at all. Do not
116put line breaks before and after your instructions. <userinput> without
117remap attribute are considered configuration instructions and executed last. You
118can also use remap="adjust" for the same purpose. -->
119<screen><userinput remap="configure">./configure --prefix=/tools \
120 --without-openssl \
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
132cat &gt;&gt; /tools/etc/makepkg.conf &lt;&lt; EOF
133BUILDDIR=/sources
134PKGDEST=/var/lib/packages
135PACKAGER="Pierre Labastie &lt;lnimbus@club-internet.fr&gt;"
136EOF
137cat &gt;&gt; /tools/etc/pacman.conf &lt;&lt; EOF
138DBPath = /var/lib/pacman/
139CacheDir = /var/cache/pacman/pkg/
140LogFile = /var/log/pacman.log
141SigLevel = Never
142# Repository: do not add one now: repo-add needs openssl.
143EOF</userinput></screen>
144
145 </sect2>
146
147</sect1>
148
149<!-- Mandatory section for creating dirs. These instructions are added at the
150end of the creating dirs instructions of the book. Do not change the
151following line -->
152<sect1 id="ch-pkgmngt-creatingdirs">
153
154 <title>Creating Directories</title>
155
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
162 <title>Creating Essential Files</title>
163
164<para>No file?</para>
165
166</sect1>
167
168<!-- Last but not least : Final instructions for installing the
169package manager at the end of chapter 6. Again, the scriptlet file name is
170taken from the dbhtml instruction, with digits added before and .html cut
171and the tarball name is formed from this name + version. So the file
172here _must_ be the same as in chapter 5. If rendering in html, both
173sets 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"?>
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
186 <sect2 role="installation">
187 <title/>
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"?>
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
206 <sect2 role="installation">
207 <title/>
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
213find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
214install -v -d -m755 $PKG_DEST/usr/share/doc/curl-&curl-version;
215cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;</userinput></screen>
216 </sect2>
217
218</sect1>
219<sect1 id="ch-system-pkgmngt" role="wrap">
220 <?dbhtml filename="pacman.html"?>
221
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
230 <sect2 role="installation">
231 <title/>
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
240in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not
241populated before, so it is basically empty. You have thus to create any directory
242needed 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
248cat &gt;&gt; /etc/makepkg.conf &lt;&lt; EOF
249BUILDDIR=/sources
250PKGDEST=/var/lib/packages
251PACKAGER="Pierre Labastie &lt;lnimbus@club-internet.fr&lt;"
252EOF
253cat &gt;&gt; /etc/pacman.conf &lt;&lt; EOF
254DBPath = /var/lib/pacman/
255CacheDir = /var/cache/pacman/pkg/
256LogFile = /var/log/pacman.log
257SigLevel = Never
258EOF</userinput></screen>
259
260 </sect2>
261
262</sect1>
263</article>
Note: See TracBrowser for help on using the repository browser.