| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | <!-- $NetBSD: pkginstall.xml,v 1.23 2023/05/12 07:13:57 dholland Exp $ --> | | 1 | <!-- $NetBSD: pkginstall.xml,v 1.24 2023/05/15 21:14:43 gutteridge Exp $ --> |
2 | | | 2 | |
3 | <chapter id="pkginstall"> <?dbhtml filename="pkginstall.html"?> | | 3 | <chapter id="pkginstall"> <?dbhtml filename="pkginstall.html"?> |
4 | <title>The pkginstall framework</title> | | 4 | <title>The pkginstall framework</title> |
5 | | | 5 | |
6 | <para>This chapter describes the framework known as | | 6 | <para>This chapter describes the framework known as |
7 | <literal>pkginstall</literal>, whose key features are:</para> | | 7 | <literal>pkginstall</literal>, whose key features are:</para> |
8 | | | 8 | |
9 | <itemizedlist> | | 9 | <itemizedlist> |
10 | | | 10 | |
11 | <listitem> | | 11 | <listitem> |
12 | <para>Generic installation and manipulation of directories and files | | 12 | <para>Generic installation and manipulation of directories and files |
13 | outside the pkgsrc-handled tree, <varname>LOCALBASE</varname>.</para> | | 13 | outside the pkgsrc-handled tree, <varname>LOCALBASE</varname>.</para> |
14 | </listitem> | | 14 | </listitem> |
| @@ -337,27 +337,27 @@ created with OWN_DIRS | | | @@ -337,27 +337,27 @@ created with OWN_DIRS |
337 | known place, you need to teach each package where to install its files. In | | 337 | known place, you need to teach each package where to install its files. In |
338 | some cases you will have to patch the package Makefiles to achieve it. If | | 338 | some cases you will have to patch the package Makefiles to achieve it. If |
339 | you are lucky, though, it may be as easy as passing an extra flag to the | | 339 | you are lucky, though, it may be as easy as passing an extra flag to the |
340 | configuration script. This is the case for packages using GNU | | 340 | configuration script. This is the case for packages using GNU |
341 | autoconf:</para> | | 341 | autoconf:</para> |
342 | | | 342 | |
343 | <programlisting> | | 343 | <programlisting> |
344 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 344 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
345 | </programlisting> | | 345 | </programlisting> |
346 | | | 346 | |
347 | <para>Note that this specifies where the package has to <emphasis>look | | 347 | <para>Note that this specifies where the package has to <emphasis>look |
348 | for</emphasis> its configuration files, not where they will be installed. | | 348 | for</emphasis> its configuration files, not where they will be installed. |
349 | Fortunately, there is a different way to specify the latter, as seen | | 349 | Fortunately, there is a different way to specify the latter, as seen |
350 | in the next seection, although the combination is rather confusing at | | 350 | in the next section, although the combination is rather confusing at |
351 | first glance.</para> | | 351 | first glance.</para> |
352 | | | 352 | |
353 | </sect2> | | 353 | </sect2> |
354 | | | 354 | |
355 | <!-- ================================================================== --> | | 355 | <!-- ================================================================== --> |
356 | | | 356 | |
357 | <sect2 id="conf-files-patching"> | | 357 | <sect2 id="conf-files-patching"> |
358 | <title>Patching installation</title> | | 358 | <title>Patching installation</title> |
359 | | | 359 | |
360 | <para>As discussed above, <emphasis role="strong">packages themselves must not | | 360 | <para>As discussed above, <emphasis role="strong">packages themselves must not |
361 | touch the contents of <filename>${PKG_SYSCONFDIR}</filename> | | 361 | touch the contents of <filename>${PKG_SYSCONFDIR}</filename> |
362 | directly</emphasis>. Bad news is that many software installation scripts | | 362 | directly</emphasis>. Bad news is that many software installation scripts |
363 | will, out of the box, mess with the contents of that directory. So what is | | 363 | will, out of the box, mess with the contents of that directory. So what is |