Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57860 - /trunk/isns/agents/isnsd.scr
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Fri, 03 Jul 2009 09:58:37 -0000
  • Message-id: <E1MMfXR-0000hY-OS@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Fri Jul 3 11:58:37 2009
New Revision: 57860

URL: http://svn.opensuse.org/viewcvs/yast?rev=57860&view=rev
Log:
added isns agent file

Added:
trunk/isns/agents/isnsd.scr

Added: trunk/isns/agents/isnsd.scr
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/isns/agents/isnsd.scr?rev=57860&view=auto
==============================================================================
--- trunk/isns/agents/isnsd.scr (added)
+++ trunk/isns/agents/isnsd.scr Fri Jul 3 11:58:37 2009
@@ -0,0 +1,48 @@
+/*
+ * Read(.ietd.Compression)
+ * (["yes"])
+ *
+ * Write(.ietd.Compression, "no")
+ * (true)
+ *
+ * Fore more information about possible keys and values
+ * consult with the slp_config man pages `man slp_config`.
+ */
+
+.etc.iscsid
+
+`ag_ini(
+ `IniAgent( "/etc/isns/isns.conf",
+ $[
+ "options" : [ "global_values", "comments_last", "line_can_continue",
"join_multiline", "repeat_names" ],
+ "comments": [
+ "^[ \t]*$", // empty line
+ "^[ \t]+[;#].*$", // comment char is not first char
+ "^[#][ \t]*$", // only comment chars
+ "^[#][ \t]*\\[[^]]*$", // comment chars followed by '[' without
matching ']'
+ "^[#][^ \t[]", // comment char followed by non-blank nor '['
+ "^[#][ \t]+[^[a-z \t].*$", // comment chars followed by non a-z
char nor '[' nor blank
+ "^[#][ \t]+[a-z ]*[a-z][ \t]*$", // comment chars followed by a-z
or blank chars
+ "^[#][ \t]+[a-z ]*[a-z][ \t]*[^a-z \t=].*$", // like above, but
followed by non a-z nor blank nor '=' chars
+ ],
+ "sections" : [
+ $[
+ "begin" : [ "^[ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*",
"[%s]" ],
+ ], $[
+ // this is a special type for commenting out the values
+ "begin" : [ "^[#;][ \t]*\\[[ \t]*(.*[^ \t])[ \t]*\\][ \t]*",
"# [%s]" ],
+ ]
+ ],
+
+ // we need to exclude ; because of the second matching rule
+ "params" : [
+ // Options with one value ('yes' / 'no')
+// $[ "match" : [ "^[#;][ \t]*([^ \t]+)[ \t]+([^ \t]+)[ \t]+$",
"%s %s" ]],
+ $[ "match" : [ "^[#;][ \t]*([^ \t\=]+)[ \t\=]?(.+)[ \t]*$", ";
%s %s" ]],
+ // Options with more possible values
+ $[ "match" : [ "^[ \t]*([^ \t\=]+)[ \t\=]+[ ]*(.+)[ \t]*$",
"%s = %s" ]],
+ ],
+ ]
+ )
+)
+

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages