/[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.2 - (hide annotations) (download)
Tue Oct 27 11:30:16 2020 UTC (4 years, 1 month ago) by brianr
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-22
Changes since 1.1: +4 -1 lines
* Tue Oct 27 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-22.sme
- Initial import to SME10 tree [SME: 11057]

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

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