summaryrefslogtreecommitdiffstats
path: root/README.adding_wizard
blob: 5bca8c5c557f063486cd5d771313a30db4b97c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Since the cvs version of 09/06/2004, third parties may add a wizard to the 
mcc. 

First thing to do is to write the wizard, based on interactive, like 
a normal wizard ( see the source code of the ones currently used,
on http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/soft/wizard_perl/ ).
In short, it should be a perl module, placed in perl search path, in MDK/Wizard/
hierarchy. You need to fill a special structure that describe the wizard.

Then, you need to place a file in /etc/wizard.d/, called
mywizard.conf, containing :

NAME="module"
DESCRIPTION="the description"


DESCRIPTION is the description, in any language, there is nothing for translation
at the moment. This will be the description showed on the first page of the mcc.

NAME is the same of the perl module to load, without the pm.
The line loading is equivalent to :

require "MDK/Wizard/$NAME.pm";