/[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.12 - (hide annotations) (download)
Wed Jun 30 17:15:21 2021 UTC (2 years, 11 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-32
Changes since 1.11: +7 -3 lines
* Wed Jun 30 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-32.sme
- Requires e-smith >= 10
- exclude pwauh from EPEL [SME: 11639]

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

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