1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 3 |
%define release 13 |
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 |
|
* Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-13.sme |
22 |
|
- fix typo in asterisk-current |
23 |
|
- fix typo in migrate fragment for zmrepo |
24 |
|
|
25 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme |
26 |
|
- zoneminder needs ffmpeg from zmrepo [SME: 10539] |
27 |
|
|
28 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme |
29 |
|
- zmrepo url has changed [SME: 10675] |
30 |
|
|
31 |
|
* Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme |
32 |
|
- Add libreswan repo [SME: 10605] |
33 |
|
- remove duplicate remi-safe entry |
34 |
|
|
35 |
|
* Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme |
36 |
|
- Update reetp URL [SME: 10604] |
37 |
|
|
38 |
|
* Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme |
39 |
|
- add elrepo-kernel repo [SME: 10581] |
40 |
|
|
41 |
|
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme |
42 |
|
- exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543] |
43 |
|
- add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present |
44 |
|
|
45 |
* 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 |
46 |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
47 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
|
#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 |
|
|
|
|
104 |
###################### |
###################### |
105 |
##################### |
##################### |
106 |
# asterisk 13 LTS |
# asterisk 13 LTS |
130 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
131 |
REPO['Visible']='no' |
REPO['Visible']='no' |
132 |
REPO['status']='disabled' |
REPO['status']='disabled' |
133 |
REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/' |
REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/' |
134 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
135 |
REPO['GPGKey']='' |
REPO['GPGKey']='' |
136 |
REPO['Exclude']='' |
REPO['Exclude']='' |
227 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
228 |
createrepo |
createrepo |
229 |
|
|
|
|
|
230 |
##################### |
##################### |
231 |
##################### |
##################### |
232 |
#egroupware |
#egroupware |
277 |
REPO['Visible']='no' |
REPO['Visible']='no' |
278 |
REPO['status']='disabled' |
REPO['status']='disabled' |
279 |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
280 |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever' |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever' |
281 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
282 |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
283 |
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' |
286 |
|
|
287 |
##################### |
##################### |
288 |
##################### |
##################### |
289 |
|
#ELRepo kernel |
290 |
|
##################### |
291 |
|
##################### |
292 |
|
REPO['reponame']='elrepo-kernel' |
293 |
|
REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel' |
294 |
|
REPO['EnableGroups']='no' |
295 |
|
REPO['Visible']='no' |
296 |
|
REPO['status']='disabled' |
297 |
|
REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch' |
298 |
|
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever' |
299 |
|
REPO['GPGCheck']='yes' |
300 |
|
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
301 |
|
REPO['Exclude']='' |
302 |
|
REPO['IncludePkgs']='' |
303 |
|
createrepo |
304 |
|
|
305 |
|
##################### |
306 |
|
##################### |
307 |
#EPEL |
#EPEL |
308 |
##################### |
##################### |
309 |
##################### |
##################### |
410 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
411 |
createrepo |
createrepo |
412 |
|
|
413 |
|
##################### |
414 |
|
##################### |
415 |
|
# Libreswan |
416 |
|
##################### |
417 |
|
##################### |
418 |
|
REPO['reponame']='libreswan' |
419 |
|
REPO['fullreponame']='Libreswan' |
420 |
|
REPO['EnableGroups']='no' |
421 |
|
REPO['Visible']='no' |
422 |
|
REPO['status']='disabled' |
423 |
|
REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/' |
424 |
|
REPO['MirrorList']='' |
425 |
|
REPO['GPGCheck']='yes' |
426 |
|
REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan' |
427 |
|
REPO['Exclude']='' |
428 |
|
REPO['IncludePkgs']='' |
429 |
|
createrepo |
430 |
|
|
431 |
|
|
432 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
433 |
##################### |
##################### |
434 |
##################### |
##################### |
513 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
514 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
515 |
REPO['status']='disabled' |
REPO['status']='disabled' |
516 |
REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever' |
REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever' |
517 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
518 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
519 |
REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY' |
REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY' |
520 |
REPO['Exclude']='' |
REPO['Exclude']='' |
521 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
522 |
createrepo |
createrepo |
523 |
|
|
524 |
|
##################### |
525 |
|
##################### |
526 |
#remi-safe |
#remi-safe |
527 |
|
##################### |
528 |
|
##################### |
529 |
REPO['reponame']='remi-safe' |
REPO['reponame']='remi-safe' |
530 |
REPO['fullreponame']='Remi - safe' |
REPO['fullreponame']='Remi - safe' |
531 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
668 |
|
|
669 |
##################### |
##################### |
670 |
##################### |
##################### |
671 |
|
#Sogo4 nightly |
672 |
|
##################### |
673 |
|
##################### |
674 |
|
REPO['reponame']='sogo4' |
675 |
|
REPO['fullreponame']='Inverse SOGo 4 Repository' |
676 |
|
REPO['EnableGroups']='no' |
677 |
|
REPO['Visible']='yes' |
678 |
|
REPO['status']='disabled' |
679 |
|
REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch' |
680 |
|
REPO['MirrorList']='' |
681 |
|
REPO['GPGCheck']='no' |
682 |
|
REPO['GPGKey']='' |
683 |
|
REPO['Exclude']='' |
684 |
|
REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*' |
685 |
|
createrepo |
686 |
|
|
687 |
|
##################### |
688 |
|
##################### |
689 |
#Sogo stable |
#Sogo stable |
690 |
##################### |
##################### |
691 |
##################### |
##################### |
827 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
828 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
829 |
REPO['status']='disabled' |
REPO['status']='disabled' |
830 |
REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch' |
REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch' |
831 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
832 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
833 |
REPO['GPGKey']="" |
REPO['GPGKey']="" |
836 |
createrepo |
createrepo |
837 |
|
|
838 |
|
|
839 |
|
##################################################### |
840 |
|
# migrates |
841 |
|
###################################################### |
842 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate |
843 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo |
844 |
|
{ |
845 |
|
my @add = split(/[,; ]+/, 'gnustep-*'); |
846 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, ''); |
847 |
|
|
848 |
|
for my $name ( qw(epel) ) |
849 |
|
{ |
850 |
|
my $repo = $DB->get($name) or next; |
851 |
|
|
852 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
853 |
|
push @exclude, @add; |
854 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
855 |
|
|
856 |
|
# remove duplicates |
857 |
|
undef %saw; |
858 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
859 |
|
|
860 |
|
if ($#exclude >= 0) |
861 |
|
{ |
862 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
863 |
|
} |
864 |
|
else |
865 |
|
{ |
866 |
|
$repo->delete('Exclude'); |
867 |
|
} |
868 |
|
} |
869 |
|
} |
870 |
|
|
871 |
|
EOF |
872 |
|
|
873 |
|
|
874 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel |
875 |
|
{ |
876 |
|
my @add = split(/[,; ]+/, ''); |
877 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make'); |
878 |
|
|
879 |
|
for my $name ( qw(epel) ) |
880 |
|
{ |
881 |
|
my $repo = $DB->get($name) or next; |
882 |
|
|
883 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
884 |
|
push @exclude, @add; |
885 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
886 |
|
|
887 |
|
# remove duplicates |
888 |
|
undef %saw; |
889 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
890 |
|
|
891 |
|
if ($#exclude >= 0) |
892 |
|
{ |
893 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
894 |
|
} |
895 |
|
else |
896 |
|
{ |
897 |
|
$repo->delete('Exclude'); |
898 |
|
} |
899 |
|
} |
900 |
|
} |
901 |
|
|
902 |
|
EOF |
903 |
|
|
904 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo |
905 |
|
{ |
906 |
|
for my $name ( qw(zmrepo) ) |
907 |
|
{ |
908 |
|
my $repo = $DB->get($name) or next; |
909 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
910 |
|
$BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; |
911 |
|
$repo->set_prop('BaseURL', $BaseURL); |
912 |
|
$repo->delete('Exclude'); |
913 |
|
} |
914 |
|
|
915 |
|
} |
916 |
|
|
917 |
|
EOF |
918 |
|
|
919 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk |
920 |
|
{ |
921 |
|
for my $name ( qw(asterisk-current) ) |
922 |
|
{ |
923 |
|
my $repo = $DB->get($name) or next; |
924 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
925 |
|
$BaseURL =~ s/centos\$/centos\/\$/g; |
926 |
|
$repo->set_prop('BaseURL', $BaseURL); |
927 |
|
} |
928 |
|
|
929 |
|
} |
930 |
|
|
931 |
|
EOF |
932 |
|
|
933 |
|
|
934 |
|
|
935 |
|
|
936 |
|
########################################################## |
937 |
|
|
938 |
rm -f %{name}-%{version}-filelist* |
rm -f %{name}-%{version}-filelist* |
939 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
940 |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
948 |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
949 |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
950 |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
951 |
|
cat %{name}-%{version}-filelist| grep libreswan > %{name}-%{version}-filelist-libreswan |
952 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
953 |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
954 |
fi |
fi |
1072 |
%files geekery -f %{name}-%{version}-filelist-geekery |
%files geekery -f %{name}-%{version}-filelist-geekery |
1073 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1074 |
|
|
1075 |
|
%package libreswan |
1076 |
|
Summary: Libreswan Repository |
1077 |
|
%description libreswan |
1078 |
|
Geekery Repository |
1079 |
|
%files libreswan -f %{name}-%{version}-filelist-libreswan |
1080 |
|
%defattr(-,root,root) |
1081 |
|
|
1082 |
%package odoo |
%package odoo |
1083 |
Summary: Odoo 10 Nightly - EL7 Repository |
Summary: Odoo 10 Nightly - EL7 Repository |
1084 |
Distribution: el7 |
Distribution: el7 |