summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-07-15 09:43:41 +0000
committerMystery Man <unknown@mandriva.org>2005-07-15 09:43:41 +0000
commitd3d450b0b2a7633c39bcce37a594f241f3e46211 (patch)
tree519169fee33e0ba0d8d703dc26bce62e2e5b5dc6 /tools
parentd2ce60d6be52cb011e7f05e54e5ec121e93c358e (diff)
downloaddrakx-10_3_0_35mdk.tar
drakx-10_3_0_35mdk.tar.gz
drakx-10_3_0_35mdk.tar.bz2
drakx-10_3_0_35mdk.tar.xz
drakx-10_3_0_35mdk.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_35mdk
'V10_3_0_35mdk'.
Diffstat (limited to 'tools')
-rw-r--r--tools/.cvsignore4
-rw-r--r--tools/2adsldb.pm17
-rw-r--r--tools/2isdndb.pm25
-rw-r--r--tools/Makefile39
-rwxr-xr-xtools/addchangelog.pl18
-rw-r--r--tools/alpha/cd/Makefile8
-rw-r--r--tools/alpha/cd/README40
-rw-r--r--tools/alpha/cd/README.milo13
-rw-r--r--tools/alpha/cd/aboot.cnf3
-rw-r--r--tools/alpha/cd/up1000/5100440A.txt25
-rw-r--r--tools/alpha/cd/up1000/README.txt16
-rwxr-xr-xtools/alpha/cd/up1000/apb.cfg2
-rwxr-xr-xtools/alpha/cd/up1000/apb.exebin120832 -> 0 bytes
-rw-r--r--tools/alpha/cd/up1000/install.txt356
-rw-r--r--tools/alpha/cd/up1000/up1000.palbin30464 -> 0 bytes
-rwxr-xr-xtools/alpha/e2fsck.sharedbin111080 -> 0 bytes
-rwxr-xr-xtools/checkusedmodules22
-rwxr-xr-xtools/closurepkgs108
-rwxr-xr-xtools/cvslog2changelog.pl139
-rw-r--r--tools/dmidecode/.cvsignore1
-rw-r--r--tools/dmidecode/Makefile17
-rw-r--r--tools/dmidecode/dmidecode.c856
-rw-r--r--tools/drakx-in-chroot124
-rw-r--r--tools/extractchangelog2
-rwxr-xr-xtools/gencompss14
-rwxr-xr-xtools/gencryptofiles115
-rwxr-xr-xtools/genmodparm145
-rwxr-xr-xtools/get-needed-drakx-modules19
-rwxr-xr-xtools/hd_grub.cgi102
-rwxr-xr-xtools/i386/busyboxbin55508 -> 0 bytes
-rwxr-xr-xtools/i386/e2fsck.sharedbin80308 -> 0 bytes
-rwxr-xr-xtools/i386/mkreiserfsbin15868 -> 0 bytes
-rw-r--r--tools/i386/netboot/.cvsignore4
-rw-r--r--tools/i386/netboot/3c503/nbgrubbin112066 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c503/pxegrubbin113090 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/3c503/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c503/stage2bin112130 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c507/nbgrubbin111616 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c507/pxegrubbin112640 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/3c507/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c507/stage2bin111680 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c509/nbgrubbin112020 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c509/pxegrubbin113044 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/3c509/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c509/stage2bin112084 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c529/nbgrubbin112724 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c529/pxegrubbin113748 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/3c529/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c529/stage2bin112788 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c595/nbgrubbin114408 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c595/pxegrubbin115432 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/3c595/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c595/stage2bin114472 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c90x/nbgrubbin115520 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c90x/pxegrubbin116544 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/3c90x/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/3c90x/stage2bin115552 -> 0 bytes
-rw-r--r--tools/i386/netboot/cs89x0/nbgrubbin113762 -> 0 bytes
-rw-r--r--tools/i386/netboot/cs89x0/pxegrubbin114786 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/cs89x0/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/cs89x0/stage2bin113826 -> 0 bytes
-rw-r--r--tools/i386/netboot/davicom/nbgrubbin114160 -> 0 bytes
-rw-r--r--tools/i386/netboot/davicom/pxegrubbin115184 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/davicom/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/davicom/stage2bin114192 -> 0 bytes
-rw-r--r--tools/i386/netboot/depca/nbgrubbin111698 -> 0 bytes
-rw-r--r--tools/i386/netboot/depca/pxegrubbin112722 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/depca/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/depca/stage2bin111762 -> 0 bytes
-rw-r--r--tools/i386/netboot/device.map1
-rw-r--r--tools/i386/netboot/eepro/nbgrubbin111836 -> 0 bytes
-rw-r--r--tools/i386/netboot/eepro/pxegrubbin112860 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/eepro/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/eepro/stage2bin111900 -> 0 bytes
-rw-r--r--tools/i386/netboot/eepro100/nbgrubbin114112 -> 0 bytes
-rw-r--r--tools/i386/netboot/eepro100/pxegrubbin115136 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/eepro100/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/eepro100/stage2bin114144 -> 0 bytes
-rw-r--r--tools/i386/netboot/epic100/nbgrubbin113184 -> 0 bytes
-rw-r--r--tools/i386/netboot/epic100/pxegrubbin114208 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/epic100/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/epic100/stage2bin113248 -> 0 bytes
-rw-r--r--tools/i386/netboot/exos205/nbgrubbin111524 -> 0 bytes
-rw-r--r--tools/i386/netboot/exos205/pxegrubbin112548 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/exos205/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/exos205/stage2bin111588 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/grubbin329223 -> 0 bytes
-rw-r--r--tools/i386/netboot/lance/nbgrubbin113680 -> 0 bytes
-rw-r--r--tools/i386/netboot/lance/pxegrubbin114704 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/lance/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/lance/stage2bin113744 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/makeImages31
-rwxr-xr-xtools/i386/netboot/make_boot_network24
-rw-r--r--tools/i386/netboot/menu.lst.example21
-rw-r--r--tools/i386/netboot/natsemi/nbgrubbin114564 -> 0 bytes
-rw-r--r--tools/i386/netboot/natsemi/pxegrubbin115588 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/natsemi/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/natsemi/stage2bin114628 -> 0 bytes
-rw-r--r--tools/i386/netboot/ne/nbgrubbin111752 -> 0 bytes
-rw-r--r--tools/i386/netboot/ne/pxegrubbin112776 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/ne/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/ne/stage2bin111784 -> 0 bytes
-rw-r--r--tools/i386/netboot/ne2100/nbgrubbin111962 -> 0 bytes
-rw-r--r--tools/i386/netboot/ne2100/pxegrubbin112986 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/ne2100/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/ne2100/stage2bin112026 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni5010/nbgrubbin111006 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni5010/pxegrubbin112030 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/ni5010/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni5010/stage2bin111070 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni5210/nbgrubbin111796 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni5210/pxegrubbin112820 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/ni5210/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni5210/stage2bin111828 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni6510/nbgrubbin111930 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni6510/pxegrubbin112954 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/ni6510/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/ni6510/stage2bin111994 -> 0 bytes
-rw-r--r--tools/i386/netboot/ns8390/nbgrubbin113896 -> 0 bytes
-rw-r--r--tools/i386/netboot/ns8390/pxegrubbin114920 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/ns8390/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/ns8390/stage2bin113960 -> 0 bytes
-rw-r--r--tools/i386/netboot/otulip/nbgrubbin113680 -> 0 bytes
-rw-r--r--tools/i386/netboot/otulip/pxegrubbin114704 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/otulip/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/otulip/stage2bin113744 -> 0 bytes
-rw-r--r--tools/i386/netboot/rtl8139/nbgrubbin113152 -> 0 bytes
-rw-r--r--tools/i386/netboot/rtl8139/pxegrubbin114176 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/rtl8139/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/rtl8139/stage2bin113216 -> 0 bytes
-rw-r--r--tools/i386/netboot/sis900/nbgrubbin116416 -> 0 bytes
-rw-r--r--tools/i386/netboot/sis900/pxegrubbin117440 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/sis900/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/sis900/stage2bin116480 -> 0 bytes
-rw-r--r--tools/i386/netboot/sk_g16/nbgrubbin111618 -> 0 bytes
-rw-r--r--tools/i386/netboot/sk_g16/pxegrubbin112642 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/sk_g16/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/sk_g16/stage2bin111650 -> 0 bytes
-rw-r--r--tools/i386/netboot/smc9000/nbgrubbin112162 -> 0 bytes
-rw-r--r--tools/i386/netboot/smc9000/pxegrubbin113186 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/smc9000/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/smc9000/stage2bin112226 -> 0 bytes
-rw-r--r--tools/i386/netboot/tiara/nbgrubbin110673 -> 0 bytes
-rw-r--r--tools/i386/netboot/tiara/pxegrubbin111697 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/tiara/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/tiara/stage2bin110737 -> 0 bytes
-rw-r--r--tools/i386/netboot/tulip/nbgrubbin123886 -> 0 bytes
-rw-r--r--tools/i386/netboot/tulip/pxegrubbin124910 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/tulip/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/tulip/stage2bin123918 -> 0 bytes
-rw-r--r--tools/i386/netboot/via_rhine/nbgrubbin113768 -> 0 bytes
-rw-r--r--tools/i386/netboot/via_rhine/pxegrubbin114792 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/via_rhine/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/via_rhine/stage2bin113800 -> 0 bytes
-rw-r--r--tools/i386/netboot/w89c840/nbgrubbin114140 -> 0 bytes
-rw-r--r--tools/i386/netboot/w89c840/pxegrubbin115164 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/w89c840/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/w89c840/stage2bin114172 -> 0 bytes
-rw-r--r--tools/i386/netboot/wd/nbgrubbin112088 -> 0 bytes
-rw-r--r--tools/i386/netboot/wd/pxegrubbin113112 -> 0 bytes
-rwxr-xr-xtools/i386/netboot/wd/stage1bin512 -> 0 bytes
-rw-r--r--tools/i386/netboot/wd/stage2bin112120 -> 0 bytes
-rwxr-xr-xtools/i386/shbin153752 -> 0 bytes
-rwxr-xr-xtools/ia64/e2fsck.sharedbin1060504 -> 0 bytes
-rwxr-xr-xtools/ia64/elilo.efibin315800 -> 0 bytes
-rwxr-xr-xtools/install-xml-file-list356
-rwxr-xr-xtools/mailchangelog.pl14
-rw-r--r--tools/make_lang_png_transparent.c167
-rwxr-xr-xtools/mdkinst_stage2_tool44
-rw-r--r--tools/ntp_servers.pl303
-rwxr-xr-xtools/patch_pcmcia_config.pl28
-rw-r--r--tools/ppc/README39
-rwxr-xr-xtools/ppc/Xpmacbin3762427 -> 0 bytes
-rwxr-xr-xtools/ppc/convert5
-rw-r--r--tools/ppc/e2fsck.sharedbin101469 -> 0 bytes
-rwxr-xr-xtools/ppc/magic89
-rwxr-xr-xtools/ppc/mapping29
-rwxr-xr-xtools/ppc/mkINSTALLCD71
-rwxr-xr-xtools/ppc/mkhybrid-1.12b5.4bin488623 -> 0 bytes
-rwxr-xr-xtools/ppc/mkhybrid-1.12b5.4-x86bin194471 -> 0 bytes
-rw-r--r--tools/ppc/yabootbin58556 -> 0 bytes
-rw-r--r--tools/shift_all.pl113
-rw-r--r--tools/shift_img.c165
-rwxr-xr-xtools/simplify-drakx-modules5
-rwxr-xr-xtools/sparc/e2fsck.sharedbin125624 -> 0 bytes
-rwxr-xr-xtools/specific_arch9
-rwxr-xr-xtools/syncrpms267
-rwxr-xr-xtools/update_images52
-rwxr-xr-xtools/x86_64/busyboxbin74064 -> 0 bytes
-rw-r--r--tools/xhost+.c11
190 files changed, 0 insertions, 4078 deletions
diff --git a/tools/.cvsignore b/tools/.cvsignore
deleted file mode 100644
index 88754bc8b..000000000
--- a/tools/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-rpm2header
-gendepslist
-xhost+
-rpcinfo-flushed
diff --git a/tools/2adsldb.pm b/tools/2adsldb.pm
deleted file mode 100644
index 23328aafc..000000000
--- a/tools/2adsldb.pm
+++ /dev/null
@@ -1,17 +0,0 @@
-open F, "isplist.txt" or die "file $file not found";
-open G, ">tutu" or die "file $file not found";
-foreach (<F>) {
- s/\#.*//;
- /.*ADSL.*/ or next;
-#| NOM | PAYS | CONNECTION | MAILTYPE | SMTP | MAILSERVER | NEWS | MY1DNS | MY2DNS | PROXY | PROXYSERVER | DHCP | EMAIL
- s/(.*)france(.*)/$1France$2/;
- s/(.*)FRANCE(.*)/$1France$2/;
- s/(.*)USA(.*)/$1United States$2/;
- s/(.*)U.S.A(.*)/$1United States$2/;
- s/(.*)US(.*)/$1United States$2/;
- s/(.*)usa(.*)/$1United States$2/;
- s/(.*)club-internet(.*)/$1club internet$2/;
- my ($name, $country, $connexion, $mailtype, $smtp, $popserver, $mailserver, $news, $dns1, $dns2, $proxy, $proxyserver, $dhcp, $email) = split /\|/;
- print G join("|", $country, join("=>", $name, $dns1, $dns2)), "\n"; #$domain,
-}
-
diff --git a/tools/2isdndb.pm b/tools/2isdndb.pm
deleted file mode 100644
index 536808706..000000000
--- a/tools/2isdndb.pm
+++ /dev/null
@@ -1,25 +0,0 @@
-open F, "isdndb.txt" or die "file $file not found";
-open G, ">tutu" or die "file $file not found";
-foreach (<F>) {
- s/\#.*//;
-# s/\[City\]\s+National//;
- /\[Country\]\s*(.*)/ and $country = $1;
- /\[City\]\s*(.*)/ and $city = $1;
- /\[Name\]\s*(.*)/ and $name = $1;
- /\[Prefix\]\s*(.*)/ and $prefix = $1;
- /\[ISDN\]\s*(.*)/ and $isdn = $1;
- /\[Encaps\]\s*.*/ and do { defined $dns1 and $dns2=""; };
- /\[Domain\]\s*(.*)/ and $domain = $1;
- /\[DNS\]\s*(.*)/ and ($dns1 ? $dns2 : $dns1) = $1;
- /\[End\]\s*(.*)/ and do { undef $name; undef $prefix; undef $isdn; undef $domain; undef $dns1; undef $dns2; };
- if ($isdn && !$prefix) { $prefix = "" }
- if (defined $name && defined $isdn && defined $domain && defined $dns1 && defined $dns2) {
- print G join("|", $country, $city, join("=>", $name, $prefix . $isdn, $domain, $dns1, $dns2)), "\n";
- undef $name;
- undef $prefix;
- undef $isdn;
- undef $domain;
- undef $dns1;
- undef $dns2;
- }
-}
diff --git a/tools/Makefile b/tools/Makefile
deleted file mode 100644
index 9c1290a1e..000000000
--- a/tools/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-include ../Makefile.config
-
-RPMS = $(wildcard $(MAIN_RPMS_DIR)/*.rpm)
-DIRS = serial_probe
-CFLAGS = -Wall
-
-ARCH := $(shell arch | egrep "(x86_64|sparc64|s390x)")
-ifneq ("x$(ARCH)", "x")
-LIB_NAME = lib64
-else
-LIB_NAME = lib
-endif
-
-.PHONY: clean install $(DIRS)
-
-all: $(DIRS) xhost+ rpcinfo-flushed install
-
-$(DIRS):
- make -C $@
-
-install:
- @install -d $(MISC_DEST)/auto $(MISC_DEST)/Distribconf
- @install mdkinst_stage2_tool $(MISC_DEST)
- cp -rf `perldoc -l packdrake` $(MISC_DEST) || { echo "install packdrake first!" ; exit 1; }
- cp -rf `perldoc -l Packdrakeng` $(MISC_DEST) || { echo "install packdrake first!" ; exit 1; }
- cp -rf `perldoc -l Distribconf` $(MISC_DEST) || { echo "install rpmtools first!" ; exit 1; }
- cp -rf `perldoc -l Distribconf::Build` $(MISC_DEST)/Distribconf || { echo "install rpmtools first!" ; exit 1; }
- @cp -rf `perldoc -l URPM | sed s/URPM.pm//`URPM* $(MISC_DEST) || { echo "install perl-URPM first!" ; exit 1; }
- @cp -rf `perldoc -l URPM | sed s/URPM.pm//`auto/URPM $(MISC_DEST)/auto || { echo "install perl-URPM first!" ; exit 1; }
- @cd /usr/bin ; install packdrake $(MISC_DEST) || { echo "packdrake is missing"; exit 1; }
- @cd /usr/bin ; install gendistrib rpm2header $(MISC_DEST) || { echo "install rpmtools first!" ; exit 1; }
- @mkdir -p $(STAGE2_LIVE)/usr/bin
-
-xhost+: %: %.c
- $(CC) $(CFLAGS) $< -L/usr/X11R6/$(LIB_NAME) -lX11 -o $@
-
-clean:
- for i in $(DIRS); do $(MAKE) -C $$i clean; done
- rm -rf *~ xhost+ rpcinfo-flushed */*.o
diff --git a/tools/addchangelog.pl b/tools/addchangelog.pl
deleted file mode 100755
index 8e39802a6..000000000
--- a/tools/addchangelog.pl
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/perl
-
-@ARGV == 1 or die "usage $0: <cvslog2changelog script>\n";
-
-($script) = @ARGV;
-
-$date = (split('/', `grep ChangeLog perl-install/CVS/Entries`))[3];
-
-@changelog = `(cvs log -d ">$date" docs mdk-stage1 rescue tools ; cd perl-install; cvs log -d ">$date") | $script`;
-@before = `cat perl-install/ChangeLog`;
-
-open F, ">perl-install/ChangeLog";
-print F foreach @changelog, @before;
-
-`cvs commit -m '' perl-install/ChangeLog` =~ /new revision: (.*?);/;
-
-print "$1\n";
-print foreach @changelog;
diff --git a/tools/alpha/cd/Makefile b/tools/alpha/cd/Makefile
deleted file mode 100644
index 67af70f2f..000000000
--- a/tools/alpha/cd/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-install:
- cp -f README README.milo $(ROOTDEST)
- install -d $(ROOTDEST)/etc
- cp -f aboot.cnf $(ROOTDEST)/etc
-
- install -d $(ROOTDEST)/boot
- cp -a up1000 $(ROOTDEST)/boot
- mv -f $(ROOTDEST)/boot/up1000/apb.* $(ROOTDEST)
diff --git a/tools/alpha/cd/README b/tools/alpha/cd/README
deleted file mode 100644
index 78eb94bd5..000000000
--- a/tools/alpha/cd/README
+++ /dev/null
@@ -1,40 +0,0 @@
-!! beta version !!
-
-Mandrake Alpha short Howto-Install
-
-this doc is for SRM, if you have alphabios, see README.milo
-
-
-* to install from the cdrom:
-
-- either boot on the cdrom:
- - in SRM, find the device name corresponding to the cdrom (`show device' can help)
- - enter `boot dqa0 -fl 0' (replacing dqa0 by the cdrom device)
-
-- or you can boot on a floppy:
- - first create a boot floppy from images/cdrom.img
- - in SRM, find the device name corresponding to the floppy (`show device' can help)
- - enter `boot dva0 -fl 0' (replacing dva0 by the floppy device)
- - fulfill the install.
-
-* on reboot:
-
-- either enter `boot XXXX -fl 0' where XXXX is the device where you installed
-the system
-
-- if the device is not available via SRM, use the
-cdrom: `boot dqa0 -file boot/v.gz -fl root=/dev/sda1' (replace sda1 by the
-root you installed on, and dqa0 by the cdrom device)
-
-
-* to install from the network:
-
-Same as for the cdrom install, except give `boot dqa0 -fl 1' or boot on
-images/network.img floppy (with `boot dva0 -fl 0')
-
-
-
- Alpha Team.
-
-Reports problems to Chmouel Boudjnah <chmouel@mandrakesoft.com> or Pixel
-<pixel@mandrakesoft.com>.
diff --git a/tools/alpha/cd/README.milo b/tools/alpha/cd/README.milo
deleted file mode 100644
index d2a52abe9..000000000
--- a/tools/alpha/cd/README.milo
+++ /dev/null
@@ -1,13 +0,0 @@
-* to install from the cdrom:
-
-- put boot/cdrom.rdz on a floppy
-
-- put that floppy in drive fd0
-
-- configure alphabios with (example for miata):
-
-Boot File: CD: \milo\miata\linload.exe
-OS path: CD: \milo\miata\milo
-OS options: boot scd0:/boot/instboot.gz root=/dev/fd0 load_ramdisk=1 mdkinst rw ramdisk_size=32000
-
-if you want text install, just add "text" to the options above
diff --git a/tools/alpha/cd/aboot.cnf b/tools/alpha/cd/aboot.cnf
deleted file mode 100644
index 42c7a4382..000000000
--- a/tools/alpha/cd/aboot.cnf
+++ /dev/null
@@ -1,3 +0,0 @@
-0:boot/instboot.gz initrd=boot/cdrom.rdz mdkinst rw ramdisk=32000 cdrom
-1:boot/instboot.gz initrd=boot/network.rdz mdkinst rw ramdisk=32000 network
-2:boot/instboot.gz initrd=boot/hd.rdz mdkinst rw ramdisk=32000 hd
diff --git a/tools/alpha/cd/up1000/5100440A.txt b/tools/alpha/cd/up1000/5100440A.txt
deleted file mode 100644
index ba6c5a9f1..000000000
--- a/tools/alpha/cd/up1000/5100440A.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-The source code for the object code and executable programs licensed
-
-under GNU General Public License Version 2, June 1991 are available
-
-from Alpha Processor, Inc. at the API web site
-
-
-
- http://www.Alpha-Processor.COM
-
-
-
-For each distributed object or executable form of the programs, you
-
-will find an identifying API part number. You may use that part
-
-number to find the corresponding machine-readable source code.
-
-
-
-If you have any questions, contact Customer Support at API.
-
-
-
-51-0044-0A \ No newline at end of file
diff --git a/tools/alpha/cd/up1000/README.txt b/tools/alpha/cd/up1000/README.txt
deleted file mode 100644
index 88f8855d3..000000000
--- a/tools/alpha/cd/up1000/README.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-Known issues with the UP1000 system:
-
-1. Linux boot via floppy disk drive:
- When booting Linux via APB, it takes about 5 minutes for APB to load the kernel image from a floppy device. Booting from a hard disk takes a matter of seconds.
-
-2. 2x AGP card:
- a. At the present time, 2x AGP driver for Linux is not available so 2x mode has not been tested.
- b. The following cards have been used in 1x AGP mode: cards with Permedia-2 controller: Fire
- GL1000, ELSA Synergy, E&S, Matrox Millenium G200 and Stealth 2000.
- c. 3Dfx Rage Pro Turbo card does not work because the option ROM on the AGP card is
- not properly emulated by Alpha BIOS.
-
-3. Linux installation:
- a. To install Linux, please click the "Utilities" menu in the Alpha BIOS setup mode and the
- "Run Maintenance Program". And follow the Linux installation procedure that API provides.
- b. Please do not use the "Install Linux" menu in the "Operating System" menu. \ No newline at end of file
diff --git a/tools/alpha/cd/up1000/apb.cfg b/tools/alpha/cd/up1000/apb.cfg
deleted file mode 100755
index 06614adcb..000000000
--- a/tools/alpha/cd/up1000/apb.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-floppy|bootl boot\up1000\up1000.pal boot\instboot.gz root=/dev/fd0 load_ramdisk=1 mdkinst rw ramdisk_size=32000
-floppy_text|bootl boot\up1000\up1000.pal boot\instboot.gz root=/dev/fd0 load_ramdisk=1 mdkinst rw ramdisk_size=32000 text
diff --git a/tools/alpha/cd/up1000/apb.exe b/tools/alpha/cd/up1000/apb.exe
deleted file mode 100755
index 4b3aa6099..000000000
--- a/tools/alpha/cd/up1000/apb.exe
+++ /dev/null
Binary files differ
diff --git a/tools/alpha/cd/up1000/install.txt b/tools/alpha/cd/up1000/install.txt
deleted file mode 100644
index 61dff54f9..000000000
--- a/tools/alpha/cd/up1000/install.txt
+++ /dev/null
@@ -1,356 +0,0 @@
-
-- Contents of floppy
-
-apb.exe Alpha Processor bootloader v. 1.0.1.
-apb.cfg Sample apb configuration file.
-up1000.pal PAL code for Linux on UP1000.
-vmlinux.gz Linux kernel v. 2.2.12 with UP1000 patch.
-System.gz Kernel Symbol table.
-INSTALL This file.
-
-
-- Installation of RedHat Linux from CD ROM
-
-1. Copy this directory to a floppy disk.
-
-2. Insert floppy disk and RedHat Linux CD ROM.
- This installation guide assumes
- - hard disk is connected to primary channel as a master
- - CD ROM drive is connected to primary channel as a slave
-
-3. From AlphaBIOS run apb.exe as a utility program.
- [F2]->Utility->Run maintanace program
-
-4. At the apb command prompt, type
- apb> cd floppy
- apb> bootl up1000.pal vmlinux.gz root=/dev/hdb
- This assumes you have an ATAPI CD ROM drive which Linux recognizes
- as /dev/hdb (you may have to try /dev/hda, /dev/hdc, etc. depending
- on your configuration. For a SCSI CD ROM drive, /dev/scd or
- /dev/scd0.
-
-5. This should get you into the RedHat installation program. During the
- disk partitioning phase of the installation be sure to allocate a small
- FAT partition to be used as the "boot" partition. 10 MB should be ample.
- If you choose 'Workstation' or 'Server' package then you don't need to
- partition the disk by yourself.
- * Follow the common redhat installation procedure.
- * During install, Don't configure X server,
- * Select 'Startup through ARC console' on timezone setup menu.
-
-6. Due to bugs in redhat 6.0, FAT partition is not formatted during installation
- depends on package selection.
- So, After installation, run apb.exe from flopy again and at the
- apb command prompt, type
- apb> cd floppy
- apb> bootl up1000.pal vmlinux.gz root=/dev/hda5 single
- You'll get shell prompt then type following commands.
- # mkfs -t msdos /dev/hda1
- # mount /dev/hda1 /dos
- # mcopy a:*.* /dos
- # gzip -dc /dos/system.gz > /boot/System.map
- # ln -s Tsunami /etc/alpha_systype
- # init 6
-
-8. Configure the OS selection menu of AlphaBIOS to start apb.exe
- from the boot partition.
- In 'OS Selection' menu([F2]->Operating system->OS selection setup),
- Make an entry like this.
-
- Boot name: Linux
- Boot file: Disk 0 Partition 1 \apb.exe
- OS Path : Disk 0 Partition 2 \winnt
- OS Options:
-
- OS Path doesn't have any meaning, just leave it intact.
-
-9. You can run apb from hard disk by selecting what you configured on step 8.
-
-10. Set the environment variable APB_DEVICE to be the AlphaBIOS name
- of the boot partition.
- For example,
- apb> setenv APB_DEVICE scsi(0)disk(0)rdisk(0)partition(1)
- type 'cd' once to make above environment variable change to be applied.
- apb> cd
-
-11. Now, You can boot linux by selecting 'Linux' on BIOS' OS boot menu
- and then type this on apb prompt
-
- apb> bootl up1000.pal vmlinux.gz root=/dev/hda5
-
- If you don't want to type above long line everytime. You have two options
- 1. Create apb.cfg file under /dos directory, Its contents look like
-
- linux|bootl up1000.pal vmlinux.gz root=/dev/hda5
-
- then you can boot linux by typying
-
- apb> boot linux
-
- 2. Put option string in OS Selection setup menu of BIOS setup.
-
- Boot name: Linux
- Boot file: Disk 0 Partition 1 \apb.exe
- OS Path : Disk 0 Partition 2 \winnt
- OS Options: bootl up1000.pal vmlinux.gz root=/dev/hda5
-
- Then this setup will boot linux without apb prompt.
-
-
--------------------------------------------------------------------------------
-
-
- APB -- Alpha Processor Bootstrap Loader for AlphaBIOS
-
- Alpha Processor, Inc.
- 130C Baker Ave. Ext.
- Concord, MA 01742, USA
-
- David Daniel, Soohoon Lee, Stig Telfer
- customer.support@alpha-processor.com
-
-========================================================================
-
- Copyright (c) 1999, Alpha Processor, Inc.
- All Rights Reserved
-
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
-provided that the copyright notice and this permission notice appear
-in all copies of software and supporting documentation, and that the
-name of Alpha Processor not be used in advertising or publicity
-pertaining to distribution of the software without specific, written
-prior permission. Alpha Processor grants this permission provided
-that you prominently mark, as not part of the original, any
-modifications made to this software or documentation.
-
-Alpha Processor disclaims all warranties and/or guarantees with regard
-to this software, including all implied warranties of fitness for a
-particular purpose and merchantability, and makes no representations
-regarding the use of, or the results of the use of, the software and
-documentation in terms of correctness, accuracy, reliability,
-currentness or otherwise; and you rely on the software, documentation
-and results solely at your own risk.
-
-========================================================================
-
-
-0. Introduction
-
-APB is a bootstrap loader for Alpha processor based systems with
-AlphaBIOS firmware. It is primarily intended to be used for booting
-Linux, though it may also be useful for free BSD derived systems.
-
-APB borrows ideas and some code from many places, notably Linux and
-other Linux loaders for Alpha systems (aboot and MILO), and the ARCDos
-example in the ARC Application Development Kit. APB can also be
-linked against zlib to support reading compressed kernel and PALcode
-images. See the file CREDITS for details.
-
-
-1. Using APB
-
-+ Overview
-
-APB presents a simple command line interface with the following
-commands
-
- boot TARGET boot a target in the configuration file
- bootl PALCODE KERNEL ARG1 ... boot Unix
- cd DEVICE set the current device
- cp | copy FILE1 FILE2 copy files
- exit | quit exit to AlphaBIOS
- halt | reset system shutdown options
- ls | dir list files on the current device
- mkdir DIR make a directory
- more FILE list a file
- mv | rename FILE1 FILE2 rename a file
- pwd print the current device
- rm | delete FILE delete a file
- printenv [NAME] print environment variable(s)
- setenv [NAME [VAL]] (un)set environment variable
- show targets | devices show information
-
-At any time an AlphaBIOS is device is selected as the default or
-current device. On initialization this is set to the value of the
-APB_DEVICE firmware environment variable, or "multi(0)disk(0)fdisk(0)"
-(usually the floppy device) if this is not set.
-
-To change the default device, use the "cd" command. For example
-
- cd scsi(0)disk(0)rdisk(0)partition(2)\os\linux
-
-sets the default device to be the second partition of the disk 0 on
-the 0th SCSI controller. To save this for future invocations, set the
-APB_DEVICE firmware environment variable using the "setenv" command:
-
- setenv APB_DEVICE scsi(0)disk(0)rdisk(0)partition(2)\os\linux
-
-After this you can return to this device using "cd".
-
-Also the special targets
-
- cd floppy
- cd cdrom
-
-will take you to the (first) floppy and CD-ROM drives respectively.
-
-If there is a file system supported by AlphaBIOS on the device -- FAT,
-ISO 9660 (CD-ROM) -- then a directory listing can be obtained using
-the "dir" or "ls" command:
-
- apb> ls
- Directory listing of scsi(0)disk(0)rdisk(0)partition(2):
- APB.CFG
- APB.EXE
- LINUX.PAL
- VMLINUX
-
-
-+ Booting from disk
-
-The recommended way to boot a system using APB is set aside a small
-(10 - 30 MB) FAT partition on one disk to be used as a boot partition.
-The following files should be placed on the boot partition:
-
- The APB image (APB.EXE)
- The PALcode image
- The kernel image
- An optional configuration file "APB.CFG" (see below)
-
-Run APB (either from floppy or from the boot partition and use it to
-set the environment variable APB_DEVICE to the name of the boot
-partition. For example if the boot partition is the first partition
-on a SCSI disk with SCSI ID 3 on the first SCSI controller, and the files are in directory \os\linux set APB_DEVICE using
-
- apb> setenv APB_DEVICE scsi(0)disk(3)rdisk(0)partition(1)\os\linux
-
-To enable autoboot
-
- apb> setenv APB_AUTOBOOT 1
-
-This performs the first boot command it finds in the APB configuration
-file, unless interrupted.
-
-Otherwise boot manually using a command such as
-
- apb> bootl palcode kernel [kernel_arg1 [kernel_arg1 ...]]
-
-or use one of the labels defined in the APB configuration file, for
-example
-
- apb> boot linux
-
-See below for the configuration file format.
-
-+ Environment variables
-
-APB uses the following firmware environment variables to set default
-noptions:
-
- APB_DEVICE Default device for all operations
- APB_AUTOBOOT Determines whether an autoboot should be attempted
-
-If these are not set on invocation, then they are set to reasonable
-values, namely
-
- APB_DEVICE=multi(0)disk(0)fdisk(0)
- APB_AUTOBOOT=0
-
-+ Configuration file
-
-APB consults a configuration file "APB.CFG" that is assumed to be
-located at the current device path (initially given by environment
-variable APB_DEVICE). The file consists of lines that are either
-comments, or boot commands prefixed with a mnemonic label. For example
-
- # This is comment
- linux-2.2|bootl linux.pal vmlinux.gz root=/dev/sda3
- linux-2.0|bootl linux.pal vml20.gz root=/dev/sda3
-
-In this case, to boot linux-2.2, type
-
- apb> boot linux-2.2
-
-which is equivalent to
-
- apb> bootl linux.pal vmlinux.gz root=/dev/sda3
-
-If the AUTO_BOOT environment variable is set TRUE, then the default
-configuration will be booted after 10 seconds, unless a key is
-pressed.
-
-+ Boot devices
-
-APB can boot from any filesystem supported by AlphaBIOS. At present
-these are limited to FAT, NTFS and ISO 9660 (CD-ROM).
-
-+ Booting from a network device
-
-Not yet implemented.
-
-
-2. Building APB
-
-APB is an AlphaBIOS/ARC application. Currently it must be built on an
-Microsoft Windows NT 4.0 Alpha processor system, with Microsoft Visual
-C++ 5.0 (or higher), the Microsoft Software Development Kit (SDK) and
-Device Driver Development Kit (DDK) for NT 4.0, and Compaq ARC
-Application Development Kit (ADK) 1.3.
-
-Optionally, APB can be linked against zlib (a free compression
-library) to support reading compressed kernel and PALcode images.
-
-To build, open a command window, set up the environment:
-
- VC++ (e.g "C:Program Files\DevStudio\VC\bin\vcvars32.bat")
- DDK (e.g. "C:\DDK\bin\setenv.bat C:\DDK")
- ADK (e.g. "set ADK=C:\adkv13\adk")
-
-and then and make using nmake. For example:
-
- C:\apb-1.0> nmake
-
-where the DDK has been installed on the C: drive.
-
-If building with compressed file support, obtain and unpack zlib
-(http://www.cdrom.com/pub/infozip/zlib/), set the variable ZLIB to
-the zlib directory, and then make. For example
-
- C:\apb-1.0> set ZLIB=C:\zlib-1.1.3
- C:\apb-1.0> nmake
-
-In either case, the executable is placed in the "obj\alpha"
-subdirectory.
-
-
-3. What APB does
-
-Booting Linux with APB involves the following steps:
-
- AlphaBIOS loads and transfers control to APB.
-
- APB is called with an argument specifying the device (as known to
- AlphaBIOS) from which to read the Linux kernel, and additional
- arguments to be passed on to the kernel.
-
- APB sets up the environment for Linux, including loading and
- switching to the correct PAL code, setting up the HWRPB, copying
- kernel arguments to the right location in memory etc.
-
- APB reads the Linux kernel image into memory from the specified
- device (raw disk initially, and eventually filesystems or network
- devices via bootp) and transfers control.
-
-
-4. Modifying APB
-
-APB has been written with the aim of maintaining platform independence
-across all AlphaBIOS (and ARC) systems. Furthermore, all dependence
-on the ARC API has been isolated in the file "arc.c", so that porting
-to another firmware environment should not be too difficult as long as
-it provides a sufficiently complete API.
-
-Additional user commands can be incorporated through the command
-dispatch table in "cmd.c".
-
diff --git a/tools/alpha/cd/up1000/up1000.pal b/tools/alpha/cd/up1000/up1000.pal
deleted file mode 100644
index a47b359f3..000000000
--- a/tools/alpha/cd/up1000/up1000.pal
+++ /dev/null
Binary files differ
diff --git a/tools/alpha/e2fsck.shared b/tools/alpha/e2fsck.shared
deleted file mode 100755
index 765e664a1..000000000
--- a/tools/alpha/e2fsck.shared
+++ /dev/null
Binary files differ
diff --git a/tools/checkusedmodules b/tools/checkusedmodules
deleted file mode 100755
index 433ed54d9..000000000
--- a/tools/checkusedmodules
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# This script compares the perl modules used by the .pm files in perl-install
-# against the ones listed in share/list, to detect potential missing modules
-# (and potential run-time problems during the stage 2)
-
-cd ../perl-install || exit 1;
-
-# list of used .pm files
-find . -name '*.pm' -not -name b_dump_strings.pm -not -path ./interactive/http.pm | \
- xargs perl -lne '/^\s*(use|require)\s+([\w:]+)/ && print $2' | sort -u > /tmp/gi-used-pm
-
-# list of .pm files included in install
-perl -lne 'm{/(?:PERL_VERSION|ARCH-linux|vendor_perl/\*)/([\w/]+)\.pm$} and $_=$1, s,/,::,g, print' share/list > /tmp/gi-found-pm0
-find . -name blib -prune -o -name '*.pm' | perl -ne 's,^\./,,; s/\.pm$// or next; s,/,::,g; print' >> /tmp/gi-found-pm0
-
-# compute difference
-sort -u /tmp/gi-found-pm0 > /tmp/gi-found-pm
-diff -u /tmp/gi-{used,found}-pm | perl -lne 'BEGIN{print"Unpackaged modules:"} s/^-(?!-)/ / && print'
-
-# cleanup
-rm -f /tmp/gi-used-pm /tmp/gi-found-pm{,0}
diff --git a/tools/closurepkgs b/tools/closurepkgs
deleted file mode 100755
index 2ef479486..000000000
--- a/tools/closurepkgs
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/usr/bin/perl
-
-use rpmtools;
-
-sub chop_version($) {
- ($_[0] =~ /(.*)-[^-]+-[^-]+/)[0] || $_[0];
-}
-
-sub read_compsslist {
- my ($file) = @_;
- my %compsslist;
-
- local *F;
- open F, $file or die "closurepkgs: unable to open compsslist file $file\n";
- foreach (<F>) {
- my ($name, $level) = /^\s*(\S+)\s+(\d+)/;
- $compsslist{$name} = $level;
- }
- close F;
-
- \%compsslist;
-}
-
-sub main {
- my ($dir, $lang) = @_;
-
- #- compute depslist on line directly.
- my $params = new rpmtools;
- foreach (glob("$dir/*.cz*")) { $params->read_hdlists($_) }
- $params->keep_only_cleaned_provides_files();
- foreach (glob("$dir/*.cz*")) { $params->read_hdlists($_) }
- $params->compute_depslist();
-
- my $compsslist = read_compsslist("$dir/compssList");
-
- #- DO NOT FORGET TO UPDATE HERE ACCORDING TO gi/perl-install/install_any.pm
- my @pkgs = qw(XFree86 XFree86-glide-module Device3Dfx Glide_V3-DRI Glide_V5 Mesa
- dhcpcd pump dhcpxd dhcp-client isdn4net isdn4k-utils dev pptp-adsl-fr rp-pppoe ppp ypbind
- rhs-printfilters lpr cups cups-drivers samba ncpfs ghostscript-utils
- kernel-pcmcia-cs apmd cdrecord
- );
- push @pkgs, "XFree86-$_" foreach qw(3DLabs 3dfx 8514 AGX FBDev I128 Mach8 Mach32 Mach64 Mono P9000 Rage128 S3 S3V SVGA VGA16 W32);
-
- #- closure the list of package to be kept for oem.
- my %closure;
- foreach (@pkgs) {
- $closure{$_} = 1;
- map { $closure{chop_version($_->{name})} = 1 } map { $params->{depslist}[$_] } map { split /\|/ } split ' ', $params->{info}{$_}{deps};
- }
- #- only if dependancy is ok.
- $closure{$_} = 1 foreach qw(xpp kups kisdn);
-
- #- closure the list of package to always install for oem. (level >= 50)...
- my %install;
- my @force_install;
- if ($params->{info}{"locales-$lang"}) {
- foreach (keys %{$params->{info}}) {
- push @force_install, $_ if grep { $_ == $params->{info}{"locales-$lang"}{id} } split ' ', $params->{info}{$_}{deps};
- }
- } else {
- foreach (keys %{$params->{info}}) {
- push @force_install, $_ if grep { $params->{depslist}[$_]{name} =~ /locales-/ } split ' ', $params->{info}{$_}{deps};
- }
- }
- push @force_install, qw(cups cups-drivers drakprofile draksync irda-utils numlock raidtools reiserfs-utils
- Mesa Mesa-demos alsa alsa-utils);
- foreach (qw(
- Aurora xawtv kwintv xscreensaver-gl Mesa-demos xmms-mesa bzflag csmash gltron spacecup chromium tuxracer
- ), @force_install, grep { $compsslist->{$_} >= 50 } keys %{$params->{info}}) {
- $install{$_} = 1;
- map { $install{chop_version($_->{name})} = 1 } map { $params->{depslist}[$_] } map { split /\|/ } split ' ', $params->{info}{$_}{deps};
- }
-
- #- remove base packages, which have to be installed, according to basesystem.
- delete $closure{'basesystem'};
- $install{'basesystem'} = 1;
- map { delete $closure{chop_version($_->{name})};
- $install{chop_version($_->{name})} = 1 } map { $params->{depslist}[$_] } map { split /\|/ } split ' ', $params->{info}{'basesystem'}{deps};
-
- #- special packages that are to be move to closure always ...
- foreach (qw(kernel-smp kernel-linus kernel-secure hackkernel-smp hackkernel-linus hackkernel-secure
- Aurora xawtv kwintv xscreensaver-gl xmms-mesa bzflag csmash gltron spacecup chromium tuxracer
- )) {
- $params->{info}{$_} or next;
- $closure{$_} = 1;
- delete $install{$_};
- }
-
- #- dump out the list of package according to the 2 lists defined above.
- my $total_install = 0;
- my $total_closure = 0;
- foreach (@{$params->{depslist}}) {
- my $tiny_name = chop_version($_->{name});
- if (exists $install{$tiny_name}) {
- my $p = $params->{info}{$tiny_name};
- $total_install += $p->{size};
- print "I:$p->{name}-$p->{version}-$p->{release}\n";
- } elsif (exists $closure{$tiny_name}) {
- my $p = $params->{info}{$tiny_name};
- $total_closure += $p->{size};
- print "C:$p->{name}-$p->{version}-$p->{release}\n";
- }
- }
- print "\n\ntotal_install=$total_install\n";
- print "total_closure=$total_closure\n";
-}
-
-main(@ARGV);
diff --git a/tools/cvslog2changelog.pl b/tools/cvslog2changelog.pl
deleted file mode 100755
index be8d7872f..000000000
--- a/tools/cvslog2changelog.pl
+++ /dev/null
@@ -1,139 +0,0 @@
-#!/usr/bin/perl
-
-my %l;
-{
-my ($date, $user, $file);
-local $_;
-while (<>) {
- if (my $e = /^description:/ .. /^={77}/) {
- next if $e == 1 || $e =~ /E0/;
- if (/^-{28}/ .. /^date: /) {
- if (/^date: (\S+)\s.*author: (\S+);/) {
- ($date, $user) = ($1, $2);
- }
- } elsif (!/^branches: / && !/file .* was initially added on branch/ && !/empty log message/ && !/no_comment/) {
- $l{$date}{$user}{$file} .= $_;
- }
- } elsif (/Working file: (.*)/) {
- $file = $1;
- }
-}
-}
-
-
-my %users;
-foreach my $date (reverse sort keys %l) {
- foreach my $user (sort keys %{$l{$date}}) {
- next if $ENV{AUTHOR} && $ENV{AUTHOR} ne $user;
-
- my $fuser = $users{$user} || $user;
- print "$date $fuser\n\n";
- my %inv;
- while (my ($file, $log) = each %{$l{$date}{$user}}) {
- $log =~ s/^\s+( \*)?//ms;
- $log =~ s/\s+$//ms;
- $log = "\n$log" if $log =~ /^-/;
- push @{$inv{$log}}, $file;
- }
- foreach my $log (keys %inv) {
- my $line = join(', ', @{$inv{$log}}) . ($log !~ /^\(/ && ':') . " $log";
- print "\t* ", join("\n\t", auto_fill($line, 72)), "\n\n";
- }
- }
-}
-
-1;
-
-sub auto_fill {
- my ($line, $col) = @_;
- map {
- my @l;
- my $l = '';
- $_ = " $_" if /^-/;
- while ($_) {
- s/^(\s*)(\S*)//;
- my $m = "$l$1$2";
- if (length $m > $col) {
- push @l, $l;
- $l = $2;
- } else {
- $l = $m
- }
- }
- @l, $l;
- } split("\n", $line);
-}
-
-BEGIN {
- %users = (
- 'abiro' => 'Arpad Biro <biro_arpad at yahoo.com>',
- 'adelorbeau' => 'Arnaud de Lorbeau <adelorbeau at mandrakesoft.com>',
- 'adesmons' => 'Arnaud Desmons',
- 'aginies' => 'Antoine Ginies <aginies at mandrakesoft.com> ',
- 'alafox' => 'Alice Lafox <alice at lafox.com.ua>',
- 'alemaire' => 'Aurélien Lemaire',
- 'alus' => 'Arkadiusz Lipiec <alipiec at elka.pw.edu.pl>',
- 'amaury' => 'Amaury Amblard-Ladurantie',
- 'baudens' => 'David Baudens <baudens at mandrakesoft.com>',
- 'camille' => 'Camille Bégnis <camille at mandrakesoft.com>',
- 'cbelisle' => 'Christian Belisle',
- 'chmou' => 'Chmouel Boudjnah',
- 'chmouel' => 'Chmouel Boudjnah',
- 'croy' => 'Christian Roy <croy at mandrakesoft.com>',
- 'damien' => 'dam\'s <dams at idm.fr>',
- 'daouda' => 'Daouda Lo <daouda at mandrakesoft.com>',
- 'dchaumette' => 'Damien Chaumette <dchaumette at mandrakesoft.com>',
- 'dindinx' => 'David odin',
- 'drdrake' => 'Dovix <dovix2003 at yahoo.com>',
- 'erwan' => 'Erwan Velu <erwan at mandrakesoft.com>',
- 'fabman' => 'Fabian Mandelbaum <fabman at 2vias.com.ar>',
- 'fcrozat' => 'Frederic Crozat <fcrozat at mandrakesoft.com>',
- 'flepied' => 'Frederic Lepied <flepied at mandrakesoft.com>',
- 'florin' => 'Florin Grad <florin at mandrakesoft.com>',
- 'fpons' => 'Fançois Pons',
- 'fred' => 'Frederic Bastok',
- 'fwang' => 'Funda Wang <fundawang at linux.net.cn>',
- 'gb' => 'Gwenole Beauchesne <gbeauchesne at mandrakesoft.com>',
- 'gbeauchesne' => 'Gwenole Beauchesne <gbeauchesne at mandrakesoft.com>',
- 'gc' => 'Guillaume Cottenceau <gc at mandrakesoft.com>',
- 'hilbert' => '(Hilbert) <h at mandrake.org>',
- 'install' => 'DrakX <install at mandrakesoft.com>',
- 'jdanjou' => 'Julien Danjou',
- 'jjorge' => 'José JORGE <jjorge at free.fr>',
- 'jpomerleau' => 'Joel Pomerleau',
- 'keld' => 'Keld Jørn Simonsen <keld at dkuug.dk>',
- 'lmontel' => 'Laurent Montel <lmontel at mandrakesoft.com>',
- 'mscherer' => 'Michael Scherer <mscherer at mandrake.org>',
- 'nplanel' => 'Nicolas Planel <nplanel at mandrakesoft.com>',
- 'oblin' => 'Olivier Blin <oblin at mandrakesoft.com>',
- 'othauvin' => 'Olivier Thauvin <thauvin at aerov.jussieu.fr>',
- 'pablo' => 'Pablo Saratxaga <pablo at mandrakesoft.com>',
- 'peroyvind' => 'Per Øyvind Karlsen <peroyvind at linux-mandrake.com>',
- 'phetroy' => 'Philippe Libat',
- 'philippe' => 'Philippe Libat',
- 'prigaux' => 'Pixel <pixel at mandrakesoft.com>',
- 'quintela' => 'Juan Quintela <quintela at mandrakesoft.com>',
- 'rchaillat' => 'Renaud Chaillat',
- 'rdalverny' => 'Romain d\'Alverny <rdalverny at mandrakesoft.com>',
- 'redhog' => 'RedHog',
- 'reinouts' => 'Reinout van Schouwen <reinout at cs.vu.nl>',
- 'rgarciasuarez' => 'Rafael Garcia-Suarez <rgarciasuarez at mandrakesoft.com>',
- 'rvojta' => 'Robert Vojta <robert.vojta at mandrake.cz>',
- 'sbenedict' => 'Stew Benedict <sbenedict at mandrakesoft.com>',
- 'sdetilly' => 'Sylvain de Tilly',
- 'siegel' => 'Stefan Siegel <siegel at linux-mandrake.com>',
- 'tbacklund' => 'Thomas Backlund <tmb at mandrake.org>',
- 'tkamppeter' => 'Till Kamppeter <till at mandrakesoft.com>',
- 'tpittich' => 'Tibor Pittich <Tibor.Pittich at phuture.sk>',
- 'tsdgeos ' => 'Albert Astals Cid <astals11 at terra.es>',
- 'tv' => 'Thierry Vignaud <tvignaud at mandrakesoft.com>',
- 'tvignaud' => 'Thierry Vignaud <tvignaud at mandrakesoft.com>',
- 'uid524' => 'Chmouel Boudjnah',
- 'vdanen' => 'Vincent Danen <vdanen at mandrakesoft.com>',
- 'vguardiola' => 'Vincent Guardiola <vguardiola at mandrakesoft.com>',
- 'warly' => 'Warly <warly at mandrakesoft.com>',
- 'yduret' => 'Yves Duret',
- 'yoann' => 'Yoann Vandoorselaere',
- 'yrahal' => 'Youcef Rabah Rahal <rahal at arabeyes.org>',
- );
-}
diff --git a/tools/dmidecode/.cvsignore b/tools/dmidecode/.cvsignore
deleted file mode 100644
index 9b4923a2d..000000000
--- a/tools/dmidecode/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-dmidecode
diff --git a/tools/dmidecode/Makefile b/tools/dmidecode/Makefile
deleted file mode 100644
index fe53436f4..000000000
--- a/tools/dmidecode/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-CFLAGS=-Wall -O # -g -DDEBUG
-TARGETS=dmidecode
-
-ARCH := $(patsubst i%86,i386,$(shell uname -m))
-ARCH := $(patsubst sparc%,sparc,$(ARCH))
-
-ifeq (i386,$(ARCH))
-
-dmidecode: dmidecode.o
-
-else
-dmidecode: not_handled.c
- gcc -o $@ $<
-endif
-
-clean:
- $(RM) $(TARGETS) *.o core
diff --git a/tools/dmidecode/dmidecode.c b/tools/dmidecode/dmidecode.c
deleted file mode 100644
index 576fd4fc1..000000000
--- a/tools/dmidecode/dmidecode.c
+++ /dev/null
@@ -1,856 +0,0 @@
-/*
- * DMI decode rev 1.2
- *
- * (C) 2000,2001 Alan Cox <alan@redhat.com>
- *
- * 2-July-2001 Matt Domsch <Matt_Domsch@dell.com>
- * Additional structures displayed per SMBIOS 2.3.1 spec
- *
- * Licensed under the GNU Public license. If you want to use it in with
- * another license just ask.
- */
-
-#include <stdio.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <string.h>
-#include <stdlib.h>
-
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned int u32;
-
-static void
-dump_raw_data(void *data, unsigned int length)
-{
- unsigned char buffer1[80], buffer2[80], *b1, *b2, c;
- unsigned char *p = data;
- unsigned long column=0;
- unsigned int length_printed = 0;
- const unsigned char maxcolumn = 16;
- while (length_printed < length) {
- b1 = buffer1;
- b2 = buffer2;
- for (column = 0;
- column < maxcolumn && length_printed < length;
- column ++) {
- b1 += sprintf(b1, "%02x ",(unsigned int) *p);
- if (*p < 32 || *p > 126) c = '.';
- else c = *p;
- b2 += sprintf(b2, "%c", c);
- p++;
- length_printed++;
- }
- /* pad out the line */
- for (; column < maxcolumn; column++)
- {
- b1 += sprintf(b1, " ");
- b2 += sprintf(b2, " ");
- }
-
- printf("%s\t%s\n", buffer1, buffer2);
- }
-}
-
-
-
-struct dmi_header
-{
- u8 type;
- u8 length;
- u16 handle;
-};
-
-static char *dmi_string(struct dmi_header *dm, u8 s)
-{
- u8 *bp=(u8 *)dm;
- if (!s) return "";
-
- bp+=dm->length;
- while(s>1)
- {
- bp+=strlen(bp);
- bp++;
- s--;
- }
- return bp;
-}
-
-static void dmi_decode_ram(u16 data)
-{
- if(data&(1<<0))
- printf("OTHER ");
- if(data&(1<<1))
- printf("UNKNOWN ");
- if(data&(1<<2))
- printf("STANDARD ");
- if(data&(1<<3))
- printf("FPM ");
- if(data&(1<<4))
- printf("EDO ");
- if(data&(1<<5))
- printf("PARITY ");
- if(data&(1<<6))
- printf("ECC ");
- if(data&(1<<7))
- printf("SIMM ");
- if(data&(1<<8))
- printf("DIMM ");
- if(data&(1<<9))
- printf("Burst EDO ");
- if(data&(1<<10))
- printf("SDRAM ");
-}
-
-static void dmi_cache_size(u16 n)
-{
- if(n&(1<<15))
- printf("%dK\n", (n&0x7FFF)*64);
- else
- printf("%dK\n", n&0x7FFF);
-}
-
-static void dmi_decode_cache(u16 c)
-{
- if(c&(1<<0))
- printf("Other ");
- if(c&(1<<1))
- printf("Unknown ");
- if(c&(1<<2))
- printf("Non-burst ");
- if(c&(1<<3))
- printf("Burst ");
- if(c&(1<<4))
- printf("Pipeline burst ");
- if(c&(1<<5))
- printf("Synchronous ");
- if(c&(1<<6))
- printf("Asynchronous ");
-}
-
-static char *dmi_bus_name(u8 num)
-{
- static char *bus[]={
- "",
- "",
- "",
- "ISA ",
- "MCA ",
- "EISA ",
- "PCI ",
- "PCMCIA "
- "VLB ",
- "Proprietary ",
- "CPU Slot ",
- "Proprietary RAM ",
- "I/O Riser ",
- "NUBUS ",
- "PCI-66 ",
- "AGP ",
- "AGP 2x ",
- "AGP 4x "
- };
- static char *jpbus[]={
- "PC98/C20",
- "PC98/C24",
- "PC98/E",
- "PC98/LocalBus",
- "PC98/Card"
- };
-
- if(num<=0x12)
- return bus[num];
- if(num>=0xA0 && num<0xA5)
- return jpbus[num];
- return "";
-}
-
-static char *dmi_bus_width(u8 code)
-{
- static char *width[]={
- "",
- "",
- "",
- "8bit ",
- "16bit ",
- "32bit ",
- "64bit ",
- "128bit "
- };
- if(code>7)
- return "";
- return width[code];
-}
-
-static char *dmi_card_size(u8 v)
-{
- if(v==2)
- return("Short ");
- if(v==3)
- return("Long ");
- return "";
-}
-
-static void dmi_card_props(u8 v)
-{
- printf("\t\tSlot Features: ");
- if(v&(1<<1))
- printf("5v ");
- if(v&(1<<2))
- printf("3.3v ");
- if(v&(1<<3))
- printf("Shared ");
- if(v&(1<<4))
- printf("PCCard16 ");
- if(v&(1<<5))
- printf("CardBus ");
- if(v&(1<<6))
- printf("Zoom-Video ");
- if(v&(1<<7))
- printf("ModemRingResume ");
- printf("\n");
-}
-
-static char *dmi_chassis_type(u8 code)
-{
- static char *chassis_type[]={
- "",
- "Other",
- "Unknown",
- "Desktop",
- "Low Profile Desktop",
- "Pizza Box",
- "Mini Tower",
- "Tower",
- "Portable",
- "Laptop",
- "Notebook",
- "Hand Held",
- "Docking Station",
- "All in One",
- "Sub Notebook",
- "Space-saving",
- "Lunch Box",
- "Main Server Chassis",
- "Expansion Chassis",
- "SubChassis",
- "Bus Expansion Chassis",
- "Peripheral Chassis",
- "RAID Chassis",
- "Rack Mount Chassis",
- "Sealed-case PC",
- };
- code &= ~0x80;
-
- if(code>0x18)
- return "";
- return chassis_type[code];
-
-}
-
-static char *dmi_port_connector_type(u8 code)
-{
- static char *connector_type[]={
- "None",
- "Centronics",
- "Mini Centronics",
- "Proprietary",
- "DB-25 pin male",
- "DB-25 pin female",
- "DB-15 pin male",
- "DB-15 pin female",
- "DB-9 pin male",
- "DB-9 pin female",
- "RJ-11",
- "RJ-45",
- "50 Pin MiniSCSI",
- "Mini-DIN",
- "Micro-DIN",
- "PS/2",
- "Infrared",
- "HP-HIL",
- "Access Bus (USB)",
- "SSA SCSI",
- "Circular DIN-8 male",
- "Circular DIN-8 female",
- "On Board IDE",
- "On Board Floppy",
- "9 Pin Dual Inline (pin 10 cut)",
- "25 Pin Dual Inline (pin 26 cut)",
- "50 Pin Dual Inline",
- "68 Pin Dual Inline",
- "On Board Sound Input from CD-ROM",
- "Mini-Centronics Type-14",
- "Mini-Centronics Type-26",
- "Mini-jack (headphones)",
- "BNC",
- "1394",
- "PC-98",
- "PC-98Hireso",
- "PC-H98",
- "PC-98Note",
- "PC98Full",
- };
-
- if(code == 0xFF)
- return "Other";
-
- if (code > 0xA4)
- return "";
- return connector_type[code];
-
-}
-
-static char *dmi_port_type(u8 code)
-{
- static char *port_type[]={
- "None",
- "Parallel Port XT/AT Compatible",
- "Parallel Port PS/2",
- "Parallel Port ECP",
- "Parallel Port EPP",
- "Parallel Port ECP/EPP",
- "Serial Port XT/AT Compatible",
- "Serial Port 16450 Compatible",
- "Serial Port 16650 Compatible",
- "Serial Port 16650A Compatible",
- "SCSI Port",
- "MIDI Port",
- "Joy Stick Port",
- "Keyboard Port",
- "Mouse Port",
- "SSA SCSI",
- "USB",
- "FireWire (IEEE P1394)",
- "PCMCIA Type I",
- "PCMCIA Type II",
- "PCMCIA Type III",
- "Cardbus",
- "Access Bus Port",
- "SCSI II",
- "SCSI Wide",
- "PC-98",
- "PC-98-Hireso",
- "PC-H98",
- "Video Port",
- "Audio Port",
- "Modem Port",
- "Network Port",
- "8251 Compatible",
- "8251 FIFO Compatible",
- };
-
- if(code == 0xFF)
- return "Other";
-
- if (code > 0xA1)
- return "";
- return port_type[code];
-
-}
-
-static char *dmi_processor_type(u8 code)
-{
- static char *processor_type[]={
- "",
- "Other",
- "Unknown",
- "Central Processor",
- "Math Processor",
- "DSP Processor",
- "Video Processor"
- };
-
- if(code == 0xFF)
- return "Other";
-
- if (code > 0xA1)
- return "";
- return processor_type[code];
-}
-
-static char *dmi_processor_family(u8 code)
-{
- static char *processor_family[]={
- "",
- "Other",
- "Unknown",
- "8086",
- "80286",
- "Intel386 processor",
- "Intel486 processor",
- "8087",
- "80287",
- "80387",
- "80487",
- "Pentium processor Family",
- "Pentium Pro processor",
- "Pentium II processor",
- "Pentium processor with MMX technology",
- "Celeron processor",
- "Pentium II Xeon processor",
- "Pentium III processor",
- "M1 Family",
- "M1","M1","M1","M1","M1","M1", /* 13h - 18h */
- "K5 Family",
- "K5","K5","K5","K5","K5","K5", /* 1Ah - 1Fh */
- "Power PC Family",
- "Power PC 601",
- "Power PC 603",
- "Power PC 603+",
- "Power PC 604",
- };
-
- if(code == 0xFF)
- return "Other";
-
- if (code > 0x24)
- return "";
- return processor_family[code];
-}
-
-static char *dmi_onboard_type(u8 code)
-{
- static char *onboard_type[]={
- "",
- "Other",
- "Unknown",
- "Video",
- "SCSI Controller",
- "Ethernet",
- "Token Ring",
- "Sound",
- };
- code &= 0x80;
- if (code > 7)
- return "";
- return onboard_type[code];
-}
-
-
-static void dmi_table(int fd, u32 base, int len, int num)
-{
- char *buf=malloc(len);
- struct dmi_header *dm;
- u8 *data;
- int i=0;
-
- if(lseek(fd, (long)base, 0)==-1)
- {
- perror("dmi: lseek");
- return;
- }
- if(read(fd, buf, len)!=len)
- {
- perror("dmi: read");
- return;
- }
- data = buf;
- while(i<num)
- {
- u32 u;
- u32 u2;
- dm=(struct dmi_header *)data;
- printf("Handle 0x%04X\n\tDMI type %d, %d bytes.\n",
- dm->handle,
- dm->type, dm->length);
-
- switch(dm->type)
- {
- case 0:
- printf("\tBIOS Information Block\n");
- printf("\t\tVendor: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tVersion: %s\n",
- dmi_string(dm, data[5]));
- printf("\t\tRelease: %s\n",
- dmi_string(dm, data[8]));
- printf("\t\tBIOS base: 0x%04X0\n",
- data[7]<<8|data[6]);
- printf("\t\tROM size: %dK\n",
- 64*data[9]);
- printf("\t\tCapabilities:\n");
- u=data[13]<<24|data[12]<<16|data[11]<<8|data[10];
- u2=data[17]<<24|data[16]<<16|data[15]<<8|data[14];
- printf("\t\t\tFlags: 0x%08X%08X\n",
- u2,u);
- break;
-
- case 1:
- printf("\tSystem Information Block\n");
- printf("\t\tVendor: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tProduct: %s\n",
- dmi_string(dm, data[5]));
- printf("\t\tVersion: %s\n",
- dmi_string(dm, data[6]));
- printf("\t\tSerial Number: %s\n",
- dmi_string(dm, data[7]));
- break;
-
- case 2:
- printf("\tBoard Information Block\n");
- printf("\t\tVendor: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tProduct: %s\n",
- dmi_string(dm, data[5]));
- printf("\t\tVersion: %s\n",
- dmi_string(dm, data[6]));
- printf("\t\tSerial Number: %s\n",
- dmi_string(dm, data[7]));
- break;
-
- case 3:
- printf("\tChassis Information Block\n");
- printf("\t\tVendor: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tChassis Type: %s\n",
- dmi_chassis_type(data[5]));
- if (data[5] & 0x80)
- printf("\t\t\tLock present\n");
- printf("\t\tVersion: %s\n",
- dmi_string(dm, data[6]));
- printf("\t\tSerial Number: %s\n",
- dmi_string(dm, data[7]));
- printf("\t\tAsset Tag: %s\n",
- dmi_string(dm, data[8]));
- break;
-
- case 4:
- printf("\tProcessor\n");
- printf("\t\tSocket Designation: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tProcessor Type: %s\n",
- dmi_processor_type(data[5]));
- printf("\t\tProcessor Family: %s\n",
- dmi_processor_family(data[6]));
- printf("\t\tProcessor Manufacturer: %s\n",
- dmi_string(dm, data[7]));
- printf("\t\tProcessor Version: %s\n",
- dmi_string(dm, data[0x10]));
- if (dm->length <= 0x20) break;
- printf("\t\tSerial Number: %s\n",
- dmi_string(dm, data[0x20]));
- printf("\t\tAsset Tag: %s\n",
- dmi_string(dm, data[0x21]));
- printf("\t\tVendor Part Number: %s\n",
- dmi_string(dm, data[0x22]));
- break;
-
- case 5:
- printf("\tMemory Controller\n");
- break;
-
- case 6:
- printf("\tMemory Bank\n");
- printf("\t\tSocket: %s\n", dmi_string(dm, data[4]));
- if(data[5]!=0xFF)
- {
- printf("\t\tBanks: ");
- if((data[5]&0xF0)!=0xF0)
- printf("%d ",
- data[5]>>4);
- if((data[5]&0x0F)!=0x0F)
- printf("%d",
- data[5]&0x0F);
- printf("\n");
- }
- if(data[6])
- printf("\t\tSpeed: %dnS\n", data[6]);
- printf("\t\tType: ");
- dmi_decode_ram(data[8]<<8|data[7]);
- printf("\n");
- printf("\t\tInstalled Size: ");
- switch(data[9]&0x7F)
- {
- case 0x7D:
- printf("Unknown");break;
- case 0x7E:
- printf("Disabled");break;
- case 0x7F:
- printf("Not Installed");break;
- default:
- printf("%dMbyte",
- (1<<(data[9]&0x7F)));
- }
- if(data[9]&0x80)
- printf(" (Double sided)");
- printf("\n");
- printf("\t\tEnabled Size: ");
- switch(data[10]&0x7F)
- {
- case 0x7D:
- printf("Unknown");break;
- case 0x7E:
- printf("Disabled");break;
- case 0x7F:
- printf("Not Installed");break;
- default:
- printf("%dMbyte",
- (1<<(data[10]&0x7F)));
- }
- if(data[10]&0x80)
- printf(" (Double sided)");
- printf("\n");
- if((data[11]&4)==0)
- {
- if(data[11]&(1<<0))
- printf("\t\t*** BANK HAS UNCORRECTABLE ERRORS (BIOS DISABLED)\n");
- if(data[11]&(1<<1))
- printf("\t\t*** BANK LOGGED CORRECTABLE ERRORS AT BOOT\n");
- }
- break;
- case 7:
- {
- static char *types[4]={
- "Internal ", "External ",
- "", ""};
- static char *modes[4]={
- "write-through",
- "write-back",
- "",""};
-
- printf("\tCache\n");
- printf("\t\tSocket: %s\n",
- dmi_string(dm, data[4]));
- u=data[6]<<8|data[5];
- printf("\t\tL%d %s%sCache: ",
- 1+(u&7), (u&(1<<3))?"socketed ":"",
- types[(u>>5)&3]);
- if(u&(1<<7))
- printf("%s\n",
- modes[(u>>8)&3]);
- else
- printf("disabled\n");
- printf("\t\tL%d Cache Size: ", 1+(u&7));
- dmi_cache_size(data[7]|data[8]<<8);
- printf("\t\tL%d Cache Maximum: ", 1+(u&7));
- dmi_cache_size(data[9]|data[10]<<8);
- printf("\t\tL%d Cache Type: ", 1+(u&7));
- dmi_decode_cache(data[13]);
- printf("\n");
- }
- break;
-
- case 8:
- printf("\tPort Connector\n");
- printf("\t\tInternal Designator: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tInternal Connector Type: %s\n",
- dmi_port_connector_type(data[5]));
- printf("\t\tExternal Designator: %s\n",
- dmi_string(dm, data[6]));
- printf("\t\tExternal Connector Type: %s\n",
- dmi_port_connector_type(data[7]));
- printf("\t\tPort Type: %s\n",
- dmi_port_type(data[8]));
- break;
-
-
-
- case 9:
- printf("\tCard Slot\n");
- printf("\t\tSlot: %s\n",
- dmi_string(dm, data[4]));
- printf("\t\tType: %s%s%s\n",
- dmi_bus_width(data[6]),
- dmi_card_size(data[8]),
- dmi_bus_name(data[5]));
- if(data[7]==3)
- printf("\t\tStatus: Available.\n");
- if(data[7]==4)
- printf("\t\tStatus: In use.\n");
- if(data[11]&0xFE)
- dmi_card_props(data[11]);
- break;
-
- case 10:
- printf("\tOn Board Devices Information\n");
- for (u=0; u<((dm->length - 4)/2); u++) {
- printf("\t\tDescription: %s : %s\n",
- dmi_string(dm, data[5+(2*u)]),
- (data[4+(2*u)]) & 0x80 ?
- "Enabled" : "Disabled");
- printf("\t\tType: %s\n",
- dmi_onboard_type(data[4+(2*u)]));
-
- }
-
- break;
-
-
- case 11:
- printf("\tOEM Data\n");
- for(u=1;u<=data[4];u++)
- printf("\t\t%s\n", dmi_string(dm,u));
- break;
- case 12:
- printf("\tConfiguration Information\n");
- for(u=1;u<=data[4];u++)
- printf("\t\t%s\n", dmi_string(dm,u));
- break;
-
- case 13:
- printf("\tBIOS Language Information\n");
- break;
-
- case 14:
- printf("\tGroup Associations\n");
- for (u=0; u<(dm->length - 5)/3 ; u++) {
- printf("\t\tGroup Name: %s\n",
- dmi_string(dm,data[4]));
- printf("\t\t\tType: 0x%02x\n", *(data+5+(u*3)));
- printf("\t\t\tHandle: 0x%04x\n",
- *(u16*)(data+6+(u*3)));
- }
- break;
-
-
- case 15:
- printf("\tEvent Log\n");
- printf("\t\tLog Area: %d bytes.\n",
- data[5]<<8|data[4]);
- printf("\t\tLog Header At: %d.\n",
- data[7]<<8|data[6]);
- printf("\t\tLog Data At: %d.\n",
- data[9]<<8|data[8]);
- printf("\t\tLog Type: %d.\n",
- data[10]);
- if(data[11]&(1<<0))
- printf("\t\tLog Valid: Yes.\n");
- if(data[11]&(1<<1))
- printf("\t\t**Log Is Full**.\n");
- break;
-
- case 16:
- printf("\tPhysical Memory Array\n");
- break;
- case 17:
- printf("\tMemory Device\n");
- break;
- case 18:
- printf("\t32-bit Memory Error Information\n");
- break;
- case 19:
- printf("\tMemory Array Mapped Address\n");
- break;
- case 20:
- printf("\tMemory Device Mapped Address\n");
- break;
- case 24:
- printf("\tHardware Security\n");
- break;
- case 25:
- printf("\tSystem Power Controls\n");
- break;
- case 32:
- printf("\tSystem Boot Information\n");
- break;
- case 126:
- printf("\tInactive\n");
- break;
-
- case 127:
- printf("\tEnd-of-Table\n");
- break;
-
- default:
- if (dm->length > 4)
- dump_raw_data(data+4, dm->length-4);
- break;
-
-
-
- }
- data+=dm->length;
- while(*data || data[1])
- data++;
- data+=2;
- i++;
- }
- free(buf);
-}
-
-
-char key[8]={'R','S','D',' ','P','T','R',' '};
-
-char zot[16];
-
-int main(int argc, char *argv[])
-{
- unsigned char buf[20];
- int fd=open("/dev/mem", O_RDONLY);
- long fp=0xE0000L;
- if(fd==-1)
- {
- perror("/dev/mem");
- exit(1);
- }
- if(lseek(fd,fp,0)==-1)
- {
- perror("seek");
- exit(1);
- }
-
-
- fp -= 16;
-
- while( fp < 0xFFFFF)
- {
- fp+=16;
- if(read(fd, buf, 16)!=16)
- perror("read");
-// if(memcmp(buf, zot, 16)==0)
-// printf("*");
- if(memcmp(buf, "_SM_", 4)==0) {
- printf("SMBIOS %d.%d present.\n", buf[6], buf[7]);
- }
-
- if(memcmp(buf, "_SYSID_", 7)==0)
- printf("SYSID present.\n");
- if(memcmp(buf, "_DMI_", 5)==0)
- {
- u16 num=buf[13]<<8|buf[12];
- u16 len=buf[7]<<8|buf[6];
- u32 base=buf[11]<<24|buf[10]<<16|buf[9]<<8|buf[8];
-
- printf("DMI %d.%d present.\n",
- buf[14]>>4, buf[14]&0x0F);
- printf("%d structures occupying %d bytes.\n",
- buf[13]<<8|buf[12],
- buf[7]<<8|buf[6]);
- printf("DMI table at 0x%08X.\n",
- buf[11]<<24|buf[10]<<16|buf[9]<<8|buf[8]);
- dmi_table(fd, base,len, num);
- }
- if(memcmp(buf, "$PnP", 4)==0)
- printf("PNP BIOS present.\n");
- if(memcmp(buf, key, 8)==0)
- {
- int a;
- unsigned char sum=0;
- unsigned int i=0, checksum=0;
- printf("RSD PTR found at 0x%lX\n", fp);
- for (i=0; i<20; i++) checksum += buf[i];
- if (checksum != 0) {
- printf("checksum failed.\n");
- }
-
- if(buf[15]!=0)
- {
- printf("Reserved check failed.\n");
- }
- printf("OEM ");
- fwrite(buf+9, 6, 1, stdout);
- printf("\n");
- read(fd,buf+16,4);
- lseek(fd, -4, 1);
- for(a=0;a<20;a++)
- sum+=buf[a];
- if(sum!=0)
- printf("Bad checksum.\n");
- }
- }
- close(fd);
- return 0;
-}
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot
deleted file mode 100644
index 094cecda4..000000000
--- a/tools/drakx-in-chroot
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-
-my $SLASH_LOCATION = '/tmp/drakx-in-chroot';
-
-my $verbose = 0;
-my $prefix_ROOTED = '/mnt';
-my $IMAGE_LOCATION_ROOTED = '/tmp/image';
-my $STAGE2_LOCATION_ROOTED = '/tmp/stage2';
-my $LIVE_LOCATION_REL = 'install/stage2/live/';
-my $CLP_LOCATION_REL = 'install/stage2/';
-my $CLP_FILE_REL = $CLP_LOCATION_REL . 'mdkinst.clp';
-
-@ARGV >= 2 or die "usage: drakx-in-chroot <repository> <dir to install to> [options]\n";
-
-(my $repository, my $dir, @ARGV) = @ARGV;
-my $STAGE2_LOCATION = $SLASH_LOCATION . $STAGE2_LOCATION_ROOTED;
-
-my $sudo;
-if ($>) {
- $sudo = "sudo";
- $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
-}
-
-if (-d $SLASH_LOCATION) {
- umount_all() == 0 or die "$SLASH_LOCATION is busy\n";
- sys("$sudo rm -rf $SLASH_LOCATION/var/lib/rpm $SLASH_LOCATION/dev/mapper");
- rm_rf($SLASH_LOCATION);
-}
-
-mkdir_p("$SLASH_LOCATION$_") foreach '/dev', '/dev/usb', '/etc', '/var', '/proc', $STAGE2_LOCATION_ROOTED, $IMAGE_LOCATION_ROOTED, $prefix_ROOTED;
-
-if (-d "$repository/$LIVE_LOCATION_REL") {
- sys("$sudo mount -o bind $repository/$LIVE_LOCATION_REL $STAGE2_LOCATION");
-} elsif (-e "$repository/$CLP_FILE_REL") {
- my $dev = find_free_loop();
- sys("$sudo modprobe gzloop");
- sys("$sudo losetup -r -e gz $dev $repository/$CLP_FILE_REL");
- sys("$sudo mount -r $dev $STAGE2_LOCATION");
-}
-
-sys("$sudo mount -o bind $dir $SLASH_LOCATION$prefix_ROOTED");
-sys("$sudo mount -o bind $repository $SLASH_LOCATION$IMAGE_LOCATION_ROOTED");
-sys("$sudo mount -t proc none $SLASH_LOCATION/proc");
-create_initial_symlinks();
-create_initial_devices();
-
-output("$SLASH_LOCATION/etc/hosts", "127.0.0.1 localhost\n") if ! -e "$SLASH_LOCATION/etc/hosts";
-
-my $Xnest_pid;
-if (whereis_binary('Xnest')) {
- my $DISPLAY = ':8';
- $Xnest_pid = fork();
- if (!$Xnest_pid) {
- exec 'Xnest', $DISPLAY, '-ac', '-geometry', '800x600' or die "Xnest failed\n";
- }
- $ENV{DISPLAY} = 'localhost' . $DISPLAY;
-}
-
-if (my $pid = fork()) {
- waitpid $pid, 0;
- umount_all() == 0 or warn "umounting failed\n";
- kill 15, $Xnest_pid;
-} else {
- $ENV{HOME} = '/';
- my $cmd = join(' ', "/usr/bin/runinstall2 --local_install", @ARGV);
- exec "$sudo chroot $SLASH_LOCATION $cmd" or die "exec $cmd in $SLASH_LOCATION failed\n";
-}
-
-sub system_verbose { warn join(' ', @_), "\n" if $verbose; system(@_) }
-sub sys { &system_verbose; $? and die qq(running "@_" failed: $?\n) }
-
-sub find_free_loop() {
- foreach (0..255) {
- my $dev = "/dev/loop$_";
- system("$sudo losetup $dev >/dev/null 2>&1") != 0 or next;
- warn "found $dev\n";
- return $dev;
- }
- die "no free loop found";
-}
-
-sub create_initial_symlinks() {
- foreach (cat_or_die("$STAGE2_LOCATION/usr/share/symlinks")) {
- my ($from, $to_) = split;
- my $to = $SLASH_LOCATION . ($to_ || $from);
- $from = "$STAGE2_LOCATION_ROOTED$from" if !$to_;
- if (! -l $to) {
- symlink $from, $to or die "symlinking $to failed\n";
- }
- }
-}
-
-sub create_initial_devices() {
- foreach (cat_or_die("$STAGE2_LOCATION/usr/share/devices")) {
- my ($node, $type, $major, $minor) = split;
- sys("$sudo mknod $SLASH_LOCATION$node $type $major $minor") if ! -e "$SLASH_LOCATION$node";
- }
-}
-
-sub umount_all() {
- my $err;
- my @procs = ('/proc/bus/usb', '/proc', '/sys');
- foreach ((map { "$prefix_ROOTED$_" } @procs, ''), @procs, $STAGE2_LOCATION_ROOTED, $IMAGE_LOCATION_ROOTED) {
- my $dir = "$SLASH_LOCATION$_";
- rmdir $dir;
- if (-d $dir) {
- if (m!/proc/bus/usb! || begins_with($_, $prefix_ROOTED)) {
- system_verbose "$sudo umount $dir 2>/dev/null";
- next;
- }
- my ($loop) = cat_('/proc/mounts') =~ m!^(/dev/loop\d+) \Q$dir\E !m;
- system_verbose "$sudo umount $dir";
- sys("$sudo losetup -d $loop") if $loop;
- }
- rmdir $dir;
- if (-d $dir) {
- warn "$dir is busy\n";
- $err++;
- }
- }
- $err;
-}
diff --git a/tools/extractchangelog b/tools/extractchangelog
deleted file mode 100644
index d838a0b68..000000000
--- a/tools/extractchangelog
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/perl
-
diff --git a/tools/gencompss b/tools/gencompss
deleted file mode 100755
index b12328e49..000000000
--- a/tools/gencompss
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl
-
-open F, "packdrake -c @ARGV | hdlist2groups - |";
-foreach (<F>) {
- chop;
- /(.*):(.*)/;
- $l{$2}{$1} = undef;
-}
-close F or die;
-foreach (sort keys %l) {
- print "$_\n";
- print "\t$_\n" foreach sort keys %{$l{$_}};
- print "\n";
-}
diff --git a/tools/gencryptofiles b/tools/gencryptofiles
deleted file mode 100755
index d905c193c..000000000
--- a/tools/gencryptofiles
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/usr/bin/perl
-
-#- Mandrake cryptographic package hdlist and depslist generation tools.
-#- Copyright (C) 1999 Mandrakesoft (fpons@mandrakesoft.com)
-#-
-#- This program is free software; you can redistribute it and/or modify
-#- it under the terms of the GNU General Public License as published by
-#- the Free Software Foundation; either version 2, or (at your option)
-#- any later version.
-#-
-#- This program 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 General Public License for more details.
-#-
-#- You should have received a copy of the GNU General Public License
-#- along with this program; if not, write to the Free Software
-#- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-#- usage: gencryptofiles <crypto_dir>
-#- build an hdlist and depslist file for crypto, need rpmtools also.
-
-my %resolver = (
- '/bin/sh' => 'bash',
- '/bin/bash' => 'bash',
- '/usr/bin/perl' => 'perl',
- '/usr/bin/perl5' => 'perl',
-
- 'libBrokenLocale.so' => 'glibc',
- 'libICE.so' => 'XFree86-libs',
- 'libSM.so' => 'XFree86-libs',
- 'libX11.so' => 'XFree86-libs',
- 'libXext.so' => 'XFree86-libs',
- 'libXmu.so' => 'XFree86-libs',
- 'libXpm.so' => 'xpm',
- 'libXt.so' => 'XFree86-libs',
- 'libc.so.6' => 'glibc',
- 'libgdbm.so' => 'gdbm',
- 'libgpm.so' => 'gpm',
- 'libm.so' => 'glibc',
- 'libncurses.so' => 'ncurses',
- 'libnsl.so' => 'glibc',
- 'libpam.so' => 'pam',
- 'libpthread.so' => 'glibc',
- 'libreadline.so' => 'readline',
- 'libstdc++-libc6.1-2.so' => 'libstdc++',
- 'libstdc++.so' => 'libstdc++-compat',
- 'libutil.so' => 'glibc',
- 'libz.so' => 'zlib',
- 'smtpdaemon' => 'postfix',
- );
-
-sub gendepslist_crypto {
- my ($dir) = @_;
- my %depslist;
-
- #- get information about each rpm.
- local *DIR;
- opendir DIR, $dir or die "cannot open directory: $!\n";
- while ($_ = readdir DIR) {
- my ($key) = /(.*)\..*\.rpm$/ or next;
- my ($name) = /(.*)-[^-]*-[^-]*-/;
-
- my $size = `rpm -qp --queryformat="%{SIZE}" $dir/$_`;
- my @filelist = split "\n", `rpm -qpl $dir/$_`;
- my @requires = split "\n", `rpm -qpR $dir/$_`;
-
- $depslist{$key} = {
- key => $key,
- size => $size,
- filelist => \@filelist,
- requires => \@requires,
- deps => [],
- };
-
- foreach (@filelist) {
- $resolver{$_} = $name;
- m|.*/([^/]*)$| and $resolver{$1} = $name;
- }
- }
- close DIR;
-
- #- resolve the dependancies.
- foreach my $pkg (values %depslist) {
- foreach (@{$pkg->{requires}}) {
- $resolver{$_} and push(@{$pkg->{deps}}, $resolver{$_}), next;
- m|^([^\s\(]*)| and $resolver{$1} and push(@{$pkg->{deps}}, $resolver{$1}), next;
- m|^.*/([^/\s\(]*)| and $resolver{$1} and push(@{$pkg->{deps}}, $resolver{$1}), next;
- m|^([^\s\(]*\.so)| and $resolver{$1} and push(@{$pkg->{deps}}, $resolver{$1}), next;
- m|^.*/([^\s\(]*\.so)| and $resolver{$1} and push(@{$pkg->{deps}}, $resolver{$1}), next;
- m|^([\w-]*)(?:\s+.*)$| and push(@{$pkg->{deps}}, $1); #- last and default to package name.
- }
- }
-
- #- build depslist-crypto file.
- local *F;
- open F, ">$dir/depslist-crypto" or die "cannot open depslist-crypto file for writing: $!\n";
- foreach (values %depslist) {
- my %deps;
- @deps{@{$_->{deps}}} = ();
- print F "$_->{key} $_->{size} ", join(" ", keys %deps), "\n";
- }
- close F;
-}
-
-sub main {
- my ($dir) = @_;
- -d $dir or die "usage: gencryptofiles <crypto_dir>\n";
- -x "/usr/bin/genhdlist_cz2" or die "I need rpmtools to work (ie /usr/bin/genhdlist_cz2)\n";
-
- print `genhdlist_cz2 -o $dir/hdlist-crypto.cz2 $dir`;
- gendepslist_crypto($dir);
-}
-
-main(@ARGV);
diff --git a/tools/genmodparm b/tools/genmodparm
deleted file mode 100755
index 1b5453cc0..000000000
--- a/tools/genmodparm
+++ /dev/null
@@ -1,145 +0,0 @@
-#!/usr/bin/perl
-
-# Mandrake Graphic Install
-# Copyright (C) 1999 Mandrakesoft (fpons@mandrakesoft.com)
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-$srctop = $ARGV[0];
-
-unless (-d $srctop) {
- print STDERR "usage: $0 <linux_src_top>\n";
- print STDERR " <linux_src_top> is the linux source top directory,\n";
- print STDERR " for example /usr/src/linux\n";
- exit 1;
-}
-
-open (FILE_LIST, "find $srctop/ -name \"*.c\" |");
-
-while (<FILE_LIST>) {
- chomp;
-
- my $file = $_;
- my $dir = $file;
- my $module = $file;
- my $incfile;
- my @incfiles;
- my %parms;
- my $oldline;
- my $descline;
- my $default;
- my %substvars;
-
- # get mormalized directory name.
- $dir =~ s/^(.*)\/[^\/]*$/$1/;
-
- # get mormalized module name.
- $module =~ s/^.*\/([^\/]*)\.c$/$1/;
-
- # search for recogniwed special keywords.
- open (F, $file);
- while (<F>) {
- # track for include files.
- if (/^\#\s*include\s+[\<\"]([\w-\.\/]*)[\"\>]/) {
- # search from /usr/src/linux/include directory.
- push @incfiles, "/usr/src/linux/include/$1";
-
- # search from current working directory.
- push @incfiles, "$dir/$1";
- }
-
- if (/^\s*MODULE_PARM\s*\((\w*)\s*,\s*\"/) {
- $parms{$1}{type} = '?';
- }
- if (/^\s*MODULE_PARM\s*\((\w*)\s*,\s*\"([^\"]*)\"\s*\)/) {
- $parms{$1}{type} = $2;
- }
- if (/^\s*MODULE_PARM_DESC\s*\((\w*)\s*,\s*\"([^\"]*)\"\s*\)/) {
- $parms{$1}{desc} = $2;
- }
- }
- close F;
-
- # parse associated include file if exist.
- foreach $incfile (@incfiles) {
- if (-r $incfile) {
- open (F, $incfile);
- while (<F>) {
- s/^(.*)\/\*.*$/$1/g;
- if (/^\#\s*define\s*(\w*)\s*(.*)$/) {
- $substvars{$1}=$2;
- }
- }
- close F;
- }
- }
-
- # search for comments about each module parameter.
- open (F, $file);
- while (<F>) {
- my $line = $_;
-
- # manage simple preprocessor.
- s/^(.*)\/\*.*$/$1/g;
- if (/^\#\s*define\s*(\w*)\s*(.*)$/) {
- $substvars{$1}=$2;
- }
-
- # parse for parameters definition.
- foreach $parm (keys %parms) {
- if ($line =~ /^\s*(static\s+)?((short|long|signed|unsigned)\s+)?\w+(\s*\**\s+|\s+\**\s*)$parm(\s*\[.*\]\s*)?\s*=\s*([^\;]*)\;/) {
- $default = $descline = $6;
- $default =~ s/^(.*)\/\*.*$/$1/g;
-
- # remove hypothetic couple of { }.
- $default =~ s/^(\s*\{\s*)(.*)(\s*\}\s*)$/$2/;
-
- # subsitute variable.
- foreach $substvar (keys %substvars) {
- $default =~ s/$substvar/$substvars{$substvar}/g;
- }
- $default =~ s/NULL/0/g;
- $default =~ s/^\s*(.*?)\s*$/$1/;
- $default = '' if $default =~ /\(\s*\(\s*void*\s*\*\)\s*0\s*\)\s*,?/;
-
- # store value.
- $parms{$parm}{default} = $default;
-
- # try to search a comment on the previous line.
- if (!defined($parms{$parm}{desc})) {
- if ($oldline =~ /^\s*\/\*\s*(.*)\s*\*\/\s*$/ || /\/\*\s*(.*)\s*\*\/\s*$/) {
- $parms{$parm}{desc} = $1;
- }
- }
-
- # try to search a comment on the line (multiline not supported).
- if (!defined($parms{$parm}{desc})) {
- if ($descline =~ /^.*\/\*\s*(.*)\s*\*\/\s*$/) {
- $parms{$parm}{desc} = $1;
- }
- }
- }
- }
- $oldline = $_;
- }
- close F;
-
- # dump all result to stdout associated to current module.
- foreach $parm (keys %parms) {
- print "$module:$parm:$parms{$parm}{type}:$parms{$parm}{default}:$parms{$parm}{desc}\n";
- }
-}
-
-close FILE_LIST;
diff --git a/tools/get-needed-drakx-modules b/tools/get-needed-drakx-modules
deleted file mode 100755
index 019820c04..000000000
--- a/tools/get-needed-drakx-modules
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-
-my ($rel, $dest, $script) = @ARGV;
-
-$rel =~ s!/?$!!;
-
-foreach (`strace -efile perl -cw -I $rel $script 2>&1`) {
- my ($f) = /^open\("(.*?)",.*\)\s*=\s*\d+$/ or next;
- $f !~ m!/usr/lib/perl5/[^/]*/warnings.pm! or next;
- if (begins_with($f, $rel)) {
- print $f, "\t", $dest . substr($f, length($rel)), "\n";
- } elsif (begins_with($f, '/dev/')) {
- # skip
- } elsif (begins_with($f, '/')) {
- print "$f\n";
- }
-}
diff --git a/tools/hd_grub.cgi b/tools/hd_grub.cgi
deleted file mode 100755
index 1b0930679..000000000
--- a/tools/hd_grub.cgi
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/usr/bin/perl
-
-use CGI ':all';
-use CGI::Carp;
-
-my $default_append = "ramdisk_size=128000 root=/dev/ram3";
-my $default_acpi = "acpi=ht";
-my $default_vga = "vga=788";
-
-my $cgi_name = "/" . ($0 =~ m|([^/]+)$|)[0];
-
-print
- header(),
- start_html(-TITLE => 'hd_grub configuration');
-
-if (param()) {
- print_menu_lst();
-} else {
- print_form();
-}
-
-print end_html;
-
-
-sub menu_lst {
- my ($hd, $hd_linux, $partition_number, $directory) = @_;
-
- my $grub_partition_number = $partition_number - 1;
-
- <<EOF;
-timeout 0
-default 0
-
-title Mandrake Install
-
-root ($hd,$grub_partition_number)
-kernel $directory/isolinux/alt0/vmlinuz $default_append $default_acpi $default_vga automatic=method:disk,partition:$hd_linux$partition_number,directory:$directory
-initrd $directory/isolinux/alt0/all.rdz
-EOF
-
-}
-
-sub print_menu_lst {
- my $directory = param('directory');
- $directory =~ s!^/!!;
- print
- ol(li(qq(Select the text below and save it in a file "menu.lst")),
- li(qq(Create a floppy from $directory/images/hd_grub.img (eg: <tt>dd if=hd_grub.img of=/dev/fd0</tt>))),
- li(qq(Copy the file "menu.lst" to the floppy, overwriting the existing one)),
- ),
- p(),
- start_form(-name => 'form', -action => $cgi_name, -method => 'get'),
- textarea(-default => menu_lst(param('hd'), param('hd_linux'), param('partition_number'), "/$directory"),
- -rows => 15, -columns => 120,
- ),
- end_form(),
-}
-
-sub print_form {
- print
- p(),
- start_form(-name => 'form', -action => $cgi_name, -method => 'get'),
- ul("Please choose the partition where Mandrakelinux is copied.",
- li(popup_menu(-name => "hd", -default => 'hd0',
- -values => [ 'hd0' .. 'hd3' ],
- -labels => { hd0 => '1st BIOS hard drive (usually hda or sda)',
- hd1 => '2nd BIOS hard drive',
- hd2 => '3rd BIOS hard drive',
- hd3 => '4th BIOS hard drive',
- })),
- li(popup_menu(-name => "hd_linux", -default => 'hda',
- -values => [ 'hda' .. 'hdd', 'sda' .. 'sdc', 'hde' .. 'hdh' ],
- -labels => {
- hda => '1st IDE hard drive (hda)',
- hdb => '2nd IDE hard drive (hdb)',
- hdc => '3rd IDE hard drive (hdc)',
- hdd => '4th IDE hard drive (hdd)',
- hde => '5th IDE hard drive (hde)',
- hdf => '6th IDE hard drive (hdf)',
- hdg => '7th IDE hard drive (hdg)',
- hdh => '8th IDE hard drive (hdh)',
- sda => '1st SCSI hard drive (sda)',
- sdb => '2nd SCSI hard drive (sdb)',
- sdc => '3rd SCSI hard drive (sdc)',
- })),
- li(popup_menu(-name => "partition_number", -default => '0',
- -values => [ 1 .. 15 ],
- -labels => { 1 => '1st primary partition (hda1, sda1 or ...)',
- 2 => '2nd primary partition',
- 3 => '3rd primary partition',
- 4 => '4th primary partition',
- 5 => '5th partition (hda5, sda5 or ...) (first logical partition)',
- map { $_ => $_ . 'th partition' } 6 .. 15
- })),
- ),
- p(),
- ul("Please enter the directory containing the Mandrakelinux Distribution (relative to the partition chosen above)",
- li(textfield(-name => 'directory', -default => '/cooker/i586', size => 40)),
- ),
- p(submit(-name => 'Go')),
- end_form();
-}
diff --git a/tools/i386/busybox b/tools/i386/busybox
deleted file mode 100755
index cebd84853..000000000
--- a/tools/i386/busybox
+++ /dev/null
Binary files differ
diff --git a/tools/i386/e2fsck.shared b/tools/i386/e2fsck.shared
deleted file mode 100755
index ad4d660a0..000000000
--- a/tools/i386/e2fsck.shared
+++ /dev/null
Binary files differ
diff --git a/tools/i386/mkreiserfs b/tools/i386/mkreiserfs
deleted file mode 100755
index 65fdf49f6..000000000
--- a/tools/i386/mkreiserfs
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/.cvsignore b/tools/i386/netboot/.cvsignore
deleted file mode 100644
index 64daa531c..000000000
--- a/tools/i386/netboot/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-menu.lst
-stage1
-stage2
-automatic.para
diff --git a/tools/i386/netboot/3c503/nbgrub b/tools/i386/netboot/3c503/nbgrub
deleted file mode 100644
index 5f4def496..000000000
--- a/tools/i386/netboot/3c503/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c503/pxegrub b/tools/i386/netboot/3c503/pxegrub
deleted file mode 100644
index 7e662603d..000000000
--- a/tools/i386/netboot/3c503/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c503/stage1 b/tools/i386/netboot/3c503/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/3c503/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c503/stage2 b/tools/i386/netboot/3c503/stage2
deleted file mode 100644
index 6a4865d65..000000000
--- a/tools/i386/netboot/3c503/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c507/nbgrub b/tools/i386/netboot/3c507/nbgrub
deleted file mode 100644
index 3f72e513e..000000000
--- a/tools/i386/netboot/3c507/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c507/pxegrub b/tools/i386/netboot/3c507/pxegrub
deleted file mode 100644
index 1b7caa324..000000000
--- a/tools/i386/netboot/3c507/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c507/stage1 b/tools/i386/netboot/3c507/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/3c507/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c507/stage2 b/tools/i386/netboot/3c507/stage2
deleted file mode 100644
index 2b1d4f3f3..000000000
--- a/tools/i386/netboot/3c507/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c509/nbgrub b/tools/i386/netboot/3c509/nbgrub
deleted file mode 100644
index feb8e46f2..000000000
--- a/tools/i386/netboot/3c509/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c509/pxegrub b/tools/i386/netboot/3c509/pxegrub
deleted file mode 100644
index 6114a12b4..000000000
--- a/tools/i386/netboot/3c509/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c509/stage1 b/tools/i386/netboot/3c509/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/3c509/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c509/stage2 b/tools/i386/netboot/3c509/stage2
deleted file mode 100644
index 5c7a65a60..000000000
--- a/tools/i386/netboot/3c509/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c529/nbgrub b/tools/i386/netboot/3c529/nbgrub
deleted file mode 100644
index cc5ab8381..000000000
--- a/tools/i386/netboot/3c529/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c529/pxegrub b/tools/i386/netboot/3c529/pxegrub
deleted file mode 100644
index 14b767e58..000000000
--- a/tools/i386/netboot/3c529/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c529/stage1 b/tools/i386/netboot/3c529/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/3c529/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c529/stage2 b/tools/i386/netboot/3c529/stage2
deleted file mode 100644
index 64f9d89d5..000000000
--- a/tools/i386/netboot/3c529/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c595/nbgrub b/tools/i386/netboot/3c595/nbgrub
deleted file mode 100644
index 74effed46..000000000
--- a/tools/i386/netboot/3c595/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c595/pxegrub b/tools/i386/netboot/3c595/pxegrub
deleted file mode 100644
index 4d28d49c0..000000000
--- a/tools/i386/netboot/3c595/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c595/stage1 b/tools/i386/netboot/3c595/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/3c595/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c595/stage2 b/tools/i386/netboot/3c595/stage2
deleted file mode 100644
index 25126d668..000000000
--- a/tools/i386/netboot/3c595/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c90x/nbgrub b/tools/i386/netboot/3c90x/nbgrub
deleted file mode 100644
index 0598d82d0..000000000
--- a/tools/i386/netboot/3c90x/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c90x/pxegrub b/tools/i386/netboot/3c90x/pxegrub
deleted file mode 100644
index 32002398c..000000000
--- a/tools/i386/netboot/3c90x/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c90x/stage1 b/tools/i386/netboot/3c90x/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/3c90x/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/3c90x/stage2 b/tools/i386/netboot/3c90x/stage2
deleted file mode 100644
index 0841f1d3e..000000000
--- a/tools/i386/netboot/3c90x/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/cs89x0/nbgrub b/tools/i386/netboot/cs89x0/nbgrub
deleted file mode 100644
index 28ecbebc7..000000000
--- a/tools/i386/netboot/cs89x0/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/cs89x0/pxegrub b/tools/i386/netboot/cs89x0/pxegrub
deleted file mode 100644
index c7ae62678..000000000
--- a/tools/i386/netboot/cs89x0/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/cs89x0/stage1 b/tools/i386/netboot/cs89x0/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/cs89x0/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/cs89x0/stage2 b/tools/i386/netboot/cs89x0/stage2
deleted file mode 100644
index 28ad8dc0d..000000000
--- a/tools/i386/netboot/cs89x0/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/davicom/nbgrub b/tools/i386/netboot/davicom/nbgrub
deleted file mode 100644
index 4bd5d8383..000000000
--- a/tools/i386/netboot/davicom/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/davicom/pxegrub b/tools/i386/netboot/davicom/pxegrub
deleted file mode 100644
index 22a6a0d27..000000000
--- a/tools/i386/netboot/davicom/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/davicom/stage1 b/tools/i386/netboot/davicom/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/davicom/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/davicom/stage2 b/tools/i386/netboot/davicom/stage2
deleted file mode 100644
index b5d22c603..000000000
--- a/tools/i386/netboot/davicom/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/depca/nbgrub b/tools/i386/netboot/depca/nbgrub
deleted file mode 100644
index 3e93ce716..000000000
--- a/tools/i386/netboot/depca/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/depca/pxegrub b/tools/i386/netboot/depca/pxegrub
deleted file mode 100644
index b8285de5b..000000000
--- a/tools/i386/netboot/depca/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/depca/stage1 b/tools/i386/netboot/depca/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/depca/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/depca/stage2 b/tools/i386/netboot/depca/stage2
deleted file mode 100644
index 811d7ce66..000000000
--- a/tools/i386/netboot/depca/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/device.map b/tools/i386/netboot/device.map
deleted file mode 100644
index bf3423b23..000000000
--- a/tools/i386/netboot/device.map
+++ /dev/null
@@ -1 +0,0 @@
-(fd0) /dev/fd0
diff --git a/tools/i386/netboot/eepro/nbgrub b/tools/i386/netboot/eepro/nbgrub
deleted file mode 100644
index f62e82697..000000000
--- a/tools/i386/netboot/eepro/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro/pxegrub b/tools/i386/netboot/eepro/pxegrub
deleted file mode 100644
index 92e3f0461..000000000
--- a/tools/i386/netboot/eepro/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro/stage1 b/tools/i386/netboot/eepro/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/eepro/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro/stage2 b/tools/i386/netboot/eepro/stage2
deleted file mode 100644
index dd0e0120f..000000000
--- a/tools/i386/netboot/eepro/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro100/nbgrub b/tools/i386/netboot/eepro100/nbgrub
deleted file mode 100644
index 26cc23cd3..000000000
--- a/tools/i386/netboot/eepro100/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro100/pxegrub b/tools/i386/netboot/eepro100/pxegrub
deleted file mode 100644
index cbe97166f..000000000
--- a/tools/i386/netboot/eepro100/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro100/stage1 b/tools/i386/netboot/eepro100/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/eepro100/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/eepro100/stage2 b/tools/i386/netboot/eepro100/stage2
deleted file mode 100644
index 0036c6822..000000000
--- a/tools/i386/netboot/eepro100/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/epic100/nbgrub b/tools/i386/netboot/epic100/nbgrub
deleted file mode 100644
index 93e5adea2..000000000
--- a/tools/i386/netboot/epic100/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/epic100/pxegrub b/tools/i386/netboot/epic100/pxegrub
deleted file mode 100644
index 7309b5913..000000000
--- a/tools/i386/netboot/epic100/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/epic100/stage1 b/tools/i386/netboot/epic100/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/epic100/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/epic100/stage2 b/tools/i386/netboot/epic100/stage2
deleted file mode 100644
index eb1b19cfa..000000000
--- a/tools/i386/netboot/epic100/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/exos205/nbgrub b/tools/i386/netboot/exos205/nbgrub
deleted file mode 100644
index af9b29195..000000000
--- a/tools/i386/netboot/exos205/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/exos205/pxegrub b/tools/i386/netboot/exos205/pxegrub
deleted file mode 100644
index 25ee4a267..000000000
--- a/tools/i386/netboot/exos205/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/exos205/stage1 b/tools/i386/netboot/exos205/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/exos205/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/exos205/stage2 b/tools/i386/netboot/exos205/stage2
deleted file mode 100644
index 81fcbe665..000000000
--- a/tools/i386/netboot/exos205/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/grub b/tools/i386/netboot/grub
deleted file mode 100755
index 9031dd028..000000000
--- a/tools/i386/netboot/grub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/lance/nbgrub b/tools/i386/netboot/lance/nbgrub
deleted file mode 100644
index 0667479cd..000000000
--- a/tools/i386/netboot/lance/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/lance/pxegrub b/tools/i386/netboot/lance/pxegrub
deleted file mode 100644
index c58240700..000000000
--- a/tools/i386/netboot/lance/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/lance/stage1 b/tools/i386/netboot/lance/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/lance/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/lance/stage2 b/tools/i386/netboot/lance/stage2
deleted file mode 100644
index 9cf9522bf..000000000
--- a/tools/i386/netboot/lance/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/makeImages b/tools/i386/netboot/makeImages
deleted file mode 100755
index 39d13df73..000000000
--- a/tools/i386/netboot/makeImages
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# compile multiple grub stages (1, 2, pxegrub and nbgrub) for all supported network cards
-LOCALPATH=`pwd`
-PATHGRUB="../grub-0.95" # Path were grub is stored
-DRIVERTOCOMPILE=`grep NETBOOT_DRIVERS= ${PATHGRUB}/configure.ac | cut -d " " -f 4 | cut -d "." -f 1`
-
-echo "Cleaning old drivers"
-for i in `ls`
-do
- if [ -d $i ] && [ $i != CVS ]; then
- rm -rf $i
- fi
-
-done
-
-cd ${PATHGRUB}
-
-echo "Compiling new ones"
-for i in ${DRIVERTOCOMPILE}
- do
- make clean
- ./configure --enable-$i --enable-diskless
- make
- mkdir ${LOCALPATH}/$i
- cp stage1/stage1 ${LOCALPATH}/$i/stage1
- cp stage2/stage2 ${LOCALPATH}/$i/stage2
- cp stage2/pxegrub ${LOCALPATH}/$i/pxegrub
- cp stage2/nbgrub ${LOCALPATH}/$i/nbgrub
- echo "compil done for" $i
-done
-cp ${PATHGRUB}/grub/grub ${LOCALPATH} -f
diff --git a/tools/i386/netboot/make_boot_network b/tools/i386/netboot/make_boot_network
deleted file mode 100755
index b02e6657c..000000000
--- a/tools/i386/netboot/make_boot_network
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-type=$1
-[ -z "$type" ] && { echo "usage: $0 <network card type> (eg: 3c90x)" ; exit 1; }
-
-if [ ! -d "$type" ]; then
- echo "$type: no such network driver"
- echo "available drivers are:"
- echo `find -not -name CVS -type d -maxdepth 1 -printf '%P\n'`
- exit 1;
-fi
-
-[ -e menu.lst ] || { echo "missing file menu.lst, create one based on menu.lst.example"; exit 1; }
-
-ln -sf ${type}/stage1 stage1
-ln -sf ${type}/stage2 stage2
-
-mformat a:
-mcopy {stage1,stage2} a:
-mcopy menu.lst a:menu.lst
-
-./grub --batch <<EOF
-install (fd0)/stage1 d (fd0) (fd0)/stage2 p (fd0)/menu.lst $automatic
-EOF
diff --git a/tools/i386/netboot/menu.lst.example b/tools/i386/netboot/menu.lst.example
deleted file mode 100644
index 3465fac62..000000000
--- a/tools/i386/netboot/menu.lst.example
+++ /dev/null
@@ -1,21 +0,0 @@
-timeout 0
-default 0
-
-title nfs
-dhcp
-tftpserver 192.168.100.39
-kernel (nd)/vmlinuz ramdisk=32000 vga=788 kickstart=install/auto_inst.cfg.pl useless_thing_accepted automatic=method:nfs,network:static,ip:192.168.100.25,dns:192.168.100.11,gateway:192.168.100.1,server:192.168.100.39,directory:/export,user:a,pass:a
-initrd (nd)/network.rdz
-
-title ftp
-dhcp
-tftpserver 192.168.100.39
-kernel (nd)/vmlinuz ramdisk=32000 vga=788 kickstart=install/auto_inst.cfg.pl useless_thing_accepted automatic=method:ftp,network:static,ip:192.168.100.25,dns:192.168.100.11,gateway:192.168.100.1,server:192.168.100.39,directory:/export,user:a,pass:a
-initrd (nd)/network.rdz
-
-title rescue
-dhcp
-tftpserver 192.168.100.39
-kernel (nd)/vmlinuz rescue rw root=/dev/ram3 ramdisk=32000 vga=788 kickstart=install/auto_inst.cfg.pl useless_thing_accepted automatic=method:nfs,network:static,ip:192.168.100.25,dns:192.168.100.11,gateway:192.168.100.1,server:192.168.100.39,directory:/export,user:a,pass:a
-initrd (nd)/network.rdz
-
diff --git a/tools/i386/netboot/natsemi/nbgrub b/tools/i386/netboot/natsemi/nbgrub
deleted file mode 100644
index 7f3892c7e..000000000
--- a/tools/i386/netboot/natsemi/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/natsemi/pxegrub b/tools/i386/netboot/natsemi/pxegrub
deleted file mode 100644
index a481cee5e..000000000
--- a/tools/i386/netboot/natsemi/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/natsemi/stage1 b/tools/i386/netboot/natsemi/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/natsemi/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/natsemi/stage2 b/tools/i386/netboot/natsemi/stage2
deleted file mode 100644
index 66761ddee..000000000
--- a/tools/i386/netboot/natsemi/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne/nbgrub b/tools/i386/netboot/ne/nbgrub
deleted file mode 100644
index 209fec7a4..000000000
--- a/tools/i386/netboot/ne/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne/pxegrub b/tools/i386/netboot/ne/pxegrub
deleted file mode 100644
index 44f6bc476..000000000
--- a/tools/i386/netboot/ne/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne/stage1 b/tools/i386/netboot/ne/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/ne/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne/stage2 b/tools/i386/netboot/ne/stage2
deleted file mode 100644
index c0777f634..000000000
--- a/tools/i386/netboot/ne/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne2100/nbgrub b/tools/i386/netboot/ne2100/nbgrub
deleted file mode 100644
index ca4c56f07..000000000
--- a/tools/i386/netboot/ne2100/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne2100/pxegrub b/tools/i386/netboot/ne2100/pxegrub
deleted file mode 100644
index 37ddbbf8a..000000000
--- a/tools/i386/netboot/ne2100/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne2100/stage1 b/tools/i386/netboot/ne2100/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/ne2100/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ne2100/stage2 b/tools/i386/netboot/ne2100/stage2
deleted file mode 100644
index 6bd1acb02..000000000
--- a/tools/i386/netboot/ne2100/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5010/nbgrub b/tools/i386/netboot/ni5010/nbgrub
deleted file mode 100644
index b5b935ebd..000000000
--- a/tools/i386/netboot/ni5010/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5010/pxegrub b/tools/i386/netboot/ni5010/pxegrub
deleted file mode 100644
index fe5a6d0a2..000000000
--- a/tools/i386/netboot/ni5010/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5010/stage1 b/tools/i386/netboot/ni5010/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/ni5010/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5010/stage2 b/tools/i386/netboot/ni5010/stage2
deleted file mode 100644
index bf26459ab..000000000
--- a/tools/i386/netboot/ni5010/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5210/nbgrub b/tools/i386/netboot/ni5210/nbgrub
deleted file mode 100644
index 04b92c46f..000000000
--- a/tools/i386/netboot/ni5210/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5210/pxegrub b/tools/i386/netboot/ni5210/pxegrub
deleted file mode 100644
index 06f3020ad..000000000
--- a/tools/i386/netboot/ni5210/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5210/stage1 b/tools/i386/netboot/ni5210/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/ni5210/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni5210/stage2 b/tools/i386/netboot/ni5210/stage2
deleted file mode 100644
index 220cb0816..000000000
--- a/tools/i386/netboot/ni5210/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni6510/nbgrub b/tools/i386/netboot/ni6510/nbgrub
deleted file mode 100644
index 91f390b52..000000000
--- a/tools/i386/netboot/ni6510/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni6510/pxegrub b/tools/i386/netboot/ni6510/pxegrub
deleted file mode 100644
index 8ab495c37..000000000
--- a/tools/i386/netboot/ni6510/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni6510/stage1 b/tools/i386/netboot/ni6510/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/ni6510/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ni6510/stage2 b/tools/i386/netboot/ni6510/stage2
deleted file mode 100644
index 3ebadf22a..000000000
--- a/tools/i386/netboot/ni6510/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ns8390/nbgrub b/tools/i386/netboot/ns8390/nbgrub
deleted file mode 100644
index ddf5b55c0..000000000
--- a/tools/i386/netboot/ns8390/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ns8390/pxegrub b/tools/i386/netboot/ns8390/pxegrub
deleted file mode 100644
index be75a76a8..000000000
--- a/tools/i386/netboot/ns8390/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ns8390/stage1 b/tools/i386/netboot/ns8390/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/ns8390/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/ns8390/stage2 b/tools/i386/netboot/ns8390/stage2
deleted file mode 100644
index e3815fa64..000000000
--- a/tools/i386/netboot/ns8390/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/otulip/nbgrub b/tools/i386/netboot/otulip/nbgrub
deleted file mode 100644
index e98fe5290..000000000
--- a/tools/i386/netboot/otulip/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/otulip/pxegrub b/tools/i386/netboot/otulip/pxegrub
deleted file mode 100644
index e741218a6..000000000
--- a/tools/i386/netboot/otulip/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/otulip/stage1 b/tools/i386/netboot/otulip/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/otulip/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/otulip/stage2 b/tools/i386/netboot/otulip/stage2
deleted file mode 100644
index 286952eba..000000000
--- a/tools/i386/netboot/otulip/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/rtl8139/nbgrub b/tools/i386/netboot/rtl8139/nbgrub
deleted file mode 100644
index 5ef3d141b..000000000
--- a/tools/i386/netboot/rtl8139/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/rtl8139/pxegrub b/tools/i386/netboot/rtl8139/pxegrub
deleted file mode 100644
index 143ed5462..000000000
--- a/tools/i386/netboot/rtl8139/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/rtl8139/stage1 b/tools/i386/netboot/rtl8139/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/rtl8139/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/rtl8139/stage2 b/tools/i386/netboot/rtl8139/stage2
deleted file mode 100644
index 4fb729d6e..000000000
--- a/tools/i386/netboot/rtl8139/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sis900/nbgrub b/tools/i386/netboot/sis900/nbgrub
deleted file mode 100644
index 856771aae..000000000
--- a/tools/i386/netboot/sis900/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sis900/pxegrub b/tools/i386/netboot/sis900/pxegrub
deleted file mode 100644
index 59e0244d0..000000000
--- a/tools/i386/netboot/sis900/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sis900/stage1 b/tools/i386/netboot/sis900/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/sis900/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sis900/stage2 b/tools/i386/netboot/sis900/stage2
deleted file mode 100644
index 9ad200099..000000000
--- a/tools/i386/netboot/sis900/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sk_g16/nbgrub b/tools/i386/netboot/sk_g16/nbgrub
deleted file mode 100644
index 5f8a4973c..000000000
--- a/tools/i386/netboot/sk_g16/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sk_g16/pxegrub b/tools/i386/netboot/sk_g16/pxegrub
deleted file mode 100644
index 9d2fd22ce..000000000
--- a/tools/i386/netboot/sk_g16/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sk_g16/stage1 b/tools/i386/netboot/sk_g16/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/sk_g16/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/sk_g16/stage2 b/tools/i386/netboot/sk_g16/stage2
deleted file mode 100644
index 0aa999bd3..000000000
--- a/tools/i386/netboot/sk_g16/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/smc9000/nbgrub b/tools/i386/netboot/smc9000/nbgrub
deleted file mode 100644
index d6208c387..000000000
--- a/tools/i386/netboot/smc9000/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/smc9000/pxegrub b/tools/i386/netboot/smc9000/pxegrub
deleted file mode 100644
index 335d1b2d3..000000000
--- a/tools/i386/netboot/smc9000/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/smc9000/stage1 b/tools/i386/netboot/smc9000/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/smc9000/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/smc9000/stage2 b/tools/i386/netboot/smc9000/stage2
deleted file mode 100644
index 959ba63f0..000000000
--- a/tools/i386/netboot/smc9000/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tiara/nbgrub b/tools/i386/netboot/tiara/nbgrub
deleted file mode 100644
index c6e1be61c..000000000
--- a/tools/i386/netboot/tiara/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tiara/pxegrub b/tools/i386/netboot/tiara/pxegrub
deleted file mode 100644
index 8958b93bc..000000000
--- a/tools/i386/netboot/tiara/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tiara/stage1 b/tools/i386/netboot/tiara/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/tiara/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tiara/stage2 b/tools/i386/netboot/tiara/stage2
deleted file mode 100644
index ac890c297..000000000
--- a/tools/i386/netboot/tiara/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tulip/nbgrub b/tools/i386/netboot/tulip/nbgrub
deleted file mode 100644
index b55321acb..000000000
--- a/tools/i386/netboot/tulip/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tulip/pxegrub b/tools/i386/netboot/tulip/pxegrub
deleted file mode 100644
index d6400bc08..000000000
--- a/tools/i386/netboot/tulip/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tulip/stage1 b/tools/i386/netboot/tulip/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/tulip/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/tulip/stage2 b/tools/i386/netboot/tulip/stage2
deleted file mode 100644
index bb787876a..000000000
--- a/tools/i386/netboot/tulip/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/via_rhine/nbgrub b/tools/i386/netboot/via_rhine/nbgrub
deleted file mode 100644
index 6d32a2801..000000000
--- a/tools/i386/netboot/via_rhine/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/via_rhine/pxegrub b/tools/i386/netboot/via_rhine/pxegrub
deleted file mode 100644
index 1c1a04437..000000000
--- a/tools/i386/netboot/via_rhine/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/via_rhine/stage1 b/tools/i386/netboot/via_rhine/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/via_rhine/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/via_rhine/stage2 b/tools/i386/netboot/via_rhine/stage2
deleted file mode 100644
index cae5cd9c6..000000000
--- a/tools/i386/netboot/via_rhine/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/w89c840/nbgrub b/tools/i386/netboot/w89c840/nbgrub
deleted file mode 100644
index ea30621cd..000000000
--- a/tools/i386/netboot/w89c840/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/w89c840/pxegrub b/tools/i386/netboot/w89c840/pxegrub
deleted file mode 100644
index 4a87da113..000000000
--- a/tools/i386/netboot/w89c840/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/w89c840/stage1 b/tools/i386/netboot/w89c840/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/w89c840/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/w89c840/stage2 b/tools/i386/netboot/w89c840/stage2
deleted file mode 100644
index cad6e1beb..000000000
--- a/tools/i386/netboot/w89c840/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/wd/nbgrub b/tools/i386/netboot/wd/nbgrub
deleted file mode 100644
index 9d75d57da..000000000
--- a/tools/i386/netboot/wd/nbgrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/wd/pxegrub b/tools/i386/netboot/wd/pxegrub
deleted file mode 100644
index d41c51e8f..000000000
--- a/tools/i386/netboot/wd/pxegrub
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/wd/stage1 b/tools/i386/netboot/wd/stage1
deleted file mode 100755
index 3d96f6eca..000000000
--- a/tools/i386/netboot/wd/stage1
+++ /dev/null
Binary files differ
diff --git a/tools/i386/netboot/wd/stage2 b/tools/i386/netboot/wd/stage2
deleted file mode 100644
index 7f1575c0b..000000000
--- a/tools/i386/netboot/wd/stage2
+++ /dev/null
Binary files differ
diff --git a/tools/i386/sh b/tools/i386/sh
deleted file mode 100755
index 084a97837..000000000
--- a/tools/i386/sh
+++ /dev/null
Binary files differ
diff --git a/tools/ia64/e2fsck.shared b/tools/ia64/e2fsck.shared
deleted file mode 100755
index 1ca570a7b..000000000
--- a/tools/ia64/e2fsck.shared
+++ /dev/null
Binary files differ
diff --git a/tools/ia64/elilo.efi b/tools/ia64/elilo.efi
deleted file mode 100755
index 39151b8e3..000000000
--- a/tools/ia64/elilo.efi
+++ /dev/null
Binary files differ
diff --git a/tools/install-xml-file-list b/tools/install-xml-file-list
deleted file mode 100755
index f8944ccbd..000000000
--- a/tools/install-xml-file-list
+++ /dev/null
@@ -1,356 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-use XML::Parser;
-use Data::Dumper;
-use Config;
-use Cwd 'cwd';
-
-my $want_sudo = $ARGV[0] eq '--sudo' && shift @ARGV;
-
-@ARGV == 2 or die "usage: install-xml-file-list [--sudo] <xml file> <destination>\n";
-my ($xml_file_list, $DEST) = @ARGV;
-
-my $sudo = '';
-if ($>) {
- $sudo = "sudo" if $want_sudo;
- $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
-}
-
-#$verbose = 1;
-
-my $initial_dir = cwd();
-my $ARCH = arch() =~ /i.86/ ? 'i386' : arch();
-my $LIB = arch() =~ /x86_64/ ? "lib64" : "lib";
-
-my $base_cpio_options = '-pumd --quiet';
-
-my $tree = XML::Parser->new(Style => 'Tree')->parsefile($xml_file_list);
-
-my $main_node = decompose($tree);
-
-$main_node->{tag} eq 'list' or die "bad file $xml_file_list (main tag should be <list>)\n";
-
-handle_nodes({}, $main_node);
-
-install_needed_libraries();
-
-final_cleanup();
-
-sub final_cleanup() {
- #- cpio creates directory 700, that's not nice
- system("find $DEST -type d | xargs $sudo chmod 755");
-}
-
-sub handle_nodes {
- my ($env, $e) = @_;
- handle_node($env, decompose($_)) foreach @{$e->{l}};
-}
-sub handle_node {
- my ($env, $node) = @_;
-
- if (!$node->{tag} && $node->{text} !~ /\S/) {
- } elsif (!$node->{tag}) {
- install($env, $node->{text});
- } elsif ($node->{tag} eq 'if') {
- my $cond = valid_cond($node->{attr});
- handle_nodes($env, $node) if $cond;
- } elsif ($node->{tag} eq 'if-not') {
- my $cond = valid_cond($node->{attr});
- handle_nodes($env, $node) if !$cond;
- } elsif (member($node->{tag}, 'from', 'to', 'mode', 'filter')) {
- handle_nodes(add_to_env($env, $node->{tag} => $node->{attr}), $node);
- } else {
- warn "expecting tag <from>, not <$node->{tag}>\n";
- }
-}
-
-sub valid_cond {
- my ($attr) = @_;
- every {
- if ($_ eq 'ARCH') {
- $ARCH =~ /$attr->{$_}/;
- } elsif ($_ eq 'set') {
- $ENV{$attr->{$_}};
- } else {
- die "<if>: unknown condition $_\n";
- }
- } keys %$attr;
-}
-
-sub add_to_env {
- my ($env, $tag, $attr) = @_;
- my %env = map_each { $::a => +{%$::b} } %$env;
- foreach (keys %$attr) {
- !$env{$tag}{$_} or die qq(overriding attribute <$tag $_="$env{$tag}{$_}"> with $_="$attr->{$_}"\n);
- $env{$tag}{$_} = $attr->{$_};
- }
- \%env;
-}
-
-sub group_by_n {
- my ($n, $l) = @_;
- my (@r, $subl);
- my $i = 0;
- foreach (@$l) {
- if ($i % $n == 0) {
- push @r, $subl = [];
- }
- push @$subl, $_;
- $i++;
- }
- @r;
-}
-
-sub identify_file {
- my ($dev, $ino) = @_;
- "$dev:$ino";
-}
-
-sub all_files_rec_ {
- my ($d) = @_;
-
- $d, -d $d && ! -l $d ? map { all_files_rec_("$d/$_") } all($d) : ();
-}
-
-sub expand_macros {
- my ($f) = @_;
- $f =~ s!\bLIB\b!$LIB!g;
- $f =~ s!\bARCH\b!$ARCH!ge;
- $f =~ s!\$\((\w+)\)!$ENV{$1} || die "$1 undefined\n"!ge;
- $f;
-}
-
-my %needed_libraries;
-sub collect_needed_libraries {
- my (@to_check) = @_;
- while (@to_check) {
- my $to_check = join(' ', @to_check);
- my @l = `ldd $to_check 2>/dev/null` =~ m! => (/\S+)!g;
- foreach (@l) {
- if ($main_node->{attr}{'no-arch-libraries'}) {
- #- replace /lib/i686 with /lib (but keep /lib/tls)
- s!^(/lib(64)?/).*?/!$1! if !m!/tls/!;
- }
- }
- @to_check = grep { !$needed_libraries{$_}++ } @l;
- @to_check = ();
- }
-}
-sub install_needed_libraries {
- copy_files('', $DEST, [ keys %needed_libraries ], '', '--dereference');
-}
-
-sub collect_needed_perl_files {
- my ($local_rep, $dest, @scripts) = @_;
-
- my (%local, %global);
- foreach my $script (@scripts) {
- foreach (`strace -efile perl -cw -I$local_rep $script 2>&1`) {
- my ($f) = /^open\("(.*?)",.*\)\s*=\s*\d+$/ or next;
- if ($f =~ m!^\Q$local_rep\E/(.*)!) {
- $local{$1} = 1;
- } elsif (begins_with($f, '/dev/')) {
- # skip
- } elsif (begins_with($f, '/')) {
- $global{$f} = 1;
- }
- }
- }
- [ keys %local ], [ keys %global ];
-}
-
-sub copy_files {
- my ($working_dir, $to_dir, $files, $b_flatten, @options) = @_;
-
- if ($b_flatten) {
- mkdir_p($to_dir);
- my $options = join(' ', '-r', @options);
- foreach (group_by_n(20, $files)) {
- warn "cp $options to_dir $to_dir from $working_dir: @$_\n" if $verbose;
- system("cd $working_dir ; $sudo cp $options @$_ $to_dir");
- }
- } else {
- my $options = join(' ', $base_cpio_options, @options);
- warn "cpio $options to_dir $to_dir from $working_dir: @$files\n" if $verbose;
- open(my $F, "| cd $working_dir ; $sudo cpio $options $to_dir");
- print $F "$_\n" foreach @$files;
- close($F) or die "cpio $to_dir failed\n";
- }
-}
-
-sub install {
- my ($env, $text) = @_;
-
- my $from_dir = expand_macros($env->{from}{dir});
- my $to_dir = $DEST . expand_macros($env->{to}{dir} || $env->{to}{flatten} && $from_dir || '');
- my $copy_mode = $env->{mode}{copy} || '';
- my $working_dir = '.';
-
- my $expand = $env->{from}{expand} || '';
-
- my $disallow_from_dir = sub {
- !$from_dir or die "from dir not allowed with $expand binary\n";
- };
-
- my $from_file = sub {
- my ($rel, $b_full_glob, $b_recursive_dirs) = @_;
- my $f = expand_macros($from_dir ? "$from_dir/$rel" : $rel);
- my @l = $f;
- chdir $working_dir;
- if ($f =~ /\*/ || $b_full_glob) {
- @l = glob($f) or die "no match for $f\n";
-
- @l == 1 || $b_full_glob or die "multiple match for $f\n";
- } else {
- -e $f or die "missing file $f ($rel) in $working_dir\n";
- }
- if (@l == 1 && -d $l[0] && $b_recursive_dirs) {
- @l = all_files_rec_($l[0]);
- }
- @l = grep { !m!/CVS($|/)! } @l;
- if (my $re = $env->{from}{matching}) {
- @l = grep { eval $re } @l;
- }
-
- collect_needed_libraries(grep { -x $_ } @l);
-
- chdir $initial_dir;
- @l;
- };
-
- my @files;
- if ($expand eq 'tar') {
- foreach (split(' ', $text)) {
- system('tar', 'xfj', $from_file->($_), '-C', $to_dir);
- }
- # not filling @files, things are already done
-
- } elsif ($expand eq 'command') {
- @files = chomp_(`$text`);
-
- } elsif ($expand eq 'glob') {
- #- glob done in $from_file
- @files = split(' ', $text);
-
- } elsif ($expand eq 'binary') {
- $disallow_from_dir->();
- my @PATH = qw(/sbin /bin /usr/bin /usr/sbin /usr/X11R6/bin);
- foreach my $name (map { expand_macros($_) } split(' ', $text)) {
- my @l = grep { -x $_ } map { "$_/$name" } @PATH;
- @l or die "can't find binary $name\n";
- if (@l > 1) {
- my @m = grep { ! -l $_ } @l;
- if (@m == 1) {
- my $id = identify_file($m[0]);
- push @files, grep { -l $_ && identify_file($_) eq $id } @l;
- }
- @l = @m if @m;
- }
- if (@l > 1) {
- warn "many matches for binary $name: " . join(' ', @l) . ", choosing $l[0]\n";
- }
- my $f = $l[0];
- while (1) {
- push @files, $f;
- my $l = readlink($f) or last;
- if ($l =~ m!/! && $l !~ m!^\.\..*/s?bin/[^/]+$!) {
- warn "keeping symlink $f -> $l as is\n";
- last;
- }
- $f = dirname($f) . '/' . $l;
- }
- }
- $copy_mode = 'keep-links';
- $env->{filter}{command} ||= 'strip';
-
- } elsif ($expand eq 'rpm') {
- $disallow_from_dir->();
- foreach my $rpm (split(' ', $text)) {
- my @l = chomp_(`rpm -ql $rpm`) or die "rpm $rpm must be installed\n";
- push @files, @l;
- }
-
- } elsif ($expand eq 'perl') {
- $disallow_from_dir->();
- $from_dir = '/usr/lib/perl5/vendor_perl/*';
- @files = split(' ', $text);
- } elsif ($expand eq 'main-perl') {
- $disallow_from_dir->();
- $from_dir = $Config{privlib};
- @files = split(' ', $text);
- } elsif ($expand =~ /collect-perl-files/) {
- my (undef, $local, $to) = split(' ', $expand);
-
- @files = split(' ', $text);
- warn "collect-perl-files $local $to @files ($env->{filter}{command})\n";
- my ($local_perl_files, $global_perl_files) = collect_needed_perl_files($local, $to, @files);
- warn "collect-perl-files gave: ", join(' ', @$local_perl_files), "\n";
- copy_and_filter("$working_dir/$local", "$DEST$to", $local_perl_files, $env->{filter}, '', '--dereference');
- copy_and_filter('', $DEST, $global_perl_files, $env->{filter}, '', '--dereference');
-
- } elsif ($expand) {
- die "unknown expand method $expand\n";
- } else {
- @files = split(' ', $text);
-
- $env->{filter}{command} ||= 'strip' if $to_dir =~ m!/bin$!;
- }
-
- if ($env->{to}{dir} && $from_dir) {
- $working_dir = $from_dir;
- undef $from_dir;
- }
-
- my @all_files = map { $from_file->($_, $expand eq 'glob', $expand ne 'rpm') } @files;
-
- my @options = (
- if_($copy_mode ne 'keep-links', '--dereference'),
- );
- copy_and_filter($working_dir, $to_dir, \@all_files, $env->{filter}, $env->{to}{flatten}, @options);
-}
-
-sub copy_and_filter {
- my ($working_dir, $to_dir, $all_files, $filter, $flatten, @copy_options) = @_;
-
- copy_files($working_dir, $to_dir, $all_files, $flatten, @copy_options);
- apply_filter($to_dir, $filter, $all_files, $flatten);
-}
-
-sub apply_filter {
- my ($to_dir, $filter, $all_files, $b_flatten) = @_;
-
- chdir $to_dir;
- foreach (group_by_n(20, $all_files)) {
- my @l = $b_flatten ? (map { basename($_) } @$_) : (map { "./$_" } @$_);
- @l = grep { ! -d $_ } @l;
-
- if (my $subst = $filter->{subst}) {
- system('perl', '-pi', '-e', $subst, @l);
- }
- if (my $command = $filter->{command}) {
- $command = $initial_dir . "/$command" if $command =~ m!^..?/!;
- if ($command =~ /simplify-drakx-modules/) {
- @l = grep { !/\.so($|\.)/ } @l;
- }
- my @options = (
- if_($command eq 'gzip', '-9f'),
- if_($command eq 'strip', '2>/dev/null'),
- );
- warn "running $command @options @l\n" if $verbose;
- system(join(' ', $command, @options, @l));
- }
- }
- chdir $initial_dir;
-}
-
-sub decompose {
- my ($tree) = @_;
- my ($tag, $val) = @$tree;
- if ($tag eq '0') {
- { text => $val };
- } else {
- my ($attr, @l) = @$val;
- { tag => $tag, attr => $attr, l => [ group_by2(@l) ] };
- }
-}
diff --git a/tools/mailchangelog.pl b/tools/mailchangelog.pl
deleted file mode 100755
index 6e7793eb7..000000000
--- a/tools/mailchangelog.pl
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl
-
-open F, '|/usr/sbin/sendmail -oi -t';
-
-chomp($ver = <STDIN>);
-
-print F
-q(Subject: [DrakX] DrakX snapshot #), $ver, q( uploaded
-From: DrakX Builder Robot <devel@mandrakesoft.com>
-To: changelog@linux-mandrake.com
-Reply-To: install@mandrakesoft.com
-
-);
-print F foreach <STDIN>;
diff --git a/tools/make_lang_png_transparent.c b/tools/make_lang_png_transparent.c
deleted file mode 100644
index b5e9a1683..000000000
--- a/tools/make_lang_png_transparent.c
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * Guillaume Cottenceau (gc at mandrakesoft.com)
- *
- * Copyright 2002 Mandrakesoft
- *
- * This software may be freely redistributed under the terms of the GNU
- * public license.
- *
- */
-
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdarg.h>
-
-#define PNG_DEBUG 3
-#include <png.h>
-
-void abort_(const char * s, ...)
-{
- va_list args;
- va_start(args, s);
- vfprintf(stderr, s, args);
- fprintf(stderr, "\n");
- va_end(args);
- abort();
-}
-
-int x, y;
-
-int width, height;
-png_byte color_type;
-png_byte bit_depth;
-
-png_structp png_ptr;
-png_infop info_ptr;
-int number_of_passes;
-png_bytep * row_pointers;
-
-void read_png_file(char* file_name)
-{
- char header[8]; // 8 is the maximum size that can be checked
-
- /* open file and test for it being a png */
- FILE *fp = fopen(file_name, "rb");
- if (!fp)
- abort_("[read_png_file] File %s could not be opened for reading", file_name);
- fread(header, 1, 8, fp);
- if (png_sig_cmp(header, 0, 8))
- abort_("[read_png_file] File %s is not recognized as a PNG file", file_name);
-
-
- /* initialize stuff */
- png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
-
- if (!png_ptr)
- abort_("[read_png_file] png_create_read_struct failed");
-
- info_ptr = png_create_info_struct(png_ptr);
- if (!info_ptr)
- abort_("[read_png_file] png_create_info_struct failed");
-
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[read_png_file] Error during init_io");
-
- png_init_io(png_ptr, fp);
- png_set_sig_bytes(png_ptr, 8);
-
- png_read_info(png_ptr, info_ptr);
-
- width = info_ptr->width;
- height = info_ptr->height;
- color_type = info_ptr->color_type;
- bit_depth = info_ptr->bit_depth;
-
- number_of_passes = png_set_interlace_handling(png_ptr);
- png_read_update_info(png_ptr, info_ptr);
-
-
- /* read file */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[read_png_file] Error during read_image");
-
- row_pointers = (png_bytep*) malloc(sizeof(png_bytep) * height);
- for (y=0; y<height; y++)
- row_pointers[y] = (png_byte*) malloc(info_ptr->rowbytes);
-
- png_read_image(png_ptr, row_pointers);
-}
-
-
-void write_png_file(char* file_name)
-{
- /* create file */
- FILE *fp = fopen(file_name, "wb");
- if (!fp)
- abort_("[write_png_file] File %s could not be opened for writing", file_name);
-
-
- /* initialize stuff */
- png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
-
- if (!png_ptr)
- abort_("[write_png_file] png_create_write_struct failed");
-
- info_ptr = png_create_info_struct(png_ptr);
- if (!info_ptr)
- abort_("[write_png_file] png_create_info_struct failed");
-
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during init_io");
-
- png_init_io(png_ptr, fp);
-
-
- /* write header */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during writing header");
-
- png_set_IHDR(png_ptr, info_ptr, width, height,
- bit_depth, color_type, PNG_INTERLACE_NONE,
- PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
-
- png_write_info(png_ptr, info_ptr);
-
-
- /* write bytes */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during writing bytes");
-
- png_write_image(png_ptr, row_pointers);
-
-
- /* end write */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during end of write");
-
- png_write_end(png_ptr, NULL);
-
-}
-
-void process_file(void)
-{
- if (info_ptr->color_type != PNG_COLOR_TYPE_RGBA)
- abort_("[process_file] color_type of input file must be PNG_COLOR_TYPE_RGBA (is %d)", info_ptr->color_type);
-
- for (y=0; y<height; y++) {
- png_byte* row = row_pointers[y];
- for (x=0; x<width; x++) {
- png_byte* ptr = &(row[x*4]);
- ptr[3] = 255-ptr[0];
- ptr[0] = ptr[1] = ptr[2] = 0;
- }
- }
-
-}
-
-
-int main(int argc, char **argv)
-{
- if (argc != 3)
- abort_("Usage: program_name <file_in> <file_out>");
-
- read_png_file(argv[1]);
- process_file();
- write_png_file(argv[2]);
-}
diff --git a/tools/mdkinst_stage2_tool b/tools/mdkinst_stage2_tool
deleted file mode 100755
index f383cdf1c..000000000
--- a/tools/mdkinst_stage2_tool
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-[ $# != 1 ] && {
- echo "usage: mdkinst_stage2_tool <stage2 dir>" ;
- echo " example: misc/mdkinst_stage2_tool install/stage2"
- exit
-}
-
-STAGE2_DIR="$1"
-LIVE_DIR="$STAGE2_DIR/live"
-CLP="$STAGE2_DIR/mdkinst.clp"
-
-if [ -d $LIVE_DIR ]; then
- echo "Creating $CLP from $LIVE_DIR"
- rm -f $STAGE2_DIR/.room
- mkisofs -quiet -D -R $LIVE_DIR | create_compressed_fs - 65536 $CLP 200 2>/dev/null
- echo foo > $STAGE2_DIR/.room
- if [ -s $STAGE2_DIR/.room ]; then
- rm -rf $LIVE_DIR $STAGE2_DIR/.room
- else
- echo "not enough space"
- rm -f $CLP
- exit 1
- fi
-else
- echo "Creating $LIVE_DIR from $CLP"
-
- TMPDIR=${TMPDIR=/tmp}
- MNTPOINT=$TMPDIR/stage2_img
-
- if [ $EUID != "0" ]; then
- SUDO="sudo"
- PATH="/sbin:/usr/sbin:$PATH"
- fi
-
- $SUDO umount $MNTPOINT 2>/dev/null
- mkdir -p $MNTPOINT
- extract_compressed_fs $CLP > $CLP.iso 2>/dev/null
- mkdir $LIVE_DIR || { echo "not enough space"; exit 1; }
- $SUDO mount -o loop $CLP.iso $MNTPOINT || { echo "can not loopback mount $CLP"; exit 1; }
- cp -a $MNTPOINT/* $LIVE_DIR/ || { rm -rf $LIVE_DIR; exit 1; }
- $SUDO umount $MNTPOINT
- rm -f $CLP.iso $CLP
-fi
diff --git a/tools/ntp_servers.pl b/tools/ntp_servers.pl
deleted file mode 100644
index d0a4b6cc2..000000000
--- a/tools/ntp_servers.pl
+++ /dev/null
@@ -1,303 +0,0 @@
-#!/usr/bin/perl
-
-#open F, "/usr/bin/lynx -dump http://www.eecis.udel.edu/~mills/ntp/clock1a.html|";
-open(my $G, "/usr/bin/lynx -dump http://www.eecis.udel.edu/~mills/ntp/clock2a.html|");
-
-# Chris Kloiber <ckloiber@redhat.com> writes:
-# > It's not considered polite to use the Stratum 1 servers for purposes that
-# > are not absolutely critical. I would use Stratum 2 servers and live with
-# > the few nanoseconds difference.
-#parse() while <F>;
-
-parse($_) while <$G>;
-
-my @all;
-my ($l, $nb);
-sub parse {
- local ($_) = @_;
- /Active Servers/ .. /Discontinued Service/ or return;
- if (/^\s+\d+\. ([A-Z ]*[A-Z]);?\s+([.\w-]+)/) {
- push @all, $l = { name => $2, indic => $1 };
- $nb = 0;
- } else {
- s/^\s*//;
- s/\s*$//;
- my ($field, $val) = /^(.*):\s*(.*)/;
- if ($field =~ /policy/i) {
- $field = "policy";
- $val = lc join(' ', split(' ', $val));
- $val =~ s/glad to receive a note//;
- $val =~ s/(but )?please send (a )?message to notify//;
- $val =~ s/an email note is appreciated//;
- $val =~ s/please send a message with the//;
- $val =~ s/no need to notify//;
- $val =~ s/[(), .;]*$//;
- $val = "open access" if $val eq "public";
- warn "$val ($all[-1]{name})\n" if $val ne 'open access';
- } elsif ($field =~ /^Contact|Synchroni[sz]ation|Location|Geographic\s+Coordinates|Service\s+Area|Note$/i) {
- } else {
-# warn "bad line ($field) $_\n";
- return;
- }
- $l->{$field} .= ($l->{$field} && ' ') . $val;
- }
- $nb++;
-}
-
-
-use Data::Dumper;
-#warn Dumper(\@all);
-
-foreach (grep { $_->{policy} eq 'open access' } @all) {
- my ($country, $state) = split ' ', $_->{indic};
- $country = ucfirst(lc $country_codes{$country});
- $country .= " $state" if $state;
- printf "\t'%s' => '%s',\n", lc($_->{name}), $country;
-}
-
-BEGIN {
-%country_codes = ( # from ftp://ftp.ripe.net/iso3166-countrycodes
-"AF", "AFGHANISTAN",
-"AL", "ALBANIA",
-"DZ", "ALGERIA",
-"AS", "AMERICAN SAMOA",
-"AD", "ANDORRA",
-"AO", "ANGOLA",
-"AI", "ANGUILLA",
-"AQ", "ANTARCTICA",
-"AG", "ANTIGUA AND BARBUDA",
-"AR", "ARGENTINA",
-"AM", "ARMENIA",
-"AW", "ARUBA",
-"AU", "AUSTRALIA",
-"AT", "AUSTRIA",
-"AZ", "AZERBAIJAN",
-"BS", "BAHAMAS",
-"BH", "BAHRAIN",
-"BD", "BANGLADESH",
-"BB", "BARBADOS",
-"BY", "BELARUS",
-"BE", "BELGIUM",
-"BZ", "BELIZE",
-"BJ", "BENIN",
-"BM", "BERMUDA",
-"BT", "BHUTAN",
-"BO", "BOLIVIA",
-"BA", "BOSNIA AND HERZEGOWINA",
-"BW", "BOTSWANA",
-"BV", "BOUVET ISLAND",
-"BR", "BRAZIL",
-"IO", "BRITISH INDIAN OCEAN TERRITORY",
-"BN", "BRUNEI DARUSSALAM",
-"BG", "BULGARIA",
-"BF", "BURKINA FASO",
-"BI", "BURUNDI",
-"KH", "CAMBODIA",
-"CM", "CAMEROON",
-"CA", "CANADA",
-"CV", "CAPE VERDE",
-"KY", "CAYMAN ISLANDS",
-"CF", "CENTRAL AFRICAN REPUBLIC",
-"TD", "CHAD",
-"CL", "CHILE",
-"CN", "CHINA",
-"CX", "CHRISTMAS ISLAND",
-"CC", "COCOS (KEELING) ISLANDS",
-"CO", "COLOMBIA",
-"KM", "COMOROS",
-"CG", "CONGO",
-"CD", "CONGO, THE DEMOCRATIC REPUBLIC OF THE",
-"CK", "COOK ISLANDS",
-"CR", "COSTA RICA",
-"CI", "COTE D'IVOIRE",
-"HR", "CROATIA",
-"CU", "CUBA",
-"CY", "CYPRUS",
-"CZ", "CZECH REPUBLIC",
-"DK", "DENMARK",
-"DJ", "DJIBOUTI",
-"DM", "DOMINICA",
-"DO", "DOMINICAN REPUBLIC",
-"TP", "EAST TIMOR",
-"EC", "ECUADOR",
-"EG", "EGYPT",
-"SV", "EL SALVADOR",
-"GQ", "EQUATORIAL GUINEA",
-"ER", "ERITREA",
-"EE", "ESTONIA",
-"ET", "ETHIOPIA",
-"FK", "FALKLAND ISLANDS (MALVINAS)",
-"FO", "FAROE ISLANDS",
-"FJ", "FIJI",
-"FI", "FINLAND",
-"FR", "FRANCE",
-"FX", "FRANCE, METROPOLITAN",
-"GF", "FRENCH GUIANA",
-"PF", "FRENCH POLYNESIA",
-"TF", "FRENCH SOUTHERN TERRITORIES",
-"GA", "GABON",
-"GM", "GAMBIA",
-"GE", "GEORGIA",
-"DE", "GERMANY",
-"GH", "GHANA",
-"GI", "GIBRALTAR",
-"GR", "GREECE",
-"GL", "GREENLAND",
-"GD", "GRENADA",
-"GP", "GUADELOUPE",
-"GU", "GUAM",
-"GT", "GUATEMALA",
-"GN", "GUINEA",
-"GW", "GUINEA-BISSAU",
-"GY", "GUYANA",
-"HT", "HAITI",
-"HM", "HEARD AND MC DONALD ISLANDS",
-"VA", "HOLY SEE (VATICAN CITY STATE)",
-"HN", "HONDURAS",
-"HK", "HONG KONG",
-"HU", "HUNGARY",
-"IS", "ICELAND",
-"IN", "INDIA",
-"ID", "INDONESIA",
-"IR", "IRAN (ISLAMIC REPUBLIC OF)",
-"IQ", "IRAQ",
-"IE", "IRELAND",
-"IL", "ISRAEL",
-"IT", "ITALY",
-"JM", "JAMAICA",
-"JP", "JAPAN",
-"JO", "JORDAN",
-"KZ", "KAZAKHSTAN",
-"KE", "KENYA",
-"KI", "KIRIBATI",
-"KP", "KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF",
-"KR", "KOREA, REPUBLIC OF",
-"KW", "KUWAIT",
-"KG", "KYRGYZSTAN",
-"LA", "LAO PEOPLE'S DEMOCRATIC REPUBLIC",
-"LV", "LATVIA",
-"LB", "LEBANON",
-"LS", "LESOTHO",
-"LR", "LIBERIA",
-"LY", "LIBYAN ARAB JAMAHIRIYA",
-"LI", "LIECHTENSTEIN",
-"LT", "LITHUANIA",
-"LU", "LUXEMBOURG",
-"MO", "MACAU",
-"MK", "MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF",
-"MG", "MADAGASCAR",
-"MW", "MALAWI",
-"MY", "MALAYSIA",
-"MV", "MALDIVES",
-"ML", "MALI",
-"MT", "MALTA",
-"MH", "MARSHALL ISLANDS",
-"MQ", "MARTINIQUE",
-"MR", "MAURITANIA",
-"MU", "MAURITIUS",
-"YT", "MAYOTTE",
-"MX", "MEXICO",
-"FM", "MICRONESIA, FEDERATED STATES OF",
-"MD", "MOLDOVA, REPUBLIC OF",
-"MC", "MONACO",
-"MN", "MONGOLIA",
-"MS", "MONTSERRAT",
-"MA", "MOROCCO",
-"MZ", "MOZAMBIQUE",
-"MM", "MYANMAR",
-"NA", "NAMIBIA",
-"NR", "NAURU",
-"NP", "NEPAL",
-"NL", "NETHERLANDS",
-"AN", "NETHERLANDS ANTILLES",
-"NC", "NEW CALEDONIA",
-"NZ", "NEW ZEALAND",
-"NI", "NICARAGUA",
-"NE", "NIGER",
-"NG", "NIGERIA",
-"NU", "NIUE",
-"NF", "NORFOLK ISLAND",
-"MP", "NORTHERN MARIANA ISLANDS",
-"NO", "NORWAY",
-"OM", "OMAN",
-"PK", "PAKISTAN",
-"PW", "PALAU",
-"PA", "PANAMA",
-"PG", "PAPUA NEW GUINEA",
-"PY", "PARAGUAY",
-"PE", "PERU",
-"PH", "PHILIPPINES",
-"PN", "PITCAIRN",
-"PL", "POLAND",
-"PT", "PORTUGAL",
-"PR", "PUERTO RICO",
-"QA", "QATAR",
-"RE", "REUNION",
-"RO", "ROMANIA",
-"RU", "RUSSIA",
-"RW", "RWANDA",
-"KN", "SAINT KITTS AND NEVIS",
-"LC", "SAINT LUCIA",
-"VC", "SAINT VINCENT AND THE GRENADINES",
-"WS", "SAMOA",
-"SM", "SAN MARINO",
-"ST", "SAO TOME AND PRINCIPE",
-"SA", "SAUDI ARABIA",
-"SN", "SENEGAL",
-"SC", "SEYCHELLES",
-"SL", "SIERRA LEONE",
-"SG", "SINGAPORE",
-"SK", "SLOVAKIA (Slovak Republic)",
-"SI", "SLOVENIA",
-"SB", "SOLOMON ISLANDS",
-"SO", "SOMALIA",
-"ZA", "SOUTH AFRICA",
-"GS", "SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS",
-"ES", "SPAIN",
-"LK", "SRI LANKA",
-"SH", "ST. HELENA",
-"PM", "ST. PIERRE AND MIQUELON",
-"SD", "SUDAN",
-"SR", "SURINAME",
-"SJ", "SVALBARD AND JAN MAYEN ISLANDS",
-"SZ", "SWAZILAND",
-"SE", "SWEDEN",
-"CH", "SWITZERLAND",
-"SY", "SYRIAN ARAB REPUBLIC",
-"TW", "TAIWAN, PROVINCE OF CHINA",
-"TJ", "TAJIKISTAN",
-"TZ", "TANZANIA, UNITED REPUBLIC OF",
-"TH", "THAILAND",
-"TG", "TOGO",
-"TK", "TOKELAU",
-"TO", "TONGA",
-"TT", "TRINIDAD AND TOBAGO",
-"TN", "TUNISIA",
-"TR", "TURKEY",
-"TM", "TURKMENISTAN",
-"TC", "TURKS AND CAICOS ISLANDS",
-"TV", "TUVALU",
-"UG", "UGANDA",
-"UA", "UKRAINE",
-"AE", "UNITED ARAB EMIRATES",
-"GB", "UNITED KINGDOM",
-"US", "UNITED STATES",
-"UM", "UNITED STATES MINOR OUTLYING ISLANDS",
-"UY", "URUGUAY",
-"UZ", "UZBEKISTAN",
-"VU", "VANUATU",
-"VE", "VENEZUELA",
-"VN", "VIET NAM",
-"VG", "VIRGIN ISLANDS (BRITISH)",
-"VI", "VIRGIN ISLANDS (U.S.)",
-"WF", "WALLIS AND FUTUNA ISLANDS",
-"EH", "WESTERN SAHARA",
-"YE", "YEMEN",
-"YU", "YUGOSLAVIA",
-"ZM", "ZAMBIA",
-"ZW", "ZIMBABWE",
-
-#added
-"UK", "UNITED KINGDOM",
-);
-}
diff --git a/tools/patch_pcmcia_config.pl b/tools/patch_pcmcia_config.pl
deleted file mode 100755
index 6e8614cc0..000000000
--- a/tools/patch_pcmcia_config.pl
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-
-listlength(@ARGV) == 2 or die "usage: $0 /path/to/etc/pcmcia/config /path/to/modules.dep\n";
-
-my ($pcmcia_config, $modules_dep) = @ARGV;
-
-
-my @ignore_modules_in_deps = qw(pcmcia_core pcmcia ds);
-
-my @conf_contents = cat_($pcmcia_config);
-die "uhm, problem, <$pcmcia_config> seems short in lines\n" if listlength(@conf_contents) < 10;
-
-foreach (cat_($modules_dep)) {
- /^(\S+): (.*)/ and $deps{$1} = [ split ' ', $2 ] or die "could not understand `$_' in <$modules_dep>\n";
-}
-
-foreach my $confline (@conf_contents) {
- $confline =~ /class.*\s+module\s+(.*)/ or next;
- my @modules = map { /"([^"]+)"(.*)/ && [ $1, $2 ] } split ',', $1;
- $_->[0] =~ s|.*/([^/]+)$|$1|g foreach @modules; #- remove directories since we don't support that during install
- my @deps = grep { !member($_, @ignore_modules_in_deps, map { $_->[0] } @modules) } map { @{$deps{$_->[0]}} } @modules;
- my $new_modz = join ', ', (map { "\"$_\"" } @deps), (map { "\"$_->[0]\"$_->[1]" } @modules);
- $confline =~ s/(class.*\s+module\s+).*/$1$new_modz/;
-}
-
-output($pcmcia_config, @conf_contents);
diff --git a/tools/ppc/README b/tools/ppc/README
deleted file mode 100644
index fd1aaae03..000000000
--- a/tools/ppc/README
+++ /dev/null
@@ -1,39 +0,0 @@
-Mini-Howto on burning Mandrake PPC Bootable CD's for Apple G3/G4 systems
--------------------------------------------------------------------------
-email: John Buswell <johnb@mandrakesoft.com>
-
-To create a disk image simply use the mkINSTALLCD script provided in this
-directory. The path you provide the script should point to the root directory
-for the CD.
-
-For example after you have built the gi install with /export, simply pass
-/export to the script as the distribution path and a name for the image.
-Once the image is built you can use hmount, humount, hdir, hcd and hattrib
-to modify and inspect the image before you commit it to CD-R.
-
-Before you run the script make sure the CD version of iBoot is in the
-iBoot directory below /export (eg. /export/iBoot), if you want to use some
-other directory then simply modify the script. Beware, HFS is not case
-sensitive, so if you already have an INSTALL file you cannot create install.
-
-Currently iBoot sports two trees, one for the install CD and another for
-regular usage. These will be merged shortly and a simply #define can be used
-in the Makefile to implement one or the other from a single binary.
-
-Enjoy!!
-
-
-Addendum: 3/15/2001 Stew Benedict <sbenedict@mandrakesoft.com>
---------------------------------------------------------------------------
-
-A couple of changes.
-
-I've opted to standardize on yaboot, which is user configurable, so the script
-is modified now to use yaboot.
-
-Secondly, since mkhybrid merged with mkisofs, the hybrid images it creates are
-read-only, so one is unable to mount the image and bless the boot directory for
-booting. Consequently, I've included the binary for mkhybrid-1.12b5.4, which
-does work.
-
-
diff --git a/tools/ppc/Xpmac b/tools/ppc/Xpmac
deleted file mode 100755
index ec50e6aa0..000000000
--- a/tools/ppc/Xpmac
+++ /dev/null
Binary files differ
diff --git a/tools/ppc/convert b/tools/ppc/convert
deleted file mode 100755
index a2622c630..000000000
--- a/tools/ppc/convert
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-mv $1.orig $1.Unix
-tr "\n" "\r" < $1.Unix > $1.MacOS
-perl -e '@line = <>; $line = join("\r\n", split(/\n/, join("", @line))); print $line; print "\r\n";' < $1.Unix > $1.DOS
diff --git a/tools/ppc/e2fsck.shared b/tools/ppc/e2fsck.shared
deleted file mode 100644
index 32e506c31..000000000
--- a/tools/ppc/e2fsck.shared
+++ /dev/null
Binary files differ
diff --git a/tools/ppc/magic b/tools/ppc/magic
deleted file mode 100755
index 91f4193ea..000000000
--- a/tools/ppc/magic
+++ /dev/null
@@ -1,89 +0,0 @@
-#
-# Example magic file for mkhybrid
-#
-# The "message" for the offset MUST be 4 characters for the CREATOR
-# and 4 characters for the TYPE - white space is optional between them.
-# Any other characters on this line are ignored. Continuation lines (starting
-# with '>') are also ignored i.e. only the initial offset lines are used.
-#
-# The continuation lines are given here, but they do not need to exist.
-
-#
-# James Pearson 20/5/98
-
-# Modified by Christian Walther, 2003/01/17:
-# changed gzip to StuffIt Expander
-# added perl & shell script
-
-# off type test message
-
-# GIF
-0 string GIF8 8BIM GIFf
->4 string 7a \b, version 8%s,
->4 string 9a \b, version 8%s,
->6 leshort >0 %hd x
->8 leshort >0 %hd,
-#>10 byte &0x80 color mapped,
-#>10 byte&0x07 =0x00 2 colors
-#>10 byte&0x07 =0x01 4 colors
-#>10 byte&0x07 =0x02 8 colors
-#>10 byte&0x07 =0x03 16 colors
-#>10 byte&0x07 =0x04 32 colors
-#>10 byte&0x07 =0x05 64 colors
-#>10 byte&0x07 =0x06 128 colors
-#>10 byte&0x07 =0x07 256 colors
-
-# JPEG images
-#
-0 ubeshort 0xffd8 8BIM JPEG image data
-
-# StuffIt
-#
-0 string SIT! SIT!SIT!
-
-# standard unix compress
-0 string \037\235 LZIV ZIVU
->2 byte&0x80 >0 block compressed
->2 byte&0x1f x %d bits
-
-# gzip (GNU zip, not to be confused with Info-ZIP or PKWARE zip archiver)
-0 string \037\213 Gzip SITx gzip compressed data
->2 byte <8 \b, reserved method,
->2 byte 8 \b, deflated,
->3 byte &0x01 ASCII,
->3 byte &0x02 continuation,
->3 byte &0x04 extra field,
->3 byte &0x08 original filename,
->3 byte &0x10 comment,
->3 byte &0x20 encrypted,
->4 ledate x last modified: %s,
->8 byte 2 max compression,
->8 byte 4 max speed,
->9 byte =0x00 os: MS-DOS
->9 byte =0x01 os: Amiga
->9 byte =0x02 os: VMS
->9 byte =0x03 os: Unix
->9 byte =0x05 os: Atari
->9 byte =0x06 os: OS/2
->9 byte =0x07 os: MacOS
->9 byte =0x0A os: Tops/20
->9 byte =0x0B os: Win/32
-
-# Postscript
-0 string %! ASPSTEXT
->2 string PS-Adobe- conforming
->>11 string >\0 at level %.3s
->>>15 string EPS - type %s
->>>15 string Query - type %s
->>>15 string ExitServer - type %s
-# Some PCs have the annoying habit of adding a ^D as a document separator
-0 string \004%! ASPS TEXT PostScript document text
->3 string PS-Adobe- conforming
->>12 string >\0 at level %.3s
->>>16 string EPS - type %s
->>>16 string Query - type %s
->>>16 string ExitServer - type %s
-
-# scripts
-0 string #!/usr/bin/perl McPL TEXT
-0 string #!/bin/sh ttxt TEXT
diff --git a/tools/ppc/mapping b/tools/ppc/mapping
deleted file mode 100755
index 35d5d3d1c..000000000
--- a/tools/ppc/mapping
+++ /dev/null
@@ -1,29 +0,0 @@
-# Example filename mapping file
-# Modified by Christian Walther, 2003/01/17
-#
-# EXTN XLate CREATOR TYPE Comment
-COPYING Ascii 'ttxt' 'ttro' "Text File"
-CREDITS Ascii 'ttxt' 'ttro' "Text File"
-README Ascii 'ttxt' 'ttro' "Text File"
-RPM-PGP-KEY Ascii 'ttxt' 'ttro' "Text File"
-VERSION Ascii 'ttxt' 'ttro' "Text File"
-.gz Raw 'SITx' 'Gzip' "GZip Compressed File"
-.sit Raw 'SIT!' 'SITD' "StuffIt Archive"
-.hqx Ascii 'SITx' 'TEXT' "BinHex Encoded File"
-.html Ascii 'MOSS' 'TEXT' "HTML File"
-.htm Ascii 'MOSS' 'TEXT' "HTML File"
-.gif Raw 'ogle' 'GIFf' "GIF Image"
-.jpg Raw 'ogle' 'JPEG' "JPEG Image"
-.tif Raw 'ogle' 'TIFF' "TIFF Image"
-.bz2 Raw 'SITx' 'Bzp2' "BZip2 Compressed File"
-.png Raw 'ogle' 'PNGf' "PNG Image"
-.rpm Raw 'mRPM' 'RPMf' "RPM Software Package"
-.pl Ascii 'McPL' 'TEXT' "Perl Script"
-.pl Ascii 'McPL' 'TEXT' "Perl Module"
-.doc Raw 'MSWD' 'WDBN' "Word file"
-.mov Raw 'TVOD' 'MooV' "QuickTime Movie"
-.txt Ascii 'ttxt' 'TEXT' "Text File"
-.conf Ascii 'ttxt' 'TEXT' "config file"
-.tbxi Raw 'chrp' 'tbxi' "Macintosh Toolbox ROM file"
-.sea Raw 'aust' 'APPL' "Self Expanding Archive"
-* Raw '????' '????' "Unknown"
diff --git a/tools/ppc/mkINSTALLCD b/tools/ppc/mkINSTALLCD
deleted file mode 100755
index d7686f01d..000000000
--- a/tools/ppc/mkINSTALLCD
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# shell script to build a bootable hybrid PPC CD
-
-if ! rpm -q hfsutils ; then
- echo 'You need hfsutils installed!!'
- exit 1
-fi
-
-if [ -e $2 ] ; then
- echo "Output image $2 exists, please delete"
- echo "usage: $0 <CD tree> <output image name>"
- exit 1
-fi
-
-if [ ! -d $1 ] ; then
- echo "CD tree $1 is not a directory!"
- echo "usage: $0 <CD tree> <output image name>"
- exit 1
-fi
-
-# select the appropriate mkhybrid binary depending on if
-# we are on x86 or ppc
-
-MKHYBRID=mkisofs
-
-#Change these when you build the CD..
-ApplicationID="Linux-Mandrake"
-PublisherID="Mandrakesoft"
-PreparerID="sbenedict@mandrakesoft.com"
-SystemID=PPC
-volid=ppc
-hfsVolid=Linux-Mandrake
-curPwd=`pwd`
-
-$MKHYBRID -part -hfs -r -l -J \
--A $ApplicationID \
--P $PublisherID \
--p $PreparerID \
--abstract "README" \
--sysid $SystemID \
--V $volid \
--volset "Update" \
--volset-size 2 \
--volset-seqno 1 \
--hfs-volid $hfsVolid \
--map $curPwd/mapping \
--magic $curPwd/magic \
--m "*.orig" \
--hide '*.MacOS' -hide '*.DOS' \
--hide-joliet '*.Unix' -hide-joliet '*.MacOS' \
--hide-hfs '*.Unix' -hide-hfs '*.DOS' \
--hfs-bless $1/boot \
--hfs-unlock \
--pad \
--o $2 \
-$1
-
-#Bless boot folder so yaboot can boot
-hmount $2
-hattrib -b boot
-hcd boot
-hattrib -t tbxi -c UNIX ofboot.b
-hattrib -t boot -c UNIX yaboot
-hattrib -t boot -c UNIX vmlinux
-hattrib -t boot -c UNIX vmlinux-2.4
-hattrib -t conf -c UNIX yaboot.conf
-hcd
-hcd BootX
-hrename Mandrake_Linux_Install.sit 'Mandrake Linux Install.sit'
-hattrib -t APPL -c STi0 'Mandrake Linux Install.sit'
-humount
diff --git a/tools/ppc/mkhybrid-1.12b5.4 b/tools/ppc/mkhybrid-1.12b5.4
deleted file mode 100755
index 0e0901314..000000000
--- a/tools/ppc/mkhybrid-1.12b5.4
+++ /dev/null
Binary files differ
diff --git a/tools/ppc/mkhybrid-1.12b5.4-x86 b/tools/ppc/mkhybrid-1.12b5.4-x86
deleted file mode 100755
index fd5b21709..000000000
--- a/tools/ppc/mkhybrid-1.12b5.4-x86
+++ /dev/null
Binary files differ
diff --git a/tools/ppc/yaboot b/tools/ppc/yaboot
deleted file mode 100644
index 72b19b911..000000000
--- a/tools/ppc/yaboot
+++ /dev/null
Binary files differ
diff --git a/tools/shift_all.pl b/tools/shift_all.pl
deleted file mode 100644
index 88abfa0e1..000000000
--- a/tools/shift_all.pl
+++ /dev/null
@@ -1,113 +0,0 @@
-use MDK::Common;
-
-my %shifts = (
-'af' => 1,
-'am' => 1,
-'ar' => 0,
-'az' => 1,
-'be' => 2,
-'bg' => 2,
-'bn' => 1,
-'br' => 2,
-'bs' => 2,
-'ca' => 2,
-'cs' => 2,
-'cy' => 2,
-'da' => 2,
-'de' => 2,
-'el' => 2,
-'en_GB' => 2,
-'en_US' => 2,
-'eo' => 2,
-'es' => 2,
-'et' => 2,
-'eu' => 2,
-'fa' => 0,
-'fi' => 1,
-'fo' => 2,
-'fr' => 2,
-'ga' => 2,
-'gd' => 2,
-'gl' => 2,
-'gv' => 2,
-'he' => 0,
-'hi' => 1,
-'hr' => 2,
-'hu' => 2,
-'hy' => 1,
-'ia' => 2,
-'id' => 1,
-'is' => 1,
-'it' => 1,
-'iu' => 1,
-'ja' => 3,
-'ka' => 1,
-'kn' => 1,
-'ko' => 1,
-'kw' => 0,
-'lo' => 0,
-'lt' => 0,
-'lv' => 0,
-'mi' => 0,
-'mk' => 0,
-'mn' => 0,
-'mr' => 0,
-'ms' => 0,
-'mt' => 0,
-'nb' => 0,
-'nl' => 0,
-'nn' => 0,
-'no' => 0,
-'oc' => 0,
-'pl' => 0,
-'pt_BR' => 0,
-'pt' => 0,
-'ro' => 0,
-'ru' => 0,
-'sk' => 0,
-'sl' => 0,
-'sp' => 0,
-'sq' => 0,
-'sr' => 0,
-'sv' => 0,
-'ta' => 1,
-'te' => 1,
-'tg' => 0,
-'th' => 0,
-'tr' => 0,
-'tt' => 1,
-'uk' => 0,
-'ur' => 1,
-'uz' => 0,
-'vi' => 0,
-'wa' => 0,
-'yi' => 0,
-'zh_CN' => 0,
-'zh_TW' => 0,
-);
-
-foreach (glob("lang*.png")) {
- /lang-(.*)\.png/;
- exists $shifts{$1} or die "doesn't exist for $_";
- $shifts{$1} or next;
- print "./a.out $_ l.png $shifts{$1}\n";
- system("./a.out $_ l.png $shifts{$1}");
- renamef('l.png', $_);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tools/shift_img.c b/tools/shift_img.c
deleted file mode 100644
index bd347b79f..000000000
--- a/tools/shift_img.c
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * Guillaume Cottenceau (gc at mandrakesoft.com)
- *
- * Copyright 2002 Mandrakesoft
- *
- * This software may be freely redistributed under the terms of the GNU
- * public license.
- *
- */
-
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdarg.h>
-
-#define PNG_DEBUG 3
-#include <png.h>
-
-void abort_(const char * s, ...)
-{
- va_list args;
- va_start(args, s);
- vfprintf(stderr, s, args);
- fprintf(stderr, "\n");
- va_end(args);
- abort();
-}
-
-int x, y;
-
-int width, height;
-png_byte color_type;
-png_byte bit_depth;
-
-png_structp png_ptr;
-png_infop info_ptr;
-int number_of_passes;
-png_bytep * row_pointers;
-
-void read_png_file(char* file_name)
-{
- char header[8]; // 8 is the maximum size that can be checked
-
- /* open file and test for it being a png */
- FILE *fp = fopen(file_name, "rb");
- if (!fp)
- abort_("[read_png_file] File %s could not be opened for reading", file_name);
- fread(header, 1, 8, fp);
- if (png_sig_cmp(header, 0, 8))
- abort_("[read_png_file] File %s is not recognized as a PNG file", file_name);
-
-
- /* initialize stuff */
- png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
-
- if (!png_ptr)
- abort_("[read_png_file] png_create_read_struct failed");
-
- info_ptr = png_create_info_struct(png_ptr);
- if (!info_ptr)
- abort_("[read_png_file] png_create_info_struct failed");
-
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[read_png_file] Error during init_io");
-
- png_init_io(png_ptr, fp);
- png_set_sig_bytes(png_ptr, 8);
-
- png_read_info(png_ptr, info_ptr);
-
- width = info_ptr->width;
- height = info_ptr->height;
- color_type = info_ptr->color_type;
- bit_depth = info_ptr->bit_depth;
-
- number_of_passes = png_set_interlace_handling(png_ptr);
- png_read_update_info(png_ptr, info_ptr);
-
-
- /* read file */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[read_png_file] Error during read_image");
-
- row_pointers = (png_bytep*) malloc(sizeof(png_bytep) * height);
- for (y=0; y<height; y++)
- row_pointers[y] = (png_byte*) malloc(info_ptr->rowbytes);
-
- png_read_image(png_ptr, row_pointers);
-}
-
-
-void write_png_file(char* file_name)
-{
- /* create file */
- FILE *fp = fopen(file_name, "wb");
- if (!fp)
- abort_("[write_png_file] File %s could not be opened for writing", file_name);
-
-
- /* initialize stuff */
- png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
-
- if (!png_ptr)
- abort_("[write_png_file] png_create_write_struct failed");
-
- info_ptr = png_create_info_struct(png_ptr);
- if (!info_ptr)
- abort_("[write_png_file] png_create_info_struct failed");
-
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during init_io");
-
- png_init_io(png_ptr, fp);
-
-
- /* write header */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during writing header");
-
- png_set_IHDR(png_ptr, info_ptr, width, height,
- bit_depth, color_type, PNG_INTERLACE_NONE,
- PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE);
-
- png_write_info(png_ptr, info_ptr);
-
-
- /* write bytes */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during writing bytes");
-
- png_write_image(png_ptr, row_pointers);
-
-
- /* end write */
- if (setjmp(png_jmpbuf(png_ptr)))
- abort_("[write_png_file] Error during end of write");
-
- png_write_end(png_ptr, NULL);
-
-}
-
-void process_file(char* shift)
-{
- int shift_ = atoi(shift);
-
- if (info_ptr->color_type != PNG_COLOR_TYPE_RGBA)
- abort_("[process_file] color_type of input file must be PNG_COLOR_TYPE_RGBA (is %d)", info_ptr->color_type);
-
- width -= shift_;
- for (y=0; y<height; y++) {
- row_pointers[y] += 4 * shift_;
- }
-
-}
-
-
-int main(int argc, char **argv)
-{
- if (argc != 4)
- abort_("Usage: program_name <file_in> <file_out> <shift>");
-
- read_png_file(argv[1]);
- process_file(argv[3]);
- write_png_file(argv[2]);
-}
diff --git a/tools/simplify-drakx-modules b/tools/simplify-drakx-modules
deleted file mode 100755
index ec8df1e76..000000000
--- a/tools/simplify-drakx-modules
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/perl -pi
-
-s/^\s*use\s+(diagnostics|strict|vars|warnings).*//g;
-
-/^__END__/ and $_ = '', close ARGV;
diff --git a/tools/sparc/e2fsck.shared b/tools/sparc/e2fsck.shared
deleted file mode 100755
index b423986e5..000000000
--- a/tools/sparc/e2fsck.shared
+++ /dev/null
Binary files differ
diff --git a/tools/specific_arch b/tools/specific_arch
deleted file mode 100755
index a86b7bc43..000000000
--- a/tools/specific_arch
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-
-print join(' ', map {
- my $arch = arch();
- $arch = $compat_arch{$arch} while $arch && !-e "$_.$arch";
- -e "$_.$arch" ? "$_.$arch" : ();
- } @ARGV), "\n";
diff --git a/tools/syncrpms b/tools/syncrpms
deleted file mode 100755
index a2668bb93..000000000
--- a/tools/syncrpms
+++ /dev/null
@@ -1,267 +0,0 @@
-#!/usr/bin/perl
-
-#- Synchronize mulitple RPMS/SRPMS directories.
-#- Copyright (C) 1999 Mandrakesoft (fpons@mandrakesoft.com)
-#-
-#- This program is free software; you can redistribute it and/or modify
-#- it under the terms of the GNU General Public License as published by
-#- the Free Software Foundation; either version 2, or (at your option)
-#- any later version.
-#-
-#- This program 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 General Public License for more details.
-#-
-#- You should have received a copy of the GNU General Public License
-#- along with this program; if not, write to the Free Software
-#- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-
-use strict qw(subs vars refs);
-
-#- compare a version string.
-use URPM;
-
-#- keep some packages...
-my $keep = 'kernel-BOOT';
-
-#- get basename for a file.
-sub basename { $_[0] =~ /([^\/]*)$/ ? $1 : $_[0]; }
-
-#- system functions.
-sub cp {
- my $pid;
- if ($pid = fork()) {
- waitpid($pid, 0);
- } else {
- exec '/bin/cp', @_;
- }
-}
-sub mv {
- my $pid;
- if ($pid = fork()) {
- waitpid($pid, 0);
- } else {
- exec '/bin/mv', @_;
- }
-}
-sub rm {
- my $pid;
- if ($pid = fork()) {
- waitpid($pid, 0);
- } else {
- exec '/bin/rm', '-f', @_;
- }
-}
-
-#- get a hash on name of srpms/rpms in a directory.
-sub get_rpms {
- my ($dir, $rpms, $flag, $modifiable) = @_;
-
- opendir D, $dir or die "cannot open directory $dir\n";
- map {
- if (/([^\/]*?)-([^-]*)-([^-]*)\.([^-\.]*)\.rpm$/) {
- my $key = "$1 $4"; #- get name including architecture.
- if ($rpms->{$key}) {
- if (URPM::ranges_overlap("== $2-$3", "> $rpms->{$key}{version}-$rpms->{$key}{release}")) {
- if ($modifiable) {
- if ($flag->{sorted}) {
- print "you said rpms directory is sorted, so I keep obsoleted $rpms->{$key}{file} by $_ in $rpms->{$key}{dir}\n" if $flag->{verbose};
- } else {
- if (-d $flag->{conflict}) {
- print "moving obsoleted $rpms->{$key}{file} by $_ in $rpms->{$key}{dir}\n" if $flag->{verbose};
- mv("$rpms->{$key}{dir}/$rpms->{$key}{file}", $flag->{conflict});
- } elsif ($flag->{clean}) {
- print "removing obsoleted $rpms->{$key}{file} by $_ in $rpms->{$key}{dir}\n" if $flag->{verbose};
- rm("$rpms->{$key}{dir}/$rpms->{$key}{file}");
- }
- }
- }
- $rpms->{$key} = { key => $key,
- name => $1,
- version => $2,
- release => $3,
- arch => $4,
- dir => $dir,
- file => $_,
- };
- } else {
- if ($modifiable) {
- if (-d $flag->{conflict}) {
- print "copying older or equal $_ by $rpms->{$key}{file} in $flag->{conflict}\n" if $flag->{verbose};
- cp("$dir/$_", $flag->{conflict});
- chmod 0644, "$flag->{conflict}/$_";
- } elsif ($flag->{clean}) {
- print "removing older or equal $_ by $rpms->{$key}{file} in $dir\n" if $flag->{verbose};
- rm("$dir/$_");
- }
- }
- }
- } else {
- $rpms->{$key} = { key => $key,
- name => $1,
- version => $2,
- release => $3,
- arch => $4,
- dir => $dir,
- file => $_,
- };
- }
- } else {
- print STDERR "unable to parse filename $_\n";
- }
- } grep { /\.rpm$/ } readdir D;
- closedir D;
-}
-
-#- sync packages list according to hashes of rpms.
-sub sync_medium {
- my ($rpmsdirs, $list, $rpms, $flag) = @_;
- my %pkg2dir;
-
- #- build a hash according to rpmsdirs and list for package name.
- my $i = 0;
- foreach (@$list) {
- local *F;
- open F, $_ or die "unable to open packages list file \"$_\"\n";
- foreach (<F>) {
- chomp;
- print STDERR "package \"$_\" is listed in mulitple list files!\n" if $pkg2dir{$_};
- $pkg2dir{$_} = $rpmsdirs->[$i];
- print "package \"$_\" listed in list files does not exists in rpms directory\n" if $flag->{verbose} && !$rpms->{$_};
- }
- close F;
-
- ++$i;
- }
-
- #- check for right directory, and move if necessary.
- foreach (values %$rpms) {
- unless ($pkg2dir{$_->{key}}) {
- print "file $_->{file} in $_->{dir} define package \"$_->{name}\" not listed in list files\n" if $flag->{verbose};
- } elsif ($_->{dir} ne $pkg2dir{$_->{key}}) {
- print "moving file $_->{file} in $_->{dir} to $pkg2dir{$_->{key}}\n" if $flag->{verbose};
- mv("$_->{dir}/$_->{file}", $pkg2dir{$_->{key}});
- $_->{dir} = $pkg2dir{$_->{key}};
- }
- }
-}
-
-#- sync two hashes of rpms, update rpms and printer newer version that are not taken into account.
-sub sync_rpms {
- my ($source, $target, $flag) = @_;
-
- #- search in target part.
- foreach (keys %$target) {
- /$keep/ and next;
- unless ($source->{$_}) {
- if ($flag->{verbose}) {
- print "removing $target->{$_}{file}" . ($flag->{remove} ? " from $target->{$_}{dir}\n" : " is neccessary!\n");
- my $k = $_;
- }
- if ($flag->{remove}) {
- rm("$target->{$_}{dir}/$target->{$_}{file}");
- }
- }
- }
-
- #- search in both part.
- foreach (keys %$source) {
- /$keep/ and next;
- if ($target->{$_}) {
- if (URPM::ranges_overlap("== $source->{$_}{version}-$source->{$_}{release}",
- ">= $target->{$_}{version}-$target->{$_}{release}")) {
- if ("$source->{$_}{version}-$source->{$_}{release}" eq "$target->{$_}{version}-$target->{$_}{release}") {
- -s "$source->{$_}{dir}/$source->{$_}{file}" == -s "$target->{$_}{dir}/$target->{$_}{file}" and next;
- }
- if ($flag->{verbose}) {
- print "updating $target->{$_}{dir}/$target->{$_}{file} with newer version $source->{$_}{file}\n";
- }
- if ($flag->{update}) {
- cp("$source->{$_}{dir}/$source->{$_}{file}", $target->{$_}{dir});
- chmod 0644, "$target->{$_}{dir}/$source->{$_}{file}";
- unless (-e "$target->{$_}{dir}/$source->{$_}{file}") {
- die "unable to copy $source->{$_}{file} from $source->{$_}{dir} into $target->{$_}{dir}\n";
- }
- rm("$target->{$_}{dir}/$target->{$_}{file}") unless $source->{$_}{file} eq $target->{$_}{file}; #- copy on eq
- }
- } elsif ($source->{$_}{version} ne $target->{$_}{version} || $source->{$_}{release} ne $target->{$_}{release}) {
- if ($flag->{verbose}) {
- print STDERR "keeping more up-to-date version $target->{$_}{dir}/$target->{$_}{file} against $source->{$_}{dir}/$source->{$_}{file}, check your repository !\n";
- }
- } #- say nothing if source is equal to target.
- }
- }
-
- #- search in source part.
- foreach (keys %$source) {
- /$keep/ and next;
- unless ($target->{$_}) {
- if ($flag->{verbose}) {
- print "adding $source->{$_}{file}" . (-d $flag->{add} ? " to $flag->{add}\n" : " is neccessary!\n");
- }
- if (-d $flag->{add}) {
- cp("$source->{$_}{dir}/$source->{$_}{file}", $flag->{add});
- chmod 0644, "$flag->{add}/$source->{$_}{file}";
- }
- }
- }
-}
-
-#- main program.
-sub main {
- my @from_rpms;
- my @to_rpms;
- my @list;
- my $target;
- my %flag;
- my %source;
- my %target;
-
- foreach (@_) {
- if (/^--(\w*)$/) {
- if ($1 eq 'verbose' || $1 eq 'update' || $1 eq 'remove' || $1 eq 'clean' || $1 eq 'sorted') {
- $flag{$1} = 1;
- } elsif ($1 eq 'add' || $1 eq 'conflict') {
- $flag{$1} = undef;
- } elsif ($1 eq 'from') {
- $target = \@from_rpms;
- } elsif ($1 eq 'to') {
- $target = \@to_rpms;
- } elsif ($1 eq 'list') {
- $target = \@list;
- } else {
- die "unknown option: $1\n";
- }
- } else {
- if (exists $flag{add} && ! $flag{add}) {
- $flag{add} = $_;
- die "cannot add to non-directory: $_\n" unless -d $flag{add};
- } elsif (exists $flag{conflict} && ! $flag{conflict}) {
- $flag{conflict} = $_;
- die "cannot add to non-directory: $_\n" unless -d $flag{conflict};
- } else {
- die "unknown parameter: $_\n" unless $target;
- push @$target, $_;
- }
- }
- }
-
- die "usage: syncrpms [--update] [--remove] [--clean] [--sorted] [--add <dir>] [--conflict <dir>] --from <dir_sources> --to <dir_targets> [--list <files>]\n"
- unless scalar(@from_rpms) > 0 || scalar(@to_rpms) > 0;
-
- #- parse directory structures.
- get_rpms($_, \%source, \%flag, 0) foreach @from_rpms;
- print STDERR "reading " . scalar(keys %source) . " packages as source rpms from\n";
- print STDERR " $_\n" foreach @from_rpms;
-
- get_rpms($_, \%target, \%flag, 1) foreach @to_rpms;
- print STDERR "reading " . scalar(keys %target) . " packages as target rpms from\n";
- print STDERR " $_\n" foreach @to_rpms;
-
- sync_medium(\@to_rpms, \@list, \%target, \%flag) if scalar(@list) > 0 && scalar(@to_rpms) > 0;
- sync_rpms(\%source, \%target, \%flag) if scalar(@from_rpms) > 0 && scalar(@to_rpms) > 0;
-}
-
-main(@ARGV);
diff --git a/tools/update_images b/tools/update_images
deleted file mode 100755
index 1cc5ea533..000000000
--- a/tools/update_images
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/perl
-
-@ARGV == 3 or die "Usage: $0 filename.img imagetype path_to_mar_bin\n ex. $0 cdrom-changedisk.img cdrom\n\nPut the old images (*.img), new vmlinuz, new modules.dep and new *.mar files in a fresh directory, and update each image file one by one.";
-
-$file = $ARGV[0];
-$img = $ARGV[1];
-$marbin = $ARGV[2];
-
-sub __ { print @_, "\n"; system(@_); }
-sub _ { __ @_; $? and die; }
-
-$topdir = '/tmp/updimg';
-
-print "Updating boot image file $file of type $img\n";
-
-_ "rm -rf $topdir";
-_ "mkdir $topdir";
-
-_ "mkdir $topdir/img";
-_ "mount -o loop $file $topdir/img";
-
-$rdz = glob("$topdir/img/*.rdz");
-$rdz or die "Could not glob rdz file in $topdir/img/*.rdz\n";
-
-_ "zcat $rdz > /tmp/meuh";
-_ "mkdir $topdir/initrd";
-_ "mount -o loop /tmp/meuh $topdir/initrd";
-
-print "\n\tOld sizes:\n";
-print `ls -l $topdir/img/vmlinuz`;
-print `ls -l $topdir/initrd/modules/modules.mar`;
-system("df $topdir/img");
-print "\n";
-
-_ "cp -f vmlinuz $topdir/img/vmlinuz";
-system("$marbin -l $topdir/initrd/modules/modules.mar | sort > $topdir/oldmar");
-system("$marbin -l ${img}_modules.mar | sort > $topdir/newmar");
-_ "cp -f ${img}_modules.mar $topdir/initrd/modules/modules.mar";
-_ "cp -f modules.dep $topdir/initrd/modules/modules.dep";
-
-_ "umount $topdir/initrd";
-_ "gzip -c /tmp/meuh > $rdz";
-
-print "\n\tNew sizes:\n";
-print `ls -l vmlinuz`;
-print `ls -l ${img}_modules.mar`;
-system("df $topdir/img");
-print "\nDiff from old to new marfiles:\n";
-print `diff -u $topdir/oldmar $topdir/newmar`;
-print "\n";
-
-_ "umount $topdir/img";
diff --git a/tools/x86_64/busybox b/tools/x86_64/busybox
deleted file mode 100755
index 07df11980..000000000
--- a/tools/x86_64/busybox
+++ /dev/null
Binary files differ
diff --git a/tools/xhost+.c b/tools/xhost+.c
deleted file mode 100644
index 58781274e..000000000
--- a/tools/xhost+.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdlib.h>
-#include <X11/Xlib.h>
-
-
-int main(int argc, char **argv) {
- Display *d = XOpenDisplay(getenv("DISPLAY") ? getenv("DISPLAY") : ":0");
- if (d == NULL) exit(1);
- XDisableAccessControl(d);
- XCloseDisplay(d);
- exit(0);
-}