summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Distro/SUSE_10_2_x86_64.pm
blob: e30e0897ad4631dc47de646ef5f866bb9f3bf9b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# Copyright (c) 2006, 2007 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
#
# If you have any feedback please consult http://openslx.org/feedback and
# send your suggestions, praise, or complaints to feedback@openslx.org
#
# General information about OpenSLX can be found at http://openslx.org/
# -----------------------------------------------------------------------------
# SUSE_10_2_x86_64.pm
#	- provides SUSE-10.2-x86_64-specific overrides of the OpenSLX OSSetup API.
# -----------------------------------------------------------------------------
package OpenSLX::OSSetup::Distro::SUSE_10_2_x86_64;

use strict;
use warnings;

use base qw(OpenSLX::OSSetup::Distro::Base);

use OpenSLX::Basics;

################################################################################
### implementation
################################################################################
sub new
{
	my $class = shift;
	my $self = {
		'base-name' => 'suse-10.2_x86_64',
	};
	return bless $self, $class;
}

sub initialize
{
	my $self = shift;
	my $engine = shift;

	$self->SUPER::initialize($engine);
	$self->{'packager-type'} = 'rpm';
	$self->{'meta-packager-type'} = $ENV{SLX_META_PACKAGER} || 'smart';
	$ENV{YAST_IS_RUNNING} = "instsys";
}

sub fixPrerequiredFiles
{
	my $self = shift;
	my $stage1cDir = shift;

	chown(0, 0, "$stage1cDir/etc/group", "$stage1cDir/etc/passwd",
		"$stage1cDir/etc/shadow");    
}

sub updateDistroConfig
{
	my $self = shift;

	# make sure there's a /dev/zero, as SuSEconfig requires it:
	if (!-e "/dev/zero" && slxsystem("mknod /dev/zero c 1 5")) {
		die _tr("unable to create node '%s' (%s)\n", "/dev/zero", $!);
	}
	# invoke SuSEconfig in order to allow it to update the configuration:
	if (slxsystem("SuSEconfig")) {
		die _tr("unable to run SuSEconfig (%s)", $!);
	}
	$self->SUPER::updateDistroConfig();
}

sub initDistroInfo
{
	my $self = shift;
	$self->{config}->{'repository'} = {
		'base' => {
			'urls' => "
				ftp://ftp.gwdg.de/pub/opensuse/distribution/10.2/repo/oss
				ftp://suse.inode.at/opensuse/distribution/10.2/repo/oss
				http://mirrors.uol.com.br/pub/suse/distribution/10.2/repo/oss
				ftp://klid.dk/opensuse/distribution/10.2/repo/oss
				ftp://ftp.estpak.ee/pub/suse/opensuse/distribution/10.2/repo/oss
				ftp://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/10.2/repo/oss
			",
			'name' => 'openSUSE 10.2',
			'repo-subdir' => 'suse',
		},
		'base_non-oss' => {
			'urls' => "
				ftp://ftp5.gwdg.de/pub/opensuse/distribution/10.2/repo/non-oss
				ftp://suse.inode.at/opensuse/distribution/10.2/repo/non-oss
				http://mirrors.uol.com.br/pub/suse/distribution/10.2/repo/non-oss
				ftp://klid.dk/opensuse/distribution/10.2/repo/non-oss
				ftp://ftp.estpak.ee/pub/suse/opensuse/distribution/10.2/repo/non-oss
				ftp://ftp.jaist.ac.jp/pub/Linux/openSUSE/distribution/10.2/repo/non-oss
			",
			'name' => 'openSUSE 10.2 non-OSS',
			'repo-subdir' => 'suse',
		},
		'base_update' => {
			'urls' => "
				ftp://ftp.gwdg.de/pub/suse/update/10.2
			",
			'name' => 'openSUSE 10.2 updates',
			'repo-subdir' => '',
		},
	};

	$self->{config}->{'package-subdir'} = 'suse';

	$self->{config}->{'prereq-packages'} = "
		x86_64/bzip2-1.0.3-36.x86_64.rpm
		x86_64/glibc-2.5-25.x86_64.rpm
		x86_64/popt-1.7-304.x86_64.rpm
		x86_64/rpm-4.4.2-76.x86_64.rpm
		x86_64/zlib-1.2.3-33.x86_64.rpm
	";

	$self->{config}->{'bootstrap-prereq-packages'} = "";

	$self->{config}->{'bootstrap-packages'} = "
		x86_64/aaa_base-10.2-38.x86_64.rpm
		x86_64/aaa_skel-2006.5.19-20.x86_64.rpm
		x86_64/audit-libs-1.2.6-20.x86_64.rpm
		x86_64/bash-3.1-55.x86_64.rpm
		x86_64/blocxx-1.0.0-36.x86_64.rpm
		x86_64/coreutils-6.4-10.x86_64.rpm
		x86_64/cpio-2.6-40.x86_64.rpm
		x86_64/cracklib-2.8.9-20.x86_64.rpm
		x86_64/cyrus-sasl-2.1.22-28.x86_64.rpm
		x86_64/db-4.4.20-16.x86_64.rpm
		x86_64/diffutils-2.8.7-38.x86_64.rpm
		x86_64/e2fsprogs-1.39-21.x86_64.rpm
		x86_64/file-4.17-23.x86_64.rpm
		x86_64/filesystem-10.2-22.x86_64.rpm
		x86_64/fillup-1.42-138.x86_64.rpm
		x86_64/findutils-4.2.28-24.x86_64.rpm
		x86_64/gawk-3.1.5-41.x86_64.rpm
		x86_64/gdbm-1.8.3-261.x86_64.rpm
		x86_64/glibc-32bit-2.5-25.x86_64.rpm
		x86_64/gpg-1.4.5-24.x86_64.rpm
		x86_64/grep-2.5.1a-40.x86_64.rpm
		x86_64/gzip-1.3.5-178.x86_64.rpm
		x86_64/info-4.8-43.x86_64.rpm
		x86_64/insserv-1.04.0-42.x86_64.rpm
		x86_64/irqbalance-0.09-80.x86_64.rpm
		x86_64/kernel-default-2.6.18.2-34.x86_64.rpm
		x86_64/libacl-2.2.34-33.x86_64.rpm
		x86_64/libattr-2.4.28-38.x86_64.rpm
		x86_64/libcom_err-1.39-21.x86_64.rpm
		x86_64/libgcc41-4.1.2_20061115-5.x86_64.rpm
		x86_64/libstdc++41-4.1.2_20061115-5.x86_64.rpm
		x86_64/libvolume_id-103-12.x86_64.rpm
		x86_64/libxcrypt-2.4-30.x86_64.rpm
		x86_64/libzio-0.2-20.x86_64.rpm
		x86_64/limal-1.2.9-5.x86_64.rpm
		x86_64/limal-bootloader-1.2.4-6.x86_64.rpm
		x86_64/limal-perl-1.2.9-5.x86_64.rpm
		x86_64/logrotate-3.7.4-21.x86_64.rpm
		x86_64/mdadm-2.5.3-17.x86_64.rpm
		x86_64/mingetty-0.9.6s-107.x86_64.rpm
		x86_64/mkinitrd-1.2-149.x86_64.rpm
		x86_64/mktemp-1.5-763.x86_64.rpm
		x86_64/module-init-tools-3.2.2-62.x86_64.rpm
		x86_64/ncurses-5.5-42.x86_64.rpm
		x86_64/net-tools-1.60-606.x86_64.rpm
		x86_64/openldap2-client-2.3.27-25.x86_64.rpm
		x86_64/openssl-0.9.8d-17.x86_64.rpm
		x86_64/openSUSE-release-10.2-35.x86_64.rpm
		x86_64/pam-0.99.6.3-24.x86_64.rpm
		x86_64/pciutils-2.2.4-13.x86_64.rpm
		x86_64/pcre-6.7-21.x86_64.rpm
		x86_64/perl-5.8.8-32.x86_64.rpm
		x86_64/perl-Bootloader-0.4.5-3.x86_64.rpm
		x86_64/perl-gettext-1.05-31.x86_64.rpm
		x86_64/permissions-2006.11.13-5.x86_64.rpm
		x86_64/readline-5.1-55.x86_64.rpm
		x86_64/reiserfs-3.6.19-37.x86_64.rpm
		x86_64/sed-4.1.5-21.x86_64.rpm
		x86_64/sysvinit-2.86-47.x86_64.rpm
		x86_64/udev-103-12.x86_64.rpm
		x86_64/util-linux-2.12r-61.x86_64.rpm
		noarch/pciutils-ids-2006.11.18-2.noarch.rpm
		noarch/suse-build-key-1.0-707.noarch.rpm
	";

	$self->{config}->{'metapackager-packages'} = {
		'smart' => "
			x86_64/python-2.5-19.x86_64.rpm
			x86_64/python-xml-2.5-19.x86_64.rpm
			x86_64/rpm-python-4.4.2-76.x86_64.rpm
			x86_64/smart-0.42-43.x86_64.rpm
		",
		'yum' => "
			x86_64/glib2-2.12.4-15.x86_64.rpm
			x86_64/gnome-filesystem-0.1-288.x86_64.rpm
			x86_64/libxml2-2.6.26-26.x86_64.rpm
			x86_64/libxml2-python-2.6.26-29.x86_64.rpm
			x86_64/python-2.5-19.x86_64.rpm
			x86_64/python-sqlite-1.1.8-11.x86_64.rpm
			x86_64/python-urlgrabber-3.1.0-18.x86_64.rpm
			x86_64/python-xml-2.5-19.x86_64.rpm
			x86_64/rpm-python-4.4.2-76.x86_64.rpm
			x86_64/sqlite-3.3.8-14.x86_64.rpm
			x86_64/yum-3.0.1-9.x86_64.rpm
			x86_64/yum-metadata-parser-1.0.2-23.x86_64.rpm
		",
	};

	$self->{config}->{'selection'} = {
		'default' => "
			glibc-locale
			nbd
			squashfs-kmp-default
		",
	}
}

1;