major source structure and module name changes
This commit is contained in:
5
yast2-CASA/src/.dep
Normal file
5
yast2-CASA/src/.dep
Normal file
@@ -0,0 +1,5 @@
|
||||
NovellCasa.ybc: \
|
||||
/usr/share/YaST2/modules/Progress.ybc \
|
||||
/usr/share/YaST2/modules/Report.ybc \
|
||||
/usr/share/YaST2/modules/Summary.ybc
|
||||
|
||||
23
yast2-CASA/src/CASA.desktop
Normal file
23
yast2-CASA/src/CASA.desktop
Normal file
@@ -0,0 +1,23 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Categories=Qt;X-SuSE-YaST;X-SuSE-YaST-Security;
|
||||
|
||||
X-KDE-ModuleType=Library
|
||||
X-KDE-RootOnly=true
|
||||
X-KDE-HasReadOnlyMode=true
|
||||
X-KDE-Library=yast2
|
||||
X-SuSE-YaST-Call=CASA
|
||||
|
||||
X-SuSE-YaST-Group=Security
|
||||
X-SuSE-YaST-Argument=
|
||||
X-SuSE-YaST-RootOnly=true
|
||||
X-SuSE-YaST-AutoInst=
|
||||
X-SuSE-YaST-Geometry=
|
||||
X-SuSE-YaST-SortKey=
|
||||
X-SuSE-YaST-AutoInstResource=CASA
|
||||
|
||||
Icon=CASA
|
||||
Exec=/sbin/yast2 CASA
|
||||
|
||||
Name=CASA
|
||||
GenericName=Configure CASA
|
||||
92
yast2-CASA/src/CASA.ycp
Normal file
92
yast2-CASA/src/CASA.ycp
Normal file
@@ -0,0 +1,92 @@
|
||||
/**
|
||||
* File: clients/CASA.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Main file
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
* Main file for CASA configuration. Uses all other files.
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
/***
|
||||
* <h3>Configuration of CASA</h3>
|
||||
*/
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
/* The main () */
|
||||
y2milestone ("----------------------------------------");
|
||||
y2milestone ("CASA module started");
|
||||
|
||||
import "Progress";
|
||||
import "Report";
|
||||
import "Summary";
|
||||
|
||||
import "CommandLine";
|
||||
include "CASA/wizards.ycp";
|
||||
|
||||
map cmdline_description = $[
|
||||
"id" : "CASA",
|
||||
/* Command line help text for the XCASA module */
|
||||
"help" : _("Configuration of CASA"),
|
||||
"guihandler" : NovellCasaSequence,
|
||||
"initialize" : NovellCasa::Read,
|
||||
"finish" : NovellCasa::Write,
|
||||
"actions" : $[
|
||||
// FIXME TODO: fill the functionality description here
|
||||
],
|
||||
"options" : $[
|
||||
// FIXME TODO: fill the option descriptions here
|
||||
],
|
||||
"mapping" : $[
|
||||
// FIXME TODO: fill the mappings of actions and options here
|
||||
]
|
||||
];
|
||||
|
||||
/* is this proposal or not? */
|
||||
boolean propose = false;
|
||||
list args = WFM::Args();
|
||||
if(size(args) > 0) {
|
||||
if(is(WFM::Args(0), path) && WFM::Args(0) == .propose) {
|
||||
y2milestone("Using PROPOSE mode");
|
||||
propose = true;
|
||||
}
|
||||
}
|
||||
|
||||
/* main ui function */
|
||||
any ret = nil;
|
||||
|
||||
if(propose) ret = NovellCasaAutoSequence();
|
||||
else ret = CommandLine::Run(cmdline_description);
|
||||
y2debug("ret=%1", ret);
|
||||
|
||||
/* Finish */
|
||||
y2milestone("CASA module finished");
|
||||
y2milestone("----------------------------------------");
|
||||
|
||||
return ret;
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
117
yast2-CASA/src/CASA_auto.ycp
Normal file
117
yast2-CASA/src/CASA_auto.ycp
Normal file
@@ -0,0 +1,117 @@
|
||||
/**
|
||||
* File: clients/CASA_auto.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Client for autoinstallation
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
* This is a client for autoinstallation. It takes its arguments,
|
||||
* goes through the configuration and return the setting.
|
||||
* Does not do any changes to the configuration.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param function to execute
|
||||
* @param map/list of CASA settings
|
||||
* @return map edited settings, Summary or boolean on success depending on called function
|
||||
* @example map mm = $[ "FAIL_DELAY" : "77" ];
|
||||
* @example map ret = WFM::CallFunction ("CASA_auto", [ "Summary", mm ]);
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
y2milestone("----------------------------------------");
|
||||
y2milestone("CASA auto started");
|
||||
|
||||
import "NovellCasa";
|
||||
include "CASA/wizards.ycp";
|
||||
|
||||
any ret = nil;
|
||||
string func = "";
|
||||
map param = $[];
|
||||
|
||||
/* Check arguments */
|
||||
if(size(WFM::Args()) > 0 && is(WFM::Args(0), string)) {
|
||||
func = (string)WFM::Args(0);
|
||||
if(size(WFM::Args()) > 1 && is(WFM::Args(1), map))
|
||||
param = (map) WFM::Args(1);
|
||||
}
|
||||
y2debug("func=%1", func);
|
||||
y2debug("param=%1", param);
|
||||
|
||||
/* Create a summary*/
|
||||
if(func == "Summary") {
|
||||
ret = select(NovellCasa::Summary(), 0, "");
|
||||
}
|
||||
/* Reset configuration */
|
||||
else if (func == "Reset") {
|
||||
NovellCasa::Import($[]);
|
||||
ret = $[];
|
||||
}
|
||||
/* Change configuration (run AutoSequence) */
|
||||
else if (func == "Change") {
|
||||
ret = NovellCasaAutoSequence();
|
||||
}
|
||||
/* Import configuration */
|
||||
else if (func == "Import") {
|
||||
ret = NovellCasa::Import(param);
|
||||
}
|
||||
/* Return actual state */
|
||||
else if (func == "Export") {
|
||||
ret = NovellCasa::Export();
|
||||
}
|
||||
/* Return needed packages */
|
||||
else if (func == "Packages") {
|
||||
ret = NovellCasa::AutoPackages();
|
||||
}
|
||||
/* Read current state */
|
||||
else if (func == "Read") {
|
||||
import "Progress";
|
||||
Progress::off();
|
||||
ret = NovellCasa::Read();
|
||||
Progress::on();
|
||||
}
|
||||
/* Write givven settings */
|
||||
else if (func == "Write") {
|
||||
import "Progress";
|
||||
Progress::off();
|
||||
// NovellCasa::write_only = true;
|
||||
ret = NovellCasa::Write();
|
||||
Progress::on();
|
||||
}
|
||||
/* Unknown function */
|
||||
else {
|
||||
y2error("Unknown function: %1", func);
|
||||
ret = false;
|
||||
}
|
||||
|
||||
y2debug("ret=%1", ret);
|
||||
y2milestone("CASA auto finished");
|
||||
y2milestone("----------------------------------------");
|
||||
|
||||
return ret;
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
107
yast2-CASA/src/CASA_proposal.ycp
Normal file
107
yast2-CASA/src/CASA_proposal.ycp
Normal file
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* File: clients/CASA_proposal.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Proposal function dispatcher.
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
* Proposal function dispatcher for CASA configuration.
|
||||
* See source/installation/proposal/proposal-API.txt
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
import "NovellCasa";
|
||||
import "Progress";
|
||||
|
||||
/* The main () */
|
||||
y2milestone("----------------------------------------");
|
||||
y2milestone("CASA proposal started");
|
||||
|
||||
string func = (string) WFM::Args(0);
|
||||
map param = (map) WFM::Args(1);
|
||||
map ret = $[];
|
||||
|
||||
/* create a textual proposal */
|
||||
if(func == "MakeProposal") {
|
||||
string proposal = "";
|
||||
string warning = nil;
|
||||
symbol warning_level = nil;
|
||||
boolean force_reset = param["force_reset"]:false;
|
||||
|
||||
// if(force_reset || !NovellCasa::proposal_valid) {
|
||||
// NovellCasa::proposal_valid = true;
|
||||
// Progress::off();
|
||||
// NovellCasa::Read();
|
||||
// }
|
||||
list sum = NovellCasa::Summary();
|
||||
// proposal = sum[0]:"";
|
||||
Progress::on();
|
||||
|
||||
ret = $[
|
||||
// "preformatted_proposal" : proposal,
|
||||
// "warning_level" : warning_level,
|
||||
// "warning" : warning,
|
||||
];
|
||||
}
|
||||
/* run the module */
|
||||
else if(func == "AskUser") {
|
||||
map stored = NovellCasa::Export();
|
||||
symbol seq = (symbol) WFM::CallFunction("CASA", [.propose]);
|
||||
if(seq != `next) NovellCasa::Import(stored);
|
||||
|
||||
y2debug("stored=%1",stored);
|
||||
y2debug("seq=%1",seq);
|
||||
ret = $[
|
||||
"workflow_sequence" : seq
|
||||
];
|
||||
}
|
||||
/* create titles */
|
||||
else if(func == "Description") {
|
||||
ret = $[
|
||||
/* Rich text title for CASA in proposals */
|
||||
"rich_text_title" : _("CASA"),
|
||||
/* Menu title for CASA in proposals */
|
||||
"menu_title" : _("&CASA"),
|
||||
"id" : "CASA",
|
||||
];
|
||||
}
|
||||
/* write the proposal */
|
||||
else if(func == "Write") {
|
||||
NovellCasa::Write();
|
||||
}
|
||||
/* unknown function */
|
||||
else {
|
||||
y2error("unknown function: %1", func);
|
||||
}
|
||||
|
||||
/* Finish */
|
||||
y2debug("ret=%1",ret);
|
||||
y2milestone("CASA proposal finished");
|
||||
y2milestone("----------------------------------------");
|
||||
return ret;
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
528
yast2-CASA/src/Makefile
Normal file
528
yast2-CASA/src/Makefile
Normal file
@@ -0,0 +1,528 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# src/Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
|
||||
# Makefile.am for CASA/src
|
||||
|
||||
# Makefile.am.common -*- Makefile -*-
|
||||
# Generated file, do not edit!
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
|
||||
pkgdatadir = $(datadir)/yast2-CASA
|
||||
pkglibdir = $(libdir)/yast2-CASA
|
||||
pkgincludedir = $(includedir)/yast2-CASA
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = /usr/bin/install -c -p
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = x86_64-suse-linux
|
||||
host_triplet = x86_64-suse-linux
|
||||
target_triplet = x86_64-suse-linux
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/Makefile.am.common
|
||||
subdir = src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(clientdir)" "$(DESTDIR)$(desktopdir)" \
|
||||
"$(DESTDIR)$(iconsdir)" "$(DESTDIR)$(moduledir)" \
|
||||
"$(DESTDIR)$(modulebindir)" "$(DESTDIR)$(themedir)" \
|
||||
"$(DESTDIR)$(yncludedir)"
|
||||
clientDATA_INSTALL = $(INSTALL_DATA)
|
||||
desktopDATA_INSTALL = $(INSTALL_DATA)
|
||||
iconsDATA_INSTALL = $(INSTALL_DATA)
|
||||
moduleDATA_INSTALL = $(INSTALL_DATA)
|
||||
modulebinDATA_INSTALL = $(INSTALL_DATA)
|
||||
themeDATA_INSTALL = $(INSTALL_DATA)
|
||||
yncludeDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(client_DATA) $(desktop_DATA) $(icons_DATA) $(module_DATA) \
|
||||
$(modulebin_DATA) $(theme_DATA) $(ynclude_DATA)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = ${SHELL} /home/cameron/dev/subversion/trunk/casa-yast/missing --run aclocal-1.9
|
||||
AMTAR = ${SHELL} /home/cameron/dev/subversion/trunk/casa-yast/missing --run tar
|
||||
AUTOCONF = ${SHELL} /home/cameron/dev/subversion/trunk/casa-yast/missing --run autoconf
|
||||
AUTOHEADER = ${SHELL} /home/cameron/dev/subversion/trunk/casa-yast/missing --run autoheader
|
||||
AUTOMAKE = ${SHELL} /home/cameron/dev/subversion/trunk/casa-yast/missing --run automake-1.9
|
||||
AWK = gawk
|
||||
CREATE_PKGCONFIG_FALSE =
|
||||
CREATE_PKGCONFIG_NOARCH_FALSE =
|
||||
CREATE_PKGCONFIG_NOARCH_TRUE = #
|
||||
CREATE_PKGCONFIG_TRUE = #
|
||||
CYGPATH_W = echo
|
||||
DEFS = -DPACKAGE_NAME=\"yast2-CASA\" -DPACKAGE_TARNAME=\"yast2-CASA\" -DPACKAGE_VERSION=\"1.6.0\" -DPACKAGE_STRING=\"yast2-CASA\ 1.6.0\" -DPACKAGE_BUGREPORT=\"http://bugs.opensuse.org/\" -DPACKAGE=\"yast2-CASA\" -DVERSION=\"1.6.0\"
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||
LIBOBJS =
|
||||
LIBS =
|
||||
LN_S = ln -s
|
||||
LTLIBOBJS =
|
||||
MAINTAINER = casa <casa@novell.com>
|
||||
MAKEINFO = ${SHELL} /home/cameron/dev/subversion/trunk/casa-yast/missing --run makeinfo
|
||||
PACKAGE = yast2-CASA
|
||||
PACKAGE_BUGREPORT = http://bugs.opensuse.org/
|
||||
PACKAGE_NAME = yast2-CASA
|
||||
PACKAGE_STRING = yast2-CASA 1.6.0
|
||||
PACKAGE_TARNAME = yast2-CASA
|
||||
PACKAGE_VERSION = 1.6.0
|
||||
PATH_SEPARATOR = :
|
||||
PKG_CONFIG_PATH = /usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib64/pkgconfig:/opt/gnome/lib64/pkgconfig:/opt/gnome/lib64/pkgconfig:/opt/gnome/share/pkgconfig
|
||||
RPMNAME = yast2-CASA
|
||||
SET_MAKE =
|
||||
SHELL = /bin/sh
|
||||
STRIP =
|
||||
STYLESHEET_CSS = /usr/share/YaST2/data/docbook/css/yast2docs.css
|
||||
STYLESHEET_HTML = /usr/share/YaST2/data/docbook/stylesheets/customize-html.xsl
|
||||
STYLESHEET_PDF = /usr/share/YaST2/data/docbook/stylesheets/customize-fo.xsl
|
||||
STYLESHEET_YCPDOC = /usr/share/YaST2/data/docbook/stylesheets/ycpdoc.xsl
|
||||
STYLESHEET_YDOC = /usr/share/YaST2/data/docbook/stylesheets/ydoc.xsl
|
||||
VERSION = 1.6.0
|
||||
XGETTEXT = /usr/bin/xgettext
|
||||
YCPC = /usr/bin/ycpc
|
||||
YCPDOC = /usr/lib/YaST2/bin/ycpdoc
|
||||
YCPMAKEDEP = /usr/lib/YaST2/bin/ycpmakedep
|
||||
ac_ct_STRIP =
|
||||
agentdir = ${prefix}/lib/YaST2/servers_non_y2
|
||||
am__leading_dot = .
|
||||
am__tar = tar --format=ustar -chf - "$$tardir"
|
||||
am__untar = tar -xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build = x86_64-suse-linux
|
||||
build_alias =
|
||||
build_cpu = x86_64
|
||||
build_os = linux
|
||||
build_vendor = suse
|
||||
clientdir = ${prefix}/share/YaST2/clients
|
||||
datadir = ${prefix}/share
|
||||
desktopdir = ${prefix}/share/applications/YaST2
|
||||
docdir = ${prefix}/share/doc/packages/yast2-CASA
|
||||
exec_prefix = ${prefix}
|
||||
execcompdir = ${prefix}/lib/YaST2
|
||||
fillupdir = /var/adm/fillup-templates
|
||||
host = x86_64-suse-linux
|
||||
host_alias =
|
||||
host_cpu = x86_64
|
||||
host_os = linux
|
||||
host_vendor = suse
|
||||
imagedir = ${prefix}/share/YaST2/images
|
||||
includedir = ${prefix}/include/YaST2
|
||||
infodir = ${prefix}/info
|
||||
install_sh = /home/cameron/dev/subversion/trunk/casa-yast/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localedir = ${prefix}/share/YaST2/locale
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${prefix}/share/man
|
||||
mkdir_p = mkdir -p --
|
||||
moduledir = ${prefix}/share/YaST2/modules
|
||||
oldincludedir = /usr/include
|
||||
pkgconfigdatadir = ${datadir}/pkgconfig
|
||||
pkgconfigdir = ${libdir}/pkgconfig
|
||||
plugindir = ${libdir}/YaST2/plugin
|
||||
potdir = ${docdir}/pot
|
||||
prefix = /usr
|
||||
program_transform_name = s,x,x,
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
schemadir = ${prefix}/share/YaST2/schema
|
||||
scrconfdir = ${prefix}/share/YaST2/scrconf
|
||||
sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target = x86_64-suse-linux
|
||||
target_alias =
|
||||
target_cpu = x86_64
|
||||
target_os = linux
|
||||
target_vendor = suse
|
||||
themedir = /usr/share/pixmaps
|
||||
yast2dir = ${prefix}/share/YaST2
|
||||
ybindir = ${prefix}/lib/YaST2/bin
|
||||
ydatadir = ${prefix}/share/YaST2/data
|
||||
yncludedir = ${prefix}/share/YaST2/include/CASA
|
||||
ystartupdir = ${prefix}/lib/YaST2
|
||||
iconsdir = /usr/share/applications
|
||||
client_DATA = \
|
||||
CASA.ycp \
|
||||
CASA_auto.ycp \
|
||||
CASA_proposal.ycp
|
||||
|
||||
ynclude_DATA = \
|
||||
helps.ycp \
|
||||
wizards.ycp \
|
||||
dialogs.ycp \
|
||||
complex.ycp
|
||||
|
||||
desktop_DATA = \
|
||||
CASA.desktop
|
||||
|
||||
module_DATA = \
|
||||
NovellCasa.ycp
|
||||
|
||||
icons_DATA = \
|
||||
icons/install_casa_yast_icons
|
||||
|
||||
theme_DATA = \
|
||||
icons/CASA_22.png \
|
||||
icons/CASA_32.png \
|
||||
icons/CASA_48.png
|
||||
|
||||
EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA) $(icons_DATA) $(theme_DATA)
|
||||
modulebin_DATA = $(patsubst %.ycp,%.ybc,$(module_DATA))
|
||||
modulebindir = $(moduledir)
|
||||
ybcfiles = $(filter %.ybc,$(modulebin_DATA))
|
||||
|
||||
# files to clean
|
||||
CLEANFILES = ${ybcfiles}
|
||||
DISTCLEANFILES = .dep
|
||||
|
||||
# Needs to be outside "." because of cases
|
||||
# where ycpchook contains a symlink to "."
|
||||
# Otherwise "." keeps being newer than .dep and we loop.
|
||||
NEWDEP = ${top_builddir}/.dep.new
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
uninstall-info-am:
|
||||
install-clientDATA: $(client_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(clientdir)" || $(mkdir_p) "$(DESTDIR)$(clientdir)"
|
||||
@list='$(client_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(clientDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(clientdir)/$$f'"; \
|
||||
$(clientDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(clientdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-clientDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(client_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(clientdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(clientdir)/$$f"; \
|
||||
done
|
||||
install-desktopDATA: $(desktop_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(desktopdir)" || $(mkdir_p) "$(DESTDIR)$(desktopdir)"
|
||||
@list='$(desktop_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \
|
||||
$(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-desktopDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(desktop_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(desktopdir)/$$f"; \
|
||||
done
|
||||
install-iconsDATA: $(icons_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(iconsdir)" || $(mkdir_p) "$(DESTDIR)$(iconsdir)"
|
||||
@list='$(icons_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(iconsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(iconsdir)/$$f'"; \
|
||||
$(iconsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(iconsdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-iconsDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(icons_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(iconsdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(iconsdir)/$$f"; \
|
||||
done
|
||||
install-moduleDATA: $(module_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(moduledir)" || $(mkdir_p) "$(DESTDIR)$(moduledir)"
|
||||
@list='$(module_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(moduleDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(moduledir)/$$f'"; \
|
||||
$(moduleDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(moduledir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-moduleDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(module_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(moduledir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(moduledir)/$$f"; \
|
||||
done
|
||||
install-modulebinDATA: $(modulebin_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(modulebindir)" || $(mkdir_p) "$(DESTDIR)$(modulebindir)"
|
||||
@list='$(modulebin_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(modulebinDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(modulebindir)/$$f'"; \
|
||||
$(modulebinDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(modulebindir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-modulebinDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(modulebin_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(modulebindir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(modulebindir)/$$f"; \
|
||||
done
|
||||
install-themeDATA: $(theme_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(themedir)" || $(mkdir_p) "$(DESTDIR)$(themedir)"
|
||||
@list='$(theme_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(themeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(themedir)/$$f'"; \
|
||||
$(themeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(themedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-themeDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(theme_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(themedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(themedir)/$$f"; \
|
||||
done
|
||||
install-yncludeDATA: $(ynclude_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(yncludedir)" || $(mkdir_p) "$(DESTDIR)$(yncludedir)"
|
||||
@list='$(ynclude_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(yncludeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(yncludedir)/$$f'"; \
|
||||
$(yncludeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(yncludedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-yncludeDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(ynclude_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(yncludedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(yncludedir)/$$f"; \
|
||||
done
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
ctags: CTAGS
|
||||
CTAGS:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(mkdir_p) $(distdir)/.. $(distdir)/icons
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(clientdir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(iconsdir)" "$(DESTDIR)$(moduledir)" "$(DESTDIR)$(modulebindir)" "$(DESTDIR)$(themedir)" "$(DESTDIR)$(yncludedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-clientDATA install-desktopDATA \
|
||||
install-iconsDATA install-moduleDATA install-modulebinDATA \
|
||||
install-themeDATA install-yncludeDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-clientDATA uninstall-desktopDATA \
|
||||
uninstall-iconsDATA uninstall-info-am uninstall-moduleDATA \
|
||||
uninstall-modulebinDATA uninstall-themeDATA \
|
||||
uninstall-yncludeDATA
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic dist-hook \
|
||||
distclean distclean-generic distdir dvi dvi-am html html-am \
|
||||
info info-am install install-am install-clientDATA \
|
||||
install-data install-data-am install-desktopDATA install-exec \
|
||||
install-exec-am install-iconsDATA install-info install-info-am \
|
||||
install-man install-moduleDATA install-modulebinDATA \
|
||||
install-strip install-themeDATA install-yncludeDATA \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||
pdf-am ps ps-am uninstall uninstall-am uninstall-clientDATA \
|
||||
uninstall-desktopDATA uninstall-iconsDATA uninstall-info-am \
|
||||
uninstall-moduleDATA uninstall-modulebinDATA \
|
||||
uninstall-themeDATA uninstall-yncludeDATA
|
||||
|
||||
|
||||
# suffix mapping: info '(make)Static Usage'
|
||||
# apply only to our modules, not external ones
|
||||
${ybcfiles}: %.ybc: %.ycp $(ycpchook)
|
||||
Y2DIR=$(YCPC_Y2DIR) LD_LIBRARY_PATH=$(YCPC_LD_LIBRARY_PATH) ${YCPC} -c -M. -I. -q $(YCPCFLAGS) $<
|
||||
# generate dependencies
|
||||
# two steps not to lose the file if the command fails
|
||||
# hook: create the links before we look for files
|
||||
.dep: $(wildcard *.ycp) ${ycpchook}
|
||||
${YCPMAKEDEP} --prefix=${prefix} ${YCPCFLAGS} > ${NEWDEP}
|
||||
cat ${NEWDEP} > .dep
|
||||
rm ${NEWDEP}
|
||||
|
||||
dist-hook: check-syntax
|
||||
|
||||
check-syntax: $(client_DATA) $(ycpchook)
|
||||
if test "$(client_DATA)"; then $(bindir)/ycpc -qE -M. -I. $(YCPCFLAGS) $(filter %.ycp,$^) || exit 1; fi
|
||||
|
||||
-include .dep
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
35
yast2-CASA/src/Makefile.am
Normal file
35
yast2-CASA/src/Makefile.am
Normal file
@@ -0,0 +1,35 @@
|
||||
# Makefile.am for CASA/src
|
||||
|
||||
yncludedir = @yncludedir@/CASA
|
||||
iconsdir = /usr/share/applications
|
||||
themedir = /usr/share/pixmaps
|
||||
|
||||
|
||||
client_DATA = \
|
||||
CASA.ycp \
|
||||
CASA_auto.ycp \
|
||||
CASA_proposal.ycp
|
||||
|
||||
ynclude_DATA = \
|
||||
helps.ycp \
|
||||
wizards.ycp \
|
||||
dialogs.ycp \
|
||||
complex.ycp
|
||||
|
||||
desktop_DATA = \
|
||||
CASA.desktop
|
||||
|
||||
module_DATA = \
|
||||
NovellCasa.ycp
|
||||
|
||||
icons_DATA = \
|
||||
icons/install_casa_yast_icons
|
||||
|
||||
theme_DATA = \
|
||||
icons/CASA_22.png \
|
||||
icons/CASA_32.png \
|
||||
icons/CASA_48.png
|
||||
|
||||
EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA) $(icons_DATA) $(theme_DATA)
|
||||
|
||||
include $(top_srcdir)/Makefile.am.common
|
||||
528
yast2-CASA/src/Makefile.in
Normal file
528
yast2-CASA/src/Makefile.in
Normal file
@@ -0,0 +1,528 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# Makefile.am for CASA/src
|
||||
|
||||
# Makefile.am.common -*- Makefile -*-
|
||||
# Generated file, do not edit!
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/Makefile.am.common
|
||||
subdir = src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(clientdir)" "$(DESTDIR)$(desktopdir)" \
|
||||
"$(DESTDIR)$(iconsdir)" "$(DESTDIR)$(moduledir)" \
|
||||
"$(DESTDIR)$(modulebindir)" "$(DESTDIR)$(themedir)" \
|
||||
"$(DESTDIR)$(yncludedir)"
|
||||
clientDATA_INSTALL = $(INSTALL_DATA)
|
||||
desktopDATA_INSTALL = $(INSTALL_DATA)
|
||||
iconsDATA_INSTALL = $(INSTALL_DATA)
|
||||
moduleDATA_INSTALL = $(INSTALL_DATA)
|
||||
modulebinDATA_INSTALL = $(INSTALL_DATA)
|
||||
themeDATA_INSTALL = $(INSTALL_DATA)
|
||||
yncludeDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(client_DATA) $(desktop_DATA) $(icons_DATA) $(module_DATA) \
|
||||
$(modulebin_DATA) $(theme_DATA) $(ynclude_DATA)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CREATE_PKGCONFIG_FALSE = @CREATE_PKGCONFIG_FALSE@
|
||||
CREATE_PKGCONFIG_NOARCH_FALSE = @CREATE_PKGCONFIG_NOARCH_FALSE@
|
||||
CREATE_PKGCONFIG_NOARCH_TRUE = @CREATE_PKGCONFIG_NOARCH_TRUE@
|
||||
CREATE_PKGCONFIG_TRUE = @CREATE_PKGCONFIG_TRUE@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINTAINER = @MAINTAINER@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
RPMNAME = @RPMNAME@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
STYLESHEET_CSS = @STYLESHEET_CSS@
|
||||
STYLESHEET_HTML = @STYLESHEET_HTML@
|
||||
STYLESHEET_PDF = @STYLESHEET_PDF@
|
||||
STYLESHEET_YCPDOC = @STYLESHEET_YCPDOC@
|
||||
STYLESHEET_YDOC = @STYLESHEET_YDOC@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
YCPC = @YCPC@
|
||||
YCPDOC = @YCPDOC@
|
||||
YCPMAKEDEP = @YCPMAKEDEP@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
agentdir = @agentdir@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
clientdir = @clientdir@
|
||||
datadir = @datadir@
|
||||
desktopdir = @desktopdir@
|
||||
docdir = @docdir@
|
||||
exec_prefix = @exec_prefix@
|
||||
execcompdir = @execcompdir@
|
||||
fillupdir = @fillupdir@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
imagedir = @imagedir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
moduledir = @moduledir@
|
||||
oldincludedir = @oldincludedir@
|
||||
pkgconfigdatadir = @pkgconfigdatadir@
|
||||
pkgconfigdir = @pkgconfigdir@
|
||||
plugindir = @plugindir@
|
||||
potdir = @potdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
sbindir = @sbindir@
|
||||
schemadir = @schemadir@
|
||||
scrconfdir = @scrconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
themedir = /usr/share/pixmaps
|
||||
yast2dir = @yast2dir@
|
||||
ybindir = @ybindir@
|
||||
ydatadir = @ydatadir@
|
||||
yncludedir = @yncludedir@/CASA
|
||||
ystartupdir = @ystartupdir@
|
||||
iconsdir = /usr/share/applications
|
||||
client_DATA = \
|
||||
CASA.ycp \
|
||||
CASA_auto.ycp \
|
||||
CASA_proposal.ycp
|
||||
|
||||
ynclude_DATA = \
|
||||
helps.ycp \
|
||||
wizards.ycp \
|
||||
dialogs.ycp \
|
||||
complex.ycp
|
||||
|
||||
desktop_DATA = \
|
||||
CASA.desktop
|
||||
|
||||
module_DATA = \
|
||||
NovellCasa.ycp
|
||||
|
||||
icons_DATA = \
|
||||
icons/install_casa_yast_icons
|
||||
|
||||
theme_DATA = \
|
||||
icons/CASA_22.png \
|
||||
icons/CASA_32.png \
|
||||
icons/CASA_48.png
|
||||
|
||||
EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA) $(icons_DATA) $(theme_DATA)
|
||||
modulebin_DATA = $(patsubst %.ycp,%.ybc,$(module_DATA))
|
||||
modulebindir = $(moduledir)
|
||||
ybcfiles = $(filter %.ybc,$(modulebin_DATA))
|
||||
|
||||
# files to clean
|
||||
CLEANFILES = ${ybcfiles}
|
||||
DISTCLEANFILES = .dep
|
||||
|
||||
# Needs to be outside "." because of cases
|
||||
# where ycpchook contains a symlink to "."
|
||||
# Otherwise "." keeps being newer than .dep and we loop.
|
||||
NEWDEP = ${top_builddir}/.dep.new
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
uninstall-info-am:
|
||||
install-clientDATA: $(client_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(clientdir)" || $(mkdir_p) "$(DESTDIR)$(clientdir)"
|
||||
@list='$(client_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(clientDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(clientdir)/$$f'"; \
|
||||
$(clientDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(clientdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-clientDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(client_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(clientdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(clientdir)/$$f"; \
|
||||
done
|
||||
install-desktopDATA: $(desktop_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(desktopdir)" || $(mkdir_p) "$(DESTDIR)$(desktopdir)"
|
||||
@list='$(desktop_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \
|
||||
$(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-desktopDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(desktop_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(desktopdir)/$$f"; \
|
||||
done
|
||||
install-iconsDATA: $(icons_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(iconsdir)" || $(mkdir_p) "$(DESTDIR)$(iconsdir)"
|
||||
@list='$(icons_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(iconsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(iconsdir)/$$f'"; \
|
||||
$(iconsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(iconsdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-iconsDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(icons_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(iconsdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(iconsdir)/$$f"; \
|
||||
done
|
||||
install-moduleDATA: $(module_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(moduledir)" || $(mkdir_p) "$(DESTDIR)$(moduledir)"
|
||||
@list='$(module_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(moduleDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(moduledir)/$$f'"; \
|
||||
$(moduleDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(moduledir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-moduleDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(module_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(moduledir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(moduledir)/$$f"; \
|
||||
done
|
||||
install-modulebinDATA: $(modulebin_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(modulebindir)" || $(mkdir_p) "$(DESTDIR)$(modulebindir)"
|
||||
@list='$(modulebin_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(modulebinDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(modulebindir)/$$f'"; \
|
||||
$(modulebinDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(modulebindir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-modulebinDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(modulebin_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(modulebindir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(modulebindir)/$$f"; \
|
||||
done
|
||||
install-themeDATA: $(theme_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(themedir)" || $(mkdir_p) "$(DESTDIR)$(themedir)"
|
||||
@list='$(theme_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(themeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(themedir)/$$f'"; \
|
||||
$(themeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(themedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-themeDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(theme_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(themedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(themedir)/$$f"; \
|
||||
done
|
||||
install-yncludeDATA: $(ynclude_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(yncludedir)" || $(mkdir_p) "$(DESTDIR)$(yncludedir)"
|
||||
@list='$(ynclude_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(yncludeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(yncludedir)/$$f'"; \
|
||||
$(yncludeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(yncludedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-yncludeDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(ynclude_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(yncludedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(yncludedir)/$$f"; \
|
||||
done
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
ctags: CTAGS
|
||||
CTAGS:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(mkdir_p) $(distdir)/.. $(distdir)/icons
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(clientdir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(iconsdir)" "$(DESTDIR)$(moduledir)" "$(DESTDIR)$(modulebindir)" "$(DESTDIR)$(themedir)" "$(DESTDIR)$(yncludedir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-clientDATA install-desktopDATA \
|
||||
install-iconsDATA install-moduleDATA install-modulebinDATA \
|
||||
install-themeDATA install-yncludeDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-clientDATA uninstall-desktopDATA \
|
||||
uninstall-iconsDATA uninstall-info-am uninstall-moduleDATA \
|
||||
uninstall-modulebinDATA uninstall-themeDATA \
|
||||
uninstall-yncludeDATA
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic dist-hook \
|
||||
distclean distclean-generic distdir dvi dvi-am html html-am \
|
||||
info info-am install install-am install-clientDATA \
|
||||
install-data install-data-am install-desktopDATA install-exec \
|
||||
install-exec-am install-iconsDATA install-info install-info-am \
|
||||
install-man install-moduleDATA install-modulebinDATA \
|
||||
install-strip install-themeDATA install-yncludeDATA \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||
pdf-am ps ps-am uninstall uninstall-am uninstall-clientDATA \
|
||||
uninstall-desktopDATA uninstall-iconsDATA uninstall-info-am \
|
||||
uninstall-moduleDATA uninstall-modulebinDATA \
|
||||
uninstall-themeDATA uninstall-yncludeDATA
|
||||
|
||||
|
||||
# suffix mapping: info '(make)Static Usage'
|
||||
# apply only to our modules, not external ones
|
||||
${ybcfiles}: %.ybc: %.ycp $(ycpchook)
|
||||
Y2DIR=$(YCPC_Y2DIR) LD_LIBRARY_PATH=$(YCPC_LD_LIBRARY_PATH) ${YCPC} -c -M. -I. -q $(YCPCFLAGS) $<
|
||||
# generate dependencies
|
||||
# two steps not to lose the file if the command fails
|
||||
# hook: create the links before we look for files
|
||||
.dep: $(wildcard *.ycp) ${ycpchook}
|
||||
${YCPMAKEDEP} --prefix=${prefix} ${YCPCFLAGS} > ${NEWDEP}
|
||||
cat ${NEWDEP} > .dep
|
||||
rm ${NEWDEP}
|
||||
|
||||
dist-hook: check-syntax
|
||||
|
||||
check-syntax: $(client_DATA) $(ycpchook)
|
||||
if test "$(client_DATA)"; then $(bindir)/ycpc -qE -M. -I. $(YCPCFLAGS) $(filter %.ycp,$^) || exit 1; fi
|
||||
|
||||
-include .dep
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
307
yast2-CASA/src/NovellCasa.pm
Normal file
307
yast2-CASA/src/NovellCasa.pm
Normal file
@@ -0,0 +1,307 @@
|
||||
#! /usr/bin/perl -w
|
||||
# File: modules/NovellCasa.pm
|
||||
# Package: Configuration of CASA
|
||||
# Summary: NovellCasa settings, input and output functions
|
||||
# Authors: casa <casa@novell.com>
|
||||
#
|
||||
# $Id: NovellCasa.pm,v 1.5 2004/02/11 10:31:12 mvidner Exp $
|
||||
#------------------------------------------------------------------------------
|
||||
# Comments to:
|
||||
# support@Novell.com
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; version 2.1
|
||||
# of the License.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, Novell, Inc.
|
||||
#
|
||||
# To contact Novell about this file by physical or electronic mail,
|
||||
# you may find current contact information at www.novell.com.
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Representation of the configuration of CASA.
|
||||
# Input and output routines.
|
||||
|
||||
|
||||
package NovellCasa;
|
||||
|
||||
use strict;
|
||||
|
||||
use ycp;
|
||||
use YaST::YCP qw(Boolean);
|
||||
|
||||
use Locale::gettext;
|
||||
use POSIX (); # Needed for setlocale()
|
||||
|
||||
POSIX::setlocale(LC_MESSAGES, "");
|
||||
textdomain("CASA");
|
||||
|
||||
sub _ {
|
||||
return gettext($_[0]);
|
||||
}
|
||||
|
||||
our %TYPEINFO;
|
||||
|
||||
YaST::YCP::Import ("Progress");
|
||||
YaST::YCP::Import ("Report");
|
||||
YaST::YCP::Import ("Summary");
|
||||
|
||||
|
||||
##
|
||||
# Data was modified?
|
||||
#
|
||||
my $modified = 0;
|
||||
|
||||
##
|
||||
#
|
||||
my $proposal_valid = 0;
|
||||
|
||||
##
|
||||
# Write only, used during autoinstallation.
|
||||
# Don't run services and SuSEconfig, it's all done at one place.
|
||||
#
|
||||
my $write_only = 0;
|
||||
|
||||
##
|
||||
# Data was modified?
|
||||
# @return true if modified
|
||||
#
|
||||
BEGIN { $TYPEINFO {Modified} = ["function", "boolean"]; }
|
||||
sub Modified {
|
||||
y2debug ("modified=$modified");
|
||||
return Boolean($modified);
|
||||
}
|
||||
|
||||
# Settings: Define all variables needed for configuration of CASA
|
||||
# TODO FIXME: Define all the variables necessary to hold
|
||||
# TODO FIXME: the configuration here (with the appropriate
|
||||
# TODO FIXME: description)
|
||||
# TODO FIXME: For example:
|
||||
# ##
|
||||
# # List of the configured cards.
|
||||
# #
|
||||
# my @cards = ();
|
||||
#
|
||||
# ##
|
||||
# # Some additional parameter needed for the configuration.
|
||||
# #
|
||||
# my $additional_parameter = 1;
|
||||
|
||||
##
|
||||
# Read all CASA settings
|
||||
# @return true on success
|
||||
#
|
||||
BEGIN { $TYPEINFO{Read} = ["function", "boolean"]; }
|
||||
sub Read {
|
||||
|
||||
# NovellCasa read dialog caption
|
||||
my $caption = _("Initializing CASA Configuration");
|
||||
|
||||
# TODO FIXME Set the right number of stages
|
||||
my $steps = 4;
|
||||
|
||||
my $sl = 0.5;
|
||||
sleep($sl);
|
||||
|
||||
# TODO FIXME Names of real stages
|
||||
# We do not set help text here, because it was set outside
|
||||
Progress::New( $caption, " ", $steps, [
|
||||
# Progress stage 1/3
|
||||
_("Read the database"),
|
||||
# Progress stage 2/3
|
||||
_("Read the previous settings"),
|
||||
# Progress stage 3/3
|
||||
_("Detect the devices")
|
||||
], [
|
||||
# Progress step 1/3
|
||||
_("Reading the database..."),
|
||||
# Progress step 2/3
|
||||
_("Reading the previous settings..."),
|
||||
# Progress step 3/3
|
||||
_("Detecting the devices..."),
|
||||
# Progress finished
|
||||
_("Finished")
|
||||
],
|
||||
""
|
||||
);
|
||||
|
||||
# read database
|
||||
Progress::NextStage();
|
||||
# Error message
|
||||
if(0)
|
||||
{
|
||||
Report::Error(_("Cannot read the database1."));
|
||||
}
|
||||
sleep($sl);
|
||||
|
||||
# read another database
|
||||
Progress::NextStep();
|
||||
# Error message
|
||||
if(0)
|
||||
{
|
||||
Report::Error(_("Cannot read the database2."));
|
||||
}
|
||||
sleep($sl);
|
||||
|
||||
# read current settings
|
||||
Progress::NextStage();
|
||||
# Error message
|
||||
if(0)
|
||||
{
|
||||
Report::Error(_("Cannot read current settings."));
|
||||
}
|
||||
sleep($sl);
|
||||
|
||||
# detect devices
|
||||
Progress::NextStage();
|
||||
# Error message
|
||||
if(0)
|
||||
{
|
||||
Report::Warning(_("Cannot detect devices."));
|
||||
}
|
||||
sleep($sl);
|
||||
|
||||
# Progress finished
|
||||
Progress::NextStage();
|
||||
sleep($sl);
|
||||
|
||||
$modified = 0;
|
||||
return Boolean(1);
|
||||
}
|
||||
|
||||
##
|
||||
# Write all CASA settings
|
||||
# @return true on success
|
||||
#
|
||||
BEGIN { $TYPEINFO{Write} = ["function", "boolean"]; }
|
||||
sub Write {
|
||||
|
||||
# NovellCasa read dialog caption
|
||||
my $caption = _("Saving CASA Configuration");
|
||||
|
||||
# TODO FIXME And set the right number of stages
|
||||
my $steps = 2;
|
||||
|
||||
my $sl = 0.5;
|
||||
sleep($sl);
|
||||
|
||||
# TODO FIXME Names of real stages
|
||||
# We do not set help text here, because it was set outside
|
||||
Progress::New($caption, " ", $steps, [
|
||||
# Progress stage 1/2
|
||||
_("Write the settings"),
|
||||
# Progress stage 2/2
|
||||
_("Run SuSEconfig")
|
||||
], [
|
||||
# Progress step 1/2
|
||||
_("Writing the settings..."),
|
||||
# Progress step 2/2
|
||||
_("Running SuSEconfig..."),
|
||||
# Progress finished
|
||||
_("Finished")
|
||||
],
|
||||
""
|
||||
);
|
||||
|
||||
# write settings
|
||||
Progress::NextStage();
|
||||
# Error message
|
||||
if(0)
|
||||
{
|
||||
Report::Error (_("Cannot write settings."));
|
||||
}
|
||||
sleep($sl);
|
||||
|
||||
# run SuSEconfig
|
||||
Progress::NextStage ();
|
||||
# Error message
|
||||
if(0)
|
||||
{
|
||||
Report::Error (_("SuSEconfig script failed."));
|
||||
}
|
||||
sleep($sl);
|
||||
|
||||
# Progress finished
|
||||
Progress::NextStage();
|
||||
sleep($sl);
|
||||
|
||||
return Boolean(1);
|
||||
}
|
||||
|
||||
##
|
||||
# Get all CASA settings from the first parameter
|
||||
# (For use by autoinstallation.)
|
||||
# @param settings The YCP structure to be imported.
|
||||
# @return boolean True on success
|
||||
#
|
||||
BEGIN { $TYPEINFO{Import} = ["function", "boolean", [ "map", "any", "any" ] ]; }
|
||||
sub Import {
|
||||
my %settings = %{$_[0]};
|
||||
# TODO FIXME: your code here (fill the above mentioned variables)...
|
||||
return Boolean(1);
|
||||
}
|
||||
|
||||
##
|
||||
# Dump the CASA settings to a single map
|
||||
# (For use by autoinstallation.)
|
||||
# @return map Dumped settings (later acceptable by Import ())
|
||||
#
|
||||
BEGIN { $TYPEINFO{Export} =["function", [ "map", "any", "any" ] ]; }
|
||||
sub Export {
|
||||
# TODO FIXME: your code here (return the above mentioned variables)...
|
||||
return {};
|
||||
}
|
||||
|
||||
##
|
||||
# Create a textual summary and a list of unconfigured cards
|
||||
# @return summary of the current configuration
|
||||
#
|
||||
BEGIN { $TYPEINFO{Summary} = ["function", [ "list", "string" ] ]; }
|
||||
sub Summary {
|
||||
# TODO FIXME: your code here...
|
||||
# Configuration summary text for autoyast
|
||||
return (
|
||||
_("Configuration summary ...")
|
||||
);
|
||||
}
|
||||
|
||||
##
|
||||
# Create an overview table with all configured cards
|
||||
# @return table items
|
||||
#
|
||||
BEGIN { $TYPEINFO{Overview} = ["function", [ "list", "string" ] ]; }
|
||||
sub Overview {
|
||||
# TODO FIXME: your code here...
|
||||
return ();
|
||||
}
|
||||
|
||||
##
|
||||
# Return packages needed to be installed and removed during
|
||||
# Autoinstallation to insure module has all needed software
|
||||
# installed.
|
||||
# @return map with 2 lists.
|
||||
#
|
||||
BEGIN { $TYPEINFO{AutoPackages} = ["function", ["map", "string", ["list", "string"]]]; }
|
||||
sub AutoPackages {
|
||||
# TODO FIXME: your code here...
|
||||
my %ret = (
|
||||
"install" => (),
|
||||
"remove" => (),
|
||||
);
|
||||
return \%ret;
|
||||
}
|
||||
|
||||
1;
|
||||
# EOF
|
||||
BIN
yast2-CASA/src/NovellCasa.ybc
Normal file
BIN
yast2-CASA/src/NovellCasa.ybc
Normal file
Binary file not shown.
286
yast2-CASA/src/NovellCasa.ycp
Normal file
286
yast2-CASA/src/NovellCasa.ycp
Normal file
@@ -0,0 +1,286 @@
|
||||
/**
|
||||
* File: modules/NovellCasa.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: NovellCasa settings, input and output functions
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
* Representation of the configuration of CASA.
|
||||
* Input and output routines.
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
module "NovellCasa";
|
||||
textdomain "CASA";
|
||||
|
||||
import "Progress";
|
||||
import "Report";
|
||||
import "Summary";
|
||||
|
||||
/**
|
||||
* Prototypes
|
||||
*/
|
||||
global boolean Modified();
|
||||
|
||||
/**
|
||||
* Data was modified?
|
||||
*/
|
||||
global boolean modified = false;
|
||||
|
||||
/**
|
||||
*/
|
||||
global boolean proposal_valid = false;
|
||||
|
||||
/**
|
||||
* Write only, used during autoinstallation.
|
||||
* Don't run services and SuSEconfig, it's all done at one place.
|
||||
*/
|
||||
global boolean write_only = false;
|
||||
|
||||
/**
|
||||
* Abort function
|
||||
* return boolean return true if abort
|
||||
*/
|
||||
global boolean() AbortFunction = Modified;
|
||||
|
||||
/**
|
||||
* Abort function
|
||||
* @return boolean return true if abort
|
||||
*/
|
||||
global define boolean Abort() ``{
|
||||
if(AbortFunction != nil)
|
||||
{
|
||||
return AbortFunction () == true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data was modified?
|
||||
* @return true if modified
|
||||
*/
|
||||
global boolean Modified() {
|
||||
y2debug("modified=%1",modified);
|
||||
return modified;
|
||||
}
|
||||
|
||||
// Settings: Define all variables needed for configuration of CASA
|
||||
// TODO FIXME: Define all the variables necessary to hold
|
||||
// TODO FIXME: the configuration here (with the appropriate
|
||||
// TODO FIXME: description)
|
||||
// TODO FIXME: For example:
|
||||
// /**
|
||||
// * List of the configured cards.
|
||||
// */
|
||||
// list cards = [];
|
||||
//
|
||||
// /**
|
||||
// * Some additional parameter needed for the configuration.
|
||||
// */
|
||||
// boolean additional_parameter = true;
|
||||
|
||||
/**
|
||||
* Read all CASA settings
|
||||
* @return true on success
|
||||
*/
|
||||
global boolean Read() {
|
||||
|
||||
/* NovellCasa read dialog caption */
|
||||
string caption = _("Initializing CASA Configuration");
|
||||
|
||||
// TODO FIXME Set the right number of stages
|
||||
integer steps = 4;
|
||||
|
||||
integer sl = 500;
|
||||
sleep(sl);
|
||||
|
||||
// TODO FIXME Names of real stages
|
||||
// We do not set help text here, because it was set outside
|
||||
Progress::New( caption, " ", steps, [
|
||||
/* Progress stage 1/3 */
|
||||
_("Read the database"),
|
||||
/* Progress stage 2/3 */
|
||||
_("Read the previous settings"),
|
||||
/* Progress stage 3/3 */
|
||||
_("Detect the devices")
|
||||
], [
|
||||
/* Progress step 1/3 */
|
||||
_("Reading the database..."),
|
||||
/* Progress step 2/3 */
|
||||
_("Reading the previous settings..."),
|
||||
/* Progress step 3/3 */
|
||||
_("Detecting the devices..."),
|
||||
/* Progress finished */
|
||||
_("Finished")
|
||||
],
|
||||
""
|
||||
);
|
||||
|
||||
// read database
|
||||
if(Abort()) return false;
|
||||
Progress::NextStage();
|
||||
/* Error message */
|
||||
if(false) Report::Error(_("Cannot read the database1."));
|
||||
sleep(sl);
|
||||
|
||||
// read another database
|
||||
if(Abort()) return false;
|
||||
Progress::NextStep();
|
||||
/* Error message */
|
||||
if(false) Report::Error(_("Cannot read the database2."));
|
||||
sleep(sl);
|
||||
|
||||
// read current settings
|
||||
if(Abort()) return false;
|
||||
Progress::NextStage();
|
||||
/* Error message */
|
||||
if(false) Report::Error(_("Cannot read current settings."));
|
||||
sleep(sl);
|
||||
|
||||
// detect devices
|
||||
if(Abort()) return false;
|
||||
Progress::NextStage();
|
||||
/* Error message */
|
||||
if(false) Report::Warning(_("Cannot detect devices."));
|
||||
sleep(sl);
|
||||
|
||||
if(Abort()) return false;
|
||||
/* Progress finished */
|
||||
Progress::NextStage();
|
||||
sleep(sl);
|
||||
|
||||
if(Abort()) return false;
|
||||
modified = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write all CASA settings
|
||||
* @return true on success
|
||||
*/
|
||||
global boolean Write() {
|
||||
|
||||
/* NovellCasa read dialog caption */
|
||||
string caption = _("Saving CASA Configuration");
|
||||
|
||||
// TODO FIXME And set the right number of stages
|
||||
integer steps = 2;
|
||||
|
||||
integer sl = 500;
|
||||
sleep(sl);
|
||||
|
||||
// TODO FIXME Names of real stages
|
||||
// We do not set help text here, because it was set outside
|
||||
Progress::New(caption, " ", steps, [
|
||||
/* Progress stage 1/2 */
|
||||
_("Write the settings"),
|
||||
/* Progress stage 2/2 */
|
||||
_("Run SuSEconfig")
|
||||
], [
|
||||
/* Progress step 1/2 */
|
||||
_("Writing the settings..."),
|
||||
/* Progress step 2/2 */
|
||||
_("Running SuSEconfig..."),
|
||||
/* Progress finished */
|
||||
_("Finished")
|
||||
],
|
||||
""
|
||||
);
|
||||
|
||||
// write settings
|
||||
if(Abort()) return false;
|
||||
Progress::NextStage();
|
||||
/* Error message */
|
||||
if(false) Report::Error (_("Cannot write settings."));
|
||||
sleep(sl);
|
||||
|
||||
// run SuSEconfig
|
||||
if(Abort()) return false;
|
||||
Progress::NextStage ();
|
||||
/* Error message */
|
||||
if(false) Report::Error (_("SuSEconfig script failed."));
|
||||
sleep(sl);
|
||||
|
||||
if(Abort()) return false;
|
||||
/* Progress finished */
|
||||
Progress::NextStage();
|
||||
sleep(sl);
|
||||
|
||||
if(Abort()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all CASA settings from the first parameter
|
||||
* (For use by autoinstallation.)
|
||||
* @param settings The YCP structure to be imported.
|
||||
* @return boolean True on success
|
||||
*/
|
||||
global boolean Import (map settings) {
|
||||
// TODO FIXME: your code here (fill the above mentioned variables)...
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dump the CASA settings to a single map
|
||||
* (For use by autoinstallation.)
|
||||
* @return map Dumped settings (later acceptable by Import ())
|
||||
*/
|
||||
global map Export () {
|
||||
// TODO FIXME: your code here (return the above mentioned variables)...
|
||||
return $[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a textual summary and a list of unconfigured cards
|
||||
* @return summary of the current configuration
|
||||
*/
|
||||
global list Summary() {
|
||||
// TODO FIXME: your code here...
|
||||
/* Configuration summary text for autoyast */
|
||||
return [ _("Configuration summary ..."), [] ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an overview table with all configured cards
|
||||
* @return table items
|
||||
*/
|
||||
global list Overview() {
|
||||
// TODO FIXME: your code here...
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return packages needed to be installed and removed during
|
||||
* Autoinstallation to insure module has all needed software
|
||||
* installed.
|
||||
* @return map with 2 lists.
|
||||
*/
|
||||
global map AutoPackages() {
|
||||
// TODO FIXME: your code here...
|
||||
return $[ "install":[], "remove":[] ];
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
324
yast2-CASA/src/complex.ycp
Normal file
324
yast2-CASA/src/complex.ycp
Normal file
@@ -0,0 +1,324 @@
|
||||
/**
|
||||
* File: include/CASA/complex.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Dialogs definitions
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
import "Label";
|
||||
import "Popup";
|
||||
import "Wizard";
|
||||
//import "Wizard_hw";
|
||||
import "NovellCasa";
|
||||
|
||||
include "CASA/helps.ycp";
|
||||
|
||||
/**
|
||||
* Return a modification status
|
||||
* @return true if data was modified
|
||||
*/
|
||||
boolean Modified()
|
||||
{
|
||||
return NovellCasa::Modified();
|
||||
}
|
||||
|
||||
boolean ReallyAbort()
|
||||
{
|
||||
return !NovellCasa::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"]:"");
|
||||
// NovellCasa::AbortFunction = PollAbort;
|
||||
boolean ret = NovellCasa::Read();
|
||||
return ret ? `next : `abort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write settings dialog
|
||||
* @return `abort if aborted and `next otherwise
|
||||
*/
|
||||
symbol WriteDialog()
|
||||
{
|
||||
Wizard::RestoreHelp(HELPS["write"]:"");
|
||||
// NovellCasa::AbortFunction = PollAbort;
|
||||
boolean ret = NovellCasa::Write();
|
||||
return ret ? `next : `abort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Summary dialog
|
||||
* @return dialog result
|
||||
*/
|
||||
any SummaryDialog()
|
||||
{
|
||||
|
||||
/* CASA summary dialog caption */
|
||||
string caption = _("CASA Configuration");
|
||||
|
||||
/* FIXME */
|
||||
list summary = NovellCasa::Summary();
|
||||
list unconfigured = summary[1]:[];
|
||||
string configured = summary[0]:"";
|
||||
|
||||
/* Frame label */
|
||||
// term contents = Wizard_hw::DetectedContent(_("CASA to Configure"),
|
||||
// unconfigured, false, configured);
|
||||
|
||||
term contents = `Frame(_(" CASA Configuration Wizard Pages "),
|
||||
`VBox(
|
||||
`VSpacing(),
|
||||
`VSpacing(),
|
||||
`PushButton(`id(`install_casa_button),`opt(`default), _("&Configure CASA")),
|
||||
`VSpacing(),
|
||||
`VSpacing(),
|
||||
`PushButton(`id(`uninstall_casa_button),`opt(`default), _("&Unconfigure CASA")),
|
||||
`VSpacing(),
|
||||
`VSpacing()
|
||||
));
|
||||
|
||||
|
||||
Wizard::SetContentsButtons(caption, contents, HELPS["summary"]:"",
|
||||
Label::BackButton(), Label::FinishButton());
|
||||
|
||||
UI::ChangeWidget(`id(`install_casa_button), `Enabled, false);
|
||||
UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, false);
|
||||
|
||||
|
||||
integer iConfig_CASAReturn = (integer)SCR::Execute(.target.bash, "/usr/sbin/iscasaconfiged");
|
||||
|
||||
if(iConfig_CASAReturn == 0)
|
||||
{
|
||||
UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, true);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
UI::ChangeWidget(`id(`install_casa_button), `Enabled, true);
|
||||
}
|
||||
|
||||
any ret = nil;
|
||||
|
||||
while(true)
|
||||
{
|
||||
|
||||
ret = UI::UserInput();
|
||||
|
||||
/* abort? */
|
||||
if(ret == `abort || ret == `cancel || ret == `back) {
|
||||
if(ReallyAbort()) break;
|
||||
else continue;
|
||||
}
|
||||
/* overview dialog */
|
||||
else if(ret == `edit_button)
|
||||
{
|
||||
ret = `overview;
|
||||
break;
|
||||
}
|
||||
/* configure the selected device */
|
||||
else if(ret == `configure_button)
|
||||
{
|
||||
// TODO FIXME: check for change of the configuration
|
||||
any selected = UI::QueryWidget(`id(`detected_selbox), `CurrentItem);
|
||||
if(selected == `other)
|
||||
{
|
||||
ret = `other;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = `configure;
|
||||
}
|
||||
break;
|
||||
}
|
||||
else if(ret == `next)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if(ret == `install_casa_button)
|
||||
{
|
||||
|
||||
if(iConfig_CASAReturn != 0)
|
||||
{
|
||||
// launch the install script here
|
||||
y2milestone ("SummaryDialog() launch the install script");
|
||||
integer iInstall_CASAReturn = (integer)SCR::Execute(.target.bash, "/usr/sbin/installcasa");
|
||||
if(iInstall_CASAReturn == 0)
|
||||
{
|
||||
y2milestone(sformat("SummaryDialog() SCR::Execute(.target.bash, /usr/sbin/installcasa) returned: %1",iInstall_CASAReturn));
|
||||
Popup::Message(sformat("YaST Configured CASA successfully."));
|
||||
|
||||
}
|
||||
else if(iInstall_CASAReturn == 127)
|
||||
{
|
||||
Popup::Error(sformat("YaST was unable to find the installcasa script."));
|
||||
}
|
||||
else if(iInstall_CASAReturn == 126)
|
||||
{
|
||||
Popup::Error(sformat("YaST requires root privleges to run the installcasa script."));
|
||||
}
|
||||
else
|
||||
{
|
||||
Popup::Error(sformat("The install_casa script returned an unknown error: %1",iInstall_CASAReturn));
|
||||
}
|
||||
|
||||
UI::ChangeWidget(`id(`install_casa_button), `Enabled, false);
|
||||
UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, false);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
else if(ret == `uninstall_casa_button)
|
||||
{
|
||||
if(iConfig_CASAReturn == 0)
|
||||
{
|
||||
|
||||
// launch the uninstall script here
|
||||
y2milestone ("SummaryDialog() launch the uninstall script");
|
||||
integer iUninstall_CASAReturn = (integer)SCR::Execute(.target.bash, "/usr/sbin/uninstallcasa");
|
||||
if(iUninstall_CASAReturn == 0)
|
||||
{
|
||||
y2milestone(sformat("SummaryDialog() SCR::Execute(.target.bash, /usr/sbin/uninstallcasa) returned: %1",iUninstall_CASAReturn));
|
||||
Popup::Message(sformat("YaST Unconfigured CASA successfully."));
|
||||
}
|
||||
else if(iUninstall_CASAReturn == 127)
|
||||
{
|
||||
Popup::Error(sformat("YaST was unable to find the uninstallcasa script."));
|
||||
}
|
||||
else if(iUninstall_CASAReturn == 126)
|
||||
{
|
||||
Popup::Error(sformat("YaST requires root privleges to run the uninstallcasa script."));
|
||||
}
|
||||
else
|
||||
{
|
||||
Popup::Error(sformat("The uninstall_casa script returned an unknown error: %1",iUninstall_CASAReturn));
|
||||
}
|
||||
|
||||
UI::ChangeWidget(`id(`uninstall_casa_button), `Enabled, false);
|
||||
UI::ChangeWidget(`id(`install_casa_button), `Enabled, false);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
y2error("unexpected retcode: %1", ret);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overview dialog
|
||||
* @return dialog result
|
||||
*/
|
||||
any OverviewDialog()
|
||||
{
|
||||
|
||||
/* CASA overview dialog caption */
|
||||
string caption = _("CASA Overview");
|
||||
|
||||
list overview = NovellCasa::Overview();
|
||||
|
||||
/* FIXME table header */
|
||||
// term contents = Wizard_hw::ConfiguredContent(
|
||||
// /* Table header */
|
||||
// `header(_("Number"), _("CASA")),
|
||||
// overview, nil, nil, nil, nil );
|
||||
|
||||
// contents = Wizard_hw::SpacingAround(contents, 1.5, 1.5, 1.0, 1.0);
|
||||
|
||||
term contents = `Frame(_("CASA Configuration Wizard Pages"),
|
||||
`VBox(
|
||||
`VSpacing(),
|
||||
`VSpacing(),
|
||||
`PushButton(`id(`start_wizard_button),`opt(`default), _("Re&start Wizard")),
|
||||
`VSpacing()
|
||||
));
|
||||
|
||||
Wizard::SetContentsButtons(caption, contents, HELPS["overview"]:"",
|
||||
Label::BackButton(), Label::FinishButton());
|
||||
|
||||
any ret = nil;
|
||||
while(true)
|
||||
{
|
||||
ret = UI::UserInput();
|
||||
|
||||
/* abort? */
|
||||
if(ret == `abort || ret == `cancel)
|
||||
{
|
||||
if(ReallyAbort()) break;
|
||||
else continue;
|
||||
}
|
||||
/* add */
|
||||
else if(ret == `add_button)
|
||||
{
|
||||
/* FIXME */
|
||||
ret = `add;
|
||||
break;
|
||||
}
|
||||
/* edit */
|
||||
else if(ret == `edit_button)
|
||||
{
|
||||
/* FIXME */
|
||||
ret = `edit;
|
||||
break;
|
||||
}
|
||||
/* delete */
|
||||
else if(ret == `delete_button)
|
||||
{
|
||||
/* FIXME */
|
||||
continue;
|
||||
}
|
||||
else if(ret == `next || ret == `back)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
y2error("unexpected retcode: %1", ret);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
115
yast2-CASA/src/dialogs.ycp
Normal file
115
yast2-CASA/src/dialogs.ycp
Normal file
@@ -0,0 +1,115 @@
|
||||
/**
|
||||
* File: include/CASA/dialogs.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Dialogs definitions
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
import "Label";
|
||||
import "Wizard";
|
||||
import "NovellCasa";
|
||||
|
||||
include "CASA/helps.ycp";
|
||||
|
||||
/**
|
||||
* Configure1 dialog
|
||||
* @return dialog result
|
||||
*/
|
||||
any Configure1Dialog () {
|
||||
|
||||
/* NovellCasa configure1 dialog caption */
|
||||
string caption = _("CASA Configuration");
|
||||
|
||||
/* NovellCasa configure1 dialog contents */
|
||||
term contents = `Label (_("First part of configuration of CASA"));
|
||||
|
||||
Wizard::SetContentsButtons(caption, contents, HELPS["c1"]:"",
|
||||
Label::BackButton(), Label::NextButton());
|
||||
|
||||
any ret = nil;
|
||||
while(true) {
|
||||
|
||||
ret = UI::UserInput();
|
||||
|
||||
/* abort? */
|
||||
if(ret == `abort || ret == `cancel) {
|
||||
if(ReallyAbort()) break;
|
||||
else continue;
|
||||
}
|
||||
else if(ret == `next || ret == `back) {
|
||||
break;
|
||||
}
|
||||
else {
|
||||
y2error("unexpected retcode: %1", ret);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure2 dialog
|
||||
* @return dialog result
|
||||
*/
|
||||
any Configure2Dialog () {
|
||||
|
||||
/* NovellCasa configure2 dialog caption */
|
||||
string caption = _("CASA Configuration");
|
||||
|
||||
/* NovellCasa configure2 dialog contents */
|
||||
term contents = `Label (_("Second part of configuration of CASA"));
|
||||
|
||||
Wizard::SetContentsButtons(caption, contents, HELPS["c2"]:"",
|
||||
Label::BackButton(), Label::NextButton());
|
||||
|
||||
any ret = nil;
|
||||
while(true) {
|
||||
|
||||
ret = UI::UserInput();
|
||||
|
||||
/* abort? */
|
||||
if(ret == `abort || ret == `cancel) {
|
||||
if(ReallyAbort()) break;
|
||||
else continue;
|
||||
}
|
||||
else if(ret == `next || ret == `back) {
|
||||
break;
|
||||
}
|
||||
else {
|
||||
y2error("unexpected retcode: %1", ret);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
121
yast2-CASA/src/helps.ycp
Normal file
121
yast2-CASA/src/helps.ycp
Normal file
@@ -0,0 +1,121 @@
|
||||
/**
|
||||
* File: include/CASA/helps.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Help texts of all the dialogs
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
/**
|
||||
* All helps are here
|
||||
*/
|
||||
map HELPS = $[
|
||||
|
||||
/* Read dialog help 1/2 */
|
||||
"read" : _("<p><b><big>Initializing CASA Configuration</big></b><br>
|
||||
Please wait...<br></p>
|
||||
") +
|
||||
|
||||
/* Read dialog help 2/2 */
|
||||
_("<p><b><big>Aborting Initialization:</big></b><br>
|
||||
Safely abort the configuration utility by pressing <b>Abort</b> now.</p>
|
||||
"),
|
||||
|
||||
/* Write dialog help 1/2 */
|
||||
"write" : _("<p><b><big>Saving CASA Configuration</big></b><br>
|
||||
Please wait...<br></p>
|
||||
") +
|
||||
|
||||
/* Write dialog help 2/2 */
|
||||
_("<p><b><big>Aborting Saving:</big></b><br>
|
||||
Abort the save procedure by pressing <b>Abort</b>.
|
||||
An additional dialog informs whether it is safe to do so.
|
||||
</p>
|
||||
"),
|
||||
|
||||
/* Summary dialog help 1/3 */
|
||||
"summary" : _("<p><b><big>CASA Configuration</big></b><br>
|
||||
Configure CASA here.<br></p>
|
||||
") +
|
||||
|
||||
/* Summary dialog help 2/3 */
|
||||
_("<p><b><big>Configuring CASA:</big></b><br>
|
||||
After choosing CASA from <b>Security and Users</b> menu you should press
|
||||
the <b>Configure CASA</b> button to configure PAM stack and start
|
||||
the service.</p>
|
||||
") +
|
||||
|
||||
/* Summary dialog help 3/3 */
|
||||
_("<p><b><big>Unconfiguring CASA:</big></b><br>
|
||||
After choosing CASA from <b>Security and Users</b> menu To remove the
|
||||
service from PAM Stack and stop it permanently
|
||||
you should press <b>Unconfigure CASA</b> button.</p>
|
||||
"),
|
||||
|
||||
/* Ovreview dialog help 1/3 */
|
||||
"overview" : _("<p><b><big>CASA Configuration Overview</big></b><br>
|
||||
Refer to CASA documentation for additional information on configuring
|
||||
and running this product.<br></p>
|
||||
") +
|
||||
|
||||
/* Ovreview dialog help 2/3 */
|
||||
_("<p><b><big>Configuring CASA:</big></b><br>
|
||||
Choose CASA to install.
|
||||
Press <b>Configure CASA</b> to configure CASA.</p>") +
|
||||
|
||||
/* Ovreview dialog help 3/3 */
|
||||
_("<p><b><big>Unconfiguring CASA:</big></b><br>
|
||||
Choose CASA to remove.
|
||||
Then press <b>Unconfigure CASA</b> ed.</p>
|
||||
"),
|
||||
|
||||
/* Configure1 dialog help 1/2 */
|
||||
"c1" : _("<p><b><big>Configure, part one</big></b><br>
|
||||
Please press the <b>Next</b> button.
|
||||
<br></p>") +
|
||||
|
||||
/* Configure1 dialog help 2/2 */
|
||||
_("<p><b><big>Selecting something:</big></b><br>
|
||||
It is not possible, you must code it first :-)
|
||||
</p>"),
|
||||
|
||||
/* Configure2 dialog help 1/2 */
|
||||
"c2" : _("<p><b><big>Configuration Part Two</big></b><br>
|
||||
Press <b>Next</b>.
|
||||
<br></p>
|
||||
") +
|
||||
|
||||
/* Configure2 dialog help 2/2 */
|
||||
_("<p><b><big>Selecting something:</big></b><br>
|
||||
It is not possible, you must code it first :-)
|
||||
</p>"),
|
||||
|
||||
];
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
BIN
yast2-CASA/src/icons/CASA_22.png
Executable file
BIN
yast2-CASA/src/icons/CASA_22.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
yast2-CASA/src/icons/CASA_32.png
Executable file
BIN
yast2-CASA/src/icons/CASA_32.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
BIN
yast2-CASA/src/icons/CASA_48.png
Executable file
BIN
yast2-CASA/src/icons/CASA_48.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
449
yast2-CASA/src/icons/install_casa_yast_icons
Executable file
449
yast2-CASA/src/icons/install_casa_yast_icons
Executable file
@@ -0,0 +1,449 @@
|
||||
#! /bin/bash
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# install_yast_icons
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
# Comments to:
|
||||
# support@novell.com
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; version 2.1
|
||||
# of the License.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, Novell, Inc.
|
||||
#
|
||||
# To contact Novell about this file by physical or electronic mail,
|
||||
# you may find current contact information at www.novell.com.
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# START_DIR = pwd - the current working directory
|
||||
# this is the directory where this script is executed from
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
VERSION=1.6
|
||||
SCRIPT_NAME='install_casa_yast_icons'
|
||||
START_DIR=`pwd`
|
||||
DATE=`date`
|
||||
SOURCE22_ICON=CASA_22.png
|
||||
SOURCE32_ICON=CASA_32.png
|
||||
SOURCE48_ICON=CASA_48.png
|
||||
DEST_ICON=CASA.png
|
||||
|
||||
determineIfSourceExists ()
|
||||
{
|
||||
if [ ! -e $ICON_SOURCE/$SOURCE22_ICON ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] ERROR: The icon source file:"
|
||||
echo "[$SCRIPT_NAME] $ICON_SOURCE/$DIR_22/$ICON_FILE"
|
||||
echo "[$SCRIPT_NAME] was not found."
|
||||
echo ""
|
||||
# echo "ERROR: Icon source file not found: $ICON_SOURCE/$DIR_22/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
exit 3
|
||||
fi
|
||||
|
||||
if [ ! -e $ICON_SOURCE/$SOURCE32_ICON ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] ERROR: The icon source file:"
|
||||
echo "[$SCRIPT_NAME] $ICON_SOURCE/$DIR_32/$ICON_FILE"
|
||||
echo "[$SCRIPT_NAME] was not found."
|
||||
echo ""
|
||||
# echo "ERROR: Icon source file not found: $ICON_SOURCE/$DIR_32/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
exit 3
|
||||
fi
|
||||
|
||||
if [ ! -e $ICON_SOURCE/$SOURCE48_ICON ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] ERROR: The icon source file:"
|
||||
echo "[$SCRIPT_NAME] $ICON_SOURCE/$DIR_48/$ICON_FILE"
|
||||
echo "[$SCRIPT_NAME] was not found."
|
||||
echo ""
|
||||
# echo "ERROR: Icon source file not found: $ICON_SOURCE/$DIR_48/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
exit 3
|
||||
fi
|
||||
}
|
||||
|
||||
determineIfCopyDeleteRequired ()
|
||||
{
|
||||
for YAST_THEME_DIR in $YAST_THEME_DIRS
|
||||
do
|
||||
if [ ! -h $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR ]
|
||||
then
|
||||
if [ -d $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR ]
|
||||
then
|
||||
if [ -e $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$ICON_FILE ]
|
||||
then
|
||||
DELETE_ICONS="yes"
|
||||
else
|
||||
COPY_ICONS="yes"
|
||||
fi
|
||||
|
||||
if [ -e $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$ICON_FILE ]
|
||||
then
|
||||
DELETE_ICONS="yes"
|
||||
else
|
||||
COPY_ICONS="yes"
|
||||
fi
|
||||
|
||||
if [ -e $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$ICON_FILE ]
|
||||
then
|
||||
DELETE_ICONS="yes"
|
||||
else
|
||||
COPY_ICONS="yes"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
copyDeleteIcons ()
|
||||
{
|
||||
for YAST_THEME_DIR in $YAST_THEME_DIRS
|
||||
do
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
fi
|
||||
if [ -h $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR ]
|
||||
then
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] skip $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR because it is a link"
|
||||
fi
|
||||
# echo "skip $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR because it is a link" 1>>$LOG_DIR_FILE
|
||||
else
|
||||
if [ -d $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR ]
|
||||
then
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] processing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR"
|
||||
fi
|
||||
# echo "processing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR" 1>>$LOG_DIR_FILE
|
||||
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] installing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$ICON_FILE"
|
||||
# echo "installing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
if [ ! -d $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR ]
|
||||
then
|
||||
mkdir -p $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR
|
||||
fi
|
||||
cp -r $ICON_SOURCE/$SOURCE22_ICON $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$DEST_ICON
|
||||
else
|
||||
echo "[$SCRIPT_NAME] uninstalling $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$ICON_FILE"
|
||||
# echo "uninstalling $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
rm -f $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_22/$APPS_DIR/$DEST_ICON
|
||||
fi
|
||||
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] installing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$ICON_FILE"
|
||||
# echo "installing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
if [ ! -d $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR ]
|
||||
then
|
||||
mkdir -p $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR
|
||||
fi
|
||||
cp -r $ICON_SOURCE/$SOURCE32_ICON $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$DEST_ICON
|
||||
else
|
||||
echo "[$SCRIPT_NAME] uninstalling $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$ICON_FILE"
|
||||
# echo "uninstalling $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
rm -f $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_32/$APPS_DIR/$DEST_ICON
|
||||
fi
|
||||
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] installing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$ICON_FILE"
|
||||
# echo "installing $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
if [ ! -d $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR ]
|
||||
then
|
||||
mkdir -p $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR
|
||||
fi
|
||||
cp -r $ICON_SOURCE/$SOURCE48_ICON $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$DEST_ICON
|
||||
else
|
||||
echo "[$SCRIPT_NAME] uninstalling $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$ICON_FILE"
|
||||
# echo "uninstalling $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$ICON_FILE" 1>>$LOG_DIR_FILE
|
||||
rm -f $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR/$ICONS_DIR/$DIR_48/$APPS_DIR/$DEST_ICON
|
||||
fi
|
||||
else
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] skip $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR because it is not a directory"
|
||||
fi
|
||||
# echo "skip $YAST_THEME_DIR_PREFIX/$YAST_THEME_DIR because it is not a directory" 1>>$LOG_DIR_FILE
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# the MAIN routine
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
COPY_ICONS="no"
|
||||
DELETE_ICONS="no"
|
||||
YAST_THEME_DIR_PREFIX="/usr/share/YaST2/theme"
|
||||
YAST_THEME_DIRS=`ls $YAST_THEME_DIR_PREFIX`
|
||||
#LOG_DIR="/var/opt/novell/log/ncl"
|
||||
#LOG_FILE="install_yast_icons.log"
|
||||
#LOG_DIR_FILE="$LOG_DIR/$LOG_FILE"
|
||||
DIR_22=22x22
|
||||
DIR_32=32x32
|
||||
DIR_48=48x48
|
||||
ICON_SOURCE="/usr/share/pixmaps"
|
||||
APPS_DIR="apps"
|
||||
ICONS_DIR="icons"
|
||||
ICON_FILE="CASA.png"
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
MODE="install"
|
||||
else
|
||||
MODE=$1
|
||||
if [ -z "$2" ]
|
||||
then
|
||||
LAUNCHER=""
|
||||
else
|
||||
LAUNCHER=$2
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] $SCRIPT_NAME v$VERSION"
|
||||
|
||||
#if [ ! -d $LOG_DIR ]
|
||||
#then
|
||||
# mkdir -p $LOG_DIR
|
||||
#fi
|
||||
#echo "" 1>>$LOG_DIR_FILE
|
||||
#echo "$SCRIPT_NAME v$VERSION - $DATE" 1>>$LOG_DIR_FILE
|
||||
#echo "mode = <$MODE>" 1>>$LOG_DIR_FILE
|
||||
#echo "launcher = <$LAUNCHER>" 1>>$LOG_DIR_FILE
|
||||
|
||||
# verify that a valid mode was entered
|
||||
case "$MODE" in
|
||||
"install" | "uninstall" )
|
||||
# echo "<$MODE> is a valid mode" 1>>$LOG_DIR_FILE
|
||||
;;
|
||||
|
||||
"usage" | "help" | "-?" )
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] usage: $SCRIPT_NAME [ install | uninstall | usage | help | -? ]"
|
||||
echo ""
|
||||
# echo "usage: $SCRIPT_NAME [ install | uninstall | usage | help | -? ]" 1>>$LOG_DIR_FILE
|
||||
exit 1
|
||||
;;
|
||||
|
||||
* )
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] invalid mode: <$MODE>"
|
||||
echo "[$SCRIPT_NAME] usage: $SCRIPT_NAME [ install | uninstall | usage | help | -? ]"
|
||||
echo ""
|
||||
# echo "invalid mode: <$MODE>" 1>>$LOG_DIR_FILE
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# verify that a valid launcher was entered
|
||||
case "$LAUNCHER" in
|
||||
"YaST" | "rpm" )
|
||||
# echo "<$LAUNCHER> is a valid launcher" 1>>$LOG_DIR_FILE
|
||||
;;
|
||||
|
||||
* )
|
||||
if [ -n "$2" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] invalid option: <$LAUNCHER>"
|
||||
echo "[$SCRIPT_NAME] usage: $SCRIPT_NAME [ install | uninstall | usage | help | -? ]"
|
||||
echo ""
|
||||
# echo "invalid launcher: <$LAUNCHER>" 1>>$LOG_DIR_FILE
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# validate that the user running the script is root
|
||||
ROOT_UID=0
|
||||
#echo "User id = <$UID>" 1>>$LOG_DIR_FILE
|
||||
if [ "$UID" -ne "$ROOT_UID" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] ERROR: You are not the root user."
|
||||
echo "[$SCRIPT_NAME] To install or uninstall the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons you must login as the root user."
|
||||
echo ""
|
||||
# echo "ERROR: You are not the root user." 1>>$LOG_DIR_FILE
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# verifty that the icons can be installed
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
determineIfSourceExists
|
||||
fi
|
||||
|
||||
# verify that the icons need to be installed or uninstalled
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Determining if the Novell Client for Linux"
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
echo "[$SCRIPT_NAME] YaST icons need to be installed."
|
||||
else
|
||||
echo "[$SCRIPT_NAME] YaST icons need to be uninstalled."
|
||||
fi
|
||||
echo "[$SCRIPT_NAME] Please wait..."
|
||||
fi
|
||||
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
if [ "$LAUNCHER" = "YaST" ]
|
||||
then
|
||||
determineIfCopyDeleteRequired
|
||||
else
|
||||
COPY_ICONS="yes"
|
||||
fi
|
||||
else
|
||||
determineIfCopyDeleteRequired
|
||||
fi
|
||||
|
||||
|
||||
# install or uninstall the icons
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
if [ "$COPY_ICONS" = "yes" ]
|
||||
then
|
||||
if [ -n "$LAUNCHER" ]
|
||||
then
|
||||
CONTINUE="y"
|
||||
else
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] This script installs the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons in all of the YaST theme directories."
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Are you sure you want to install the YaST icons? (y/n)"
|
||||
read CONTINUE
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] The Novell Client for Linux YaST icons are already installed"
|
||||
echo ""
|
||||
# echo "The Novell Client for Linux YaST icons are already installed" 1>>$LOG_DIR_FILE
|
||||
exit
|
||||
fi
|
||||
else
|
||||
if [ "$DELETE_ICONS" = "yes" ]
|
||||
then
|
||||
if [ -n "$LAUNCHER" ]
|
||||
then
|
||||
CONTINUE="y"
|
||||
else
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] This script uninstalls the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons in all of the YaST theme directories."
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Are you sure you want to uninstall the YaST icons? (y/n)"
|
||||
read CONTINUE
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] The Novell Client for Linux YaST icons are already uninstalled"
|
||||
echo ""
|
||||
# echo "The Novell Client for Linux YaST icons are already uninstalled" 1>>$LOG_DIR_FILE
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CONTINUE" = "y" ]
|
||||
then
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Installing Novell Client for Linux YaST icons"
|
||||
echo "[$SCRIPT_NAME] Please wait..."
|
||||
fi
|
||||
|
||||
copyDeleteIcons
|
||||
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Installation of the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons completed"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# echo "Installation of the Novell Client for Linux YaST icons completed" 1>>$LOG_DIR_FILE
|
||||
exit
|
||||
else
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Uninstalling Novell Client for Linux YaST icons"
|
||||
echo "[$SCRIPT_NAME] Please wait..."
|
||||
fi
|
||||
|
||||
copyDeleteIcons
|
||||
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Uninstallation of the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons completed"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# echo "Uninstallation of the Novell Client for Linux YaST icons completed" 1>>$LOG_DIR_FILE
|
||||
exit
|
||||
fi
|
||||
else
|
||||
if [ "$MODE" = "install" ]
|
||||
then
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Installation of the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons cancelled"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# echo "Installation of the Novell Client for Linux YaST icons cancelled" 1>>$LOG_DIR_FILE
|
||||
exit
|
||||
else
|
||||
if [ -z "$LAUNCHER" ]
|
||||
then
|
||||
echo ""
|
||||
echo "[$SCRIPT_NAME] Uninstallation of the Novell Client for Linux"
|
||||
echo "[$SCRIPT_NAME] YaST icons cancelled"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# echo "Uninstallation of the Novell Client for Linux YaST icons cancelled" 1>>$LOG_DIR_FILE
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
exit
|
||||
|
||||
178
yast2-CASA/src/wizards.ycp
Normal file
178
yast2-CASA/src/wizards.ycp
Normal file
@@ -0,0 +1,178 @@
|
||||
/**
|
||||
* File: include/CASA/wizards.ycp
|
||||
* Package: Configuration of CASA
|
||||
* Summary: Wizards definitions
|
||||
* Authors: casa <casa@novell.com>
|
||||
*
|
||||
*********************************************************************
|
||||
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; version 2.1
|
||||
* of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, Novell, Inc.
|
||||
*
|
||||
* To contact Novell about this file by physical or electronic mail,
|
||||
* you may find current contact information at www.novell.com.
|
||||
*
|
||||
*********************************************************************
|
||||
*
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
textdomain "CASA";
|
||||
|
||||
import "Sequencer";
|
||||
import "Wizard";
|
||||
|
||||
include "CASA/complex.ycp";
|
||||
include "CASA/dialogs.ycp";
|
||||
|
||||
/**
|
||||
* Add a configuration of CASA
|
||||
* @return sequence result
|
||||
*/
|
||||
any AddSequence() {
|
||||
|
||||
/* FIXME: adapt to your needs */
|
||||
map aliases = $[
|
||||
"config1" : ``(Configure1Dialog()),
|
||||
"config2" : ``(Configure2Dialog()),
|
||||
];
|
||||
|
||||
/* FIXME: adapt to your needs */
|
||||
map sequence = $[
|
||||
"ws_start" : "config1",
|
||||
"config1" : $[
|
||||
`abort : `abort,
|
||||
`next : "config2"
|
||||
],
|
||||
"config2" : $[
|
||||
`abort : `abort,
|
||||
`next : `next
|
||||
]
|
||||
];
|
||||
|
||||
return Sequencer::Run(aliases, sequence);
|
||||
}
|
||||
|
||||
/**
|
||||
* Main workflow of the CASA configuration
|
||||
* @return sequence result
|
||||
*/
|
||||
any MainSequence() {
|
||||
|
||||
/* FIXME: adapt to your needs */
|
||||
map aliases = $[
|
||||
"summary" : ``( SummaryDialog() ),
|
||||
"overview" : ``( OverviewDialog() ),
|
||||
"configure" : [ ``( AddSequence() ), true ],
|
||||
"add" : [ ``( AddSequence() ), true ],
|
||||
"edit" : [ ``( AddSequence() ), true ]
|
||||
];
|
||||
|
||||
/* FIXME: adapt to your needs */
|
||||
map sequence = $[
|
||||
"ws_start" : "summary",
|
||||
"summary" : $[
|
||||
`abort : `abort,
|
||||
`next : `next,
|
||||
`overview : "overview",
|
||||
`configure : "configure",
|
||||
`other : "configure",
|
||||
],
|
||||
"overview" : $[
|
||||
`abort : `abort,
|
||||
`next : `next,
|
||||
`add : "add",
|
||||
`edit : "edit",
|
||||
],
|
||||
"configure" : $[
|
||||
`abort : `abort,
|
||||
`next : "summary",
|
||||
],
|
||||
"add" : $[
|
||||
`abort : `abort,
|
||||
`next : "overview",
|
||||
],
|
||||
"edit" : $[
|
||||
`abort : `abort,
|
||||
`next : "overview",
|
||||
]
|
||||
];
|
||||
|
||||
any ret = Sequencer::Run(aliases, sequence);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whole configuration of CASA
|
||||
* @return sequence result
|
||||
*/
|
||||
any NovellCasaSequence() {
|
||||
|
||||
map aliases = $[
|
||||
"read" : [ ``( ReadDialog() ), true ],
|
||||
"main" : ``( MainSequence() ),
|
||||
"write" : [ ``( WriteDialog() ), true ]
|
||||
];
|
||||
|
||||
map sequence = $[
|
||||
"ws_start" : "read",
|
||||
"read" : $[
|
||||
`abort : `abort,
|
||||
`next : "main"
|
||||
],
|
||||
"main" : $[
|
||||
`abort : `abort,
|
||||
`next : "write"
|
||||
],
|
||||
"write" : $[
|
||||
`abort : `abort,
|
||||
`next : `next
|
||||
]
|
||||
];
|
||||
|
||||
Wizard::CreateDialog();
|
||||
Wizard::SetDesktopIcon("CASA");
|
||||
|
||||
any ret = Sequencer::Run(aliases, sequence);
|
||||
|
||||
UI::CloseDialog();
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whole configuration of CASA but without reading and writing.
|
||||
* For use with autoinstallation.
|
||||
* @return sequence result
|
||||
*/
|
||||
any NovellCasaAutoSequence() {
|
||||
|
||||
/* Initialization dialog caption */
|
||||
string caption = _("CASA Configuration");
|
||||
/* Initialization dialog contents */
|
||||
term contents = `Label(_("Initializing..."));
|
||||
|
||||
Wizard::CreateDialog();
|
||||
Wizard::SetContentsButtons(caption, contents, "",
|
||||
Label::BackButton(), Label::NextButton());
|
||||
|
||||
any ret = MainSequence();
|
||||
|
||||
UI::CloseDialog();
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
}
|
||||
Reference in New Issue
Block a user