/[smecontribs]/rpms/smeserver-extrarepositories/contribs10/smeserver-extrarepositories.spec
ViewVC logotype

Annotation of /rpms/smeserver-extrarepositories/contribs10/smeserver-extrarepositories.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (hide annotations) (download)
Sun May 2 13:04:29 2021 UTC (3 years, 1 month ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-31
Changes since 1.10: +5 -2 lines
Add perl-JSON include to Openfusion

1 brianr 1.1 %define name smeserver-extrarepositories
2     %define version 0.1
3 jcrisp 1.11 %define release 31
4 brianr 1.1 Summary: easy configuration of extra yum repo
5     Name: %{name}
6     Version: %{version}
7     Release: %{release}
8     License: GNU GPL version 2
9     URL: https://wiki.koozali.org
10     Group: SMEserver/addon
11     BuildRoot: /var/tmp/%{name}-%{version}
12     BuildArchitectures: noarch
13     BuildRequires: e-smith-devtools
14     Requires: e-smith-release >= 9.0
15     AutoReqProv: no
16    
17     %description
18     Provides configuration for external yum repository comaptible with Koozali SME Server.
19    
20     %changelog
21 jcrisp 1.11 * Sun May 02 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-31.sme
22     - add perl-JSON to openfusion [SME: 11579]
23    
24 jpp 1.10 * Thu Mar 25 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-30.sme
25     - fix zabbix key
26     - fix update event for packages with multiple repo
27    
28 jpp 1.9 * Thu Mar 25 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-29.sme
29     - add new zabbix version
30    
31 jpp 1.8 * Mon Mar 22 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-28.sme
32     - add extra packages from openfusion [SME: 11223]
33     - fix wrong event for remi-unsafe [SME: 11181]
34     - add repo for postgsql
35     - remove digium asterisk repo for SME10 [SME: 11482]
36     - remove geekery repo [SME: 11483]
37    
38 jcrisp 1.7 * Mon Dec 21 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-27.sme
39     - Add perl-Disk-Free and perl-Type-Tiny to Migrate script [SME: 11024]
40    
41     * Mon Dec 21 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-26.sme
42 jcrisp 1.6 - Add perl-Disk-Free for smeserver-affa [SME: 11024]
43    
44 jcrisp 1.7 * Wed Dec 02 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-25.sme
45 jcrisp 1.6 - add extar packages from Openfusion for NextCloud [SME: 11223]
46     - perl-Array-Compare perl-Type-Tiny perl-Exporter-Tiny
47    
48 jpp 1.5 * Tue Nov 17 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-24.sme
49 jpp 1.4 - add event on update to avoid reboot [SME: 11181]
50     - remove remi-safe as it is now in core rpm [SME: 11182]
51 jpp 1.3
52 brianr 1.2 * Tue Oct 27 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-22.sme
53     - Initial import to SME10 tree [SME: 11057]
54    
55 brianr 1.1 * Sat Mar 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-21.sme
56     - update zabbix repo [SME: 10900]
57     - add Springdale / PUIAS repo [SME: 10673]
58    
59     * Sun Jan 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-20.sme
60     - add node repos [SME: 10727]
61    
62     * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-19.sme
63     - improve zmrepo migrate fragment to avoid action if not needed.
64     - migrate fragment for openfusion
65    
66     * Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-18.sme
67     - remove perl-version from pkg lists
68    
69     * Fri Jan 04 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-17.sme
70     - revised Include and Exclude to prevident accidental update
71     - updated incorrect changelog dates
72    
73     * Thu Jan 03 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-16.sme
74     - Add more Excludes to Openfusion
75    
76     * Tue Jan 01 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-15.sme
77     - Exclude mod_perl and other files from OpenFusion repo
78    
79     * Sat Dec 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-14.sme
80     - fix typo in asterisk-current
81     - fix typo in migrate fragment for zmrepo
82     - renamed digium as digium-current
83    
84     * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-12.sme
85     - zoneminder needs ffmpeg from zmrepo [SME: 10539]
86    
87     * Fri Dec 28 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-11.sme
88     - zmrepo url has changed [SME: 10675]
89    
90     * Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-7.sme
91     - Add libreswan repo [SME: 10605]
92     - remove duplicate remi-safe entry
93    
94     * Mon Jun 25 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-6.sme
95     - Update reetp URL [SME: 10604]
96    
97     * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
98     - add elrepo-kernel repo [SME: 10581]
99    
100     * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
101     - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
102     - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
103    
104     * Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme
105     - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
106    
107     * Thu Feb 15 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
108     - first multipackage version
109     - gpg keys not included
110    
111     * Mon May 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-1.sme
112     - initial release
113    
114     %prep
115    
116     %build
117    
118     %install
119     rm -rf $RPM_BUILD_ROOT
120     # if needing to add a gpg key
121     mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
122    
123     # if needing to add a gpg key
124     #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
125     #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}
126    
127     # if needing to migrate something :
128     #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
129     #echo "" >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/00REPONAMEmigrate
130    
131     # if needed to force something
132     #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/force/${REPO['reponame']}
133     #echo "${REPO['Exclude']}" >\
134     # $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/force/${REPO['reponame']}/Exclude
135    
136    
137    
138     declare -A REPO
139    
140     function createrepo {
141     mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}
142     echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups
143     echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck
144     echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name
145     echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible
146     echo "${REPO['status']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status
147     echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type
148 jpp 1.10
149     mkdir -p $RPM_BUILD_ROOT/etc/e-smith/events/smeserver-extrarepositories-${REPO['pkgname']}-update/templates2expand/etc/yum.smerepos.d/
150     touch $RPM_BUILD_ROOT/etc/e-smith/events/smeserver-extrarepositories-${REPO['pkgname']}-update/templates2expand/etc/yum.smerepos.d/sme-base.repo
151 jpp 1.3
152 brianr 1.1 [[ "${REPO['BaseURL']}" != '' ]] && echo "${REPO['BaseURL']}" >\
153     $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL
154     [[ "${REPO['GPGKey']}" != '' ]] && echo "${REPO['GPGKey']}" >\
155     $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey
156     [[ "${REPO['MirrorList']}" != '' ]] && echo "${REPO['MirrorList']}" >\
157     $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList
158     [[ "${REPO['Exclude']}" != '' ]] && echo "${REPO['Exclude']}" >\
159     $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude
160     [[ "${REPO['IncludePkgs']}" != '' ]] && echo "${REPO['IncludePkgs']}" >\
161     $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/IncludePkgs
162     return 0
163     }
164    
165    
166    
167     #####################
168     #####################
169     #atomic
170     #####################
171     #####################
172     REPO['reponame']='atomic'
173 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
174 brianr 1.1 REPO['fullreponame']='Atomic'
175     REPO['EnableGroups']='no'
176     REPO['Visible']='no'
177     REPO['status']='disabled'
178     REPO['BaseURL']=''
179     REPO['MirrorList']='http://www.atomicorp.com/mirrorlist/atomic/centos-$releasever-$basearch'
180     REPO['GPGCheck']='yes'
181     REPO['GPGKey']='https://www.atomicorp.com/RPM-GPG-KEY.art.txt'
182     REPO['Exclude']=''
183     REPO['IncludePkgs']=''
184     createrepo
185    
186     #####################
187     #####################
188     #centos-sclo-centos
189     #####################
190     #####################
191     REPO['reponame']='centos-sclo-centos'
192 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
193 brianr 1.1 REPO['fullreponame']='Centos-RH Software collections'
194     REPO['EnableGroups']='no'
195     REPO['Visible']='yes'
196     REPO['status']='disabled'
197     REPO['BaseURL']='http://mirror.centos.org/centos/$releasever/sclo/$basearch/sclo/'
198     REPO['MirrorList']=''
199     REPO['GPGCheck']='yes'
200     REPO['GPGKey']='https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo'
201     REPO['Exclude']=''
202     REPO['IncludePkgs']=''
203     createrepo
204    
205     #####################
206     #####################
207     #centos-sclo-rh
208     #####################
209     #####################
210     REPO['reponame']='centos-sclo-rh'
211 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
212 brianr 1.1 REPO['fullreponame']='Centos-RH Software collections'
213     REPO['EnableGroups']='no'
214     REPO['Visible']='yes'
215     REPO['status']='disabled'
216     REPO['BaseURL']='http://mirror.centos.org/centos/$releasever/sclo/$basearch/rh/'
217     REPO['MirrorList']=''
218     REPO['GPGCheck']='yes'
219     REPO['GPGKey']='https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo'
220     REPO['Exclude']=''
221     REPO['IncludePkgs']=''
222     createrepo
223    
224     #####################
225     #####################
226     #egroupware
227     #####################
228     #####################
229     REPO['reponame']='egroupware'
230 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
231 brianr 1.1 REPO['fullreponame']='server_eGroupWare'
232     REPO['EnableGroups']='no'
233     REPO['Visible']='yes'
234     REPO['status']='disabled'
235     REPO['BaseURL']='http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_$releasever/'
236     REPO['MirrorList']=''
237     REPO['GPGCheck']='yes'
238     REPO['GPGKey']='http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_$releasever/repodata/repomd.xml.key'
239     REPO['Exclude']=''
240     REPO['IncludePkgs']=''
241     createrepo
242    
243     #####################
244     #####################
245     #elastic
246     #####################
247     #####################
248     declare -A elashort=( ['6.x']='6.x' ['5.x']='5.x' ['1.6']='1' )
249     for elasver in "6.x" "5.x" "1.6"; do
250     REPO['reponame']="elastic${elashort[$elasver]}"
251 jpp 1.10 REPO['pkgname']='elastic'
252 brianr 1.1 REPO['fullreponame']="Elasticsearch repository for $elasver packages"
253     REPO['EnableGroups']='yes'
254     REPO['Visible']='yes'
255     REPO['status']='disabled'
256     REPO['BaseURL']="https://artifacts.elastic.co/packages/$elasver/yum"
257     REPO['MirrorList']=''
258     REPO['GPGCheck']='yes'
259     REPO['GPGKey']='https://artifacts.elastic.co/GPG-KEY-elasticsearch'
260     REPO['Exclude']=''
261     REPO['IncludePkgs']=''
262     createrepo
263     done
264    
265     #####################
266     #####################
267     #ELRepo
268     #####################
269     #####################
270     REPO['reponame']='elrepo'
271 jpp 1.10 REPO['pkgname']='elrepo'
272 brianr 1.1 REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository'
273     REPO['EnableGroups']='no'
274     REPO['Visible']='no'
275     REPO['status']='disabled'
276     REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
277     REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
278     REPO['GPGCheck']='yes'
279     REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
280     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'
281     REPO['IncludePkgs']=''
282     createrepo
283    
284     #####################
285     #####################
286     #ELRepo kernel
287     #####################
288     #####################
289     REPO['reponame']='elrepo-kernel'
290 jpp 1.10 REPO['pkgname']='elrepo'
291 brianr 1.1 REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
292     REPO['EnableGroups']='no'
293     REPO['Visible']='no'
294     REPO['status']='disabled'
295     REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
296     REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
297     REPO['GPGCheck']='yes'
298     REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
299     REPO['Exclude']=''
300     REPO['IncludePkgs']=''
301     createrepo
302    
303     #####################
304     #####################
305     #EPEL
306     #####################
307     #####################
308     REPO['reponame']='epel'
309 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
310 brianr 1.1 REPO['fullreponame']='EPEL'
311     REPO['EnableGroups']='no'
312     REPO['Visible']='no'
313     REPO['status']='disabled'
314     REPO['BaseURL']='http://download.fedoraproject.org/pub/epel/$releasever/$basearch'
315     REPO['MirrorList']='http://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch'
316     REPO['GPGCheck']='yes'
317     REPO['GPGKey']='http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'
318     REPO['Exclude']='perl-Razor-Agent'
319     REPO['IncludePkgs']=''
320     createrepo
321    
322     #####################
323     #####################
324     #erlang
325     #####################
326     #####################
327     REPO['reponame']='erlang'
328 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
329 brianr 1.1 REPO['fullreponame']='erlang programming language'
330     REPO['EnableGroups']='no'
331     REPO['Visible']='yes'
332     REPO['status']='disabled'
333     REPO['BaseURL']='http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch'
334     REPO['MirrorList']=''
335     REPO['GPGCheck']='yes'
336     REPO['GPGKey']='http://packages.erlang-solutions.com/rpm/erlang_solutions.asc'
337     REPO['Exclude']=''
338     REPO['IncludePkgs']=''
339     createrepo
340    
341     #####################
342     #####################
343     #freeswitch
344     #####################
345     #####################
346     REPO['reponame']='freeswitch'
347 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
348 brianr 1.1 REPO['fullreponame']='Freeswitch'
349     REPO['EnableGroups']='no'
350     REPO['Visible']='yes'
351     REPO['status']='disabled'
352     REPO['BaseURL']='http://files.freeswitch.org/yum/$releasever/$basearch'
353     REPO['MirrorList']=''
354     REPO['GPGCheck']='yes'
355     REPO['GPGKey']='file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH'
356     REPO['Exclude']=''
357     REPO['IncludePkgs']=''
358     createrepo
359    
360     #####################
361     #####################
362     #firewall Service
363     #####################
364     #####################
365     REPO['reponame']='fws'
366 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
367 brianr 1.1 REPO['fullreponame']='Firewall Services'
368     REPO['EnableGroups']='no'
369     REPO['Visible']='no'
370     REPO['status']='disabled'
371     REPO['BaseURL']='http://repo.firewall-services.com/centos/$releasever'
372     REPO['MirrorList']=''
373     REPO['GPGCheck']='yes'
374     REPO['GPGKey']='http://repo.firewall-services.com/RPM-GPG-KEY'
375     REPO['Exclude']=''
376     REPO['IncludePkgs']=''
377     createrepo
378    
379     #####################
380     #####################
381     #firewall Service testing
382     #####################
383     #####################
384     REPO['reponame']='fws-testing'
385 jpp 1.10 REPO['pkgname']='fws'
386 brianr 1.1 REPO['fullreponame']='Firewall Services testing'
387     REPO['EnableGroups']='no'
388     REPO['Visible']='no'
389     REPO['status']='disabled'
390     REPO['BaseURL']='http://repo.firewall-services.com/centos-testing/$releasever'
391     REPO['MirrorList']=''
392     REPO['GPGCheck']='yes'
393     REPO['GPGKey']='http://repo.firewall-services.com/RPM-GPG-KEY'
394     REPO['Exclude']=''
395     REPO['IncludePkgs']=''
396     createrepo
397    
398     #####################
399     #####################
400     # Libreswan
401     #####################
402     #####################
403     REPO['reponame']='libreswan'
404 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
405 brianr 1.1 REPO['fullreponame']='Libreswan'
406     REPO['EnableGroups']='no'
407     REPO['Visible']='no'
408     REPO['status']='disabled'
409     REPO['BaseURL']='http://download.libreswan.org/binaries/rhel/$releasever/$basearch/'
410     REPO['MirrorList']=''
411     REPO['GPGCheck']='yes'
412     REPO['GPGKey']='http://download.libreswan.org/binaries/RPM-GPG-KEY-libreswan'
413     REPO['Exclude']=''
414     REPO['IncludePkgs']=''
415     createrepo
416    
417    
418     #####################
419     #####################
420     # NodeJS 4
421     #####################
422     #####################
423 jpp 1.8 for nodever in "4" "5" "6" "7" "8" "9" "10" "11"; do
424     REPO['reponame']="node$nodever"
425 jpp 1.10 REPO['pkgname']='node'
426 jpp 1.8 REPO['fullreponame']="NodeJS $nodever"
427 brianr 1.1 REPO['EnableGroups']='no'
428     REPO['Visible']='no'
429     REPO['status']='disabled'
430 jpp 1.8 REPO['BaseURL']='https://rpm.nodesource.com/pub_'.$nodever.'.x/el/$releasever/$basearch/'
431 brianr 1.1 REPO['MirrorList']=''
432     REPO['GPGCheck']='no'
433     REPO['GPGKey']='https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
434     REPO['Exclude']=''
435     REPO['IncludePkgs']=''
436     createrepo
437 jpp 1.8 done
438 brianr 1.1
439    
440     if ( "%{?dist}" == "el7" ); then
441     #####################
442     #####################
443     # Odoo10-nightly
444     #####################
445     #####################
446     REPO['reponame']='odoo10-nightly'
447 jpp 1.10 REPO['pkgname']='odoo'
448 brianr 1.1 REPO['fullreponame']='Odoo 10 Nightly - EL7'
449     REPO['EnableGroups']='no'
450     REPO['Visible']='no'
451     REPO['status']='disabled'
452     REPO['BaseURL']='http://nightly.odoo.com/10.0/nightly/rpm/'
453     REPO['MirrorList']=''
454     REPO['GPGCheck']='yes'
455     REPO['GPGKey']='https://nightly.odoo.com/odoo.key'
456     REPO['Exclude']=''
457     REPO['IncludePkgs']=''
458     createrepo
459    
460     #####################
461     #####################
462     # Odoo9-nightly
463     #####################
464     #####################
465     REPO['reponame']='odoo9-nightly'
466 jpp 1.10 REPO['pkgname']='odoo'
467 brianr 1.1 REPO['fullreponame']='Odoo 9 Nightly - EL7'
468     REPO['EnableGroups']='no'
469     REPO['Visible']='no'
470     REPO['status']='disabled'
471     REPO['BaseURL']='http://nightly.odoo.com/9.0/nightly/rpm/'
472     REPO['MirrorList']=''
473     REPO['GPGCheck']='yes'
474     REPO['GPGKey']='https://nightly.odoo.com/odoo.key'
475     REPO['Exclude']=''
476     REPO['IncludePkgs']=''
477     createrepo
478     fi
479    
480     #####################
481     #####################
482     # Okay
483     #####################
484     #####################
485     REPO['reponame']='okay'
486 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
487 brianr 1.1 REPO['fullreponame']='Extra OKay Packages for Enterprise Linux - Freeswitch and FusionPBX'
488     REPO['EnableGroups']='no'
489     REPO['Visible']='no'
490     REPO['status']='disabled'
491     REPO['BaseURL']='http://repo.okay.com.mx/centos/$releasever/$basearch/release'
492     REPO['MirrorList']=''
493     REPO['GPGCheck']='no'
494     REPO['GPGKey']=''
495     REPO['Exclude']=''
496     REPO['IncludePkgs']=''
497     createrepo
498    
499     #####################
500     #####################
501     # Openfusion
502     #####################
503     #####################
504     REPO['reponame']='openfusion'
505 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
506 brianr 1.1 REPO['fullreponame']='Openfusion'
507     REPO['EnableGroups']='no'
508     REPO['Visible']='yes'
509     REPO['status']='disabled'
510     REPO['BaseURL']='http://repo.openfusion.net/centos$releasever-$basearch'
511     REPO['MirrorList']=''
512     REPO['GPGCheck']='yes'
513     REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion'
514 jcrisp 1.7 REPO['Exclude']='perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-ExtUtils-Install,perl-parent'
515 jcrisp 1.11 REPO['IncludePkgs']='perl-Algorithm-C3,perl-App-cpanminus,perl-B-Hooks-EndOfScope,perl-B-Hooks-OP-Check,perl-CPAN-Metanoarch,perl-Carp,perl-Class-C3,perl-Class-Load,perl-Class-Load-XS,perl-Class-Method-Modifiers,perl-Class-Singleton,perl-Class-XSAccessor,perl-Clone-PP,perl-Data-Dumper-Concise,perl-Data-IEEE754,perl-Data-OptList,perl-Data-Printer,perl-Data-Validate-IP,perl-DateTime,perl-DateTime-Locale,perl-DateTime-TimeZone,perl-Devel-GlobalDestruction,perl-Dist-CheckConflicts,perl-Eval-Closure,perl-Exporter-Tiny,perl-ExtUtils-CBuilder,perl-ExtUtils-Install,perl-ExtUtils-Manifest,perl-File-HomeDir,perl-File-Which,perl-GeoIP2,perl-Hash-FieldHash,perl-IPC-Cmd,perl-Lexical-SealRequireHints,perl-List-AllUtils,perl-Locale-Maketext-Simple,perl-MRO-Compat,perl-Math-Int128,perl-Math-Int64,perl-MaxMind-DB-Common,perl-MaxMind-DB-Reader,perl-Module-Build,perl-Module-CoreList,perl-Module-Implementation,perl-Module-Load,perl-Module-Load-Conditional,perl-Module-Runtime,perl-Moo,perl-MooX-StrictConstructor,perl-MooX-Types-MooseLike,perl-Moose,perl-Net-Works,perl-Package-DeprecationManager,perl-Package-Stash,perl-Package-Stash-XS,perl-Params-Check,perl-Params-Classify,perl-Params-Validate,perl-Perl-OSType,perl-Role-Tiny,perl-Scalar-List-Utils,perl-Socket,perl-Sort-Naturally,perl-Sub-Exporter,perl-Sub-Exporter-Progressive,perl-Sub-Identify,perl-Sub-Install,perl-Sub-Name,perl-Sub-Quote,perl-Task-Weaken,perl-Term-ANSIColor,perl-Test-Warnings,perl-Throwable,perl-Try-Tiny,perl-Variable-Magic,perl-bareword-filehandles,perl-indirect,perl-multidimensional,perl-namespace-autoclean,perl-namespace-clean,perl-strictures,perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-parent,perl-Array-Compare,perl-Type-Tiny,perl-Filesys-DiskFree,perl-Array-Compare,perl-Type-Tiny,perl-JSON'
516 jpp 1.8 createrepo
517    
518     #####################
519     #####################
520     # Postgresql
521     #####################
522     #####################
523     for pgsqlver in "9.6" "10" "11" "12" "13"; do
524     REPO['reponame']="pgsql$pgsqlver"
525 jpp 1.10 REPO['pkgname']='pgsql'
526 jpp 1.8 REPO['fullreponame']="Postgresql $pgsqlver"
527     REPO['EnableGroups']='no'
528     REPO['Visible']='no'
529     REPO['status']='disabled'
530     REPO['BaseURL']='https://yum.postgresql.org/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'
531     REPO['MirrorList']=''
532     REPO['GPGCheck']='yes'
533     ext=$pgsqlver;
534     [[ "$pgsqlver" == "9.6" ]] && ext="96";
535     REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'.$ext
536     REPO['Exclude']=''
537     REPO['IncludePkgs']=''
538     createrepo
539    
540    
541     REPO['reponame']="pgsql$pgsqlver-nonfree"
542 jpp 1.10 REPO['pkgname']='pgsql'
543 jpp 1.8 REPO['fullreponame']="Postgresql $pgsqlver non free"
544     REPO['EnableGroups']='no'
545     REPO['Visible']='no'
546     REPO['status']='disabled'
547     REPO['BaseURL']='https://download.postgresql.org/pub/repos/yum/non-free/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'
548     REPO['MirrorList']=''
549     REPO['GPGCheck']='yes'
550     ext=$pgsqlver;
551     [[ "$pgsqlver" == "9.6" ]] && ext="96";
552     REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'.$ext
553     REPO['Exclude']=''
554     REPO['IncludePkgs']=''
555     createrepo
556    
557     REPO['reponame']="pgsql$pgsqlver-common"
558 jpp 1.10 REPO['pkgname']='pgsql'
559 jpp 1.8 REPO['fullreponame']="Postgresql $pgsqlver non free"
560     REPO['EnableGroups']='no'
561     REPO['Visible']='no'
562     REPO['status']='disabled'
563     REPO['BaseURL']='https://download.postgresql.org/pub/repos/yum/common/'.$pgsqlver.'/redhat/rhel-$releasever-$basearch/'
564     REPO['MirrorList']=''
565     REPO['GPGCheck']='yes'
566     ext=$pgsqlver;
567     [[ "$pgsqlver" == "9.6" ]] && ext="96";
568     REPO['GPGKey']='https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-'.$ext
569     REPO['Exclude']=''
570     REPO['IncludePkgs']=''
571 brianr 1.1 createrepo
572    
573 jpp 1.8 done
574    
575 brianr 1.1 #####################
576     #####################
577     # Reetspetit
578     #####################
579     #####################
580     REPO['reponame']='reetp'
581 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
582 brianr 1.1 REPO['fullreponame']='Mirror John Crisp reetspetit.com'
583     REPO['EnableGroups']='no'
584     REPO['Visible']='yes'
585     REPO['status']='disabled'
586     REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever'
587     REPO['MirrorList']=''
588     REPO['GPGCheck']='no'
589     REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY'
590     REPO['Exclude']=''
591     REPO['IncludePkgs']=''
592     createrepo
593    
594     #####################
595     #####################
596     #remi
597     #####################
598     #####################
599     REPO['reponame']='remi'
600 jpp 1.10 REPO['pkgname']='remi-unsafe'
601 brianr 1.1 REPO['fullreponame']='Remi - EL unsafe, will conflict with your base rpms'
602     REPO['EnableGroups']='no'
603     REPO['GPGCheck']='yes'
604     REPO['Visible']='no'
605     REPO['status']='enabled'
606     REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
607     REPO['MirrorList']=''
608     REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
609     REPO['Exclude']='mysql*,php-*,phpMyAdmin'
610     REPO['IncludePkgs']=''
611     createrepo
612    
613     #####################
614     #####################
615     #remi-ocsinventory
616     #####################
617     #####################
618     REPO['reponame']='remi-ocsinventory'
619 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
620 brianr 1.1 REPO['fullreponame']='Remi ocsinventory - EL'
621     REPO['EnableGroups']='no'
622     REPO['GPGCheck']='yes'
623     REPO['Visible']='yes'
624     REPO['status']='enabled'
625     REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
626     REPO['MirrorList']=''
627     REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
628     REPO['Exclude']=''
629     REPO['IncludePkgs']='ocsinventory* perl-Ocsinventory-Agent'
630     createrepo
631    
632     #####################
633     #####################
634     #remi-ocsinventory
635     #####################
636     #####################
637     REPO['reponame']='remi-roundcube'
638 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
639 brianr 1.1 REPO['fullreponame']='Remi Roundcube - EL'
640     REPO['EnableGroups']='no'
641     REPO['GPGCheck']='yes'
642     REPO['Visible']='yes'
643     REPO['status']='enabled'
644     REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
645     REPO['MirrorList']=''
646     REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
647     REPO['Exclude']=''
648     REPO['IncludePkgs']='php-kolab-net-ldap3,php-pear-Mail-mimeDecode,php-pear-Net-IDNA2,php-pear-Net-LDAP2,roundcubemail'
649     createrepo
650    
651    
652     #####################
653     #####################
654     #rpmfusion
655     #####################
656     #####################
657     REPO['reponame']='rpmfusion'
658 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
659 brianr 1.1 REPO['fullreponame']='rpmfusion free EL'
660     REPO['EnableGroups']='no'
661     REPO['Visible']='yes'
662     REPO['status']='disabled'
663     REPO['BaseURL']='http://download1.rpmfusion.org/free/el/updates/$releasever/$basearch/'
664     REPO['MirrorList']='http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-$releasever&arch=$basearch'
665     REPO['GPGCheck']='yes'
666     REPO['GPGKey']='https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-el-$releasever'
667     REPO['Exclude']=''
668     REPO['IncludePkgs']=''
669     createrepo
670    
671     #####################
672     #####################
673     #rpmfusion
674     #####################
675     #####################
676     REPO['reponame']='rpmfusion-nonfree'
677 jpp 1.10 REPO['pkgname']='rpmfusion'
678 brianr 1.1 REPO['fullreponame']='rpmfusion nonfree EL'
679     REPO['EnableGroups']='no'
680     REPO['Visible']='yes'
681     REPO['status']='disabled'
682     REPO['BaseURL']='http://download1.rpmfusion.org/nonfree/el/updates/$releasever/$basearch/'
683     REPO['MirrorList']='http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-el-updates-released-$releasever&arch=$basearch'
684     REPO['GPGCheck']='yes'
685     REPO['GPGKey']='https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-el-$releasever'
686     REPO['Exclude']=''
687     REPO['IncludePkgs']=''
688     createrepo
689    
690     #####################
691     #####################
692     #Sogo nightly
693     #####################
694     #####################
695     REPO['reponame']='sogo'
696 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
697 brianr 1.1 REPO['fullreponame']='Inverse SOGo 2 Repository'
698     REPO['EnableGroups']='no'
699     REPO['Visible']='yes'
700     REPO['status']='disabled'
701     REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/2/rhel/$releasever/$basearch'
702     REPO['MirrorList']=''
703     REPO['GPGCheck']='no'
704     REPO['GPGKey']=''
705     REPO['Exclude']=''
706     REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
707     createrepo
708    
709     #####################
710     #####################
711     #Sogo3 nightly
712     #####################
713     #####################
714     REPO['reponame']='sogo3'
715 jpp 1.10 REPO['pkgname']='sogo'
716 brianr 1.1 REPO['fullreponame']='Inverse SOGo 3 Repository'
717     REPO['EnableGroups']='no'
718     REPO['Visible']='yes'
719     REPO['status']='disabled'
720     REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/3/rhel/$releasever/$basearch'
721     REPO['MirrorList']=''
722     REPO['GPGCheck']='no'
723     REPO['GPGKey']=''
724     REPO['Exclude']=''
725     REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
726     createrepo
727    
728     #####################
729     #####################
730     #Sogo4 nightly
731     #####################
732     #####################
733     REPO['reponame']='sogo4'
734 jpp 1.10 REPO['pkgname']='sogo'
735 brianr 1.1 REPO['fullreponame']='Inverse SOGo 4 Repository'
736     REPO['EnableGroups']='no'
737     REPO['Visible']='yes'
738     REPO['status']='disabled'
739     REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch'
740     REPO['MirrorList']=''
741     REPO['GPGCheck']='no'
742     REPO['GPGKey']=''
743     REPO['Exclude']=''
744     REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
745     createrepo
746    
747     #####################
748     #####################
749     #Sogo stable
750     #####################
751     #####################
752     REPO['reponame']='sogo-subscription'
753 jpp 1.10 REPO['pkgname']='sogo'
754 brianr 1.1 REPO['fullreponame']='Inverse SOGo Repository only with subscription'
755     REPO['EnableGroups']='no'
756     REPO['Visible']='yes'
757     REPO['status']='disabled'
758     REPO['BaseURL']='http://packages.inverse.ca/download/SOGo/RHEL$releasever/$basearch'
759     REPO['MirrorList']=''
760     REPO['GPGCheck']='no'
761     REPO['GPGKey']=''
762     REPO['Exclude']=''
763     REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
764     createrepo
765    
766     #####################
767     #####################
768     #Spectrum2
769     #####################
770     #####################
771     REPO['reponame']='spectrum2'
772 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
773 brianr 1.1 REPO['fullreponame']='Spectrum2'
774     REPO['EnableGroups']='no'
775     REPO['Visible']='yes'
776     REPO['status']='disabled'
777     REPO['BaseURL']='http://copr-be.cloud.fedoraproject.org/results/mcepl/spectrum2/epel-$releasever-$basearch'
778     REPO['MirrorList']=''
779     REPO['GPGCheck']='no'
780     REPO['GPGKey']=''
781     REPO['Exclude']=''
782     REPO['IncludePkgs']=''
783     createrepo
784    
785     #####################
786     #####################
787     #Springdale
788     #####################
789     #####################
790     REPO['reponame']='springdale-core'
791 jpp 1.10 REPO['pkgname']='springdale'
792 brianr 1.1 REPO['fullreponame']='PUIAS core Base'
793     REPO['EnableGroups']='no'
794     REPO['Visible']='yes'
795     REPO['status']='disabled'
796     REPO['BaseURL']=''
797     REPO['MirrorList']='http://puias.math.ias.edu/data/puias/$releasever/$basearch/os/mirrorlist'
798     REPO['GPGCheck']='yes'
799     REPO['GPGKey']='http://puias.princeton.edu/data/puias/$releasever/$basearch/os/RPM-GPG-KEY-puias'
800     REPO['Exclude']=''
801     REPO['IncludePkgs']=''
802     createrepo
803    
804     REPO['reponame']='springdale-updates'
805 jpp 1.10 REPO['pkgname']='springdale'
806 brianr 1.1 REPO['fullreponame']='PUIAS core Updates'
807     REPO['EnableGroups']='no'
808     REPO['Visible']='yes'
809     REPO['status']='disabled'
810     REPO['BaseURL']=''
811     REPO['MirrorList']='http://puias.math.ias.edu/data/puias/updates/$releasever/$basearch/en/os/mirrorlist'
812     REPO['GPGCheck']='yes'
813     REPO['GPGKey']='http://puias.princeton.edu/data/puias/$releasever/updates/$basearch/en/os/RPM-GPG-KEY-puias'
814     REPO['Exclude']=''
815     REPO['IncludePkgs']=''
816     createrepo
817    
818     REPO['reponame']='springdale-addons'
819 jpp 1.10 REPO['pkgname']='springdale'
820 brianr 1.1 REPO['fullreponame']='PUIAS Addons'
821     REPO['EnableGroups']='no'
822     REPO['Visible']='yes'
823     REPO['status']='disabled'
824     REPO['BaseURL']=''
825     REPO['MirrorList']='http://puias.math.ias.edu/data/puias/$releasever/$basearch/os/Addons/mirrorlist'
826     REPO['GPGCheck']='yes'
827     REPO['GPGKey']='http://puias.princeton.edu/data/puias/$releasever/$basearch/os/RPM-GPG-KEY-puias'
828     REPO['Exclude']=''
829     REPO['IncludePkgs']=''
830     createrepo
831    
832     REPO['reponame']='springdale-addons-updates'
833 jpp 1.10 REPO['pkgname']='springdale'
834 brianr 1.1 REPO['fullreponame']='PUIAS Addons Updates'
835     REPO['EnableGroups']='no'
836     REPO['Visible']='yes'
837     REPO['status']='disabled'
838     REPO['BaseURL']=''
839     REPO['MirrorList']='http://puias.math.ias.edu/data/puias/updates/Addons/$releasever/$basearch/mirrorlist'
840     REPO['GPGCheck']='yes'
841     REPO['GPGKey']='http://puias.princeton.edu/data/puias/$releasever/$basearch/os/RPM-GPG-KEY-puias'
842     REPO['Exclude']=''
843     REPO['IncludePkgs']=''
844     createrepo
845    
846    
847     REPO['reponame']='springdale-unsupported'
848 jpp 1.10 REPO['pkgname']='springdale'
849 brianr 1.1 REPO['fullreponame']='PUIAS Unsupported'
850     REPO['EnableGroups']='no'
851     REPO['Visible']='yes'
852     REPO['status']='disabled'
853     REPO['BaseURL']=''
854     REPO['MirrorList']='http://puias.math.ias.edu/data/puias/unsupported/$releasever/$basearch/mirrorlist'
855     REPO['GPGCheck']='yes'
856     REPO['GPGKey']='http://puias.princeton.edu/data/puias/$releasever/$basearch/os/RPM-GPG-KEY-puias'
857     REPO['Exclude']=''
858     REPO['IncludePkgs']=''
859     createrepo
860    
861     REPO['reponame']='springdale-computational'
862 jpp 1.10 REPO['pkgname']='springdale'
863 brianr 1.1 REPO['fullreponame']='PUIAS Computational'
864     REPO['EnableGroups']='no'
865     REPO['Visible']='yes'
866     REPO['status']='disabled'
867     REPO['BaseURL']=''
868     REPO['MirrorList']='http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch/mirrorlist'
869     REPO['GPGCheck']='yes'
870     REPO['GPGKey']='http://puias.princeton.edu/data/puias/$releasever/$basearch/os/RPM-GPG-KEY-puias'
871     REPO['Exclude']=''
872     REPO['IncludePkgs']=''
873     createrepo
874    
875    
876    
877    
878     #####################
879     #####################
880     #stephDL
881     #####################
882     #####################
883     REPO['reponame']='stephdl'
884 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
885 brianr 1.1 REPO['fullreponame']='Mirror Stephane de Labrusse'
886     REPO['EnableGroups']='no'
887     REPO['Visible']='yes'
888     REPO['status']='disabled'
889     REPO['BaseURL']='http://mirror.de-labrusse.fr/smeserver/$releasever'
890     REPO['MirrorList']=''
891     REPO['GPGCheck']='yes'
892     REPO['GPGKey']='http://mirror.de-labrusse.fr/RPM-GPG-KEY'
893     REPO['Exclude']=''
894     REPO['IncludePkgs']=''
895     createrepo
896    
897     #####################
898     #####################
899     #VirtualBox
900     #####################
901     #####################
902     REPO['reponame']='virtualbox'
903 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
904 brianr 1.1 REPO['fullreponame']='RHEL/CentOS VirtualBox'
905     REPO['EnableGroups']='no'
906     REPO['Visible']='yes'
907     REPO['status']='disabled'
908     REPO['BaseURL']='http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch'
909     REPO['MirrorList']=''
910     REPO['GPGCheck']='yes'
911     REPO['GPGKey']='https://www.virtualbox.org/download/oracle_vbox.asc'
912     REPO['Exclude']=''
913     REPO['IncludePkgs']=''
914     createrepo
915    
916     #####################
917     #####################
918     #Webtatic
919     #####################
920     #####################
921     REPO['reponame']='webtatic'
922 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
923 brianr 1.1 REPO['fullreponame']='webtatic - EL'
924     REPO['EnableGroups']='no'
925     REPO['Visible']='yes'
926     REPO['status']='disabled'
927     REPO['BaseURL']=''
928     REPO['MirrorList']='http://mirror.webtatic.com/yum/el-$releasever/$basearch/mirrolist'
929     REPO['GPGCheck']='yes'
930     if ( "%{?dist}" == "el5" ); then
931     REPO['GPGKey']='http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy'
932     else
933     REPO['GPGKey']="http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-%{?dist}"
934     fi
935     REPO['Exclude']=''
936     REPO['IncludePkgs']=''
937     createrepo
938    
939     #####################
940     #####################
941     #Xymon
942     #####################
943     #####################
944     REPO['reponame']='xymon'
945 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
946 brianr 1.1 REPO['fullreponame']='Xymon Terabithia RPMS - EL'
947     REPO['EnableGroups']='no'
948     REPO['Visible']='yes'
949     REPO['status']='disabled'
950     REPO['BaseURL']='http://terabithia.org/rpms/xymon/el$releasever/'
951     REPO['MirrorList']=''
952     REPO['GPGCheck']='yes'
953     REPO['GPGKey']="http://terabithia.org/rpms/RPM-GPG-KEY-JCLEAVER"
954     REPO['Exclude']=''
955     REPO['IncludePkgs']=''
956     createrepo
957    
958     #####################
959     #####################
960     #Zabbix2.4
961     #####################
962     #####################
963 jpp 1.9 declare -A zabshort=( ['1.8']='18' ['2.0']='20' ['2.0']='20' ['2.4']='24' ['3.0']='30' ['3.2']='32' ['3.4']='34' ['4.0']='40' ['4.2']='42' ['4.4']='44' ['4.5']='45' ['5.0']='50' ['5.1']='51' ['5.2']='52' ['5.3']='53')
964     for elasver in "4.2" "4.4" '4.5' '5.0' '5.1' '5.2' '5.3'; do
965 brianr 1.1 REPO['reponame']="zabbix${zabshort[$elasver]}"
966 jpp 1.10 REPO['pkgname']='zabbix'
967 brianr 1.1 REPO['fullreponame']="Zabbix $elasver Official Repository"
968     REPO['EnableGroups']='no'
969     REPO['Visible']='yes'
970     REPO['status']='disabled'
971     REPO['BaseURL']="http://repo.zabbix.com/zabbix/$elasver/rhel/\$releasever/\$basearch/"
972     REPO['MirrorList']=''
973     REPO['GPGCheck']='yes'
974 jpp 1.10 REPO['GPGKey']="http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-A14FE591"
975 brianr 1.1 REPO['Exclude']=''
976     REPO['IncludePkgs']=''
977     createrepo
978     done
979    
980     #####################
981     #####################
982     #zmrepo
983     #####################
984     #####################
985     REPO['reponame']='zmrepo'
986 jpp 1.10 REPO['pkgname']=${REPO['reponame']}
987 brianr 1.1 REPO['fullreponame']='ZoneMinder Repo - EL'
988     REPO['EnableGroups']='no'
989     REPO['Visible']='yes'
990     REPO['status']='disabled'
991     REPO['BaseURL']='http://zmrepo.zoneminder.com/el/$releasever/$basearch'
992     REPO['MirrorList']=''
993     REPO['GPGCheck']='no'
994     REPO['GPGKey']=""
995     REPO['Exclude']=''
996     REPO['IncludePkgs']=''
997     createrepo
998    
999    
1000     #####################################################
1001     # migrates
1002     ######################################################
1003     mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
1004     cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
1005     {
1006     my @add = split(/[,; ]+/, 'gnustep-*');
1007     my %remove = map { $_ => 1 } split(/[,; ]+/, '');
1008    
1009     for my $name ( qw(epel) )
1010     {
1011     my $repo = $DB->get($name) or next;
1012    
1013     my @exclude = split(/,/, $repo->prop('Exclude') || '');
1014     push @exclude, @add;
1015     @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
1016    
1017     # remove duplicates
1018     undef %saw;
1019     @exclude = grep(!$saw{$_}++, @exclude);
1020    
1021     if ($#exclude >= 0)
1022     {
1023     $repo->set_prop('Exclude', join(',', @exclude));
1024     }
1025     else
1026     {
1027     $repo->delete('Exclude');
1028     }
1029     }
1030     }
1031    
1032     EOF
1033    
1034    
1035     cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
1036     {
1037     my @add = split(/[,; ]+/, '');
1038     my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
1039    
1040     for my $name ( qw(epel) )
1041     {
1042     my $repo = $DB->get($name) or next;
1043    
1044     my @exclude = split(/,/, $repo->prop('Exclude') || '');
1045     push @exclude, @add;
1046     @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
1047    
1048     # remove duplicates
1049     undef %saw;
1050     @exclude = grep(!$saw{$_}++, @exclude);
1051    
1052     if ($#exclude >= 0)
1053     {
1054     $repo->set_prop('Exclude', join(',', @exclude));
1055     }
1056     else
1057     {
1058     $repo->delete('Exclude');
1059     }
1060     }
1061     }
1062    
1063     EOF
1064    
1065     cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10zmrepo
1066     {
1067     for my $name ( qw(zmrepo) )
1068     {
1069     my $repo = $DB->get($name) or next;
1070     my $BaseURL = $repo->prop('BaseURL') || '';
1071     if ($BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g)
1072     {$repo->set_prop('BaseURL', $BaseURL);}
1073     $repo->delete('Exclude') if $repo->prop('delete');
1074     }
1075    
1076     }
1077    
1078     EOF
1079    
1080    
1081     cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10openfusion
1082     {
1083 jcrisp 1.7 my @addexclude = split(/,/,"perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-ExtUtils-Install,perl-parent");
1084 brianr 1.1 my %removeexclude = map { $_ => 1 } split(/[,; ]+/, 'perl-version');
1085 jpp 1.8 my @addinclude = split(/,/,"perl-Algorithm-C3,perl-App-cpanminus,perl-B-Hooks-EndOfScope,perl-B-Hooks-OP-Check,perl-CPAN-Metanoarch,perl-Carp,perl-Class-C3,perl-Class-Load,perl-Class-Load-XS,perl-Class-Method-Modifiers,perl-Class-Singleton,perl-Class-XSAccessor,perl-Clone-PP,perl-Data-Dumper-Concise,perl-Data-IEEE754,perl-Data-OptList,perl-Data-Printer,perl-Data-Validate-IP,perl-DateTime,perl-DateTime-Locale,perl-DateTime-TimeZone,perl-Devel-GlobalDestruction,perl-Dist-CheckConflicts,perl-Eval-Closure,perl-Exporter-Tiny,perl-ExtUtils-CBuilder,perl-ExtUtils-Install,perl-ExtUtils-Manifest,perl-File-HomeDir,perl-File-Which,perl-GeoIP2,perl-Hash-FieldHash,perl-IPC-Cmd,perl-Lexical-SealRequireHints,perl-List-AllUtils,perl-Locale-Maketext-Simple,perl-MRO-Compat,perl-Math-Int128,perl-Math-Int64,perl-MaxMind-DB-Common,perl-MaxMind-DB-Reader,perl-Module-Build,perl-Module-CoreList,perl-Module-Implementation,perl-Module-Load,perl-Module-Load-Conditional,perl-Module-Runtime,perl-Moo,perl-MooX-StrictConstructor,perl-MooX-Types-MooseLike,perl-Moose,perl-Net-Works,perl-Package-DeprecationManager,perl-Package-Stash,perl-Package-Stash-XS,perl-Params-Check,perl-Params-Classify,perl-Params-Validate,perl-Perl-OSType,perl-Role-Tiny,perl-Scalar-List-Utils,perl-Socket,perl-Sort-Naturally,perl-Sub-Exporter,perl-Sub-Exporter-Progressive,perl-Sub-Identify,perl-Sub-Install,perl-Sub-Name,perl-Sub-Quote,perl-Task-Weaken,perl-Term-ANSIColor,perl-Test-Warnings,perl-Throwable,perl-Try-Tiny,perl-Variable-Magic,perl-bareword-filehandles,perl-indirect,perl-multidimensional,perl-namespace-autoclean,perl-namespace-clean,perl-strictures,perl-Devel-StackTrace,perl-ExtUtils-MakeMaker,perl-List-MoreUtils,perl-parent,perl-Array-Compare,perl-Type-Tiny,perl-Filesys-DiskFree,perl-Array-Compare,perl-Type-Tiny");
1086 jcrisp 1.7
1087 brianr 1.1 my %removeinclude = map { $_ => 1 } split(/[,; ]+/, '');
1088    
1089     for my $name ( qw(openfusion) )
1090     {
1091     my $repo = $DB->get($name) or next;
1092    
1093     my @exclude = split(/,/, $repo->prop('Exclude') || '');
1094     push @exclude, @addexclude;
1095     @exclude = grep(!defined $removeexclude{$_} , @exclude);
1096     # remove duplicates
1097     undef %saw;
1098     @exclude = grep(!$saw{$_}++, @exclude);
1099     if ($#exclude >= 0)
1100     {
1101     $repo->set_prop('Exclude', join(',', @exclude));
1102     }
1103     else
1104     {
1105     $repo->delete('Exclude');
1106     }
1107    
1108     my @include = split(/,/, $repo->prop('IncludePkgs') || '');
1109     push @include, @addinclude;
1110     @include = grep(!defined $removeinclude{$_} , @include);
1111     # remove duplicates
1112     undef %saw;
1113     @include = grep(!$saw{$_}++, @include);
1114     if ($#include >= 0)
1115     {
1116     $repo->set_prop('IncludePkgs', join(',', @include));
1117     }
1118     else
1119     {
1120     $repo->delete('IncludePkgs');
1121     }
1122    
1123    
1124    
1125     }
1126    
1127     }
1128    
1129     EOF
1130    
1131    
1132    
1133    
1134     ##########################################################
1135    
1136     rm -f %{name}-%{version}-filelist*
1137     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
1138     cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic
1139     cat %{name}-%{version}-filelist| grep centos-sclo > %{name}-%{version}-filelist-centos-sclo
1140     cat %{name}-%{version}-filelist| grep egroupware > %{name}-%{version}-filelist-egroupware
1141     cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic
1142     cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo
1143     cat %{name}-%{version}-filelist| grep epel > %{name}-%{version}-filelist-epel
1144     cat %{name}-%{version}-filelist| grep erlang > %{name}-%{version}-filelist-erlang
1145     cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch
1146     cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws
1147     cat %{name}-%{version}-filelist| grep libreswan > %{name}-%{version}-filelist-libreswan
1148     if ( "%{?dist}" == "el7" ); then
1149     cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo
1150     fi
1151     cat %{name}-%{version}-filelist| grep okay > %{name}-%{version}-filelist-okay
1152     cat %{name}-%{version}-filelist| grep openfusion > %{name}-%{version}-filelist-openfusion
1153     cat %{name}-%{version}-filelist| grep node > %{name}-%{version}-filelist-node
1154     cat %{name}-%{version}-filelist| grep reetp > %{name}-%{version}-filelist-reetp
1155     cat %{name}-%{version}-filelist| grep remi-ocsinventory > %{name}-%{version}-filelist-remi-ocsinventory
1156     cat %{name}-%{version}-filelist| grep remi-roundcube > %{name}-%{version}-filelist-remi-roundcube
1157 jpp 1.8 cat %{name}-%{version}-filelist| grep remi|egrep -v 'ocsinventory|roundcube' > %{name}-%{version}-filelist-remi
1158 brianr 1.1 cat %{name}-%{version}-filelist| grep rpmfusion > %{name}-%{version}-filelist-rpmfusion
1159     cat %{name}-%{version}-filelist| grep sogo > %{name}-%{version}-filelist-sogo
1160     cat %{name}-%{version}-filelist| grep spectrum2 > %{name}-%{version}-filelist-spectrum2
1161     cat %{name}-%{version}-filelist| grep springdale > %{name}-%{version}-filelist-springdale
1162     cat %{name}-%{version}-filelist| grep stephdl > %{name}-%{version}-filelist-stephdl
1163     cat %{name}-%{version}-filelist| grep virtualbox > %{name}-%{version}-filelist-virtualbox
1164     cat %{name}-%{version}-filelist| grep webtatic > %{name}-%{version}-filelist-webtatic
1165     cat %{name}-%{version}-filelist| grep xymon > %{name}-%{version}-filelist-xymon
1166     cat %{name}-%{version}-filelist| grep zabbix > %{name}-%{version}-filelist-zabbix
1167     cat %{name}-%{version}-filelist| grep zmrepo > %{name}-%{version}-filelist-zmrepo
1168 jpp 1.8 cat %{name}-%{version}-filelist| grep pgsql > %{name}-%{version}-filelist-pgsql
1169 brianr 1.1 %clean
1170     cd ..
1171     rm -rf %{name}-%{version}
1172    
1173    
1174     #%files -f %{name}-%{version}-filelist
1175     %files
1176     %defattr(-,root,root)
1177    
1178     %pre
1179    
1180     %preun
1181    
1182     %post
1183    
1184     %postun
1185     case "$1" in
1186    
1187     0)
1188     # this is an uninstallation
1189     ;;
1190    
1191     1)
1192     # this is an upgrade
1193     ;;
1194     esac
1195     %package atomic
1196     Summary: Atomic Repository
1197     %description atomic
1198     Atomic Repository
1199     %files atomic -f %{name}-%{version}-filelist-atomic
1200     %defattr(-,root,root)
1201    
1202     %package centos-sclo
1203     Summary: CentOS Red-Hat software collection repository
1204     %description centos-sclo
1205     CentOS Red-Hat software collection repository only for x86_64 arch
1206     %files centos-sclo -f %{name}-%{version}-filelist-centos-sclo
1207     %defattr(-,root,root)
1208    
1209     %package egroupware
1210     Summary: Repository for eGroupWare
1211     %description egroupware
1212     Repository for eGroupWare
1213     %files egroupware -f %{name}-%{version}-filelist-egroupware
1214     %defattr(-,root,root)
1215    
1216     %package elastic
1217     Summary: Repositories for elastic search
1218     %description elastic
1219     Repositories for elastic search
1220     %files elastic -f %{name}-%{version}-filelist-elastic
1221     %defattr(-,root,root)
1222    
1223     %package elrepo
1224     Summary: ElRepo.org Community Enterprise Linux Repository
1225     %description elrepo
1226     ElRepo.org Community Enterprise Linux Repository
1227     %files elrepo -f %{name}-%{version}-filelist-elrepo
1228     %defattr(-,root,root)
1229    
1230     %package epel
1231     Summary: Fedora EPEL Repository
1232     %description epel
1233     Fedora EPEL Repository
1234     %files epel -f %{name}-%{version}-filelist-epel
1235     %defattr(-,root,root)
1236    
1237     %package erlang
1238     Summary: Erlang Repository
1239     %description erlang
1240     Erlang is a programming language. It is specifically used for ejabberd.
1241     %files erlang -f %{name}-%{version}-filelist-erlang
1242     %defattr(-,root,root)
1243    
1244     %package freeswitch
1245     Summary: Freeswitch Repository
1246     %description freeswitch
1247     FreeSWITCH is a scalable open source cross-platform telephony platform designed to route and interconnect popular communication protocols using audio, video, text or any other form of media. It was created in 2006 to fill the void left by proprietary commercial solutions. FreeSWITCH also provides a stable telephony platform on which many applications can be developed using a wide range of free tools
1248     %files freeswitch -f %{name}-%{version}-filelist-freeswitch
1249     %defattr(-,root,root)
1250    
1251     %package fws
1252     Summary: Firewall Services repository
1253     %description fws
1254     Firewall Services repository
1255     %files fws -f %{name}-%{version}-filelist-fws
1256     %defattr(-,root,root)
1257    
1258     %package libreswan
1259     Summary: Libreswan Repository
1260     %description libreswan
1261     Libreswan Repository
1262     %files libreswan -f %{name}-%{version}-filelist-libreswan
1263     %defattr(-,root,root)
1264    
1265     %package node
1266     Summary: NodeJS Repositories
1267     %description node
1268     NodeJS Repositories
1269     %files node -f %{name}-%{version}-filelist-node
1270     %defattr(-,root,root)
1271    
1272     %package odoo
1273     Summary: Odoo 10 Nightly - EL7 Repository
1274     Distribution: el7
1275     %description odoo
1276     Odoo 10 Nightly - EL7 Repository
1277     # comment as not available for centos 6 SME9
1278     #%files odoo -f %{name}-%{version}-filelist-odoo
1279     #%defattr(-,root,root)
1280    
1281     %package okay
1282     Summary: Extra OKay Packages for Enterprise Linux
1283     %description okay
1284     Extra OKay Packages for Enterprise Linux - Freeswitch and FusionPBX
1285     %files okay -f %{name}-%{version}-filelist-okay
1286     %defattr(-,root,root)
1287    
1288     %package openfusion
1289     Summary: Openfusion Repository
1290     %description openfusion
1291     Openfusion Repository
1292     %files openfusion -f %{name}-%{version}-filelist-openfusion
1293     %defattr(-,root,root)
1294    
1295 jpp 1.8 %package pgsql
1296     Summary: PostGreSQL Repositories
1297     %description pgsql
1298     PostGreSQL Repositories
1299     %files pgsql -f %{name}-%{version}-filelist-pgsql
1300     %defattr(-,root,root)
1301    
1302 brianr 1.1 %package reetp
1303     Summary: Mirror John Crisp reetspetit.com
1304     %description reetp
1305     Mirror John Crisp reetspetit.com
1306     %files reetp -f %{name}-%{version}-filelist-reetp
1307     %defattr(-,root,root)
1308    
1309     %package remi-ocsinventory
1310     Summary: Remi repository filtered to install OCSinventory
1311     %description remi-ocsinventory
1312     Remi repository filtered to install OCSinventory
1313     %files remi-ocsinventory -f %{name}-%{version}-filelist-remi-ocsinventory
1314     %defattr(-,root,root)
1315    
1316     %package remi-roundcube
1317     Summary: Remi repository filtered to install Roundcube
1318     %description remi-roundcube
1319     Remi repository filtered to install Roundcube
1320     %files remi-roundcube -f %{name}-%{version}-filelist-remi-roundcube
1321     %defattr(-,root,root)
1322    
1323     %package remi-unsafe
1324     Summary: Remi unsafe repository
1325     %description remi-unsafe
1326     Remi unsafe repository. We call it unsafe, not because of the work, but because it can conflict with base rpm of your favorite distro. Use it at your own risk if you are able to handle the situation.
1327     %files remi-unsafe -f %{name}-%{version}-filelist-remi
1328     %defattr(-,root,root)
1329    
1330     %package rpmfusion
1331     Summary: RPMFusion repositories
1332     %description rpmfusion
1333     RPMFusion repositories
1334     %files rpmfusion -f %{name}-%{version}-filelist-rpmfusion
1335     %defattr(-,root,root)
1336    
1337     %package sogo
1338     Summary: SOGo repositories
1339     %description sogo
1340     SOGo repositories
1341     %files sogo -f %{name}-%{version}-filelist-sogo
1342     %defattr(-,root,root)
1343    
1344     %package spectrum2
1345     Summary: Spectrum2 Repository
1346     %description spectrum2
1347     Spectrum2 Repository
1348     %files spectrum2 -f %{name}-%{version}-filelist-spectrum2
1349     %defattr(-,root,root)
1350    
1351     %package springdale
1352     Summary: Springdale PUIAS Linux repos
1353     %description springdale
1354     Springdale PUIAS Linux repos
1355     %files springdale -f %{name}-%{version}-filelist-springdale
1356     %defattr(-,root,root)
1357    
1358     %package stephdl
1359     Summary: Stephane De Labrusse Repository
1360     %description stephdl
1361     Stephane De Labrusse Repository
1362     %files stephdl -f %{name}-%{version}-filelist-stephdl
1363     %defattr(-,root,root)
1364    
1365     %package virtualbox
1366     Summary: Virtualbox Repository
1367     %description virtualbox
1368     Virtualbox Repository
1369     %files virtualbox -f %{name}-%{version}-filelist-virtualbox
1370     %defattr(-,root,root)
1371    
1372     %package webtatic
1373     Summary: Webtatic Repository
1374     %description webtatic
1375     Webtatic Repository
1376     %files webtatic -f %{name}-%{version}-filelist-webtatic
1377     %defattr(-,root,root)
1378    
1379     %package xymon
1380     Summary: Xymon Terabithia Repository
1381     %description xymon
1382     Xymon Terabithia Repository
1383     %files xymon -f %{name}-%{version}-filelist-xymon
1384     %defattr(-,root,root)
1385    
1386     %package zabbix
1387     Summary: Zabbix official Repository
1388     %description zabbix
1389     Zabbix official Repository
1390     %files zabbix -f %{name}-%{version}-filelist-zabbix
1391     %defattr(-,root,root)
1392    
1393     %package zmrepo
1394     Summary: Zone Minder Repository
1395     %description zmrepo
1396     Zone Minder Repository
1397     %files zmrepo -f %{name}-%{version}-filelist-zmrepo
1398     %defattr(-,root,root)
1399    
1400    
1401    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed