/[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.6 - (hide annotations) (download)
Mon Dec 21 10:38:04 2020 UTC (3 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-26
Changes since 1.5: +10 -3 lines
* Mon Dec 21 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-26
- Add perl-Disk-Free for smeserver-affa [SME: 11024]

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

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