1 |
%define name smeserver-extrarepositories |
%define name smeserver-extrarepositories |
2 |
%define version 0.1 |
%define version 0.1 |
3 |
%define release 3 |
%define release 16 |
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 |
|
* Tue Jan 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16.sme |
22 |
|
- Add more Excludes to Openfusion |
23 |
|
|
24 |
|
* Mon Jan 02 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme |
25 |
|
- Exclude mod_perl and other files from OpenFusion repo |
26 |
|
|
27 |
|
* Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme |
28 |
|
- fix typo in asterisk-current |
29 |
|
- fix typo in migrate fragment for zmrepo |
30 |
|
- renamed digium as digium-current |
31 |
|
|
32 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme |
33 |
|
- zoneminder needs ffmpeg from zmrepo [SME: 10539] |
34 |
|
|
35 |
|
* Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme |
36 |
|
- zmrepo url has changed [SME: 10675] |
37 |
|
|
38 |
|
* Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme |
39 |
|
- Add libreswan repo [SME: 10605] |
40 |
|
- remove duplicate remi-safe entry |
41 |
|
|
42 |
|
* Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme |
43 |
|
- Update reetp URL [SME: 10604] |
44 |
|
|
45 |
|
* Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme |
46 |
|
- add elrepo-kernel repo [SME: 10581] |
47 |
|
|
48 |
|
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme |
49 |
|
- exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543] |
50 |
|
- add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present |
51 |
|
|
52 |
* 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 |
53 |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
- fix wrong escape sequence for $basearch and $releasever [SME: 10239] |
54 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
|
#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 |
|
|
|
|
111 |
###################### |
###################### |
112 |
##################### |
##################### |
113 |
# asterisk 13 LTS |
# asterisk 13 LTS |
137 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
138 |
REPO['Visible']='no' |
REPO['Visible']='no' |
139 |
REPO['status']='disabled' |
REPO['status']='disabled' |
140 |
REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/' |
REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/' |
141 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
142 |
REPO['GPGKey']='' |
REPO['GPGKey']='' |
143 |
REPO['Exclude']='' |
REPO['Exclude']='' |
149 |
# Digium Repo |
# Digium Repo |
150 |
##################### |
##################### |
151 |
##################### |
##################### |
152 |
REPO['reponame']='digium' |
REPO['reponame']='digium-current' |
153 |
REPO['fullreponame']='Digium packages - EL' |
REPO['fullreponame']='Digium packages - EL' |
154 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
155 |
REPO['Visible']='no' |
REPO['Visible']='no' |
234 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
235 |
createrepo |
createrepo |
236 |
|
|
|
|
|
237 |
##################### |
##################### |
238 |
##################### |
##################### |
239 |
#egroupware |
#egroupware |
284 |
REPO['Visible']='no' |
REPO['Visible']='no' |
285 |
REPO['status']='disabled' |
REPO['status']='disabled' |
286 |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch' |
287 |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever' |
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever' |
288 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
289 |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
290 |
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' |
293 |
|
|
294 |
##################### |
##################### |
295 |
##################### |
##################### |
296 |
|
#ELRepo kernel |
297 |
|
##################### |
298 |
|
##################### |
299 |
|
REPO['reponame']='elrepo-kernel' |
300 |
|
REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel' |
301 |
|
REPO['EnableGroups']='no' |
302 |
|
REPO['Visible']='no' |
303 |
|
REPO['status']='disabled' |
304 |
|
REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch' |
305 |
|
REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever' |
306 |
|
REPO['GPGCheck']='yes' |
307 |
|
REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' |
308 |
|
REPO['Exclude']='' |
309 |
|
REPO['IncludePkgs']='' |
310 |
|
createrepo |
311 |
|
|
312 |
|
##################### |
313 |
|
##################### |
314 |
#EPEL |
#EPEL |
315 |
##################### |
##################### |
316 |
##################### |
##################### |
417 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
418 |
createrepo |
createrepo |
419 |
|
|
420 |
|
##################### |
421 |
|
##################### |
422 |
|
# Libreswan |
423 |
|
##################### |
424 |
|
##################### |
425 |
|
REPO['reponame']='libreswan' |
426 |
|
REPO['fullreponame']='Libreswan' |
427 |
|
REPO['EnableGroups']='no' |
428 |
|
REPO['Visible']='no' |
429 |
|
REPO['status']='disabled' |
430 |
|
REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/6/x86_64/' |
431 |
|
REPO['MirrorList']='' |
432 |
|
REPO['GPGCheck']='yes' |
433 |
|
REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan' |
434 |
|
REPO['Exclude']='' |
435 |
|
REPO['IncludePkgs']='' |
436 |
|
createrepo |
437 |
|
|
438 |
|
|
439 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
440 |
##################### |
##################### |
441 |
##################### |
##################### |
506 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
507 |
REPO['GPGCheck']='yes' |
REPO['GPGCheck']='yes' |
508 |
REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion' |
REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion' |
509 |
REPO['Exclude']='' |
REPO['Exclude']='daemontools,mod_auth_tkt,mod_perl,nmap,mutt,perl-Apache-AuthTkt,perl-Archive-Tar,perl-Authen-SASL,perl-B-Keywords,perl-BSD-Resource,perl-Class-Inspector,perl-Clone,perl-Compress-Raw-Bzip2,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Config-IniFiles,perl-Config-Tiny,perl-Convert-ASN1,perl-CPAN,perl-Crypt-OpenSSL-RSA,perl-Data-Validate-Domain,perl-Date-Manip,perl-DBD-MySQL,perl-DBD-SQLite,perl-Devel-StackTrace,perl-Digest-HMAC,perl-Digest-SHA,perl-Digest-SHA1,perl-Email-Address,perl-Email-Date-Format,perl-Email-MessageID,perl-Email-MIME-ContentType,perl-Email-MIME-Encodings,perl-Email-MIME,perl-Email-Simple,perl-Exception-Class,perl-Exporter-Tiny,Perl-ExtUtils-MakeMaker,perl-ExtUtils-ParseXS,perl-File-HomeDir,perl-File-MMagic,perl-File-ShareDir,perl-Geo-IP,perl-Geography-Countries,perl-HTML-Parser,perl-HTML-Tabulate,perl-IO-Compress-Base,perl-IO-Compress-Base2,perl-IO-Compress-Zlib,perl-IO-Compress,perl-IO-Socket-INET6,perl-IO-Socket-IP,perl-IO-Socket-SSL,perl-IP-Country,perl-JSON,perl-libwww-perl,Perl-List-MoreUtils,perl-Mail-SPF,perl-MailTools,perl-MIME-Lite,perl-MIME-tools,perl-MIME-Types,perl-Module-Pluggable,perl-Mojolicious,perl-Moo,perl-Net-CIDR-Lite,perl-Net-DNS,perl-Net-Domain-TLD,perl-Net-IP,perl-Net-Server,perl-Net-SSLeay,perl-NetAddr-IP,perl-Number-Compare,perl-Params-Util,Perl-parent,perl-Perl-Critic,perl-Pod-Simple,perl-PPI,perl-Proc-ProcessTable,perl-Role-Tiny,perl-RPM2,perl-String-Format,perl-Sub-Install,perl-Taint-Util,perl-Test-Harness,perl-Test-Simple,perl-Text-Glob,perl-Text-Template,perl-Time-Local,perl-Time-TAI64,perl-URI,Perl-version,perl-WWW-Curl,perl-XML-LibXML,perl-XML-NamespaceSupport,perl-XML-Parser,perl-XML-SAX,perl-YAML-Syck,tokyocabinet,urlview' |
510 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
511 |
createrepo |
createrepo |
512 |
|
|
520 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
521 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
522 |
REPO['status']='disabled' |
REPO['status']='disabled' |
523 |
REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever' |
REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever' |
524 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
525 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
526 |
REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY' |
REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY' |
527 |
REPO['Exclude']='' |
REPO['Exclude']='' |
528 |
REPO['IncludePkgs']='' |
REPO['IncludePkgs']='' |
529 |
createrepo |
createrepo |
530 |
|
|
531 |
|
##################### |
532 |
|
##################### |
533 |
#remi-safe |
#remi-safe |
534 |
|
##################### |
535 |
|
##################### |
536 |
REPO['reponame']='remi-safe' |
REPO['reponame']='remi-safe' |
537 |
REPO['fullreponame']='Remi - safe' |
REPO['fullreponame']='Remi - safe' |
538 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
675 |
|
|
676 |
##################### |
##################### |
677 |
##################### |
##################### |
678 |
|
#Sogo4 nightly |
679 |
|
##################### |
680 |
|
##################### |
681 |
|
REPO['reponame']='sogo4' |
682 |
|
REPO['fullreponame']='Inverse SOGo 4 Repository' |
683 |
|
REPO['EnableGroups']='no' |
684 |
|
REPO['Visible']='yes' |
685 |
|
REPO['status']='disabled' |
686 |
|
REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch' |
687 |
|
REPO['MirrorList']='' |
688 |
|
REPO['GPGCheck']='no' |
689 |
|
REPO['GPGKey']='' |
690 |
|
REPO['Exclude']='' |
691 |
|
REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*' |
692 |
|
createrepo |
693 |
|
|
694 |
|
##################### |
695 |
|
##################### |
696 |
#Sogo stable |
#Sogo stable |
697 |
##################### |
##################### |
698 |
##################### |
##################### |
834 |
REPO['EnableGroups']='no' |
REPO['EnableGroups']='no' |
835 |
REPO['Visible']='yes' |
REPO['Visible']='yes' |
836 |
REPO['status']='disabled' |
REPO['status']='disabled' |
837 |
REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch' |
REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch' |
838 |
REPO['MirrorList']='' |
REPO['MirrorList']='' |
839 |
REPO['GPGCheck']='no' |
REPO['GPGCheck']='no' |
840 |
REPO['GPGKey']="" |
REPO['GPGKey']="" |
843 |
createrepo |
createrepo |
844 |
|
|
845 |
|
|
846 |
|
##################################################### |
847 |
|
# migrates |
848 |
|
###################################################### |
849 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate |
850 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo |
851 |
|
{ |
852 |
|
my @add = split(/[,; ]+/, 'gnustep-*'); |
853 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, ''); |
854 |
|
|
855 |
|
for my $name ( qw(epel) ) |
856 |
|
{ |
857 |
|
my $repo = $DB->get($name) or next; |
858 |
|
|
859 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
860 |
|
push @exclude, @add; |
861 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
862 |
|
|
863 |
|
# remove duplicates |
864 |
|
undef %saw; |
865 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
866 |
|
|
867 |
|
if ($#exclude >= 0) |
868 |
|
{ |
869 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
870 |
|
} |
871 |
|
else |
872 |
|
{ |
873 |
|
$repo->delete('Exclude'); |
874 |
|
} |
875 |
|
} |
876 |
|
} |
877 |
|
|
878 |
|
EOF |
879 |
|
|
880 |
|
|
881 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel |
882 |
|
{ |
883 |
|
my @add = split(/[,; ]+/, ''); |
884 |
|
my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make'); |
885 |
|
|
886 |
|
for my $name ( qw(epel) ) |
887 |
|
{ |
888 |
|
my $repo = $DB->get($name) or next; |
889 |
|
|
890 |
|
my @exclude = split(/,/, $repo->prop('Exclude') || ''); |
891 |
|
push @exclude, @add; |
892 |
|
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude); |
893 |
|
|
894 |
|
# remove duplicates |
895 |
|
undef %saw; |
896 |
|
@exclude = grep(!$saw{$_}++, @exclude); |
897 |
|
|
898 |
|
if ($#exclude >= 0) |
899 |
|
{ |
900 |
|
$repo->set_prop('Exclude', join(',', @exclude)); |
901 |
|
} |
902 |
|
else |
903 |
|
{ |
904 |
|
$repo->delete('Exclude'); |
905 |
|
} |
906 |
|
} |
907 |
|
} |
908 |
|
|
909 |
|
EOF |
910 |
|
|
911 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo |
912 |
|
{ |
913 |
|
for my $name ( qw(zmrepo) ) |
914 |
|
{ |
915 |
|
my $repo = $DB->get($name) or next; |
916 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
917 |
|
$BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; |
918 |
|
$repo->set_prop('BaseURL', $BaseURL); |
919 |
|
$repo->delete('Exclude'); |
920 |
|
} |
921 |
|
|
922 |
|
} |
923 |
|
|
924 |
|
EOF |
925 |
|
|
926 |
|
cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk |
927 |
|
{ |
928 |
|
for my $name ( qw(asterisk-current) ) |
929 |
|
{ |
930 |
|
my $repo = $DB->get($name) or next; |
931 |
|
my $BaseURL = $repo->prop('BaseURL') || ''; |
932 |
|
$BaseURL =~ s/centos\$/centos\/\$/g; |
933 |
|
$repo->set_prop('BaseURL', $BaseURL); |
934 |
|
} |
935 |
|
|
936 |
|
} |
937 |
|
|
938 |
|
EOF |
939 |
|
|
940 |
|
|
941 |
|
|
942 |
|
|
943 |
|
########################################################## |
944 |
|
|
945 |
rm -f %{name}-%{version}-filelist* |
rm -f %{name}-%{version}-filelist* |
946 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
947 |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic |
955 |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
956 |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws |
957 |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery |
958 |
|
cat %{name}-%{version}-filelist| grep libreswan > %{name}-%{version}-filelist-libreswan |
959 |
if ( "%{?dist}" == "el7" ); then |
if ( "%{?dist}" == "el7" ); then |
960 |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo |
961 |
fi |
fi |
1079 |
%files geekery -f %{name}-%{version}-filelist-geekery |
%files geekery -f %{name}-%{version}-filelist-geekery |
1080 |
%defattr(-,root,root) |
%defattr(-,root,root) |
1081 |
|
|
1082 |
|
%package libreswan |
1083 |
|
Summary: Libreswan Repository |
1084 |
|
%description libreswan |
1085 |
|
Geekery Repository |
1086 |
|
%files libreswan -f %{name}-%{version}-filelist-libreswan |
1087 |
|
%defattr(-,root,root) |
1088 |
|
|
1089 |
%package odoo |
%package odoo |
1090 |
Summary: Odoo 10 Nightly - EL7 Repository |
Summary: Odoo 10 Nightly - EL7 Repository |
1091 |
Distribution: el7 |
Distribution: el7 |