1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 16 |
%define release 19 |
4 |
Summary: easy configuration of extra yum repo |
Summary: easy configuration of extra yum repo |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
18 |
Provides configuration for external yum repository comaptible with Koozali SME Server. |
Provides configuration for external yum repository comaptible with Koozali SME Server. |
19 |
|
|
20 |
%changelog |
%changelog |
21 |
* Tue Jan 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16.sme |
* Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-19.sme |
22 |
|
- improve zmrepo migrate fragment to avoid action if not needed. |
23 |
|
- migrate fragment for openfusion |
24 |
|
|
25 |
|
* Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-18.sme |
26 |
|
- remove perl-version from pkg lists |
27 |
|
|
28 |
|
* Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-17.sme |
29 |
|
- revised Include and Exclude to prevident accidental update |
30 |
|
- updated incorrect changelog dates |
31 |
|
|
32 |
|
* Thu Jan 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16.sme |
33 |
- Add more Excludes to Openfusion |
- Add more Excludes to Openfusion |
34 |
|
|
35 |
* Mon Jan 02 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme |
* Tue Jan 01 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme |
36 |
- Exclude mod_perl and other files from OpenFusion repo |
- Exclude mod_perl and other files from OpenFusion repo |
37 |
|
|
38 |
* Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme |
* Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme |
517 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
518 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
519 |
REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion' |
REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion' |
520 |
REPO['Exclude']='daemontools,mod_auth_tkt,mod_perl,nmap,mutt,perl-Apache-AuthTkt,perl-Archive-Tar,perl-Authen-SASL,perl-B-Keywords,perl-BSD-Resource,perl-Class-Inspector,perl-Clone,perl-Compress-Raw-Bzip2,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Config-IniFiles,perl-Config-Tiny,perl-Convert-ASN1,perl-CPAN,perl-Crypt-OpenSSL-RSA,perl-Data-Validate-Domain,perl-Date-Manip,perl-DBD-MySQL,perl-DBD-SQLite,perl-Devel-StackTrace,perl-Digest-HMAC,perl-Digest-SHA,perl-Digest-SHA1,perl-Email-Address,perl-Email-Date-Format,perl-Email-MessageID,perl-Email-MIME-ContentType,perl-Email-MIME-Encodings,perl-Email-MIME,perl-Email-Simple,perl-Exception-Class,perl-Exporter-Tiny,Perl-ExtUtils-MakeMaker,perl-ExtUtils-ParseXS,perl-File-HomeDir,perl-File-MMagic,perl-File-ShareDir,perl-Geo-IP,perl-Geography-Countries,perl-HTML-Parser,perl-HTML-Tabulate,perl-IO-Compress-Base,perl-IO-Compress-Base2,perl-IO-Compress-Zlib,perl-IO-Compress,perl-IO-Socket-INET6,perl-IO-Socket-IP,perl-IO-Socket-SSL,perl-IP-Country,perl-JSON,perl-libwww-perl,Perl-List-MoreUtils,perl-Mail-SPF,perl-MailTools,perl-MIME-Lite,perl-MIME-tools,perl-MIME-Types,perl-Module-Pluggable,perl-Mojolicious,perl-Moo,perl-Net-CIDR-Lite,perl-Net-DNS,perl-Net-Domain-TLD,perl-Net-IP,perl-Net-Server,perl-Net-SSLeay,perl-NetAddr-IP,perl-Number-Compare,perl-Params-Util,Perl-parent,perl-Perl-Critic,perl-Pod-Simple,perl-PPI,perl-Proc-ProcessTable,perl-Role-Tiny,perl-RPM2,perl-String-Format,perl-Sub-Install,perl-Taint-Util,perl-Test-Harness,perl-Test-Simple,perl-Text-Glob,perl-Text-Template,perl-Time-Local,perl-Time-TAI64,perl-URI,Perl-version,perl-WWW-Curl,perl-XML-LibXML,perl-XML-NamespaceSupport,perl-XML-Parser,perl-XML-SAX,perl-YAML-Syck,tokyocabinet,urlview' |
REPO['Exclude']='perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-Exporter-Tiny,perl-ExtUtils-Install,perl-parent' |
521 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='perl-Algorithm-C3,perl-App-cpanminus,perl-B-Hooks-EndOfScope,perl-B-Hooks-OP-Check,perl-CPAN-Metanoarch,perl-Carp,perl-Class-C3,perl-Class-Load,perl-Class-Load-XS,perl-Class-Method-Modifiers,perl-Class-Singleton,perl-Class-XSAccessor,perl-Clone-PP,perl-Data-Dumper-Concise,perl-Data-IEEE754,perl-Data-OptList,perl-Data-Printer,perl-Data-Validate-IP,perl-DateTime,perl-DateTime-Locale,perl-DateTime-TimeZone,perl-Devel-GlobalDestruction,perl-Dist-CheckConflicts,perl-Eval-Closure,perl-Exporter-Tiny,perl-ExtUtils-CBuilder,perl-ExtUtils-Install,perl-ExtUtils-Manifest,perl-File-HomeDir,perl-File-Which,perl-GeoIP2,perl-Hash-FieldHash,perl-IPC-Cmd,perl-Lexical-SealRequireHints,perl-List-AllUtils,perl-Locale-Maketext-Simple,perl-MRO-Compat,perl-Math-Int128,perl-Math-Int64,perl-MaxMind-DB-Common,perl-MaxMind-DB-Reader,perl-Module-Build,perl-Module-CoreList,perl-Module-Implementation,perl-Module-Load,perl-Module-Load-Conditional,perl-Module-Runtime,perl-Moo,perl-MooX-StrictConstructor,perl-MooX-Types-MooseLike,perl-Moose,perl-Net-Works,perl-Package-DeprecationManager,perl-Package-Stash,perl-Package-Stash-XS,perl-Params-Check,perl-Params-Classify,perl-Params-Validate,perl-Perl-OSType,perl-Role-Tiny,perl-Scalar-List-Utils,perl-Socket,perl-Sort-Naturally,perl-Sub-Exporter,perl-Sub-Exporter-Progressive,perl-Sub-Identify,perl-Sub-Install,perl-Sub-Name,perl-Sub-Quote,perl-Task-Weaken,perl-Term-ANSIColor,perl-Test-Warnings,perl-Throwable,perl-Try-Tiny,perl-Variable-Magic,perl-bareword-filehandles,perl-indirect,perl-multidimensional,perl-namespace-autoclean,perl-namespace-clean,perl-strictures,perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-parent' |
522 |
createrepo |
createrepo |
523 |
|
|
524 |
##################### |
##################### |
925 |
{ |
{ |
926 |
my $repo = $DB->get($name) or next; |
my $repo = $DB->get($name) or next; |
927 |
my $BaseURL = $repo->prop('BaseURL') || ''; |
my $BaseURL = $repo->prop('BaseURL') || ''; |
928 |
$BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; |
if ($BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g) |
929 |
$repo->set_prop('BaseURL', $BaseURL); |
{$repo->set_prop('BaseURL', $BaseURL);} |
930 |
$repo->delete('Exclude'); |
$repo->delete('Exclude') if $repo->prop('delete'); |
931 |
} |
} |
932 |
|
|
933 |
} |
} |
940 |
{ |
{ |
941 |
my $repo = $DB->get($name) or next; |
my $repo = $DB->get($name) or next; |
942 |
my $BaseURL = $repo->prop('BaseURL') || ''; |
my $BaseURL = $repo->prop('BaseURL') || ''; |
943 |
$BaseURL =~ s/centos\$/centos\/\$/g; |
if ($BaseURL =~ s/centos\$/centos\/\$/g) |
944 |
$repo->set_prop('BaseURL', $BaseURL); |
{$repo->set_prop('BaseURL', $BaseURL);} |
945 |
|
} |
946 |
|
|
947 |
|
} |
948 |
|
|
949 |
|
EOF |
950 |
|
|
951 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10openfusion |
952 |
|
{ |
953 |
|
my @addexclude = split(/,/,"perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-Exporter-Tiny,perl-ExtUtils-Install,perl-parent"); |
954 |
|
my %removeexclude = map { $_ => 1 } split(/[,; ]+/, 'perl-version'); |
955 |
|
my @addinclude = split(/,/,"perl-Algorithm-C3,perl-App-cpanminus,perl-B-Hooks-EndOfScope,perl-B-Hooks-OP-Check,perl-CPAN-Metanoarch,perl-Carp,perl-Class-C3,perl-Class-Load,perl-Class-Load-XS,perl-Class-Method-Modifiers,perl-Class-Singleton,perl-Class-XSAccessor,perl-Clone-PP,perl-Data-Dumper-Concise,perl-Data-IEEE754,perl-Data-OptList,perl-Data-Printer,perl-Data-Validate-IP,perl-DateTime,perl-DateTime-Locale,perl-DateTime-TimeZone,perl-Devel-GlobalDestruction,perl-Dist-CheckConflicts,perl-Eval-Closure,perl-Exporter-Tiny,perl-ExtUtils-CBuilder,perl-ExtUtils-Install,perl-ExtUtils-Manifest,perl-File-HomeDir,perl-File-Which,perl-GeoIP2,perl-Hash-FieldHash,perl-IPC-Cmd,perl-Lexical-SealRequireHints,perl-List-AllUtils,perl-Locale-Maketext-Simple,perl-MRO-Compat,perl-Math-Int128,perl-Math-Int64,perl-MaxMind-DB-Common,perl-MaxMind-DB-Reader,perl-Module-Build,perl-Module-CoreList,perl-Module-Implementation,perl-Module-Load,perl-Module-Load-Conditional,perl-Module-Runtime,perl-Moo,perl-MooX-StrictConstructor,perl-MooX-Types-MooseLike,perl-Moose,perl-Net-Works,perl-Package-DeprecationManager,perl-Package-Stash,perl-Package-Stash-XS,perl-Params-Check,perl-Params-Classify,perl-Params-Validate,perl-Perl-OSType,perl-Role-Tiny,perl-Scalar-List-Utils,perl-Socket,perl-Sort-Naturally,perl-Sub-Exporter,perl-Sub-Exporter-Progressive,perl-Sub-Identify,perl-Sub-Install,perl-Sub-Name,perl-Sub-Quote,perl-Task-Weaken,perl-Term-ANSIColor,perl-Test-Warnings,perl-Throwable,perl-Try-Tiny,perl-Variable-Magic,perl-bareword-filehandles,perl-indirect,perl-multidimensional,perl-namespace-autoclean,perl-namespace-clean,perl-strictures,perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-parent"); |
956 |
|
my %removeinclude = map { $_ => 1 } split(/[,; ]+/, ''); |
957 |
|
|
958 |
|
for my $name ( qw(openfusion) ) |
959 |
|
{ |
960 |
|
my $repo = $DB->get($name) or next; |
961 |
|
|
962 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
963 |
|
push @exclude, @addexclude; |
964 |
|
@exclude = grep(!defined $removeexclude{$_} , @exclude); |
965 |
|
# remove duplicates |
966 |
|
undef %saw; |
967 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
968 |
|
if ($#exclude >= 0) |
969 |
|
{ |
970 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
971 |
|
} |
972 |
|
else |
973 |
|
{ |
974 |
|
$repo->delete('Exclude'); |
975 |
|
} |
976 |
|
|
977 |
|
my @include = split(/,/, $repo->prop('IncludePkgs') || ''); |
978 |
|
push @include, @addinclude; |
979 |
|
@include = grep(!defined $removeinclude{$_} , @include); |
980 |
|
# remove duplicates |
981 |
|
undef %saw; |
982 |
|
@include = grep(!$saw{$_}++, @include); |
983 |
|
if ($#include >= 0) |
984 |
|
{ |
985 |
|
$repo->set_prop('IncludePkgs', join(',', @include)); |
986 |
|
} |
987 |
|
else |
988 |
|
{ |
989 |
|
$repo->delete('IncludePkgs'); |
990 |
|
} |
991 |
|
|
992 |
|
|
993 |
|
|
994 |
} |
} |
995 |
|
|
996 |
} |
} |