1 |
Since the cvs version of 09/06/2004, third parties may add a wizard to the |
2 |
mcc. |
3 |
|
4 |
First thing to do is to write the wizard, based on interactive, like |
5 |
a normal wizard ( see the source code of the ones currently used, |
6 |
on http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/soft/wizard_perl/ ). |
7 |
In short, it should be a perl module, placed in perl search path, in MDK/Wizard/ |
8 |
hierarchy. You need to fill a special structure that describe the wizard. |
9 |
|
10 |
Then, you need to place a file in /etc/wizard.d/, called |
11 |
mywizard.conf, containing : |
12 |
|
13 |
NAME="module" |
14 |
DESCRIPTION="the description" |
15 |
|
16 |
|
17 |
DESCRIPTION is the description, in any language, there is nothing for translation |
18 |
at the moment. This will be the description showed on the first page of the mcc. |
19 |
|
20 |
NAME is the same of the perl module to load, without the pm. |
21 |
The line loading is equivalent to : |
22 |
|
23 |
require "MDK/Wizard/$NAME.pm"; |
24 |
|
25 |
|