/[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.21 - (hide annotations) (download)
Thu Jun 23 02:17:54 2022 UTC (2 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-40
Changes since 1.20: +110 -2 lines
* Wed Jun 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-40.sme
- add mongodb repos [SME: 11905]
- add onlyoffice repo [SME: 12078]
- add nginx repo [SME: 12079]

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

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