Author: mzugec
Date: Thu Jul 2 14:09:18 2009
New Revision: 57845
URL: http://svn.opensuse.org/viewcvs/yast?rev=57845&view=rev
Log:
initial commit into svn
Added:
trunk/isns/
trunk/isns/MAINTAINER
trunk/isns/Makefile.cvs
trunk/isns/RPMNAME
trunk/isns/VERSION
trunk/isns/_cvsignore
trunk/isns/agents/
trunk/isns/agents/Makefile.am
trunk/isns/agents/_cvsignore
trunk/isns/configure.in.in
trunk/isns/doc/
trunk/isns/doc/Makefile.am
trunk/isns/doc/_cvsignore
trunk/isns/doc/autodocs/
trunk/isns/doc/autodocs/Makefile.am
trunk/isns/doc/autodocs/_cvsignore
trunk/isns/package/
trunk/isns/package/_cvsignore
trunk/isns/package/yast2-isns.changes
trunk/isns/src/
trunk/isns/src/Makefile.am
trunk/isns/src/_cvsignore
trunk/isns/src/complex.ycp
trunk/isns/src/dialogs.ycp
trunk/isns/src/helps.ycp
trunk/isns/src/isns.desktop
trunk/isns/src/isns.ycp
trunk/isns/src/isns_auto.ycp
trunk/isns/src/isns_proposal.ycp
trunk/isns/src/wizards.ycp
trunk/isns/testsuite/
trunk/isns/testsuite/Makefile.am
trunk/isns/testsuite/_cvsignore
trunk/isns/testsuite/tests/
trunk/isns/testsuite/tests/Isns.err
trunk/isns/testsuite/tests/Isns.out
trunk/isns/testsuite/tests/Isns.ycp
trunk/isns/testsuite/tests/_cvsignore
trunk/isns/yast2-isns.spec.in
Added: trunk/isns/MAINTAINER
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/MAINTAINER?rev=57845&view=auto
==============================================================================
--- trunk/isns/MAINTAINER (added)
+++ trunk/isns/MAINTAINER Thu Jul 2 14:09:18 2009
@@ -0,0 +1 @@
+Michal Zugec
Added: trunk/isns/Makefile.cvs
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/Makefile.cvs?rev=57845&view=auto
==============================================================================
--- trunk/isns/Makefile.cvs (added)
+++ trunk/isns/Makefile.cvs Thu Jul 2 14:09:18 2009
@@ -0,0 +1,22 @@
+#
+# Makefile.cvs
+#
+PREFIX = /usr
+
+LIB = $(shell y2tool get-lib)
+
+configure: all
+ ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB)
+
+all:
+ y2tool y2autoconf
+ y2tool y2automake
+ autoreconf --force --install
+
+install: configure
+ make
+ make install
+
+reconf: all
+ ./config.status --recheck
+ ./config.status
Added: trunk/isns/RPMNAME
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/RPMNAME?rev=57845&view=auto
==============================================================================
--- trunk/isns/RPMNAME (added)
+++ trunk/isns/RPMNAME Thu Jul 2 14:09:18 2009
@@ -0,0 +1 @@
+yast2-isns
Added: trunk/isns/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/VERSION?rev=57845&view=auto
==============================================================================
--- trunk/isns/VERSION (added)
+++ trunk/isns/VERSION Thu Jul 2 14:09:18 2009
@@ -0,0 +1 @@
+2.15.0
Added: trunk/isns/_cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/_cvsignore?rev=57845&view=auto
==============================================================================
--- trunk/isns/_cvsignore (added)
+++ trunk/isns/_cvsignore Thu Jul 2 14:09:18 2009
@@ -0,0 +1,20 @@
+Makefile
+Makefile.am
+Makefile.am.common
+Makefile.in
+aclocal.m4
+config.cache
+config.guess
+config.h.in
+config.log
+config.status
+config.sub
+configure
+configure.in
+depcomp
+install-sh
+missing
+mkinstalldirs
+stamp-h
+isns.pot
+autom4te.cache
Added: trunk/isns/agents/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/agents/Makefile.am?rev=57845&view=auto
==============================================================================
--- trunk/isns/agents/Makefile.am (added)
+++ trunk/isns/agents/Makefile.am Thu Jul 2 14:09:18 2009
@@ -0,0 +1,7 @@
+# Makefile.am for isns/agents
+
+agent_SCRIPTS =
+
+scrconf_DATA = isnsd.scr
+
+EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
Added: trunk/isns/agents/_cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/agents/_cvsignore?rev=57845&view=auto
==============================================================================
--- trunk/isns/agents/_cvsignore (added)
+++ trunk/isns/agents/_cvsignore Thu Jul 2 14:09:18 2009
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
Added: trunk/isns/configure.in.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/configure.in.in?rev=57845&view=auto
==============================================================================
--- trunk/isns/configure.in.in (added)
+++ trunk/isns/configure.in.in Thu Jul 2 14:09:18 2009
@@ -0,0 +1,12 @@
+## YCP module configure.in.in
+
+## Initialize
+@YAST2-INIT-COMMON@
+@YAST2-INIT-YCP@
+
+## some common checks
+@YAST2-CHECKS-COMMON@
+@YAST2-CHECKS-YCP@
+
+## and generate the output...
+@YAST2-OUTPUT@
Added: trunk/isns/doc/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/doc/Makefile.am?rev=57845&view=auto
==============================================================================
--- trunk/isns/doc/Makefile.am (added)
+++ trunk/isns/doc/Makefile.am Thu Jul 2 14:09:18 2009
@@ -0,0 +1,10 @@
+# Makefile.am for isns/doc
+
+SUBDIRS = autodocs
+
+htmldir = $(docdir)
+
+doc_DATA =
+html_DATA =
+
+EXTRA_DIST = $(doc_DATA) $(html_DATA)
Added: trunk/isns/doc/_cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/doc/_cvsignore?rev=57845&view=auto
==============================================================================
--- trunk/isns/doc/_cvsignore (added)
+++ trunk/isns/doc/_cvsignore Thu Jul 2 14:09:18 2009
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
Added: trunk/isns/doc/autodocs/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/doc/autodocs/Makefile.am?rev=57845&view=auto
==============================================================================
--- trunk/isns/doc/autodocs/Makefile.am (added)
+++ trunk/isns/doc/autodocs/Makefile.am Thu Jul 2 14:09:18 2009
@@ -0,0 +1,3 @@
+# Makefile.am for isns/doc/autodocs
+
+include $(top_srcdir)/autodocs-ycp.ami
Added: trunk/isns/doc/autodocs/_cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/doc/autodocs/_cvsignore?rev=57845&view=auto
==============================================================================
--- trunk/isns/doc/autodocs/_cvsignore (added)
+++ trunk/isns/doc/autodocs/_cvsignore Thu Jul 2 14:09:18 2009
@@ -0,0 +1,3 @@
+Makefile
+Makefile.in
+*.html
Added: trunk/isns/package/_cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/package/_cvsignore?rev=57845&view=auto
==============================================================================
--- trunk/isns/package/_cvsignore (added)
+++ trunk/isns/package/_cvsignore Thu Jul 2 14:09:18 2009
@@ -0,0 +1,2 @@
+*.spec
+*.bz2
Added: trunk/isns/package/yast2-isns.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/package/yast2-isns.changes?rev=57845&view=auto
==============================================================================
--- trunk/isns/package/yast2-isns.changes (added)
+++ trunk/isns/package/yast2-isns.changes Thu Jul 2 14:09:18 2009
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Fri Jun 26 15:57:05 2009 - mzugec@novell.com
+
+- initial version
Added: trunk/isns/src/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/src/Makefile.am?rev=57845&view=auto
==============================================================================
--- trunk/isns/src/Makefile.am (added)
+++ trunk/isns/src/Makefile.am Thu Jul 2 14:09:18 2009
@@ -0,0 +1,30 @@
+# Makefile.am for isns/src
+
+yncludedir = @yncludedir@/isns
+
+client_DATA = \
+ isns.ycp \
+ isns_auto.ycp \
+ isns_proposal.ycp \
+ isns_finish.ycp
+
+ynclude_DATA = \
+ helps.ycp \
+ wizards.ycp \
+ dialogs.ycp \
+ complex.ycp
+
+desktop_DATA = \
+ isns.desktop
+
+module_DATA = \
+ IsnsServer.ycp
+
+# create a symlink for local build, #145327
+isns:
+ ln -sf . $@
+ycpchook = isns
+
+EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA)
+
+include $(top_srcdir)/Makefile.am.common
Added: trunk/isns/src/_cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/src/_cvsignore?rev=57845&view=auto
==============================================================================
--- trunk/isns/src/_cvsignore (added)
+++ trunk/isns/src/_cvsignore Thu Jul 2 14:09:18 2009
@@ -0,0 +1,4 @@
+Makefile
+Makefile.in
+*.ybc
+.dep
Added: trunk/isns/src/complex.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/src/complex.ycp?rev=57845&view=auto
==============================================================================
--- trunk/isns/src/complex.ycp (added)
+++ trunk/isns/src/complex.ycp Thu Jul 2 14:09:18 2009
@@ -0,0 +1,63 @@
+/**
+ * File: include/isns-server/complex.ycp
+ * Package: Configuration of isns-server
+ * Summary: Dialogs definitions
+ * Authors: Michal Zugec
+ *
+ * $Id: complex.ycp 27936 2006-02-13 20:01:14Z olh $
+ */
+
+{
+
+textdomain "isns";
+
+import "Label";
+import "Popup";
+import "Wizard";
+import "Wizard_hw";
+import "IsnsServer";
+
+include "isns/helps.ycp";
+
+/**
+ * Return a modification status
+ * @return true if data was modified
+ */
+boolean Modified() {
+ return IsnsServer::Modified();
+}
+
+boolean ReallyAbort() {
+ return !IsnsServer::Modified() || Popup::ReallyAbort(true);
+}
+
+boolean PollAbort() {
+ return UI::PollInput() == `abort;
+}
+
+/**
+ * Read settings dialog
+ * @return `abort if aborted and `next otherwise
+ */
+symbol ReadDialog() {
+ Wizard::RestoreHelp(HELPS["read"]:"");
+ // IsnsServer::AbortFunction = PollAbort;
+ boolean ret = IsnsServer::Read();
+ return ret ? `next : `abort;
+}
+
+/**
+ * Write settings dialog
+ * @return `abort if aborted and `next otherwise
+ */
+symbol WriteDialog() {
+ Wizard::RestoreHelp(HELPS["write"]:"");
+ // IsnsServer::AbortFunction = PollAbort;
+ boolean ret = IsnsServer::Write();
+ return ret ? `next : `abort;
+}
+
+
+
+/* EOF */
+}
Added: trunk/isns/src/dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/isns/src/dialogs.ycp?rev=57845&view=auto
==============================================================================
--- trunk/isns/src/dialogs.ycp (added)
+++ trunk/isns/src/dialogs.ycp Thu Jul 2 14:09:18 2009
@@ -0,0 +1,303 @@
+/**
+ * File: include/isns-server/dialogs.ycp
+ * Package: Configuration of isns-server
+ * Summary: Dialogs definitions
+ * Authors: Michal Zugec
+ *
+ * $Id: dialogs.ycp 35355 2007-01-15 15:06:49Z mzugec $
+ */
+
+{
+
+textdomain "isns";
+
+import "Label";
+import "Wizard";
+import "IsnsServer";
+import "CWMTab";
+import "CWM";
+import "CWMServiceStart";
+import "CWMFirewallInterfaces";
+import "TablePopup";
+
+include "isns/helps.ycp";
+include "isns/widgets.ycp";
+
+// store current here
+string current_tab = "service";
+
+map tabs_descr = $[
+// first tab - service status and firewall
+ "service":$[
+ "header" : _("Service"),
+ "contents" :
+ `VBox(
+ `VStretch(),
+ `HBox(
+ `HStretch(),
+ `HSpacing (1),
+ `VBox(
+ "ipaddress",
+ `VSpacing (2),
+ "auto_start_up",
+ `VSpacing (2),
+ "firewall",
+ `VSpacing (2)
+ ),
+ `HSpacing (1),
+ `HStretch()
+ ),
+ `VStretch()
+ ),
+ "widget_names" : ["ipaddress", "auto_start_up", "firewall" ]
+ ],
+
+// second tab - iSCSI Nodes
+ "members":$[
+ "header" : _("iSCSI Nodes"),
+ "contents" :
+ `VBox(
+ `VSpacing(1),
+ `HBox(
+ `HSpacing (5),
+ `VBox(
+ "iscsi_nodes_display"
+ ),
+ `HSpacing (5)
+ ),
+ `VSpacing(1)
+ ),
+ "widget_names" : [ "iscsi_nodes_display" ]
+ ],
+
+// third tab - Discovery Domains
+ "discoverydomains":$[
+ "header" : _("Discovery Domains"),
+ "contents" :
+ `VBox(
+ `HBox(
+ `HStretch(),
+ `VBox(
+ "dd_display"
+ ),
+ `HStretch()
+ ),
+ `VStretch(),
+ `HBox(
+ `HStretch(),
+ `VBox(
+ "dd_display_members"
+ ),
+ `HStretch()
+ )
+ ),
+ "widget_names" : [ "dd_display", "dd_display_members" ]
+ ],
+
+// fourth tab - discovery domain sets
+ "discoverydomainsets":$[
+ "header" : _("Discovery Domains Sets"),
+ "contents" :
+ `VBox(
+ `HBox(
+ `HStretch(),
+ `VBox(
+ "dds_display"
+ ),
+ `HStretch()
+ ),
+ `VStretch(),
+ `HBox(
+ `HStretch(),
+ `VBox(
+ "dds_display_members"
+ ),
+ `HStretch()
+ )
+ ),
+ "widget_names" : [ "dds_display", "dds_display_members" ]
+ ]
+
+ ];
+
+
+map > widgets = $[
+ "auto_start_up" : CWMServiceStart::CreateAutoStartWidget ($[
+ "get_service_auto_start" : IsnsServer::GetStartService,
+ "set_service_auto_start" : IsnsServer::SetStartService,
+ "start_auto_button" : _("When &Booting"),
+ "start_manual_button" : _("&Manually"),
+ "help" : sformat (CWMServiceStart::AutoStartHelpTemplate (),
+ _("When Booting"),
+ _("Manually")
+ ),
+ ]),
+
+ "ipaddress" : $[
+ "widget" : `custom,
+ "custom_widget" :
+ `VBox(
+ `HBox(
+ `TextEntry(`id(`isnsaddress),_("Address of iSNS Server"))
+ )
+ ),
+ "init" : initAddress,
+ "handle" : handleAddress,
+ "help" : HELPS["ipaddress"]:""
+ ],
+
+
+ "firewall" : CWMFirewallInterfaces::CreateOpenFirewallWidget ($[
+ "services" : [ "isns-server" ],
+ "display_details" : true,
+ ]),
+
+ "iscsi_nodes_display" : $[
+ "widget" : `custom,
+ "custom_widget" :
+ `VBox(
+ `Heading (_("iSCSI Nodes")),
+ `Table(`id(`members_table),
+ `header(_("iSCSI Node Name"),_("Node Type")),
+
+ []),
+ `Left(
+ `HBox(
+ `PushButton(`id(`delete), _("Delete"))
+ )
+ )
+ ),
+ "init" : initISCSI,
+ "handle" : handleISCSI,
+ "help" : HELPS["iscsi_display"]:""
+ ],
+
+ "dd_display" : $[
+ "widget" : `custom,
+ "custom_widget" :
+ `VBox(
+ `Heading (_("Discovery Domains")),
+ `HBox(
+ `VSpacing(5),
+ `Table(`id(`dd_table),`opt(`notify,`immediate),
+ `header(_("Discovery Domain Name")),
+ [])
+ ),
+ `Left(
+ `HBox(
+ `PushButton(`id(`add), _("Create Discovery Domain")),
+ `PushButton(`id(`delete), _("Delete")),
+ `HSpacing(25)
+ )
+ )
+ ),
+ "init" : initDiscoveryDomain,
+ "handle" : handleDiscoveryDomain,
+ "help" : HELPS["dd_display"]:""
+ ],
+
+ "dd_display_members" : $[
+ "widget" : `custom,
+ "custom_widget" :
+ `VBox(
+ `Heading (_("Discovery Domain Members")),
+ `HBox(
+ `VSpacing(10),
+ `Table(`id(`dd_members_table),
+ `header(_("iSCSI Node Name"),_("Node Type")),
+ [])
+ ),
+ `Left(
+ `HBox(
+ `PushButton(`id(`addiscsinode), _("Add Existing iSCSI Node")),
+ `PushButton(`id(`createmember), _("Create iSCSI Node Member")),
+ `PushButton(`id(`remove), _("Remove"))
+ )
+ )
+ ),
+ "init" : initDDISCSIMembers,
+ "handle" : handleDiscoveryDomainMembers,
+ "help" : HELPS["dd_display_members"]:""
+ ],
+
+ "dds_display" : $[
+ "widget" : `custom,
+ "custom_widget" :
+ `VBox(
+ `Heading (_("Discovery Domains Sets")),
+ `HBox(
+ `VSpacing(5),
+ `Table(`id(`dds_table),`opt(`notify,`immediate),
+ `header(_("Discovery Domain Set Name")),
+ [])
+ ),
+ `Left(
+ `HBox(
+ `PushButton(`id(`add), _("Create Discovery Domain Set")),
+ `PushButton(`id(`delete), _("Delete")),
+ `HSpacing(25)
+ )
+ )
+ ),
+ "init" : initDiscoveryDomainSet,
+ "handle" : handleDiscoveryDomainSet,
+ "help" : HELPS["dds_display"]:""
+ ],
+
+ "dds_display_members" : $[
+ "widget" : `custom,
+ "custom_widget" :
+ `VBox(
+ `Heading (_("Discovery Domain Set Members")),
+ `HBox(
+ `VSpacing(10),
+ `Table(`id(`dds_members_table),
+ `header(_("Discovery Domain Name")),
+ [])
+ ),
+ `Left(
+ `HBox(
+ `PushButton(`id(`adddd), _("Add Discovery Domain")),
+ `PushButton(`id(`remove), _("Remove"))
+ )
+ )
+ ),
+ "init" : initDiscoveryDomainSetMembers,
+ "handle" : handleDiscoveryDomainSetMembers,
+ "help" : HELPS["dds_display_members"]:""
+ ]
+
+ ];
+
+
+/**
+ * Summary dialog
+ * @return dialog result
+ */
+// Main dialog - tabbed
+any SummaryDialog() {
+ string caption = _("iSNS Service");
+ //curr_target = "";
+ map widget_descr = $[
+ "tab": CWMTab::CreateWidget($[
+ "tab_order": [ "service","members", "discoverydomains", "discoverydomainsets" ],
+ "tabs": tabs_descr,
+ "widget_descr": widgets,
+ "initial_tab" : current_tab,
+ "tab_help" : _("<h1>iSNS Service</h1>"),
+ ]),
+ ];
+ term contents = `VBox( "tab" );
+ list