source: pkgmngt/packageManager.xml.pacman@ 3d24e5b

2.4 ablfs-more legacy trunk
Last change on this file since 3d24e5b was bd00951, checked in by Pierre Labastie <pierre@…>, 10 years ago

Add pacman as package manager.

  • Property mode set to 100644
File size: 7.6 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
13<!-- The first markup should be the one defined in the DOCTYPE DECLARATION -->
14<article>
15
16<!-- First section for the tarball download address.
17Only the next four lines are mandatory, but you can add anything
18to make the text look more like the LFS book.
19Do 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
37from the dbhtml instruction: it is the name of the file less .html, with
38xxx-x-added before (x, digits). Furthermore, the tarball name must be in the form
39name_x.y.z(.extension) or name-x.y.z(.extension) if the dbhtml
40instruction 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,
67other 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>.
71They are executed in that order. "pre" can be used for patching for example.
72In case testing is enabled, the instructions flagged test are logged to a different
73file (test-log). If testing is not enabled, they are not executed at all. Do not
74put line breaks before and after your instructions. <userinput> without
75remap attribute are considered configuration instructions and executed last. You
76can 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
89cat &gt;&gt; /tools/etc/makepkg.conf &lt;&lt; EOF
90BUILDDIR=/sources
91PKGDEST=/var/lib/packages
92PACKAGER="Pierre Labastie &lt;lnimbus@club-internet.fr&gt;"
93EOF
94cat &gt;&gt; /tools/etc/pacman.conf &lt;&lt; EOF
95DBPath = /var/lib/pacman/
96CacheDir = /var/cache/pacman/pkg/
97LogFile = /var/log/pacman.log
98SigLevel = Never
99# Repository: do not add one now: repo-add needs openssl.
100EOF</userinput></screen>
101
102 </sect2>
103
104</sect1>
105
106<!-- Mandatory section for creating dirs. These instructions are added at the
107end of the creating dirs instructions of the book. Do not change the
108following line -->
109<sect1 id="ch-pkgmngt-creatingdirs">
110
111<!-- Put the create dir intructions there. feel free to add
112any 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
124package manager at the end of chapter 6. Again, the scriptlet file name is
125taken from the dbhtml instruction, with digits added before and .html cut
126and the tarball name is formed from this name + version. So the file
127here _must_ be the same as in chapter 5. If rendering in html, both
128sets 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
148find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
149install -v -d -m755 $PKG_DEST/usr/share/doc/curl-7.39.0
150cp -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
166in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not
167populated before, so it is basically empty. You have thus to create any directory
168needed 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
174cat &gt;&gt; /etc/makepkg.conf &lt;&lt; EOF
175BUILDDIR=/sources
176PKGDEST=/var/lib/packages
177PACKAGER="Pierre Labastie &lt;lnimbus@club-internet.fr&lt;"
178EOF
179cat &gt;&gt; /etc/pacman.conf &lt;&lt; EOF
180DBPath = /var/lib/pacman/
181CacheDir = /var/cache/pacman/pkg/
182LogFile = /var/log/pacman.log
183SigLevel = Never
184EOF</userinput></screen>
185
186 </sect2>
187
188</sect1>
189</article>
Note: See TracBrowser for help on using the repository browser.