teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0153-Add-VARIANT-as-a-standard-value-for-etc-os-release.patch

Zbigniew Jędrzejewski-Szmek a48f80
From c2f347ff929d790d35187b81adb41c5a92d32b12 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek a48f80
From: Stephen Gallagher <sgallagh@redhat.com>
Zbigniew Jędrzejewski-Szmek a48f80
Date: Wed, 29 Apr 2015 08:19:05 -0400
Zbigniew Jędrzejewski-Szmek a48f80
Subject: [PATCH] Add VARIANT as a standard value for /etc/os-release
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
Some distributions (such as Fedora) are using the VARIANT field to
Zbigniew Jędrzejewski-Szmek a48f80
indicate to select packages which of several default configurations
Zbigniew Jędrzejewski-Szmek a48f80
they should be using. For example, VARIANT=Server provides a
Zbigniew Jędrzejewski-Szmek a48f80
different default firewall configuration (blocking basically
Zbigniew Jędrzejewski-Szmek a48f80
everything but SSH and the management console) whereas
Zbigniew Jędrzejewski-Szmek a48f80
VARIANT=Workstation opens many other ports for application
Zbigniew Jędrzejewski-Szmek a48f80
compatibility.
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
By adding this patch to the manual pages, we can standardize on a
Zbigniew Jędrzejewski-Szmek a48f80
cross-distribution mechanism for accomplishing this.
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
Fedora implementation details are available at
Zbigniew Jędrzejewski-Szmek a48f80
https://fedoraproject.org/wiki/Packaging:Per-Product_Configuration
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
(David: drop double paranthesis)
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
(cherry picked from commit be7d0048ddda1e994f651e2825f96266d537d10d)
Zbigniew Jędrzejewski-Szmek a48f80
---
Zbigniew Jędrzejewski-Szmek a48f80
 man/os-release.xml | 35 +++++++++++++++++++++++++++++++++++
Zbigniew Jędrzejewski-Szmek a48f80
 1 file changed, 35 insertions(+)
Zbigniew Jędrzejewski-Szmek a48f80
Zbigniew Jędrzejewski-Szmek a48f80
diff --git a/man/os-release.xml b/man/os-release.xml
Zbigniew Jędrzejewski-Szmek a48f80
index 4f57323d49..4ca2e59706 100644
Zbigniew Jędrzejewski-Szmek a48f80
--- a/man/os-release.xml
Zbigniew Jędrzejewski-Szmek a48f80
+++ b/man/os-release.xml
Zbigniew Jędrzejewski-Szmek a48f80
@@ -273,6 +273,41 @@
Zbigniew Jędrzejewski-Szmek a48f80
         </para></listitem>
Zbigniew Jędrzejewski-Szmek a48f80
       </varlistentry>
Zbigniew Jędrzejewski-Szmek a48f80
 
Zbigniew Jędrzejewski-Szmek a48f80
+      <varlistentry>
Zbigniew Jędrzejewski-Szmek a48f80
+        <term><varname>VARIANT=</varname></term>
Zbigniew Jędrzejewski-Szmek a48f80
+
Zbigniew Jędrzejewski-Szmek a48f80
+        <listitem><para>
Zbigniew Jędrzejewski-Szmek a48f80
+        A string identifying a specific variant or edition of the
Zbigniew Jędrzejewski-Szmek a48f80
+        operating system suitable for presentation to the user. This
Zbigniew Jędrzejewski-Szmek a48f80
+        field may be used to inform the user that the configuration of
Zbigniew Jędrzejewski-Szmek a48f80
+        this system is subject to a specific divergent set of rules or
Zbigniew Jędrzejewski-Szmek a48f80
+        default configuration settings. This field is optional and may
Zbigniew Jędrzejewski-Szmek a48f80
+        not be implemented on all systems.
Zbigniew Jędrzejewski-Szmek a48f80
+        Examples:
Zbigniew Jędrzejewski-Szmek a48f80
+        <literal>VARIANT="Server Edition"</literal>,
Zbigniew Jędrzejewski-Szmek a48f80
+        <literal>VARIANT="Smart Refrigerator Edition"</literal>
Zbigniew Jędrzejewski-Szmek a48f80
+        Note: this field is for display purposes only. The
Zbigniew Jędrzejewski-Szmek a48f80
+        <varname>VARIANT_ID</varname> field should be used for making
Zbigniew Jędrzejewski-Szmek a48f80
+        programmatic decisions.
Zbigniew Jędrzejewski-Szmek a48f80
+        </para></listitem>
Zbigniew Jędrzejewski-Szmek a48f80
+      </varlistentry>
Zbigniew Jędrzejewski-Szmek a48f80
+
Zbigniew Jędrzejewski-Szmek a48f80
+      <varlistentry>
Zbigniew Jędrzejewski-Szmek a48f80
+        <term><varname>VARIANT_ID=</varname></term>
Zbigniew Jędrzejewski-Szmek a48f80
+
Zbigniew Jędrzejewski-Szmek a48f80
+        <listitem><para>
Zbigniew Jędrzejewski-Szmek a48f80
+        A lower-case string (no spaces or other characters outside of
Zbigniew Jędrzejewski-Szmek a48f80
+        0-9, a-z, ".", "_" and "-"), identifying a specific variant or
Zbigniew Jędrzejewski-Szmek a48f80
+        edition of the operating system. This may be interpreted by
Zbigniew Jędrzejewski-Szmek a48f80
+        other packages in order to determine a divergent default
Zbigniew Jędrzejewski-Szmek a48f80
+        configuration. This field is optional and may not be
Zbigniew Jędrzejewski-Szmek a48f80
+        implemented on all systems.
Zbigniew Jędrzejewski-Szmek a48f80
+        Examples:
Zbigniew Jędrzejewski-Szmek a48f80
+        <literal>VARIANT_ID=server</literal>,
Zbigniew Jędrzejewski-Szmek a48f80
+        <literal>VARIANT_ID=embedded</literal>
Zbigniew Jędrzejewski-Szmek a48f80
+        </para></listitem>
Zbigniew Jędrzejewski-Szmek a48f80
+      </varlistentry>
Zbigniew Jędrzejewski-Szmek a48f80
+
Zbigniew Jędrzejewski-Szmek a48f80
     </variablelist>
Zbigniew Jędrzejewski-Szmek a48f80
 
Zbigniew Jędrzejewski-Szmek a48f80
     <para>If you are reading this file from C code or a shell script