- Timestamp:
- 06/24/2020 06:26:05 AM (4 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- d5a739a
- Parents:
- 13e52a5
- Location:
- pkgmngt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pkgmngt/packageManager.xml.porg
r13e52a5 r49f8b03 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- $Id$ -->3 2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 4 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ … … 6 5 <!ENTITY porg-url "https://sourceforge.net/projects/porg/files/porg-&porg-version;.tar.gz"> 7 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"> 8 9 ]> 9 10 … … 15 16 <para>MD5 sum: <literal>&porg-md5;</literal></para> 16 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 17 24 18 25 <sect1 id="ch-tools-pkgmngt" role="wrap"> … … 28 35 <sect2 role="installation"> 29 36 <title>Instructions</title> 37 <screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen> 30 38 <screen><userinput remap="configure">./configure --prefix=/tools \ 31 39 --disable-grop \ … … 70 78 </sect1> 71 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 102 mkdir -p /usr/share/bash-completion/completions 103 mv /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 72 112 <sect1 id="ch-system-pkgmngt" role="wrap"> 73 113 <?dbhtml filename="porg.html"?> … … 83 123 <title>Instructions</title> 84 124 125 <screen><userinput remap="pre">patch -Np1 -i ../porg-0.10-renameat2-1.patch</userinput></screen> 85 126 <screen><userinput remap="configure">./configure --prefix=/usr \ 86 127 --disable-grop \ -
pkgmngt/packageManager.xml.template
r13e52a5 r49f8b03 17 17 Only the next four lines are mandatory, but you can add anything 18 18 to make the text look more like the LFS book. 19 You can add several packages (see packageManager.xml.pacman) 19 20 Do not change anything, except the url and the md5 checksum. --> 20 21 <sect1 id="package"> … … 30 31 --> 31 32 32 <!-- Do not change the next line. The name of the scriptlet will be taken 33 from the dbhtml instruction: it is the name of the file less .html, with 34 xxx-x-added before (x, digits). --> 33 <!-- We have three groups of sections with installation instructions: 34 - the one with id ch-tools-xxx is for old book, where 35 the package manager (and its needed deps) is built as user 36 lfs in /tools 37 - the one with id ch-chroot-xxx is for new book, where the 38 package manager (and its needed deps) is built temporarily 39 in chroot 40 - the one with id ch-system-xxx is for both book, when the 41 package manager (and its deps) is rebuilt with instructions 42 to make a package of it. 43 44 Do not change the next line, except the -pkgmngt part. 45 The name of the scriptlet will be taken from the dbhtml instruction: 46 it is the name of the file less .html, with xxx-x-added before 47 (x, digits). --> 35 48 <sect1 id="ch-tools-pkgmngt" role="wrap"> 36 <?dbhtml filename=" dpkg.html"?>49 <?dbhtml filename="pkgmngt.html"?> 37 50 <!-- the next lines are now mandatory for unpacking the tarball at the 38 51 beginning of the scriptlet --> … … 85 98 </sect1> 86 99 100 <!-- for new book, at the end of chapter 7 --> 101 <sect1 id="ch-chroot-pkgmngt" role="wrap"> 102 <?dbhtml filename="pkgmngt.html"?> 103 <!-- the next lines are now mandatory for unpacking the tarball at the 104 beginning of the scriptlet --> 105 <sect1info condition="script"> 106 <productname>dpkg</productname> 107 <productnumber>x.y.z</productnumber><!-- version --> 108 <address>http://where/is/your/package</address><!-- url --> 109 </sect1info> 110 <!-- next line mandatory without change, but feel free to add any title, 111 other sect2 (with different role), sectinfo and so on --> 112 <sect2 role="installation"> 113 <!-- You can use any number of remap="pre", "configure", "make", "test", "install" 114 <screen><userinput remap="something">Instructions</userinput></screen>. 115 They are executed in that order. "pre" can be used for patching for example. 116 In case testing is enabled, the instructions flagged test are logged to a different 117 file (test-log). If testing is not enabled, they are not executed at all. Do not 118 put line breaks before and after your instructions. <userinput> without 119 remap attribute are considered configuration instructions and executed last. You 120 can also use remap="adjust" for the same purpose. --> 121 <screen><userinput remap="configure">./configure --prefix=/tools \ 122 --disable-nls --without-dselect \ 123 --without-start-stop-daemon \ 124 --without-update-alternatives \ 125 --without-install-info \ 126 --without-zlib --with-bz2=static --without-selinux</userinput></screen> 127 128 <screen><userinput remap="make">(cd lib && make) 129 (cd src && make) 130 (cd dpkg-deb && make) 131 (cd dpkg-split && make)</userinput></screen> 132 133 <screen><userinput remap="install">cp src/dpkg src/dpkg-* /tools/bin 134 cp dpkg-deb/dpkg-deb /tools/bin 135 cp dpkg-split/dpkg-split /tools/bin 136 mkdir -pv /tools/etc/dpkg/{,dpkg.cfg.d} 137 cp debian/dpkg.cfg /tools/etc/dpkg</userinput></screen> 138 139 <screen><userinput>cat >> /tools/etc/dpkg/dpkg.cfg << EOF 140 # admindir on LFS system 141 admindir /var/lib/dpkg 142 EOF</userinput></screen> 143 144 <screen><userinput>cat >> /tools/etc/dpkg/dpkg.cfg << EOF 145 # disable fatal error on path checking 146 force-bad-path 147 EOF</userinput></screen> 148 149 </sect2> 150 151 </sect1> 152 87 153 <!-- Mandatory section for creating dirs. These instructions are added at the 88 154 end of the creating dirs instructions of the book. Do not change the … … 96 162 97 163 </sect1> 98 <!-- Same for files. Do not change the following line --> 164 <!-- Same for files. Do not change the following line. 165 Those instructions are not executed for the new book. 166 If needed create files at the end of the temp install. --> 99 167 <sect1 id="ch-pkgmngt-createfiles"> 100 168 … … 107 175 package manager at the end of chapter 6. Again, the scriptlet file name is 108 176 taken from the dbhtml instruction, with digits added before and .html cut. 177 There can be any number of sections for dependencies, all with id 178 ch-system-xxx (all the id's must be different). 109 179 --> 110 180 <sect1 id="ch-system-pkgmngt" role="wrap">
Note:
See TracChangeset
for help on using the changeset viewer.