source: template/template.xml@ 0d1a1f9

ken/TL2024 lazarus trunk
Last change on this file since 0d1a1f9 was 478048f, checked in by Xi Ruoyao <xry111@…>, 2 months ago

template: Clean up

Let's not encourage the editors to use FTP. And use &root; to make it
shorter.

  • Property mode set to 100644
File size: 14.6 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[d3edf27]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[e248af7]7 <!-- Place this in the packages.ent file
[43fd8be]8 <!ENTITY TEMPLATE-version "">
[d3edf27]9 -->
10
[478048f]11 <!ENTITY TEMPLATE-download-http "https://">
[43fd8be]12 <!ENTITY TEMPLATE-md5sum "MD5 sum">
13 <!ENTITY TEMPLATE-size "?? MB">
14 <!ENTITY TEMPLATE-buildsize "?? MB">
15 <!ENTITY TEMPLATE-time "?? SBU">
[6fe407f4]16<!-- SBU should be rounded to nearer integer if greater than 10, to one
17 decimal if less than 10, and should be "less than 0.1 SBU" if
18 less than 0.1. If the SBU without parallelisation is too long,
[1ae4746]19 it is acceptable to give the value "with parallelism=N", where
[6fe407f4]20 N is the number of threads used. Note that some build systems
[1ae4746]21 automatically fix N equal to the number of available CPU cores
22 on the machine. -->
[d3edf27]23]>
24
[4705fa4]25<!-- Try to keep the indentation used in this file-->
[1ae02579]26<sect1 id="TEMPLATE" xreflabel="TEMPLATE-&TEMPLATE-version;">
[4705fa4]27 <?dbhtml filename="TEMPLATE.html"?>
[46daaa1]28
29
[17bcb81]30 <!-- No other tags inside any title.
[54d58907]31 Use Title Case in All Titles
[6fe407f4]32 (i.e., Capitalize Everything
33 *Except* Articles, Short Prepositions,
34 and Coordinating Conjunctions.-->
[4705fa4]35 <title>TEMPLATE-&TEMPLATE-version;</title>
[46daaa1]36
[4705fa4]37 <indexterm zone="TEMPLATE">
38 <primary sortas="a-TEMPLATE">TEMPLATE</primary>
39 </indexterm>
[46daaa1]40
[4705fa4]41 <!--Required section-->
42 <sect2 role="package">
43 <title>Introduction to TEMPLATE</title>
[46daaa1]44
[14aeac4]45 <para>
46 The <application>TEMPLATE</application> package contains...
47 This is useful for...
48 </para>
[46daaa1]49
[a4a52f4]50 <!-- if it builds but hasn't been tested: -->
[bfd20b5b]51 &lfs1?_built;
[a4a52f4]52 <!-- if it works: -->
[bfd20b5b]53 &lfs1?_checked;
[a4a52f4]54
[4705fa4]55 <bridgehead renderas="sect3">Package Information</bridgehead>
56 <itemizedlist spacing="compact">
57 <listitem>
[14aeac4]58 <para>
59 Download (HTTP): <ulink url="&TEMPLATE-download-http;"/>
60 </para>
[4705fa4]61 </listitem>
62 <listitem>
[14aeac4]63 <para>
64 Download MD5 sum: &TEMPLATE-md5sum;
65 </para>
[4705fa4]66 </listitem>
67 <listitem>
[14aeac4]68 <para>
69 Download size: &TEMPLATE-size;
70 </para>
[4705fa4]71 </listitem>
72 <listitem>
[14aeac4]73 <para>
74 Estimated disk space required: &TEMPLATE-buildsize;
75 </para>
[4705fa4]76 </listitem>
77 <listitem>
[14aeac4]78 <para>
79 Estimated build time: &TEMPLATE-time;
80 </para>
[f2c510ee]81 </listitem>
[4705fa4]82 </itemizedlist>
[46daaa1]83
[4705fa4]84 <!-- As required -->
85 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
86 <itemizedlist spacing="compact">
87 <listitem>
[14aeac4]88 <para>
89 Required patch:
90 <ulink url="&patch-root;/TEMPLATE-&TEMPLATE-version;-patch_name-patch_version.patch"/>
91 </para>
[4705fa4]92 </listitem>
93 </itemizedlist>
[46daaa1]94
[4705fa4]95 <bridgehead renderas="sect3">TEMPLATE Dependencies</bridgehead>
[46daaa1]96
[4705fa4]97 <bridgehead renderas="sect4">Required</bridgehead>
[14aeac4]98 <para role="required">
[161767fb]99 <xref linkend="BLFS_DEPENDENCY"/> <!-- notice no period as this is not
100 a sentence. If there are more than two, they must be separated by commas
101 with the last member having "and" in front of it. The use of a serial
102 comma is preferred (a comma after the next to last member before the
103 "and"). BLFS_DEPENDENCY should be an "id" attribute defined somewhere
104 in the book (usually in a <sect1>). -->
[7a65888]105 <xref role="runtime" linkend="RUNTIME_DEPENDENCY"/> (runtime)
[6fe407f4]106 <!-- Specifying that a dependency is a runtime one may avoid circular
[7a65888]107 dependencies. Add role="runtime" to help jhalfs -->
[14aeac4]108 </para>
[46daaa1]109
[dbb03a0]110 <!-- It may be nice to have a separate section for runtime dependencies.
[2f0555f]111 Do it as follows. -->
[dbb03a0]112 <bridgehead renderas="sect4">Required at runtime</bridgehead>
113 <para role="required">
114 <xref role="runtime" linkend="RUNTIME_DEPENDENCY"/>
115 </para>
116
[4705fa4]117 <!-- As required -->
118 <bridgehead renderas="sect4">Recommended</bridgehead>
[14aeac4]119 <para role="recommended">
[161767fb]120 <xref linkend="BLFS_DEPENDENCY"/> <!-- notice no period as this is not
121 a sentence. See above for the use of "and" and commas. Normally, neither
122 required nor recommended dependencies should be <ulink>. -->
[7a65888]123 <xref linkend="ANOTHER_RECOMMENDED_DEP"/> (required if building
124 <xref role="nodep" linkend="SOME_FANCY_PACKAGE"/>) <!-- You may need
125 to refer to another package, which is not a dependency. Use the role
126 attibute with value "nodep". -->
127 <!-- See above for runtime dependencies -->
[14aeac4]128 </para>
[46daaa1]129
[4705fa4]130 <!-- As required -->
131 <bridgehead renderas="sect4">Optional</bridgehead>
[14aeac4]132 <para role="optional">
[161767fb]133 <xref linkend="BLFS_DEPENDENCY"/> and
[8bf11809]134 <ulink url="http://www.some.url/">EXTERNAL DEPENDENCY</ulink>
[161767fb]135 <!-- notice no period as this is not a sentence. See above for the use
[6fe407f4]136 of commas and "and". The order should be <xref> before <ulink>.-->
137 <!-- See above for references to another package which is not a
[7a65888]138 dependency. -->
[14aeac4]139 </para>
[46daaa1]140
[a1bb0d9]141 <!-- Only use this if you want to note something in the wiki
[14aeac4]142 <para condition="html" role="usernotes">
[a1bb0d9]143 Editor Notes: <ulink url="&blfs-wiki;/TEMPLATE"/>
[14aeac4]144 </para>
[a1bb0d9]145 -->
[4705fa4]146 </sect2>
[46daaa1]147
[d615263]148 <!-- Optional section for packages that need a specific kernel
149 configuration-->
[64fecc4]150 <sect2 role="kernel" id="TEMPLATE-kernel">
[4705fa4]151 <title>Kernel Configuration</title>
[46daaa1]152
[14aeac4]153 <para>
154 Enable the following options in the kernel configuration and recompile the
155 kernel if necessary:
156 </para>
[46daaa1]157
[cddcdb14]158 <!-- Create a .toml file in the kernel-config tree to describe the
159 needed configuration. Then run
160 "make -C kernel-config KERNEL_TREE=</usr/src/linux-x.y.z> -j<N>"
[b65ee53]161 to regenerate the XML file. Please use the latest kernel patch release
162 with the same major.minor version as the LFS development book. -->
[cddcdb14]163 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
164 href="template-kernel.xml"/>
[46daaa1]165
[14aeac4]166 <para>
167 Select the appropriate sub-options that appear when the above options are
[8d99b03f]168 selected. As much as possible, the layout should be the same as in
[6fe407f4]169 kernel configuration menus.
[14aeac4]170 </para>
[46daaa1]171
[4705fa4]172 <indexterm zone="TEMPLATE TEMPLATE-kernel">
173 <primary sortas="d-TEMPLATE">TEMPLATE</primary>
174 </indexterm>
175 </sect2>
[46daaa1]176
[4705fa4]177 <!--Required section-->
178 <sect2 role="installation">
179 <title>Installation of TEMPLATE</title>
[46daaa1]180
[14aeac4]181 <para>
182 Install <application>TEMPLATE</application> by running the following
183 commands:
184 </para>
[46daaa1]185
186<!-- Spaces are significant in <screen> sections -->
[14aeac4]187<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
[eaf6a1cd]188make</userinput></screen>
[46daaa1]189
[76b2b9e]190 <!-- Optional paragraph. Add it when some instructions for building
191 documentation need optional or external packages. The remap="doc"
[6fe407f4]192 attribute signals that kind of instructions. Note: instructions
[76b2b9e]193 for generating documentation that can be built with
194 recommended/required/LFS book packages may be included in the
195 same block as configure and make. -->
196
197 <para>
198 If you have installed <xref linkend="optional-dep"/>, you can build
199 the documentation (or additional formats of the documentation) by issuing: </para>
200
201<screen remap="doc"><userinput>make -C doc pdf</userinput></screen>
202
203 <!-- adjust the instructions as needed. -->
204
[6fe407f4]205 <!-- Optional paragraph. Use one of the two formats below about the test
206 suite; delete the line that is not applicable. Of course, if the
[8e46700]207 test suite uses syntax other than 'make check', revise the
208 line to reflect the actual syntax to run the test suite -->
209
[14aeac4]210 <para>
211 This package does not come with a test suite.
212 </para>
[46daaa1]213
[14aeac4]214 <para>
215 To test the results, issue: <command>make check</command>.
216 </para>
217
[76b2b9e]218 <!-- Sometimes, more complex instructions are needed for running tests, or
219 they need to be run as root. They can then be put inside screen
220 tags using the remap="test" attribute as in the following example: -->
221
222 <para>
223 If you want to run the tests, first create some needed files:
224 </para>
225
226<screen remap="test"><userinput>make prepare-tests</userinput></screen>
227
228 <para>
[478048f]229 Then run the tests as the &root; user:
[76b2b9e]230 </para>
231
232<screen role="root" remap="test"><userinput>make tests</userinput></screen>
233
[14aeac4]234 <para>
[478048f]235 Now, as the &root; user:
[14aeac4]236 </para>
[46daaa1]237
[eaf6a1cd]238<screen role="root"><userinput>make install</userinput></screen>
[46daaa1]239
[76b2b9e]240 <!-- Optional paragraph for documentation that has been generated using
[2f0555f]241 optional/external packages: -->
[76b2b9e]242
243 <para>
244 If you have built the optional documentation, install it as the
[478048f]245 &root; user:
[76b2b9e]246 </para>
247
248<screen role="root"
249 remap="doc"><userinput>install -vdm 755 /usr/share/doc/template-&template-version; &amp;&amp;
250mv doc/* /usr/share/doc/template-&template-version;</userinput></screen>
[3ca8be3]251 </sect2>
[76b2b9e]252
[4705fa4]253 <!--Optional section-->
254 <sect2 role="commands">
255 <title>Command Explanations</title>
[46daaa1]256
[a26f3f8f]257 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[692b244c]258 href="../../xincludes/static-libraries.xml"/>
[14aeac4]259
[17bcb81]260 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
261 href="../../xincludes/gtk-doc-rebuild.xml"/>
262
[14aeac4]263 <para>
264 <command>COMMAND</command>: This command does something.
265 </para>
[46daaa1]266
[14aeac4]267 <para>
[8bf11809]268 <parameter>--PARAMETER</parameter>: This parameter does something
269 mandatory for BLFS purposes. It will be in the instructions above. It is
270 not optional and is why it is listed as a parameter and not an option.
[14aeac4]271 </para>
[46daaa1]272
[14aeac4]273 <para>
274 <option>--OPTION</option>: This option does something optionally per the
[8bf11809]275 user's desires. It is not listed in the instructions above, but instead,
276 is listed here because many (some) readers may want to include it.
[14aeac4]277 </para>
[4705fa4]278 </sect2>
[46daaa1]279
[3ca8be3]280 <!--Optional section-->
[5603a81]281 <sect2 role="using">
282 <title>Using TEMPLATE</title>
283
284 <para>
[8bf11809]285 Stuff about how to use TEMPLATE to do something. This section is rarely
286 used.
[5603a81]287 </para>
288 </sect2>
289
[4705fa4]290 <!--Optional section-->
291 <sect2 role="configuration">
292 <title>Configuring TEMPLATE</title>
[46daaa1]293
[4705fa4]294 <sect3 id="TEMPLATE-config">
295 <title>Config Files</title>
[14aeac4]296 <para>
297 <filename>~/.Configfilename1</filename> and
[8bf11809]298 <filename>/etc/path/Configfilename2</filename> <!-- notice no period as this is not a sentence-->
[14aeac4]299 </para>
[46daaa1]300
[4705fa4]301 <indexterm zone="TEMPLATE TEMPLATE-config">
302 <primary sortas="e-AA.Configfilename1">~/.Configfilename1</primary>
303 </indexterm>
[46daaa1]304
[4705fa4]305 <indexterm zone="TEMPLATE TEMPLATE-config">
[d615263]306 <primary
307 sortas="e-etc-path-Configfilename2">/etc/path/Configfilename2</primary>
[4705fa4]308 </indexterm>
309 </sect3>
[46daaa1]310
[4705fa4]311 <sect3><title>Configuration Information</title>
[46daaa1]312
[14aeac4]313 <para>
314 Blah blah blah about config.
315 </para>
[46daaa1]316
[eaf6a1cd]317<screen><userinput>USER CONFIG COMMANDS</userinput></screen>
[46daaa1]318
[eaf6a1cd]319<screen role="root"><userinput>ROOT CONFIG COMMANDS</userinput></screen>
[46daaa1]320
[b8dba81]321 <!-- File creation. Add the appropriate <indexterm> block if needed.-->
[14aeac4]322 <para>
323 Create the file .... for ...
324 </para>
[46daaa1]325
[eaf6a1cd]326<screen role="root"><userinput>cat &gt;&gt; /PATH/FILENAME &lt;&lt; "EOF"
327<literal># Begin FILENAME
[46daaa1]328
[eaf6a1cd]329TEXT
[46daaa1]330
[eaf6a1cd]331# End FILENAME</literal>
332EOF</userinput></screen>
[4705fa4]333 </sect3>
[46daaa1]334
[4705fa4]335 <sect3 id="TEMPLATE-init">
336 <title>Boot Script</title>
[46daaa1]337
[14aeac4]338 <para>
339 To automatically start the <command>TEMPLATE</command> daemon when the
340 system is rebooted, install the
341 <filename>/etc/rc.d/init.d/TEMPLATE</filename> bootscript from the
[3c7bd00]342 <xref linkend="bootscripts" revision="sysv"/>
343 <xref linkend="systemd-units" revision="systemd"/> package as the
[478048f]344 &root; user:
[14aeac4]345 </para>
[46daaa1]346
347 <indexterm zone="TEMPLATE TEMPLATE-init">
[4705fa4]348 <primary sortas="f-TEMPLATE">TEMPLATE</primary>
[46daaa1]349 </indexterm>
350
[eaf6a1cd]351<screen role="root"><userinput>make install-TEMPLATE</userinput></screen>
[4705fa4]352 </sect3>
353 </sect2>
[46daaa1]354
355 <!--Required section-->
[4705fa4]356 <sect2 role="content">
357 <title>Contents</title>
[46daaa1]358
[4705fa4]359 <segmentedlist>
360 <segtitle>Installed Program(s)</segtitle>
361 <segtitle>Installed Librar(y,ies)</segtitle>
362 <segtitle>Installed Director(y,ies)</segtitle>
[46daaa1]363
[8bf11809]364 <!-- If there were no programs, libraries, or directories created, then
365 we would list the section as "None". However, a decision must have
366 been made to change the "None" to just removing the whole section
367 because I've noticed that many packages have had the "None"
368 removed and the section completely removed as well. The reasoning
[6fe407f4]369 was that by putting "None", it appears as if we know there are none.
[8bf11809]370 Without anything it appears as we are not sure. -->
[0d7900a]371
[4705fa4]372 <seglistitem>
[14aeac4]373 <seg>
[d429f8af]374 PROGRAM1, PROGRAM2 and PROGRAM3<!-- no period here since it is not
375 a sentence -->
[14aeac4]376 </seg>
377 <seg>
[d429f8af]378 libLIBRARY1.so, libLIBRARY2.so and libLIBRARY3.so<!-- no period here
379 since it is not a sentence -->
[14aeac4]380 </seg>
381 <seg>
382 /etc/TEMPLATE, /usr/include/TEMPLATE, /usr/lib/TEMPLATE,
383 /usr/share/TEMPLATE-&TEMPLATE-version;,
384 /usr/share/doc/TEMPLATE-&TEMPLATE-version; and
[d429f8af]385 /var/lib/TEMPLATE<!-- no period here
386 since it is not a sentence -->
[14aeac4]387 </seg>
[4705fa4]388 </seglistitem>
389 </segmentedlist>
[46daaa1]390
[4705fa4]391 <variablelist>
392 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
393 <?dbfo list-presentation="list"?>
394 <?dbhtml list-presentation="table"?>
[46daaa1]395
[6fe407f4]396 <!-- If the program or library name conflicts with (is the same as) the
[fb3dd289]397 package name, add -prog or -lib to the varlistentry entity id
[4705fa4]398 and the 2nd entry of the indexterm zone entity -->
[46daaa1]399
[4705fa4]400 <varlistentry id="PROGRAM1">
401 <term><command>PROGRAM1</command></term>
402 <listitem>
[14aeac4]403 <para>
[b935cc3]404 does this ..... (no period at the end)
[14aeac4]405 </para>
[4705fa4]406 <indexterm zone="TEMPLATE PROGRAM1">
407 <primary sortas="b-PROGRAM1">PROGRAM1</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
[46daaa1]411
[4705fa4]412 <varlistentry id="PROGRAM2">
413 <term><command>PROGRAM2</command></term>
414 <listitem>
[14aeac4]415 <para>
[b935cc3]416 does this ..... (no period at the end)
[14aeac4]417 </para>
[4705fa4]418 <indexterm zone="TEMPLATE PROGRAM2">
419 <primary sortas="b-PROGRAM2">PROGRAM2</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
[46daaa1]423
[4705fa4]424 <varlistentry id="libLIBRARY1">
[14aeac4]425 <term><filename class="libraryfile">libLIBRARY1.so</filename></term>
[4705fa4]426 <listitem>
[14aeac4]427 <para>
[b935cc3]428 contains functions that ..... (no period at the end)
[14aeac4]429 </para>
[4705fa4]430 <indexterm zone="TEMPLATE libLIBRARY1">
[14aeac4]431 <primary sortas="c-libLIBRARY1">libLIBRARY1.so</primary>
[4705fa4]432 </indexterm>
433 </listitem>
434 </varlistentry>
435 </variablelist>
436 </sect2>
[46daaa1]437</sect1>
Note: See TracBrowser for help on using the repository browser.