source: pkgmngt/packageManager.xml.pacman@ b15261a

ablfs-more legacy trunk
Last change on this file since b15261a was 240b1a8, checked in by Pierre Labastie <pierre@…>, 8 years ago

Update pacman commands (not version, it would require too many changes to the
build system).

  • Property mode set to 100644
File size: 7.7 KB
RevLine 
[bd00951]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>
[240b1a8]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
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 \
[240b1a8]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,
68other 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>.
72They are executed in that order. "pre" can be used for patching for example.
73In case testing is enabled, the instructions flagged test are logged to a different
74file (test-log). If testing is not enabled, they are not executed at all. Do not
75put line breaks before and after your instructions. <userinput> without
76remap attribute are considered configuration instructions and executed last. You
77can also use remap="adjust" for the same purpose. -->
78<screen><userinput remap="configure">./configure --prefix=/tools \
[240b1a8]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
91cat &gt;&gt; /tools/etc/makepkg.conf &lt;&lt; EOF
92BUILDDIR=/sources
93PKGDEST=/var/lib/packages
94PACKAGER="Pierre Labastie &lt;lnimbus@club-internet.fr&gt;"
95EOF
96cat &gt;&gt; /tools/etc/pacman.conf &lt;&lt; EOF
97DBPath = /var/lib/pacman/
98CacheDir = /var/cache/pacman/pkg/
99LogFile = /var/log/pacman.log
100SigLevel = Never
101# Repository: do not add one now: repo-add needs openssl.
102EOF</userinput></screen>
103
104 </sect2>
105
106</sect1>
107
108<!-- Mandatory section for creating dirs. These instructions are added at the
109end of the creating dirs instructions of the book. Do not change the
110following line -->
111<sect1 id="ch-pkgmngt-creatingdirs">
112
113<!-- Put the create dir intructions there. feel free to add
114any 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
126package manager at the end of chapter 6. Again, the scriptlet file name is
127taken from the dbhtml instruction, with digits added before and .html cut
128and the tarball name is formed from this name + version. So the file
129here _must_ be the same as in chapter 5. If rendering in html, both
130sets 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
150find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
151install -v -d -m755 $PKG_DEST/usr/share/doc/curl-7.39.0
152cp -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
168in any way to add $PKG_DEST at some place, and the PKG_DEST directory is not
169populated before, so it is basically empty. You have thus to create any directory
170needed 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
176cat &gt;&gt; /etc/makepkg.conf &lt;&lt; EOF
177BUILDDIR=/sources
178PKGDEST=/var/lib/packages
179PACKAGER="Pierre Labastie &lt;lnimbus@club-internet.fr&lt;"
180EOF
181cat &gt;&gt; /etc/pacman.conf &lt;&lt; EOF
182DBPath = /var/lib/pacman/
183CacheDir = /var/cache/pacman/pkg/
184LogFile = /var/log/pacman.log
185SigLevel = Never
186EOF</userinput></screen>
187
188 </sect2>
189
190</sect1>
191</article>
Note: See TracBrowser for help on using the repository browser.