/[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.25 - (hide annotations) (download)
Sat Oct 28 03:07:05 2023 UTC (12 months, 4 weeks ago) by jpp
Branch: MAIN
Changes since 1.24: +83 -4 lines
* Fri Oct 27 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-43.sme
- add new elastic repos [SME: 12422]
- add wandisco distribution of git [SME: 12345]
- add priority to centos sclo [SME: 12278]
- add lemonldap 1.4 1.9 and 2.0 on top of stable (2.0) [SME: 12143]

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

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