1 |
slords |
1.1 |
diff -ruN smeserver-yum-2.2.0.repodir/createlinks smeserver-yum-2.2.0/createlinks |
2 |
|
|
--- smeserver-yum-2.2.0.repodir/createlinks 2008-10-07 08:25:45.000000000 -0600 |
3 |
|
|
+++ smeserver-yum-2.2.0/createlinks 2008-10-13 08:32:08.000000000 -0600 |
4 |
|
|
@@ -4,7 +4,7 @@ |
5 |
|
|
use File::Basename; |
6 |
|
|
use File::Path; |
7 |
|
|
|
8 |
|
|
-foreach my $file (qw(/etc/yum.conf)) |
9 |
|
|
+foreach my $file (qw(/etc/yum.conf /etc/yum.smerepos.d/sme-base.repo)) |
10 |
|
|
{ |
11 |
|
|
templates2events($file, qw(yum-modify bootstrap-console-save)); |
12 |
|
|
} |
13 |
|
|
diff -ruN smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs |
14 |
|
|
--- smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs 2005-05-27 04:34:42.000000000 -0600 |
15 |
|
|
+++ smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs 2008-10-13 08:33:22.000000000 -0600 |
16 |
|
|
@@ -1 +1 @@ |
17 |
|
|
-installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported |
18 |
|
|
+installonlypkgs=kernel kernel-PAE kernel-xen |
19 |
|
|
diff -ruN smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir |
20 |
|
|
--- smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir 2008-10-07 08:25:44.000000000 -0600 |
21 |
|
|
+++ smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir 2008-10-13 08:32:08.000000000 -0600 |
22 |
|
|
@@ -1 +1 @@ |
23 |
|
|
-reposdir= |
24 |
|
|
+reposdir=/etc/yum.smerepos.d |
25 |
|
|
diff -ruN smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.conf/20repositories smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.conf/20repositories |
26 |
|
|
--- smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.conf/20repositories 2008-10-07 08:25:45.000000000 -0600 |
27 |
|
|
+++ smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.conf/20repositories 1969-12-31 17:00:00.000000000 -0700 |
28 |
|
|
@@ -1,53 +0,0 @@ |
29 |
|
|
-{ |
30 |
|
|
- my $ydb = esmith::ConfigDB->open_ro('yum_repositories') |
31 |
|
|
- or die "Couldn't open yum_repositories"; |
32 |
|
|
- |
33 |
|
|
- $OUT = "\n"; |
34 |
|
|
- |
35 |
|
|
- for my $repos ( $ydb->get_all_by_prop('type' => 'repository') ) |
36 |
|
|
- { |
37 |
|
|
- my %props = ($DB->get('yum')->props(), $repos->props()); |
38 |
|
|
- |
39 |
|
|
- $OUT .= "[" . $repos->key . "]\n"; |
40 |
|
|
- |
41 |
|
|
- $OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0) |
42 |
|
|
- . "\n"; |
43 |
|
|
- |
44 |
|
|
- if ( exists $props{MirrorList} ) |
45 |
|
|
- { |
46 |
|
|
- $OUT .= 'mirrorlist=' . $props{MirrorList} . "\n"; |
47 |
|
|
- } |
48 |
|
|
- else |
49 |
|
|
- { |
50 |
|
|
- $OUT .= 'baseurl=' . $props{BaseURL} . "\n"; |
51 |
|
|
- } |
52 |
|
|
- |
53 |
|
|
- for my $prop (qw(Name)) |
54 |
|
|
- { |
55 |
|
|
- $OUT .= lc($prop) . '=' . $props{$prop} . "\n"; |
56 |
|
|
- } |
57 |
|
|
- |
58 |
|
|
- for my $prop (qw(GPGCheck EnableGroups)) |
59 |
|
|
- { |
60 |
|
|
- $OUT .= lc($prop) . '=' . ($props{$prop} eq "yes" ? 1 : 0) . "\n"; |
61 |
|
|
- } |
62 |
|
|
- |
63 |
|
|
- if (exists $props{Exclude}) |
64 |
|
|
- { |
65 |
|
|
- $OUT .= "exclude=" . join(' ', split(/,/, $props{Exclude})) . "\n"; |
66 |
|
|
- } |
67 |
|
|
- |
68 |
|
|
- if (exists $props{IncludePkgs}) |
69 |
|
|
- { |
70 |
|
|
- $OUT .= "includepkgs=" . join(' ', split(/,/, $props{IncludePkgs})) . "\n"; |
71 |
|
|
- } |
72 |
|
|
- |
73 |
|
|
- if (exists $props{GPGKey}) |
74 |
|
|
- { |
75 |
|
|
- $OUT .= "gpgkey" . '=' . $props{GPGKey} . "\n"; |
76 |
|
|
- } |
77 |
|
|
- |
78 |
|
|
- |
79 |
|
|
- $OUT .= "\n"; |
80 |
|
|
- } |
81 |
|
|
-} |
82 |
|
|
diff -ruN smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories |
83 |
|
|
--- smeserver-yum-2.2.0.repodir/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories 1969-12-31 17:00:00.000000000 -0700 |
84 |
|
|
+++ smeserver-yum-2.2.0/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories 2008-10-13 08:32:08.000000000 -0600 |
85 |
|
|
@@ -0,0 +1,53 @@ |
86 |
|
|
+{ |
87 |
|
|
+ my $ydb = esmith::ConfigDB->open_ro('yum_repositories') |
88 |
|
|
+ or die "Couldn't open yum_repositories"; |
89 |
|
|
+ |
90 |
|
|
+ $OUT = "\n"; |
91 |
|
|
+ |
92 |
|
|
+ for my $repos ( $ydb->get_all_by_prop('type' => 'repository') ) |
93 |
|
|
+ { |
94 |
|
|
+ my %props = ($DB->get('yum')->props(), $repos->props()); |
95 |
|
|
+ |
96 |
|
|
+ $OUT .= "[" . $repos->key . "]\n"; |
97 |
|
|
+ |
98 |
|
|
+ $OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0) |
99 |
|
|
+ . "\n"; |
100 |
|
|
+ |
101 |
|
|
+ if ( exists $props{MirrorList} ) |
102 |
|
|
+ { |
103 |
|
|
+ $OUT .= 'mirrorlist=' . $props{MirrorList} . "\n"; |
104 |
|
|
+ } |
105 |
|
|
+ else |
106 |
|
|
+ { |
107 |
|
|
+ $OUT .= 'baseurl=' . $props{BaseURL} . "\n"; |
108 |
|
|
+ } |
109 |
|
|
+ |
110 |
|
|
+ for my $prop (qw(Name)) |
111 |
|
|
+ { |
112 |
|
|
+ $OUT .= lc($prop) . '=' . $props{$prop} . "\n"; |
113 |
|
|
+ } |
114 |
|
|
+ |
115 |
|
|
+ for my $prop (qw(GPGCheck EnableGroups)) |
116 |
|
|
+ { |
117 |
|
|
+ $OUT .= lc($prop) . '=' . ($props{$prop} eq "yes" ? 1 : 0) . "\n"; |
118 |
|
|
+ } |
119 |
|
|
+ |
120 |
|
|
+ if (exists $props{Exclude}) |
121 |
|
|
+ { |
122 |
|
|
+ $OUT .= "exclude=" . join(' ', split(/,/, $props{Exclude})) . "\n"; |
123 |
|
|
+ } |
124 |
|
|
+ |
125 |
|
|
+ if (exists $props{IncludePkgs}) |
126 |
|
|
+ { |
127 |
|
|
+ $OUT .= "includepkgs=" . join(' ', split(/,/, $props{IncludePkgs})) . "\n"; |
128 |
|
|
+ } |
129 |
|
|
+ |
130 |
|
|
+ if (exists $props{GPGKey}) |
131 |
|
|
+ { |
132 |
|
|
+ $OUT .= "gpgkey" . '=' . $props{GPGKey} . "\n"; |
133 |
|
|
+ } |
134 |
|
|
+ |
135 |
|
|
+ |
136 |
|
|
+ $OUT .= "\n"; |
137 |
|
|
+ } |
138 |
|
|
+} |