/[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.23 - (hide annotations) (download)
Mon Sep 4 14:47:22 2023 UTC (14 months, 2 weeks ago) by jcrisp
Branch: MAIN
Changes since 1.22: +1 -1 lines
* Wed Jul 26 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-41.sme
- fix issues with libreswan repo [SME: 12389]
- Remove old mongodb repos prior to 4.0

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

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