/[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.10 - (hide annotations) (download)
Fri Mar 26 05:52:14 2021 UTC (3 years, 2 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-30
Changes since 1.9: +53 -133 lines
* Thu Mar 25 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-30.sme
- fix zabbix key
- fix update event for packages with multiple repo

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

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