1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 7 |
%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 |
* Mon Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.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 |
34 |
|
|
35 |
|
* Tue Jan 01 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme |
36 |
|
- 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 |
39 |
|
- fix typo in asterisk-current |
40 |
|
- fix typo in migrate fragment for zmrepo |
41 |
|
- renamed digium as digium-current |
42 |
|
|
43 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme |
44 |
|
- zoneminder needs ffmpeg from zmrepo [SME: 10539] |
45 |
|
|
46 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme |
47 |
|
- zmrepo url has changed [SME: 10675] |
48 |
|
|
49 |
|
* Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme |
50 |
- Add libreswan repo [SME: 10605] |
- Add libreswan repo [SME: 10605] |
51 |
- remove duplicate remi-safe entry |
- remove duplicate remi-safe entry |
52 |
|
|
148 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
149 |
REPO['Visible']='no' |
REPO['Visible']='no' |
150 |
REPO['status']='disabled' |
REPO['status']='disabled' |
151 |
REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/' |
REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/' |
152 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
153 |
REPO['GPGKey']='' |
REPO['GPGKey']='' |
154 |
REPO['Exclude']='' |
REPO['Exclude']='' |
160 |
# Digium Repo |
# Digium Repo |
161 |
##################### |
##################### |
162 |
##################### |
##################### |
163 |
REPO['reponame']='digium' |
REPO['reponame']='digium-current' |
164 |
REPO['fullreponame']='Digium packages - EL' |
REPO['fullreponame']='Digium packages - EL' |
165 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
166 |
REPO['Visible']='no' |
REPO['Visible']='no' |
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']='' |
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 |
##################### |
##################### |
845 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
846 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
847 |
REPO['status']='disabled' |
REPO['status']='disabled' |
848 |
REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch' |
REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch' |
849 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
850 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
851 |
REPO['GPGKey']="" |
REPO['GPGKey']="" |
852 |
REPO['Exclude']='ffmpeg-2.6.4,celt-0.11' |
REPO['Exclude']='' |
853 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
854 |
createrepo |
createrepo |
855 |
|
|
919 |
|
|
920 |
EOF |
EOF |
921 |
|
|
922 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo |
923 |
|
{ |
924 |
|
for my $name ( qw(zmrepo) ) |
925 |
|
{ |
926 |
|
my $repo = $DB->get($name) or next; |
927 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
928 |
|
if ($BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g) |
929 |
|
{$repo->set_prop('BaseURL', $BaseURL);} |
930 |
|
$repo->delete('Exclude') if $repo->prop('delete'); |
931 |
|
} |
932 |
|
|
933 |
|
} |
934 |
|
|
935 |
|
EOF |
936 |
|
|
937 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk |
938 |
|
{ |
939 |
|
for my $name ( qw(asterisk-current) ) |
940 |
|
{ |
941 |
|
my $repo = $DB->get($name) or next; |
942 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
943 |
|
if ($BaseURL =~ s/centos\$/centos\/\$/g) |
944 |
|
{$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 |
|
} |
997 |
|
|
998 |
|
EOF |
999 |
|
|
1000 |
|
|
1001 |
|
|
1002 |
|
|
1003 |
########################################################## |
########################################################## |