1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 3 |
%define release 6 |
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 Jun 25 2018 John Crisp <jcrisp@safeandsounit.co.uk> 0.1-6.sme |
22 |
|
- Update reetp URL |
23 |
|
|
24 |
|
* Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme |
25 |
|
- add elrepo-kernel repo [SME: 10581] |
26 |
|
|
27 |
|
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme |
28 |
|
- exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543] |
29 |
|
- add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present |
30 |
|
|
31 |
* 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 |
32 |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
33 |
|
|
278 |
REPO['Visible']='no' |
REPO['Visible']='no' |
279 |
REPO['status']='disabled' |
REPO['status']='disabled' |
280 |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
281 |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever' |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever' |
282 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
283 |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
284 |
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' |
287 |
|
|
288 |
##################### |
##################### |
289 |
##################### |
##################### |
290 |
|
#ELRepo kernel |
291 |
|
##################### |
292 |
|
##################### |
293 |
|
REPO['reponame']='elrepo-kernel' |
294 |
|
REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel' |
295 |
|
REPO['EnableGroups']='no' |
296 |
|
REPO['Visible']='no' |
297 |
|
REPO['status']='disabled' |
298 |
|
REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch' |
299 |
|
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever' |
300 |
|
REPO['GPGCheck']='yes' |
301 |
|
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
302 |
|
REPO['Exclude']='' |
303 |
|
REPO['IncludePkgs']='' |
304 |
|
createrepo |
305 |
|
|
306 |
|
##################### |
307 |
|
##################### |
308 |
#EPEL |
#EPEL |
309 |
##################### |
##################### |
310 |
##################### |
##################### |
495 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
496 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
497 |
REPO['status']='disabled' |
REPO['status']='disabled' |
498 |
REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever' |
REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever' |
499 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
500 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
501 |
REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY' |
REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY' |
502 |
REPO['Exclude']='' |
REPO['Exclude']='' |
503 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
504 |
createrepo |
createrepo |
646 |
|
|
647 |
##################### |
##################### |
648 |
##################### |
##################### |
649 |
|
#Sogo4 nightly |
650 |
|
##################### |
651 |
|
##################### |
652 |
|
REPO['reponame']='sogo4' |
653 |
|
REPO['fullreponame']='Inverse SOGo 4 Repository' |
654 |
|
REPO['EnableGroups']='no' |
655 |
|
REPO['Visible']='yes' |
656 |
|
REPO['status']='disabled' |
657 |
|
REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch' |
658 |
|
REPO['MirrorList']='' |
659 |
|
REPO['GPGCheck']='no' |
660 |
|
REPO['GPGKey']='' |
661 |
|
REPO['Exclude']='' |
662 |
|
REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*' |
663 |
|
createrepo |
664 |
|
|
665 |
|
##################### |
666 |
|
##################### |
667 |
#Sogo stable |
#Sogo stable |
668 |
##################### |
##################### |
669 |
##################### |
##################### |
809 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
810 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
811 |
REPO['GPGKey']="" |
REPO['GPGKey']="" |
812 |
REPO['Exclude']='' |
REPO['Exclude']='ffmpeg-2.6.4,celt-0.11' |
813 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
814 |
createrepo |
createrepo |
815 |
|
|
816 |
|
|
817 |
|
##################################################### |
818 |
|
# migrates |
819 |
|
###################################################### |
820 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate |
821 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo |
822 |
|
{ |
823 |
|
my @add = split(/[,; ]+/, 'gnustep-*'); |
824 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, ''); |
825 |
|
|
826 |
|
for my $name ( qw(epel) ) |
827 |
|
{ |
828 |
|
my $repo = $DB->get($name) or next; |
829 |
|
|
830 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
831 |
|
push @exclude, @add; |
832 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
833 |
|
|
834 |
|
# remove duplicates |
835 |
|
undef %saw; |
836 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
837 |
|
|
838 |
|
if ($#exclude >= 0) |
839 |
|
{ |
840 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
841 |
|
} |
842 |
|
else |
843 |
|
{ |
844 |
|
$repo->delete('Exclude'); |
845 |
|
} |
846 |
|
} |
847 |
|
} |
848 |
|
|
849 |
|
EOF |
850 |
|
|
851 |
|
|
852 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel |
853 |
|
{ |
854 |
|
my @add = split(/[,; ]+/, ''); |
855 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make'); |
856 |
|
|
857 |
|
for my $name ( qw(epel) ) |
858 |
|
{ |
859 |
|
my $repo = $DB->get($name) or next; |
860 |
|
|
861 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
862 |
|
push @exclude, @add; |
863 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
864 |
|
|
865 |
|
# remove duplicates |
866 |
|
undef %saw; |
867 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
868 |
|
|
869 |
|
if ($#exclude >= 0) |
870 |
|
{ |
871 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
872 |
|
} |
873 |
|
else |
874 |
|
{ |
875 |
|
$repo->delete('Exclude'); |
876 |
|
} |
877 |
|
} |
878 |
|
} |
879 |
|
|
880 |
|
EOF |
881 |
|
|
882 |
|
|
883 |
|
|
884 |
|
|
885 |
|
|
886 |
|
|
887 |
|
########################################################## |
888 |
|
|
889 |
rm -f %{name}-%{version}-filelist* |
rm -f %{name}-%{version}-filelist* |
890 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
891 |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |