1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 3 |
%define release 17 |
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 |
|
* Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-17.sme |
22 |
|
- revised Include and Exclude to prevident accidental update |
23 |
|
- updated incorrect changelog dates |
24 |
|
|
25 |
|
* Thu Jan 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16.sme |
26 |
|
- Add more Excludes to Openfusion |
27 |
|
|
28 |
|
* Tue Jan 01 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme |
29 |
|
- Exclude mod_perl and other files from OpenFusion repo |
30 |
|
|
31 |
|
* Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme |
32 |
|
- fix typo in asterisk-current |
33 |
|
- fix typo in migrate fragment for zmrepo |
34 |
|
- renamed digium as digium-current |
35 |
|
|
36 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme |
37 |
|
- zoneminder needs ffmpeg from zmrepo [SME: 10539] |
38 |
|
|
39 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme |
40 |
|
- zmrepo url has changed [SME: 10675] |
41 |
|
|
42 |
|
* Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme |
43 |
|
- Add libreswan repo [SME: 10605] |
44 |
|
- remove duplicate remi-safe entry |
45 |
|
|
46 |
|
* Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme |
47 |
|
- Update reetp URL [SME: 10604] |
48 |
|
|
49 |
|
* Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme |
50 |
|
- add elrepo-kernel repo [SME: 10581] |
51 |
|
|
52 |
|
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme |
53 |
|
- exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543] |
54 |
|
- add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present |
55 |
|
|
56 |
* Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme |
* Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme |
57 |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
58 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
|
#remi-safe |
|
|
REPO['reponame']='remi-safe' |
|
|
REPO['fullreponame']='Remi - safe' |
|
|
REPO['EnableGroups']='no' |
|
|
REPO['GPGCheck']='yes' |
|
|
REPO['Visible']='yes' |
|
|
REPO['status']='enabled' |
|
|
REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/' |
|
|
REPO['MirrorList']='' |
|
|
REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi' |
|
|
REPO['Exclude']='' |
|
|
REPO['IncludePkgs']='' |
|
|
createrepo |
|
|
|
|
115 |
###################### |
###################### |
116 |
##################### |
##################### |
117 |
# asterisk 13 LTS |
# asterisk 13 LTS |
141 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
142 |
REPO['Visible']='no' |
REPO['Visible']='no' |
143 |
REPO['status']='disabled' |
REPO['status']='disabled' |
144 |
REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/' |
REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/' |
145 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
146 |
REPO['GPGKey']='' |
REPO['GPGKey']='' |
147 |
REPO['Exclude']='' |
REPO['Exclude']='' |
153 |
# Digium Repo |
# Digium Repo |
154 |
##################### |
##################### |
155 |
##################### |
##################### |
156 |
REPO['reponame']='digium' |
REPO['reponame']='digium-current' |
157 |
REPO['fullreponame']='Digium packages - EL' |
REPO['fullreponame']='Digium packages - EL' |
158 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
159 |
REPO['Visible']='no' |
REPO['Visible']='no' |
238 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
239 |
createrepo |
createrepo |
240 |
|
|
|
|
|
241 |
##################### |
##################### |
242 |
##################### |
##################### |
243 |
#egroupware |
#egroupware |
288 |
REPO['Visible']='no' |
REPO['Visible']='no' |
289 |
REPO['status']='disabled' |
REPO['status']='disabled' |
290 |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
291 |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever' |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever' |
292 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
293 |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
294 |
REPO['Exclude']='clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,gd,perl-TimeDate,librpm4.4' |
REPO['Exclude']='clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,gd,perl-TimeDate,librpm4.4' |
297 |
|
|
298 |
##################### |
##################### |
299 |
##################### |
##################### |
300 |
|
#ELRepo kernel |
301 |
|
##################### |
302 |
|
##################### |
303 |
|
REPO['reponame']='elrepo-kernel' |
304 |
|
REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel' |
305 |
|
REPO['EnableGroups']='no' |
306 |
|
REPO['Visible']='no' |
307 |
|
REPO['status']='disabled' |
308 |
|
REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch' |
309 |
|
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever' |
310 |
|
REPO['GPGCheck']='yes' |
311 |
|
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
312 |
|
REPO['Exclude']='' |
313 |
|
REPO['IncludePkgs']='' |
314 |
|
createrepo |
315 |
|
|
316 |
|
##################### |
317 |
|
##################### |
318 |
#EPEL |
#EPEL |
319 |
##################### |
##################### |
320 |
##################### |
##################### |
421 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
422 |
createrepo |
createrepo |
423 |
|
|
424 |
|
##################### |
425 |
|
##################### |
426 |
|
# Libreswan |
427 |
|
##################### |
428 |
|
##################### |
429 |
|
REPO['reponame']='libreswan' |
430 |
|
REPO['fullreponame']='Libreswan' |
431 |
|
REPO['EnableGroups']='no' |
432 |
|
REPO['Visible']='no' |
433 |
|
REPO['status']='disabled' |
434 |
|
REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/' |
435 |
|
REPO['MirrorList']='' |
436 |
|
REPO['GPGCheck']='yes' |
437 |
|
REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan' |
438 |
|
REPO['Exclude']='' |
439 |
|
REPO['IncludePkgs']='' |
440 |
|
createrepo |
441 |
|
|
442 |
|
|
443 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
444 |
##################### |
##################### |
445 |
##################### |
##################### |
510 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
511 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
512 |
REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion' |
REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion' |
513 |
REPO['Exclude']='' |
REPO['Exclude']='perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-Exporter-Tiny,perl-ExtUtils-Install,perl-parent,perl-version' |
514 |
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,perl-version' |
515 |
createrepo |
createrepo |
516 |
|
|
517 |
##################### |
##################### |
524 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
525 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
526 |
REPO['status']='disabled' |
REPO['status']='disabled' |
527 |
REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever' |
REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever' |
528 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
529 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
530 |
REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY' |
REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY' |
531 |
REPO['Exclude']='' |
REPO['Exclude']='' |
532 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
533 |
createrepo |
createrepo |
534 |
|
|
535 |
|
##################### |
536 |
|
##################### |
537 |
#remi-safe |
#remi-safe |
538 |
|
##################### |
539 |
|
##################### |
540 |
REPO['reponame']='remi-safe' |
REPO['reponame']='remi-safe' |
541 |
REPO['fullreponame']='Remi - safe' |
REPO['fullreponame']='Remi - safe' |
542 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
679 |
|
|
680 |
##################### |
##################### |
681 |
##################### |
##################### |
682 |
|
#Sogo4 nightly |
683 |
|
##################### |
684 |
|
##################### |
685 |
|
REPO['reponame']='sogo4' |
686 |
|
REPO['fullreponame']='Inverse SOGo 4 Repository' |
687 |
|
REPO['EnableGroups']='no' |
688 |
|
REPO['Visible']='yes' |
689 |
|
REPO['status']='disabled' |
690 |
|
REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch' |
691 |
|
REPO['MirrorList']='' |
692 |
|
REPO['GPGCheck']='no' |
693 |
|
REPO['GPGKey']='' |
694 |
|
REPO['Exclude']='' |
695 |
|
REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*' |
696 |
|
createrepo |
697 |
|
|
698 |
|
##################### |
699 |
|
##################### |
700 |
#Sogo stable |
#Sogo stable |
701 |
##################### |
##################### |
702 |
##################### |
##################### |
838 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
839 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
840 |
REPO['status']='disabled' |
REPO['status']='disabled' |
841 |
REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch' |
REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch' |
842 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
843 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
844 |
REPO['GPGKey']="" |
REPO['GPGKey']="" |
847 |
createrepo |
createrepo |
848 |
|
|
849 |
|
|
850 |
|
##################################################### |
851 |
|
# migrates |
852 |
|
###################################################### |
853 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate |
854 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo |
855 |
|
{ |
856 |
|
my @add = split(/[,; ]+/, 'gnustep-*'); |
857 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, ''); |
858 |
|
|
859 |
|
for my $name ( qw(epel) ) |
860 |
|
{ |
861 |
|
my $repo = $DB->get($name) or next; |
862 |
|
|
863 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
864 |
|
push @exclude, @add; |
865 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
866 |
|
|
867 |
|
# remove duplicates |
868 |
|
undef %saw; |
869 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
870 |
|
|
871 |
|
if ($#exclude >= 0) |
872 |
|
{ |
873 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
874 |
|
} |
875 |
|
else |
876 |
|
{ |
877 |
|
$repo->delete('Exclude'); |
878 |
|
} |
879 |
|
} |
880 |
|
} |
881 |
|
|
882 |
|
EOF |
883 |
|
|
884 |
|
|
885 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel |
886 |
|
{ |
887 |
|
my @add = split(/[,; ]+/, ''); |
888 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make'); |
889 |
|
|
890 |
|
for my $name ( qw(epel) ) |
891 |
|
{ |
892 |
|
my $repo = $DB->get($name) or next; |
893 |
|
|
894 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
895 |
|
push @exclude, @add; |
896 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
897 |
|
|
898 |
|
# remove duplicates |
899 |
|
undef %saw; |
900 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
901 |
|
|
902 |
|
if ($#exclude >= 0) |
903 |
|
{ |
904 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
905 |
|
} |
906 |
|
else |
907 |
|
{ |
908 |
|
$repo->delete('Exclude'); |
909 |
|
} |
910 |
|
} |
911 |
|
} |
912 |
|
|
913 |
|
EOF |
914 |
|
|
915 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo |
916 |
|
{ |
917 |
|
for my $name ( qw(zmrepo) ) |
918 |
|
{ |
919 |
|
my $repo = $DB->get($name) or next; |
920 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
921 |
|
$BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; |
922 |
|
$repo->set_prop('BaseURL', $BaseURL); |
923 |
|
$repo->delete('Exclude'); |
924 |
|
} |
925 |
|
|
926 |
|
} |
927 |
|
|
928 |
|
EOF |
929 |
|
|
930 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk |
931 |
|
{ |
932 |
|
for my $name ( qw(asterisk-current) ) |
933 |
|
{ |
934 |
|
my $repo = $DB->get($name) or next; |
935 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
936 |
|
$BaseURL =~ s/centos\$/centos\/\$/g; |
937 |
|
$repo->set_prop('BaseURL', $BaseURL); |
938 |
|
} |
939 |
|
|
940 |
|
} |
941 |
|
|
942 |
|
EOF |
943 |
|
|
944 |
|
|
945 |
|
|
946 |
|
|
947 |
|
########################################################## |
948 |
|
|
949 |
rm -f %{name}-%{version}-filelist* |
rm -f %{name}-%{version}-filelist* |
950 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
951 |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
959 |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
960 |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
961 |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
962 |
|
cat %{name}-%{version}-filelist| grep libreswan > %{name}-%{version}-filelist-libreswan |
963 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
964 |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
965 |
fi |
fi |
1083 |
%files geekery -f %{name}-%{version}-filelist-geekery |
%files geekery -f %{name}-%{version}-filelist-geekery |
1084 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1085 |
|
|
1086 |
|
%package libreswan |
1087 |
|
Summary: Libreswan Repository |
1088 |
|
%description libreswan |
1089 |
|
Geekery Repository |
1090 |
|
%files libreswan -f %{name}-%{version}-filelist-libreswan |
1091 |
|
%defattr(-,root,root) |
1092 |
|
|
1093 |
%package odoo |
%package odoo |
1094 |
Summary: Odoo 10 Nightly - EL7 Repository |
Summary: Odoo 10 Nightly - EL7 Repository |
1095 |
Distribution: el7 |
Distribution: el7 |