source: pkgmngt/packageManager.xml.porg@ 9593197

ablfs-more legacy trunk
Last change on this file since 9593197 was 49f8b03, checked in by Pierre Labastie <pierre@…>, 4 years ago

Fix package management for new book, and add a patch for porg

  • Property mode set to 100644
File size: 4.6 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 <screen><userinput>cp /tools/etc/porgrc /etc</userinput></screen>
78</sect1>
79
80<sect1 id="ch-chroot-pkgmngt" role="wrap">
81 <?dbhtml filename="porg.html"?>
82
83 <sect1info condition="script">
84 <productname>porg</productname>
85 <productnumber>&porg-version;</productnumber>
86 <address>&porg-url;</address>
87 </sect1info>
88
89 <title>Temporary Porg</title>
90 <sect2 role="installation">
91 <title>Instructions</title>
92
93<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
94<screen><userinput remap="configure">./configure --prefix=/usr \
95 --disable-grop \
96 --sysconfdir=/etc \
97 --with-porg-logdir=/var/lib/porg</userinput></screen>
98
99<screen><userinput remap="make">make</userinput></screen>
100
101<screen><userinput remap="install">make install
102mkdir -p /usr/share/bash-completion/completions
103mv /etc/bash_completion.d/porg* /usr/share/bash-completion/completions</userinput></screen>
104
105<screen><userinput>sed -e '/EXCLUDE/{s/^#//;s@$@:/sources:/home@}' \
106 -e '/LOGDIR/s/^#//' \
107 -i /etc/porgrc</userinput></screen>
108 </sect2>
109
110</sect1>
111
112<sect1 id="ch-system-pkgmngt" role="wrap">
113 <?dbhtml filename="porg.html"?>
114
115 <sect1info condition="script">
116 <productname>porg</productname>
117 <productnumber>&porg-version;</productnumber>
118 <address>&porg-url;</address>
119 </sect1info>
120
121 <title>Final Porg</title>
122 <sect2 role="installation">
123 <title>Instructions</title>
124
125<screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen>
126<screen><userinput remap="configure">./configure --prefix=/usr \
127 --disable-grop \
128 --sysconfdir=/etc \
129 --with-porg-logdir=/var/lib/porg</userinput></screen>
130
131<screen><userinput remap="make">make</userinput></screen>
132
133<screen><userinput remap="install">porg -lD "make install
134mv /etc/bash_completion.d/porg* /usr/share/bash-completion/completions"</userinput></screen>
135
136<screen><userinput>sed -e '/EXCLUDE/{s/^#//;s@$@:/sources:/home@}' \
137 -i /etc/porgrc</userinput></screen>
138 </sect2>
139
140</sect1>
141</article>
Note: See TracBrowser for help on using the repository browser.