/[smecontribs]/rpms/smeserver-extrarepositories/contribs10/smeserver-extrarepositories.spec
ViewVC logotype

Contents of /rpms/smeserver-extrarepositories/contribs10/smeserver-extrarepositories.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.13 - (show annotations) (download)
Wed Jul 7 03:42:23 2021 UTC (3 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-33
Changes since 1.12: +5 -2 lines
* Tue Jul 06 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-33.sme
- add migrate fragment for pwauth in epel [SME: 11639]

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

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