source: pkgmngt/packageManager.xml.porg

trunk
Last change on this file was ee842e2, checked in by Pierre Labastie <pierre@…>, 4 years ago

Now that packageManager.xml createfiles is also included

for new book, test that /tools/etc/porgrc exists before moving it

  • Property mode set to 100644
File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4<!ENTITY porg-version "0.10">
5<!ENTITY porg-url "https://sourceforge.net/projects/porg/files/porg-&porg-version;.tar.gz">
6<!ENTITY porg-md5 "2eceb8a73bb188dbb06b12d90cabdbb4">
7<!ENTITY porg-patch-url "http://www.linuxfromscratch.org/patches/downloads/porg/porg-0.10-renameat2-1.patch">
8<!ENTITY porg-patch-md5 "cfc72c817d98902afeaf225f22b8e653">
9]>
10
11<article>
12
13<sect1 id="package">
14 <title>Package Information</title>
15 <para>Download: <ulink url="&porg-url;"/></para>
16 <para>MD5 sum: <literal>&porg-md5;</literal></para>
17</sect1>
18<sect1 id="patches">
19 <title>Package Information</title>
20 <para>Download: <ulink url="&porg-patch-url;"/></para>
21 <para>MD5 sum: <literal>&porg-patch-md5;</literal></para>
22</sect1>
23
24
25<sect1 id="ch-tools-pkgmngt" role="wrap">
26 <?dbhtml filename="porg.html"?>
27
28 <sect1info condition="script">
29 <productname>porg</productname>
30 <productnumber>&porg-version;</productnumber>
31 <address>&porg-url;</address>
32 </sect1info>
33
34 <title>Porg in tools</title>
35 <sect2 role="installation">
36 <title>Instructions</title>
37<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
38<screen><userinput remap="configure">./configure --prefix=/tools \
39 --disable-grop \
40 --with-porg-logdir=/tools/var/porg</userinput></screen>
41
42 <para>
43 <parameter>--disable-grop</parameter> is needed to prevent the sytem from
44 trying to build the graphical interface, and
45 <parameter>--with-porg-logdir=...</parameter> is needed because
46 <command>make install</command> insists on creating a directory in
47 <filename class="directory">/var</filename>, where we do not want
48 to write.
49 </para>
50
51<screen><userinput remap="make">make</userinput></screen>
52
53<screen><userinput remap="install">make install</userinput></screen>
54
55<screen><userinput>cat &gt;&gt; /tools/etc/porgrc &lt;&lt; EOF
56# Porg logdir on LFS system
57LOGDIR=/var/lib/porg
58EOF
59sed -e '/EXCLUDE/{s/^#//;s@$@:/sources:/home@}' \
60 -i /tools/etc/porgrc</userinput></screen>
61
62 </sect2>
63
64</sect1>
65
66<sect1 id="ch-pkgmngt-creatingdirs">
67
68 <title>Directories</title>
69 <screen><userinput>mkdir -pv /var/lib/porg
70mkdir -pv /var/lib/packages</userinput></screen>
71
72</sect1>
73<sect1 id="ch-pkgmngt-createfiles">
74 <title>Files</title>
75 <para><command>porgball</command> needs <filename>porgrc</filename>
76 in <filename class="directory">/etc</filename>:</para>
77
78<screen><userinput>if [ -f /tools/etc/porgrc ]; then
79 cp /tools/etc/porgrc /etc
80fi</userinput></screen>
81
82</sect1>
83
84<sect1 id="ch-chroot-pkgmngt" role="wrap">
85 <?dbhtml filename="porg.html"?>
86
87 <sect1info condition="script">
88 <productname>porg</productname>
89 <productnumber>&porg-version;</productnumber>
90 <address>&porg-url;</address>
91 </sect1info>
92
93 <title>Temporary Porg</title>
94 <sect2 role="installation">
95 <title>Instructions</title>
96
97<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
98<screen><userinput remap="configure">./configure --prefix=/usr \
99 --disable-grop \
100 --sysconfdir=/etc \
101 --with-porg-logdir=/var/lib/porg</userinput></screen>
102
103<screen><userinput remap="make">make</userinput></screen>
104
105<screen><userinput remap="install">make install
106mkdir -p /usr/share/bash-completion/completions
107mv /etc/bash_completion.d/porg* /usr/share/bash-completion/completions</userinput></screen>
108
109<screen><userinput>sed -e '/EXCLUDE/{s/^#//;s@$@:/sources:/home@}' \
110 -e '/LOGDIR/s/^#//' \
111 -i /etc/porgrc</userinput></screen>
112 </sect2>
113
114</sect1>
115
116<sect1 id="ch-system-pkgmngt" role="wrap">
117 <?dbhtml filename="porg.html"?>
118
119 <sect1info condition="script">
120 <productname>porg</productname>
121 <productnumber>&porg-version;</productnumber>
122 <address>&porg-url;</address>
123 </sect1info>
124
125 <title>Final Porg</title>
126 <sect2 role="installation">
127 <title>Instructions</title>
128
129<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
130<screen><userinput remap="configure">./configure --prefix=/usr \
131 --disable-grop \
132 --sysconfdir=/etc \
133 --with-porg-logdir=/var/lib/porg</userinput></screen>
134
135<screen><userinput remap="make">make</userinput></screen>
136
137<screen><userinput remap="install">porg -lD "make install
138mv /etc/bash_completion.d/porg* /usr/share/bash-completion/completions"</userinput></screen>
139
140<screen><userinput>sed -e '/EXCLUDE/{s/^#//;s@$@:/sources:/home@}' \
141 -i /etc/porgrc</userinput></screen>
142 </sect2>
143
144</sect1>
145</article>
Note: See TracBrowser for help on using the repository browser.