diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-10-15 11:59:21 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-10-15 11:59:21 +0000 |
commit | 994571f4d56393429978b7dc9ced2567714da7cb (patch) | |
tree | 84c56e609a6bfafdf2c21ecdab368b3d92b4b3f3 /cluster | |
parent | c558674d80aef960207ca1ae9746d263e96123d3 (diff) | |
download | drakx-994571f4d56393429978b7dc9ced2567714da7cb.tar drakx-994571f4d56393429978b7dc9ced2567714da7cb.tar.gz drakx-994571f4d56393429978b7dc9ced2567714da7cb.tar.bz2 drakx-994571f4d56393429978b7dc9ced2567714da7cb.tar.xz drakx-994571f4d56393429978b7dc9ced2567714da7cb.zip |
add mdkc files
Diffstat (limited to 'cluster')
-rw-r--r-- | cluster/Makefile | 29 | ||||
-rw-r--r-- | cluster/patch-oem.pl | 38 |
2 files changed, 67 insertions, 0 deletions
diff --git a/cluster/Makefile b/cluster/Makefile new file mode 100644 index 000000000..beedddc37 --- /dev/null +++ b/cluster/Makefile @@ -0,0 +1,29 @@ +# build mdkc release + +STAGE2=../perl-install +RESCUE=../rescue +KERNEL=../kernel +STAGE1=../mdk-stage1 + +install: +# copy missing files in rescue tree + cp -avf tree/* $(RESCUE)/tree/ + cp -avf data/gen_modules_conf.pl.pl $(KERNEL)/gen_modules_conf.pl.pl + cd $(KERNEL) && perl gen_modules_conf.pl.pl > $(RESCUE)/tree/ka/gen_modules_conf.pl +# copy stage1-with ka needed by ka method + cp -vf data/stage1-with-ka.tar.bz2 $(STAGE1)/stage1-data/stage1-with-ka.tar.bz2 +# copy and add drakcluster step in perl-install + cp -avf drakcluster $(STAGE2)/ + perl -pi -e "s/PMS_DIRS.*/PMS_DIRS = Newt Xconfig c xf86misc diskdrake harddrake interactive modules network partition_table printer resize_fat sbus_probing security drakcluster/" $(STAGE2)/Makefile.config + cp -avf data/steps.pm $(STAGE2)/steps.pm +# use dhcpd clisnet instead of dhcp-client (more info in /etc/) + perl -pi -e "s/dhcp-client/dhcpcd/" $(STAGE2)/network/network.pm +# use cluster's rpmsrate and compssUsers + cp -avf data/compssUsers.cluster $(STAGE2)/share/compssUsers + cp -avf data/rpmsrate.cluster $(STAGE2)/share/rpmsrate + cp -avf data/logo-mdkc.png $(STAGE2)/share/logo-mandrake.png +# cd $(STAGE1) && ADDITIONAL_DEFS="-DMANDRAKE_CLUSTERING" MDKC=1 make +# build, hope it builds... + cd ../ && make +# partitions and supported lang + cp patch-oem.pl /export/Mandrake/base diff --git a/cluster/patch-oem.pl b/cluster/patch-oem.pl new file mode 100644 index 000000000..3988b8a91 --- /dev/null +++ b/cluster/patch-oem.pl @@ -0,0 +1,38 @@ +use fsedit; +package fsedit; + +use lang; +package lang; + +undef *list_langs; +*list_langs = sub { 'en_GB', 'en_US', 'fr', 'ja' }; + +use install2; +package install2; + +sub install2::configureCluster { + my ($clicked, $ent_number, $auto) = @_; + my ($o) = $::o; + installStepsCall($o, $auto, 'configureCluster'); +} + +use install_steps_interactive; +package install_steps_interactive; + +sub install_steps_interactive::configureCluster { + my ($o) = $::o; + my $_w = $o->wait_message('', N("Configuring the clustering options")); + $o->SUPER::configureCluster; +} + +use install_steps; +package install_steps; + +sub install_steps::configureCluster { + my ($o) = $::o; + if (-e "$::prefix/etc/clusterserver.conf") { + require drakcluster::server_conf_drakx; + log::l("launch drakcluster config"); + drakcluster::server_conf_drakx::main_cluster($o); + } +} |