24 |
|
|
25 |
my $rpm_flags = RPM2->vsf_nodsaheader | RPM2->vsf_norsaheader | RPM2->vsf_nodsa | RPM2->vsf_norsa; |
my $rpm_flags = RPM2->vsf_nodsaheader | RPM2->vsf_norsaheader | RPM2->vsf_nodsa | RPM2->vsf_norsa; |
26 |
|
|
27 |
my $osdir = 'SME'; |
my $osdir = 'Packages'; |
28 |
my $disttag = 'sme'; |
my $disttag = 'sme'; |
29 |
my $repotag = 'sme'; |
my $repotag = 'sme'; |
30 |
|
|
39 |
keyname => 'SME Server 7 signing key <bugteam@contribs.org>', |
keyname => 'SME Server 7 signing key <bugteam@contribs.org>', |
40 |
checksum => 'sha', |
checksum => 'sha', |
41 |
}, |
}, |
42 |
'9' => { active => 1, |
'9' => { active => 0, |
43 |
centos => 6, |
centos => 6, |
44 |
archs => [ 'i386', 'x86_64' ], |
archs => [ 'i386', 'x86_64' ], |
45 |
repo => '/build/smeserver/repo/9/', |
repo => '/build/smeserver/repo/9/', |
53 |
'10' => { active => 1, |
'10' => { active => 1, |
54 |
centos => 7, |
centos => 7, |
55 |
archs => [ 'x86_64' ], |
archs => [ 'x86_64' ], |
56 |
repo => '/build/smeserver/repo/testing/10/', |
repo => '/build/smeserver/repo/10/', |
57 |
builds => ['/build/builds/smeserver-10-core/'], |
builds => ['/build/builds/smeserver-10-core/'], |
58 |
community => '/build/builds/smeserver-10-contribs/', |
community => '/build/builds/smeserver-10-contribs/', |
59 |
stage => '/build/smeserver/stage/10/', |
stage => '/build/smeserver/stage/10/', |
95 |
# list here the path on our local mirror to each upstream and our mirrors |
# list here the path on our local mirror to each upstream and our mirrors |
96 |
# ~A will be expanded to architecture |
# ~A will be expanded to architecture |
97 |
# ~C will be expanded to Centos main version number, i.e. 7 for SME 10. |
# ~C will be expanded to Centos main version number, i.e. 7 for SME 10. |
98 |
|
# ~s will be expanded to SME version |
99 |
|
# ~S expanded to repo root |
100 |
my $baserepo = { "~S${repotag}os/~A/" => "${repotag}os", |
my $baserepo = { "~S${repotag}os/~A/" => "${repotag}os", |
101 |
"~S${repotag}updates/~A/" => "${repotag}updates", |
"~S${repotag}updates/~A/" => "${repotag}updates", |
102 |
"~S${repotag}updates-testing/~A/" => "${repotag}updates-testing", |
"~S${repotag}updates-testing/~A/" => "${repotag}updates-testing", |
128 |
'/mirrors/atrpms/src/el~C-~A/atrpms/stable/' => 'atrpms', |
'/mirrors/atrpms/src/el~C-~A/atrpms/stable/' => 'atrpms', |
129 |
'/mirrors/atrpms/src/el~C-~A/atrpms/testing/' => 'atrpms', |
'/mirrors/atrpms/src/el~C-~A/atrpms/testing/' => 'atrpms', |
130 |
'/mirrors/openfusion/centos~C-~A/' => 'openfusion', |
'/mirrors/openfusion/centos~C-~A/' => 'openfusion', |
131 |
'/mirrors/openfusion/srpms-el~C/' => 'openfusion', |
'/mirrors/openfusion/srpms/' => 'openfusion', |
132 |
}; |
}; |
133 |
|
|
134 |
# add here packages to exclude |
# add here packages to exclude |
145 |
'rpmforge' => { map { $_ => 1 } ( 'perl-CGI', 'perl-Compress-Raw-Zlib', 'perl-ExtUtils-ParseXS', 'perl-Pod-Escapes', 'perl-Pod-Simple', 'perl-Time-HiRes', 'perl-version', 'spamassassin', 'portreserve', 'perl-libwww-perl' , 'lzo', 'perl-BSD-Resource', 'perl-Convert-ASN1', 'perl-DBD-SQLite', 'perl-Devel-StackTrace', 'perl-Digest-SHA1', 'perl-JSON', 'perl-MIME-tools', 'perl-MailTools', 'perl-PPI', 'perl-URI', 'perl-XML-NamespaceSupport', 'perl-XML-Parser', 'perl-XML-SAX-Writer', 'perl-YAML-Syck', 'proftpd', 'syslinux') }, |
'rpmforge' => { map { $_ => 1 } ( 'perl-CGI', 'perl-Compress-Raw-Zlib', 'perl-ExtUtils-ParseXS', 'perl-Pod-Escapes', 'perl-Pod-Simple', 'perl-Time-HiRes', 'perl-version', 'spamassassin', 'portreserve', 'perl-libwww-perl' , 'lzo', 'perl-BSD-Resource', 'perl-Convert-ASN1', 'perl-DBD-SQLite', 'perl-Devel-StackTrace', 'perl-Digest-SHA1', 'perl-JSON', 'perl-MIME-tools', 'perl-MailTools', 'perl-PPI', 'perl-URI', 'perl-XML-NamespaceSupport', 'perl-XML-Parser', 'perl-XML-SAX-Writer', 'perl-YAML-Syck', 'proftpd', 'syslinux') }, |
146 |
}, |
}, |
147 |
'10' => { |
'10' => { |
148 |
'centos' => { map { $_ => 1 } ( 'samba' ) }, |
#'epel' => { map { $_ => 1 } ( 'clamav') }, |
|
'epel' => { map { $_ => 1 } ( 'clamav') }, |
|
149 |
'epeltesting' => { map { $_ => 1 } ( 'clamav', 'tidy') }, |
'epeltesting' => { map { $_ => 1 } ( 'clamav', 'tidy') }, |
150 |
|
'openfusion' => { map { $_ => 1 } ( 'daemontools-encore' , 'daemontool', 'daemontools', 'perl-Apache-AuthTkt', 'perl-Data-Validate-Domain', 'perl-HTML-Tabulate', 'perl-IP-Country', 'perl-Object-Accessor','perl-Archive-Tar', 'perl-Authen-SASL', 'perl-Business-ISBN', 'perl-Business-ISBN-Data', 'perl-Config-Tiny', 'perl-Convert-ASN1', 'perl-DBD-MySQL', 'perl-DB_File', 'perl-Data-Dumper', 'perl-Date-Manip', 'perl-Email-Address', 'perl-Encode', 'perl-ExtUtils-MakeMaker', 'perl-ExtUtils-Manifest', 'perl-ExtUtils-ParseXS', 'perl-File-ShareDir', 'perl-Getopt-Long', 'perl-HTML-Parser', 'perl-HTTP-Message', 'perl-IO-HTML', 'perl-IO-Socket-INET6', 'perl-MailTools', 'perl-Mozilla-CA', 'perl-Net-SSLeay', 'perl-NetAddr-IP', 'perl-PathTools', 'perl-Readonly', 'perl-Storable', 'perl-Test-Simple', 'perl-Text-Unidecode', 'perl-XML-Parser', 'perl-libwww-perl', 'perl-parent' ) }, |
151 |
}, |
}, |
152 |
}; |
}; |
153 |
|
|
163 |
'remi' => { }, |
'remi' => { }, |
164 |
}, |
}, |
165 |
'10' => { |
'10' => { |
166 |
'openfusion' => { }, |
'remi' => { map { $_ => 1 } ( 'php-pear' )}, |
|
'remi' => { map { $_ => 1 } ( 'php-pear' )}, |
|
167 |
}, |
}, |
168 |
}; |
}; |
169 |
|
|
170 |
|
|
171 |
my ($stage) = sort { $repos->{$a}->{stage} <=> $repos->{$b}->{stage} } grep { $repos->{$_}->{stage} } keys %$repos; |
my ($stage) = sort { $repos->{$a}->{stage} <=> $repos->{$b}->{stage} } grep { $repos->{$_}->{stage} } keys %$repos; |
172 |
my ($devel1, $devel2) = sort { $repos->{$a}->{devel} <=> $repos->{$b}->{devel} } grep { $repos->{$_}->{devel} } keys %$repos; |
my ($devel1, $devel2) = sort { $repos->{$a}->{devel} <=> $repos->{$b}->{devel} } grep { $repos->{$_}->{devel} } keys %$repos; |
173 |
$devel2 ||= $devel1; |
$devel2 ||= $devel1; |
572 |
my $checksum = "--checksum $distrepo->{$ver}->{checksum}"; |
my $checksum = "--checksum $distrepo->{$ver}->{checksum}"; |
573 |
|
|
574 |
my $exclude = ""; |
my $exclude = ""; |
575 |
$exclude .= " --exclude ${osdir}/*" if -d "$dir/Packages"; |
$exclude .= " --exclude ${osdir}/*" if ( -d "$dir/Packages" && ${osdir} ne "Packages" ); |
576 |
$exclude .= " --exclude *smeserver-release*.rpm" if $dir =~ m{test/|-testing/}; |
$exclude .= " --exclude *smeserver-release*.rpm" if $dir =~ m{test/|-testing/}; |
577 |
|
|
578 |
my $groupfile = ""; |
my $groupfile = ""; |