Mailinglist Archive: yast-commit (1224 mails)
| < Previous | Next > |
[yast-commit] <rest-service> master : enhance eula configuration documentation, store example in separate file
- From: Martin Kudlvasr <mkudlvasr@xxxxxxx>
- Date: Tue, 24 Nov 2009 15:55:37 +0100
- Message-id: <E1NCwnr-0002HS-VV@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit bc8347dc04d4c27b17e961731c91b47ec6d51bcb
Author: Martin Kudlvasr <mkudlvasr@xxxxxxx>
Date: Tue Nov 24 15:55:37 2009 +0100
enhance eula configuration documentation, store example in separate file
---
plugins/eulas/doc/README_FOR_APP | 101 ++++++++++++++++++++++++----------
plugins/eulas/doc/eulas_example.yml | 3 +
2 files changed, 74 insertions(+), 30 deletions(-)
diff --git a/plugins/eulas/doc/README_FOR_APP b/plugins/eulas/doc/README_FOR_APP
index f0fff21..0222b49 100644
--- a/plugins/eulas/doc/README_FOR_APP
+++ b/plugins/eulas/doc/README_FOR_APP
@@ -1,41 +1,82 @@
-Eula
-====
+EULAs
+=====
-Plugin cares for licenses and serves them to web-client on demand.
-It handles locale, order of the licenses, checks and sets whether licenses
-were accepted.
+ With the help of the WebYaST eulas module, users are presented with one or
more end
+ user licence agreements (EULAs) during the base system setup.
-Eula plugin package comes pre-configured with license for the distribution,
-which the package is built for.
+Configuration of EULAs
+======================
-Add vendor specific license
-===========================
+ The list of EULAs to be used, in the order they are presented during the base
system
+ setup, is defined in the /etc/webyast/eulas.yml configuration file.
+
+ Configuration file is started with the initial line:
- - Store your license text into the directory:
- /usr/share/yastws/eulas/licenses/YOUR_LICENSE_NAME/license.txt
- - Add YOUR_LICENSE_NAME into /etc/webyast/eulas.yml configuration file.
+ licenses:
- Optional
- --------
+ Then follows the list of EULAs ordered as they should appear during the base
system
+ setup follows. The format of eache line is:
- - Store your license translations the same directory as license.txt and name
- them like license.LANGUAGE_CODE.txt .
- - Your license can only be shown to the user (instead of explicitely making
- him accept it). If you want to choose this behaviour, create an empty file
- named "no-acceptance-needed" in the same directory as license.txt.
-
- Example of eulas.yml
- --------------------
+ - EULA_name
- licenses:
- - SLE-11
- - YOUR_LICENSE_NAME
+ Where EULA_name is the name of the directory containing text of the EULA. The
full
+ path to this directory is:
-Accept license by hand
-======================
+ /usr/share/yastws/eulas/licenses/EULA_name/
+
+ The EULA_name directory contains plain text files with the text of the EULA.
Text
+ files should be named using the license.locale.txt format. If the file with an
+ appropriate locale is not found, license.txt is used as a fallback.
+
+ Minimum EULA configuration
+ --------------------------
+
+ Configuration with no EULAs is possible. When the file
/etc/webyast/eulas.yml is
+ missing (or if it contains only the initial line), no licenses will be
displayed.
+
+ Minimum single EULA configuration
+ -------------------------
+
+ Single license configuration MUST contain english text of the license stored
in:
+
+ /usr/share/yastws/eulas/licenses/EULA_name/license.txt
+
+ and /etc/webyast/eulas.yml configuration file:
+
+ licenses:
+ - EULA_name
+
+ Optional features
+ -----------------
+
+ If the file:
+
+ /usr/share/yastws/eulas/licenses/EULA_name/no-acceptance-needed
+
+ exists, there will be no Accept/Reject options displayed in the UI. After
clicking
+ Next, the license will be considered accepted.
+
+ Translations
+ ------------
+
+ All files in /usr/share/yastws/eulas/licenses/EULA_name/ with the name
+ license.locale.txt are considered license translation files with 'locale'
being
+ the language identification string. No other configuration of the
translations
+ is needed.
+
+ Accept license by hand
+ ----------------------
+
+ Sometimes, accepting the license from command line on the target appliance
+ is useful. Entering these commands:
+
+ touch /var/lib/yastws/eulas/accepted-licenses/EULA_name
+ chown yastws /var/lib/yastws/eulas/accepted-licenses/EULA_name
+
+ has the same effect as accepting the license via the UI.
+
+ Example eulas.yml File:
-To accept a license without using the UI or webservice API, create an empty
file
- in the directory: /var/lib/yastws/eulas/accepted-licenses/LICENSE_NAME. Where
-LICENSE_NAME is a license name identical to the one in
/etc/webservice/eulas.yml .
+ eulas_example.yml
Copyright (c) 2009 Novell, released under the GPL2 license
diff --git a/plugins/eulas/doc/eulas_example.yml
b/plugins/eulas/doc/eulas_example.yml
new file mode 100644
index 0000000..fc6b5d4
--- /dev/null
+++ b/plugins/eulas/doc/eulas_example.yml
@@ -0,0 +1,3 @@
+licenses:
+ - SLES-11
+ - APPLIANCE
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
commit bc8347dc04d4c27b17e961731c91b47ec6d51bcb
Author: Martin Kudlvasr <mkudlvasr@xxxxxxx>
Date: Tue Nov 24 15:55:37 2009 +0100
enhance eula configuration documentation, store example in separate file
---
plugins/eulas/doc/README_FOR_APP | 101 ++++++++++++++++++++++++----------
plugins/eulas/doc/eulas_example.yml | 3 +
2 files changed, 74 insertions(+), 30 deletions(-)
diff --git a/plugins/eulas/doc/README_FOR_APP b/plugins/eulas/doc/README_FOR_APP
index f0fff21..0222b49 100644
--- a/plugins/eulas/doc/README_FOR_APP
+++ b/plugins/eulas/doc/README_FOR_APP
@@ -1,41 +1,82 @@
-Eula
-====
+EULAs
+=====
-Plugin cares for licenses and serves them to web-client on demand.
-It handles locale, order of the licenses, checks and sets whether licenses
-were accepted.
+ With the help of the WebYaST eulas module, users are presented with one or
more end
+ user licence agreements (EULAs) during the base system setup.
-Eula plugin package comes pre-configured with license for the distribution,
-which the package is built for.
+Configuration of EULAs
+======================
-Add vendor specific license
-===========================
+ The list of EULAs to be used, in the order they are presented during the base
system
+ setup, is defined in the /etc/webyast/eulas.yml configuration file.
+
+ Configuration file is started with the initial line:
- - Store your license text into the directory:
- /usr/share/yastws/eulas/licenses/YOUR_LICENSE_NAME/license.txt
- - Add YOUR_LICENSE_NAME into /etc/webyast/eulas.yml configuration file.
+ licenses:
- Optional
- --------
+ Then follows the list of EULAs ordered as they should appear during the base
system
+ setup follows. The format of eache line is:
- - Store your license translations the same directory as license.txt and name
- them like license.LANGUAGE_CODE.txt .
- - Your license can only be shown to the user (instead of explicitely making
- him accept it). If you want to choose this behaviour, create an empty file
- named "no-acceptance-needed" in the same directory as license.txt.
-
- Example of eulas.yml
- --------------------
+ - EULA_name
- licenses:
- - SLE-11
- - YOUR_LICENSE_NAME
+ Where EULA_name is the name of the directory containing text of the EULA. The
full
+ path to this directory is:
-Accept license by hand
-======================
+ /usr/share/yastws/eulas/licenses/EULA_name/
+
+ The EULA_name directory contains plain text files with the text of the EULA.
Text
+ files should be named using the license.locale.txt format. If the file with an
+ appropriate locale is not found, license.txt is used as a fallback.
+
+ Minimum EULA configuration
+ --------------------------
+
+ Configuration with no EULAs is possible. When the file
/etc/webyast/eulas.yml is
+ missing (or if it contains only the initial line), no licenses will be
displayed.
+
+ Minimum single EULA configuration
+ -------------------------
+
+ Single license configuration MUST contain english text of the license stored
in:
+
+ /usr/share/yastws/eulas/licenses/EULA_name/license.txt
+
+ and /etc/webyast/eulas.yml configuration file:
+
+ licenses:
+ - EULA_name
+
+ Optional features
+ -----------------
+
+ If the file:
+
+ /usr/share/yastws/eulas/licenses/EULA_name/no-acceptance-needed
+
+ exists, there will be no Accept/Reject options displayed in the UI. After
clicking
+ Next, the license will be considered accepted.
+
+ Translations
+ ------------
+
+ All files in /usr/share/yastws/eulas/licenses/EULA_name/ with the name
+ license.locale.txt are considered license translation files with 'locale'
being
+ the language identification string. No other configuration of the
translations
+ is needed.
+
+ Accept license by hand
+ ----------------------
+
+ Sometimes, accepting the license from command line on the target appliance
+ is useful. Entering these commands:
+
+ touch /var/lib/yastws/eulas/accepted-licenses/EULA_name
+ chown yastws /var/lib/yastws/eulas/accepted-licenses/EULA_name
+
+ has the same effect as accepting the license via the UI.
+
+ Example eulas.yml File:
-To accept a license without using the UI or webservice API, create an empty
file
- in the directory: /var/lib/yastws/eulas/accepted-licenses/LICENSE_NAME. Where
-LICENSE_NAME is a license name identical to the one in
/etc/webservice/eulas.yml .
+ eulas_example.yml
Copyright (c) 2009 Novell, released under the GPL2 license
diff --git a/plugins/eulas/doc/eulas_example.yml
b/plugins/eulas/doc/eulas_example.yml
new file mode 100644
index 0000000..fc6b5d4
--- /dev/null
+++ b/plugins/eulas/doc/eulas_example.yml
@@ -0,0 +1,3 @@
+licenses:
+ - SLES-11
+ - APPLIANCE
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |