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