diff options
author | gdt <gdt@pkgsrc.org> | 2021-03-26 17:43:20 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2021-03-26 17:43:20 +0000 |
commit | db217112d257f5b1442334fdc53318846864d9a7 (patch) | |
tree | 8b1a97ea8821c31029da12b2660d2d95c5477a8d /doc | |
parent | 91204156cd2ff582a05981e9fc438e63eb593ae8 (diff) | |
download | pkgsrc-db217112d257f5b1442334fdc53318846864d9a7.tar.gz |
guide: Modernize MESSAGE section
Based on tech-pkg traffic over the last few years that appears to have
rough consensus, adjust MESSAGE section to explain that it should only
be used for exceptional circumstances, and specifically not to
substitute for documentation that belongs in the package's docdir.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guide/files/components.xml | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/doc/guide/files/components.xml b/doc/guide/files/components.xml index f72d4df1e09..ddf99edb554 100644 --- a/doc/guide/files/components.xml +++ b/doc/guide/files/components.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: components.xml,v 1.59 2020/05/17 00:54:00 tnn Exp $ --> +<!-- $NetBSD: components.xml,v 1.60 2021/03/26 17:43:20 gdt Exp $ --> <chapter id="components"> <?dbhtml filename="components.html"?> <title>Package components - files, directories and contents</title> @@ -572,10 +572,30 @@ FILES_SUBST+= SOMEVAR="somevalue" <listitem> <para>This file is displayed after installation of the package. - Useful for things like legal notices on almost-free - software and hints for updating config files after - installing modules for apache, PHP etc. - Please note that you can modify variables in it easily by using + While this was used often in the past, it has two + problems: the display will be missed if many packages are + intalled at once, and the person installing the package + and the one using or configuring it may be different. It + should therefore be used only in exceptional circumstances + where lasting negative consequences would result from + someone not reading it.</para> + <para>MESSAGE should not be used for:</para> + <itemizedlist> + <listitem><para>exhortations to read the documentation</para></listitem> + <listitem><para>reminders to install rc.d files and set variables</para></listitem> + <listitem><para>anything that should be explained in the + installation/configuration documentation that should + come with the package</para></listitem> + </itemizedlist> + <para>If the documentation provided by upstream needs + enhancing, create e.g. files/README.pkgsrc and install it + in the package's documentation directory. + </para> + <para>Note that MESSAGE is shown for all operating + systems and all init systems. If a MESSAGE is necessary, + it should be narrowed to only those operating systems and + init systems to which it applies.</para> + <para>Note that you can modify variables in it easily by using <varname>MESSAGE_SUBST</varname> in the package's <filename>Makefile</filename>:</para> |