summaryrefslogtreecommitdiffstats
path: root/cluster/Makefile
blob: beedddc372016ab219843630690fc0fe898e7ddb (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
26
27
28
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