1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 3 |
%define release 11 |
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 Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme |
22 |
|
- zmrepo url has changed [SME: 10675] |
23 |
|
|
24 |
|
* Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme |
25 |
|
- Add libreswan repo [SME: 10605] |
26 |
|
- remove duplicate remi-safe entry |
27 |
|
|
28 |
|
* Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme |
29 |
|
- Update reetp URL [SME: 10604] |
30 |
|
|
31 |
|
* Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme |
32 |
|
- add elrepo-kernel repo [SME: 10581] |
33 |
|
|
34 |
|
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme |
35 |
|
- exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543] |
36 |
|
- add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present |
37 |
|
|
38 |
* 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 |
39 |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
40 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
|
#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 |
|
|
|
|
97 |
###################### |
###################### |
98 |
##################### |
##################### |
99 |
# asterisk 13 LTS |
# asterisk 13 LTS |
220 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
221 |
createrepo |
createrepo |
222 |
|
|
|
|
|
223 |
##################### |
##################### |
224 |
##################### |
##################### |
225 |
#egroupware |
#egroupware |
270 |
REPO['Visible']='no' |
REPO['Visible']='no' |
271 |
REPO['status']='disabled' |
REPO['status']='disabled' |
272 |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
273 |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever' |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever' |
274 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
275 |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
276 |
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' |
279 |
|
|
280 |
##################### |
##################### |
281 |
##################### |
##################### |
282 |
|
#ELRepo kernel |
283 |
|
##################### |
284 |
|
##################### |
285 |
|
REPO['reponame']='elrepo-kernel' |
286 |
|
REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel' |
287 |
|
REPO['EnableGroups']='no' |
288 |
|
REPO['Visible']='no' |
289 |
|
REPO['status']='disabled' |
290 |
|
REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch' |
291 |
|
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever' |
292 |
|
REPO['GPGCheck']='yes' |
293 |
|
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
294 |
|
REPO['Exclude']='' |
295 |
|
REPO['IncludePkgs']='' |
296 |
|
createrepo |
297 |
|
|
298 |
|
##################### |
299 |
|
##################### |
300 |
#EPEL |
#EPEL |
301 |
##################### |
##################### |
302 |
##################### |
##################### |
403 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
404 |
createrepo |
createrepo |
405 |
|
|
406 |
|
##################### |
407 |
|
##################### |
408 |
|
# Libreswan |
409 |
|
##################### |
410 |
|
##################### |
411 |
|
REPO['reponame']='libreswan' |
412 |
|
REPO['fullreponame']='Libreswan' |
413 |
|
REPO['EnableGroups']='no' |
414 |
|
REPO['Visible']='no' |
415 |
|
REPO['status']='disabled' |
416 |
|
REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/' |
417 |
|
REPO['MirrorList']='' |
418 |
|
REPO['GPGCheck']='yes' |
419 |
|
REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan' |
420 |
|
REPO['Exclude']='' |
421 |
|
REPO['IncludePkgs']='' |
422 |
|
createrepo |
423 |
|
|
424 |
|
|
425 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
426 |
##################### |
##################### |
427 |
##################### |
##################### |
506 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
507 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
508 |
REPO['status']='disabled' |
REPO['status']='disabled' |
509 |
REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever' |
REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever' |
510 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
511 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
512 |
REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY' |
REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY' |
513 |
REPO['Exclude']='' |
REPO['Exclude']='' |
514 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
515 |
createrepo |
createrepo |
516 |
|
|
517 |
|
##################### |
518 |
|
##################### |
519 |
#remi-safe |
#remi-safe |
520 |
|
##################### |
521 |
|
##################### |
522 |
REPO['reponame']='remi-safe' |
REPO['reponame']='remi-safe' |
523 |
REPO['fullreponame']='Remi - safe' |
REPO['fullreponame']='Remi - safe' |
524 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
661 |
|
|
662 |
##################### |
##################### |
663 |
##################### |
##################### |
664 |
#Sogo3 nightly |
#Sogo4 nightly |
665 |
##################### |
##################### |
666 |
##################### |
##################### |
667 |
REPO['reponame']='sogo4' |
REPO['reponame']='sogo4' |
677 |
REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*' |
REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*' |
678 |
createrepo |
createrepo |
679 |
|
|
|
|
|
680 |
##################### |
##################### |
681 |
##################### |
##################### |
682 |
#Sogo stable |
#Sogo stable |
820 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
821 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
822 |
REPO['status']='disabled' |
REPO['status']='disabled' |
823 |
REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch' |
REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch' |
824 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
825 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
826 |
REPO['GPGKey']="" |
REPO['GPGKey']="" |
827 |
REPO['Exclude']='' |
REPO['Exclude']='ffmpeg-2.6.4,celt-0.11' |
828 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
829 |
createrepo |
createrepo |
830 |
|
|
831 |
|
|
832 |
|
##################################################### |
833 |
|
# migrates |
834 |
|
###################################################### |
835 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate |
836 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo |
837 |
|
{ |
838 |
|
my @add = split(/[,; ]+/, 'gnustep-*'); |
839 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, ''); |
840 |
|
|
841 |
|
for my $name ( qw(epel) ) |
842 |
|
{ |
843 |
|
my $repo = $DB->get($name) or next; |
844 |
|
|
845 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
846 |
|
push @exclude, @add; |
847 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
848 |
|
|
849 |
|
# remove duplicates |
850 |
|
undef %saw; |
851 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
852 |
|
|
853 |
|
if ($#exclude >= 0) |
854 |
|
{ |
855 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
856 |
|
} |
857 |
|
else |
858 |
|
{ |
859 |
|
$repo->delete('Exclude'); |
860 |
|
} |
861 |
|
} |
862 |
|
} |
863 |
|
|
864 |
|
EOF |
865 |
|
|
866 |
|
|
867 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel |
868 |
|
{ |
869 |
|
my @add = split(/[,; ]+/, ''); |
870 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make'); |
871 |
|
|
872 |
|
for my $name ( qw(epel) ) |
873 |
|
{ |
874 |
|
my $repo = $DB->get($name) or next; |
875 |
|
|
876 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
877 |
|
push @exclude, @add; |
878 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
879 |
|
|
880 |
|
# remove duplicates |
881 |
|
undef %saw; |
882 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
883 |
|
|
884 |
|
if ($#exclude >= 0) |
885 |
|
{ |
886 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
887 |
|
} |
888 |
|
else |
889 |
|
{ |
890 |
|
$repo->delete('Exclude'); |
891 |
|
} |
892 |
|
} |
893 |
|
} |
894 |
|
|
895 |
|
EOF |
896 |
|
|
897 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo |
898 |
|
{ |
899 |
|
for my $name ( qw(zmrepo) ) |
900 |
|
{ |
901 |
|
my $repo = $DB->get($name) or next; |
902 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
903 |
|
$BaseURL = s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; |
904 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
905 |
|
} |
906 |
|
|
907 |
|
} |
908 |
|
|
909 |
|
EOF |
910 |
|
|
911 |
|
|
912 |
|
|
913 |
|
|
914 |
|
|
915 |
|
########################################################## |
916 |
|
|
917 |
rm -f %{name}-%{version}-filelist* |
rm -f %{name}-%{version}-filelist* |
918 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
919 |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
927 |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
928 |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
929 |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
930 |
|
cat %{name}-%{version}-filelist| grep libreswan > %{name}-%{version}-filelist-libreswan |
931 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
932 |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
933 |
fi |
fi |
1051 |
%files geekery -f %{name}-%{version}-filelist-geekery |
%files geekery -f %{name}-%{version}-filelist-geekery |
1052 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1053 |
|
|
1054 |
|
%package libreswan |
1055 |
|
Summary: Libreswan Repository |
1056 |
|
%description libreswan |
1057 |
|
Geekery Repository |
1058 |
|
%files libreswan -f %{name}-%{version}-filelist-libreswan |
1059 |
|
%defattr(-,root,root) |
1060 |
|
|
1061 |
%package odoo |
%package odoo |
1062 |
Summary: Odoo 10 Nightly - EL7 Repository |
Summary: Odoo 10 Nightly - EL7 Repository |
1063 |
Distribution: el7 |
Distribution: el7 |