/[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.24 - (hide annotations) (download)
Mon Sep 4 14:55:43 2023 UTC (8 months, 4 weeks ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-42
Changes since 1.23: +4 -1 lines
* Mon Sep 04 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-42.sme
- Fix the error in the spec file [SME: 12389]

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

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