chiark / gitweb /
man: add ID_LIKE definition to os-release(5)
[elogind.git] / man / os-release.xml
index 7d799721de9e4afd4589eeee81c47a24f836dd4f..0d7925f07a2a14810960493cc9e6b64e346212bb 100644 (file)
                                 <literal>ID=debian</literal>.</para></listitem>
                         </varlistentry>
 
+                        <varlistentry>
+                                <term><varname>ID_LIKE=</varname></term>
+
+                                <listitem><para>A space-separated list
+                                of operating system identifiers in the
+                                same syntax as the
+                                <varname>ID=</varname> setting. Should
+                                list identifiers of operating systems
+                                that are closely related to the local
+                                operating system in regards to
+                                packaging and programming interfaces,
+                                for example listing one or more
+                                distribution identifiers the local
+                                distribution is a derivative
+                                from. Build scripts and similar should
+                                check this variable if they need to
+                                identify the local operating system
+                                and the value of
+                                <varname>ID=</varname> is not
+                                recognized. Operating systems should
+                                be listed in order of how closely the
+                                local operating system relates to the
+                                listed ones, starting with the
+                                closest. This field is
+                                optional. Example: for an operating
+                                system with
+                                <literal>ID=centos</literal> an
+                                assignment of <literal>ID_LIKE="rhel
+                                fedora"</literal> would be
+                                appropriate. For an operating systemd
+                                with <literal>ID=ubuntu</literal> an
+                                assignment of
+                                <literal>ID_LIKE=debian</literal> is
+                                appropriate.</para></listitem>
+                        </varlistentry>
+
                         <varlistentry>
                                 <term><varname>VERSION_ID=</varname></term>