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

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

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


Revision 1.10 - (show annotations) (download)
Wed Oct 10 10:00:57 2018 UTC (6 years, 1 month ago) by jcrisp
Branch: MAIN
Changes since 1.9: +6 -3 lines
Prep for smeserver-docker import

1 %define name smeserver-extrarepositories
2 %define version 0.1
3 %define release 6
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 >= 9.0
15 AutoReqProv: no
16
17 %description
18 Provides configuration for external yum repository comaptible with Koozali SME Server.
19
20 %changelog
21 * Mon Jun 25 2018 John Crisp <jcrisp@safeandsounit.co.uk> 0.1-6.sme
22 - Update reetp URL
23
24 * Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
25 - add elrepo-kernel repo [SME: 10581]
26
27 * Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
28 - exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
29 - add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present
30
31 * Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme
32 - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
33
34 * Thu Feb 15 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
35 - first multipackage version
36 - gpg keys not included
37
38 * Mon May 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-1.sme
39 - initial release
40
41 %prep
42
43 %build
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 # if needing to add a gpg key
48 mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
49
50 # if needing to add a gpg key
51 #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
52 #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}
53
54 # if needing to migrate something :
55 #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
56 #echo "" >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/00REPONAMEmigrate
57
58 # if needed to force something
59 #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/force/${REPO['reponame']}
60 #echo "${REPO['Exclude']}" >\
61 # $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/force/${REPO['reponame']}/Exclude
62
63
64
65 declare -A REPO
66
67 function createrepo {
68 mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}
69 echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups
70 echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck
71 echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name
72 echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible
73 echo "${REPO['status']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status
74 echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type
75 [[ "${REPO['BaseURL']}" != '' ]] && echo "${REPO['BaseURL']}" >\
76 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL
77 [[ "${REPO['GPGKey']}" != '' ]] && echo "${REPO['GPGKey']}" >\
78 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey
79 [[ "${REPO['MirrorList']}" != '' ]] && echo "${REPO['MirrorList']}" >\
80 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList
81 [[ "${REPO['Exclude']}" != '' ]] && echo "${REPO['Exclude']}" >\
82 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude
83 [[ "${REPO['IncludePkgs']}" != '' ]] && echo "${REPO['IncludePkgs']}" >\
84 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/IncludePkgs
85 return 0
86 }
87
88
89
90 #remi-safe
91 REPO['reponame']='remi-safe'
92 REPO['fullreponame']='Remi - safe'
93 REPO['EnableGroups']='no'
94 REPO['GPGCheck']='yes'
95 REPO['Visible']='yes'
96 REPO['status']='enabled'
97 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/'
98 REPO['MirrorList']=''
99 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
100 REPO['Exclude']=''
101 REPO['IncludePkgs']=''
102 createrepo
103
104 ######################
105 #####################
106 # asterisk 13 LTS
107 #####################
108 #####################
109 REPO['reponame']='asterisk-13'
110 REPO['fullreponame']='Asterisk-13 - EL'
111 REPO['EnableGroups']='yes'
112 REPO['GPGCheck']='no'
113 REPO['Visible']='no'
114 REPO['status']='disabled'
115 REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/asterisk-13/$basearch/'
116 REPO['MirrorList']=''
117 REPO['GPGKey']=''
118 REPO['Exclude']=''
119 REPO['IncludePkgs']=''
120 createrepo
121
122 ######################
123 #####################
124 # asterisk current
125 #####################
126 #####################
127 REPO['reponame']='asterisk-current'
128 REPO['fullreponame']='Asterisk-current - EL'
129 REPO['EnableGroups']='yes'
130 REPO['GPGCheck']='no'
131 REPO['Visible']='no'
132 REPO['status']='disabled'
133 REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/'
134 REPO['MirrorList']=''
135 REPO['GPGKey']=''
136 REPO['Exclude']=''
137 REPO['IncludePkgs']=''
138 createrepo
139
140 #####################
141 #####################
142 # Digium Repo
143 #####################
144 #####################
145 REPO['reponame']='digium'
146 REPO['fullreponame']='Digium packages - EL'
147 REPO['EnableGroups']='no'
148 REPO['Visible']='no'
149 REPO['status']='disabled'
150 REPO['BaseURL']='http://packages.digium.com/centos/$releasever/current/$basearch/'
151 REPO['MirrorList']=''
152 REPO['GPGCheck']='no'
153 REPO['GPGKey']=''
154 REPO['Exclude']=''
155 REPO['IncludePkgs']=''
156 createrepo
157
158 #####################
159 #####################
160 # Digium 13
161 #####################
162 #####################
163 REPO['reponame']='digium-13'
164 REPO['fullreponame']='Digium-13 packages - EL'
165 REPO['EnableGroups']='no'
166 REPO['Visible']='no'
167 REPO['status']='disabled'
168 REPO['BaseURL']='http://packages.digium.com/centos/$releasever/digium-13/$basearch/'
169 REPO['MirrorList']=''
170 REPO['GPGCheck']='no'
171 REPO['GPGKey']=''
172 REPO['Exclude']=''
173 REPO['IncludePkgs']=''
174 createrepo
175
176 #####################
177 #####################
178 #atomic
179 #####################
180 #####################
181 REPO['reponame']='atomic'
182 REPO['fullreponame']='Atomic'
183 REPO['EnableGroups']='no'
184 REPO['Visible']='no'
185 REPO['status']='disabled'
186 REPO['BaseURL']=''
187 REPO['MirrorList']='http://www.atomicorp.com/mirrorlist/atomic/centos-$releasever-$basearch'
188 REPO['GPGCheck']='yes'
189 REPO['GPGKey']='https://www.atomicorp.com/RPM-GPG-KEY.art.txt'
190 REPO['Exclude']=''
191 REPO['IncludePkgs']=''
192 createrepo
193
194 #####################
195 #####################
196 #centos-sclo-centos
197 #####################
198 #####################
199 REPO['reponame']='centos-sclo-centos'
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['fullreponame']='Centos-RH Software collections'
219 REPO['EnableGroups']='no'
220 REPO['Visible']='yes'
221 REPO['status']='disabled'
222 REPO['BaseURL']='http://mirror.centos.org/centos/$releasever/sclo/$basearch/rh/'
223 REPO['MirrorList']=''
224 REPO['GPGCheck']='yes'
225 REPO['GPGKey']='https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo'
226 REPO['Exclude']=''
227 REPO['IncludePkgs']=''
228 createrepo
229
230
231 #####################
232 #####################
233 #egroupware
234 #####################
235 #####################
236 REPO['reponame']='egroupware'
237 REPO['fullreponame']='server_eGroupWare'
238 REPO['EnableGroups']='no'
239 REPO['Visible']='yes'
240 REPO['status']='disabled'
241 REPO['BaseURL']='http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_$releasever/'
242 REPO['MirrorList']=''
243 REPO['GPGCheck']='yes'
244 REPO['GPGKey']='http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_$releasever/repodata/repomd.xml.key'
245 REPO['Exclude']=''
246 REPO['IncludePkgs']=''
247 createrepo
248
249 #####################
250 #####################
251 #elastic
252 #####################
253 #####################
254 declare -A elashort=( ['6.x']='6.x' ['5.x']='5.x' ['1.6']='1' )
255 for elasver in "6.x" "5.x" "1.6"; do
256 REPO['reponame']="elastic${elashort[$elasver]}"
257 REPO['fullreponame']="Elasticsearch repository for $elasver packages"
258 REPO['EnableGroups']='yes'
259 REPO['Visible']='yes'
260 REPO['status']='disabled'
261 REPO['BaseURL']="https://artifacts.elastic.co/packages/$elasver/yum"
262 REPO['MirrorList']=''
263 REPO['GPGCheck']='yes'
264 REPO['GPGKey']='https://artifacts.elastic.co/GPG-KEY-elasticsearch'
265 REPO['Exclude']=''
266 REPO['IncludePkgs']=''
267 createrepo
268 done
269
270 #####################
271 #####################
272 #ELRepo
273 #####################
274 #####################
275 REPO['reponame']='elrepo'
276 REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository'
277 REPO['EnableGroups']='no'
278 REPO['Visible']='no'
279 REPO['status']='disabled'
280 REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
281 REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.el$releasever'
282 REPO['GPGCheck']='yes'
283 REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
284 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'
285 REPO['IncludePkgs']=''
286 createrepo
287
288 #####################
289 #####################
290 #ELRepo kernel
291 #####################
292 #####################
293 REPO['reponame']='elrepo-kernel'
294 REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository Kernel'
295 REPO['EnableGroups']='no'
296 REPO['Visible']='no'
297 REPO['status']='disabled'
298 REPO['BaseURL']='http://elrepo.org/linux/kernel/el$releasever/$basearch'
299 REPO['MirrorList']='http://elrepo.org/mirrors-elrepo-kernel.el$releasever'
300 REPO['GPGCheck']='yes'
301 REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
302 REPO['Exclude']=''
303 REPO['IncludePkgs']=''
304 createrepo
305
306 #####################
307 #####################
308 #EPEL
309 #####################
310 #####################
311 REPO['reponame']='epel'
312 REPO['fullreponame']='EPEL'
313 REPO['EnableGroups']='no'
314 REPO['Visible']='no'
315 REPO['status']='disabled'
316 REPO['BaseURL']='http://download.fedoraproject.org/pub/epel/$releasever/$basearch'
317 REPO['MirrorList']='http://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch'
318 REPO['GPGCheck']='yes'
319 REPO['GPGKey']='http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'
320 REPO['Exclude']='perl-Razor-Agent'
321 REPO['IncludePkgs']=''
322 createrepo
323
324 #####################
325 #####################
326 #erlang
327 #####################
328 #####################
329 REPO['reponame']='erlang'
330 REPO['fullreponame']='erlang programming language'
331 REPO['EnableGroups']='no'
332 REPO['Visible']='yes'
333 REPO['status']='disabled'
334 REPO['BaseURL']='http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch'
335 REPO['MirrorList']=''
336 REPO['GPGCheck']='yes'
337 REPO['GPGKey']='http://packages.erlang-solutions.com/rpm/erlang_solutions.asc'
338 REPO['Exclude']=''
339 REPO['IncludePkgs']=''
340 createrepo
341
342 #####################
343 #####################
344 #freeswitch
345 #####################
346 #####################
347 REPO['reponame']='freeswitch'
348 REPO['fullreponame']='Freeswitch'
349 REPO['EnableGroups']='no'
350 REPO['Visible']='yes'
351 REPO['status']='disabled'
352 REPO['BaseURL']='http://files.freeswitch.org/yum/$releasever/$basearch'
353 REPO['MirrorList']=''
354 REPO['GPGCheck']='yes'
355 REPO['GPGKey']='file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH'
356 REPO['Exclude']=''
357 REPO['IncludePkgs']=''
358 createrepo
359
360 #####################
361 #####################
362 #firewall Service
363 #####################
364 #####################
365 REPO['reponame']='fws'
366 REPO['fullreponame']='Firewall Services'
367 REPO['EnableGroups']='no'
368 REPO['Visible']='no'
369 REPO['status']='disabled'
370 REPO['BaseURL']='http://repo.firewall-services.com/centos/$releasever'
371 REPO['MirrorList']=''
372 REPO['GPGCheck']='yes'
373 REPO['GPGKey']='http://repo.firewall-services.com/RPM-GPG-KEY'
374 REPO['Exclude']=''
375 REPO['IncludePkgs']=''
376 createrepo
377
378 #####################
379 #####################
380 #firewall Service testing
381 #####################
382 #####################
383 REPO['reponame']='fws-testing'
384 REPO['fullreponame']='Firewall Services testing'
385 REPO['EnableGroups']='no'
386 REPO['Visible']='no'
387 REPO['status']='disabled'
388 REPO['BaseURL']='http://repo.firewall-services.com/centos-testing/$releasever'
389 REPO['MirrorList']=''
390 REPO['GPGCheck']='yes'
391 REPO['GPGKey']='http://repo.firewall-services.com/RPM-GPG-KEY'
392 REPO['Exclude']=''
393 REPO['IncludePkgs']=''
394 createrepo
395
396 #####################
397 #####################
398 # Geekery (last update 2016-09-25)
399 #####################
400 #####################
401 REPO['reponame']='geekery'
402 REPO['fullreponame']='geekery repository'
403 REPO['EnableGroups']='no'
404 REPO['Visible']='no'
405 REPO['status']='disabled'
406 REPO['BaseURL']=''
407 REPO['MirrorList']='http://geekery.epac.to/geekery/el$releasever-mirrors'
408 REPO['GPGCheck']='yes'
409 REPO['GPGKey']='http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY'
410 REPO['Exclude']=''
411 REPO['IncludePkgs']=''
412 createrepo
413
414 if ( "%{?dist}" == "el7" ); then
415 #####################
416 #####################
417 # Odoo10-nightly
418 #####################
419 #####################
420 REPO['reponame']='odoo10-nightly'
421 REPO['fullreponame']='Odoo 10 Nightly - EL7'
422 REPO['EnableGroups']='no'
423 REPO['Visible']='no'
424 REPO['status']='disabled'
425 REPO['BaseURL']='http://nightly.odoo.com/10.0/nightly/rpm/'
426 REPO['MirrorList']=''
427 REPO['GPGCheck']='yes'
428 REPO['GPGKey']='https://nightly.odoo.com/odoo.key'
429 REPO['Exclude']=''
430 REPO['IncludePkgs']=''
431 createrepo
432
433 #####################
434 #####################
435 # Odoo9-nightly
436 #####################
437 #####################
438 REPO['reponame']='odoo9-nightly'
439 REPO['fullreponame']='Odoo 9 Nightly - EL7'
440 REPO['EnableGroups']='no'
441 REPO['Visible']='no'
442 REPO['status']='disabled'
443 REPO['BaseURL']='http://nightly.odoo.com/9.0/nightly/rpm/'
444 REPO['MirrorList']=''
445 REPO['GPGCheck']='yes'
446 REPO['GPGKey']='https://nightly.odoo.com/odoo.key'
447 REPO['Exclude']=''
448 REPO['IncludePkgs']=''
449 createrepo
450 fi
451
452 #####################
453 #####################
454 # Okay
455 #####################
456 #####################
457 REPO['reponame']='okay'
458 REPO['fullreponame']='Extra OKay Packages for Enterprise Linux - Freeswitch and FusionPBX'
459 REPO['EnableGroups']='no'
460 REPO['Visible']='no'
461 REPO['status']='disabled'
462 REPO['BaseURL']='http://repo.okay.com.mx/centos/$releasever/$basearch/release'
463 REPO['MirrorList']=''
464 REPO['GPGCheck']='no'
465 REPO['GPGKey']=''
466 REPO['Exclude']=''
467 REPO['IncludePkgs']=''
468 createrepo
469
470 #####################
471 #####################
472 # Openfusion
473 #####################
474 #####################
475 REPO['reponame']='openfusion'
476 REPO['fullreponame']='Openfusion'
477 REPO['EnableGroups']='no'
478 REPO['Visible']='yes'
479 REPO['status']='disabled'
480 REPO['BaseURL']='http://repo.openfusion.net/centos$releasever-$basearch'
481 REPO['MirrorList']=''
482 REPO['GPGCheck']='yes'
483 REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion'
484 REPO['Exclude']=''
485 REPO['IncludePkgs']=''
486 createrepo
487
488 #####################
489 #####################
490 # Reetspetit
491 #####################
492 #####################
493 REPO['reponame']='reetp'
494 REPO['fullreponame']='Mirror John Crisp reetspetit.com'
495 REPO['EnableGroups']='no'
496 REPO['Visible']='yes'
497 REPO['status']='disabled'
498 REPO['BaseURL']='https://www.reetspetit.com/smeserver/$releasever'
499 REPO['MirrorList']=''
500 REPO['GPGCheck']='no'
501 REPO['GPGKey']='https://www.reetspetit.com/RPM-GPG-KEY'
502 REPO['Exclude']=''
503 REPO['IncludePkgs']=''
504 createrepo
505
506 #remi-safe
507 REPO['reponame']='remi-safe'
508 REPO['fullreponame']='Remi - safe'
509 REPO['EnableGroups']='no'
510 REPO['GPGCheck']='yes'
511 REPO['Visible']='yes'
512 REPO['status']='enabled'
513 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/'
514 REPO['MirrorList']=''
515 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
516 REPO['Exclude']=''
517 REPO['IncludePkgs']=''
518 createrepo
519
520 #####################
521 #####################
522 #remi
523 #####################
524 #####################
525 REPO['reponame']='remi'
526 REPO['fullreponame']='Remi - EL unsafe, will conflict with your base rpms'
527 REPO['EnableGroups']='no'
528 REPO['GPGCheck']='yes'
529 REPO['Visible']='no'
530 REPO['status']='enabled'
531 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
532 REPO['MirrorList']=''
533 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
534 REPO['Exclude']='mysql*,php-*,phpMyAdmin'
535 REPO['IncludePkgs']=''
536 createrepo
537
538 #####################
539 #####################
540 #remi-ocsinventory
541 #####################
542 #####################
543 REPO['reponame']='remi-ocsinventory'
544 REPO['fullreponame']='Remi ocsinventory - EL'
545 REPO['EnableGroups']='no'
546 REPO['GPGCheck']='yes'
547 REPO['Visible']='yes'
548 REPO['status']='enabled'
549 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
550 REPO['MirrorList']=''
551 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
552 REPO['Exclude']=''
553 REPO['IncludePkgs']='ocsinventory* perl-Ocsinventory-Agent'
554 createrepo
555
556 #####################
557 #####################
558 #remi-ocsinventory
559 #####################
560 #####################
561 REPO['reponame']='remi-roundcube'
562 REPO['fullreponame']='Remi Roundcube - EL'
563 REPO['EnableGroups']='no'
564 REPO['GPGCheck']='yes'
565 REPO['Visible']='yes'
566 REPO['status']='enabled'
567 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
568 REPO['MirrorList']=''
569 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
570 REPO['Exclude']=''
571 REPO['IncludePkgs']='php-kolab-net-ldap3,php-pear-Mail-mimeDecode,php-pear-Net-IDNA2,php-pear-Net-LDAP2,roundcubemail'
572 createrepo
573
574
575 #####################
576 #####################
577 #rpmfusion
578 #####################
579 #####################
580 REPO['reponame']='rpmfusion'
581 REPO['fullreponame']='rpmfusion free EL'
582 REPO['EnableGroups']='no'
583 REPO['Visible']='yes'
584 REPO['status']='disabled'
585 REPO['BaseURL']='http://download1.rpmfusion.org/free/el/updates/$releasever/$basearch/'
586 REPO['MirrorList']='http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-$releasever&arch=$basearch'
587 REPO['GPGCheck']='yes'
588 REPO['GPGKey']='https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-el-$releasever'
589 REPO['Exclude']=''
590 REPO['IncludePkgs']=''
591 createrepo
592
593 #####################
594 #####################
595 #rpmfusion
596 #####################
597 #####################
598 REPO['reponame']='rpmfusion-nonfree'
599 REPO['fullreponame']='rpmfusion nonfree EL'
600 REPO['EnableGroups']='no'
601 REPO['Visible']='yes'
602 REPO['status']='disabled'
603 REPO['BaseURL']='http://download1.rpmfusion.org/nonfree/el/updates/$releasever/$basearch/'
604 REPO['MirrorList']='http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-el-updates-released-$releasever&arch=$basearch'
605 REPO['GPGCheck']='yes'
606 REPO['GPGKey']='https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-el-$releasever'
607 REPO['Exclude']=''
608 REPO['IncludePkgs']=''
609 createrepo
610
611 #####################
612 #####################
613 #Sogo nightly
614 #####################
615 #####################
616 REPO['reponame']='sogo'
617 REPO['fullreponame']='Inverse SOGo 2 Repository'
618 REPO['EnableGroups']='no'
619 REPO['Visible']='yes'
620 REPO['status']='disabled'
621 REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/2/rhel/$releasever/$basearch'
622 REPO['MirrorList']=''
623 REPO['GPGCheck']='no'
624 REPO['GPGKey']=''
625 REPO['Exclude']=''
626 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
627 createrepo
628
629 #####################
630 #####################
631 #Sogo3 nightly
632 #####################
633 #####################
634 REPO['reponame']='sogo3'
635 REPO['fullreponame']='Inverse SOGo 3 Repository'
636 REPO['EnableGroups']='no'
637 REPO['Visible']='yes'
638 REPO['status']='disabled'
639 REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/3/rhel/$releasever/$basearch'
640 REPO['MirrorList']=''
641 REPO['GPGCheck']='no'
642 REPO['GPGKey']=''
643 REPO['Exclude']=''
644 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
645 createrepo
646
647 #####################
648 #####################
649 #Sogo4 nightly
650 #####################
651 #####################
652 REPO['reponame']='sogo4'
653 REPO['fullreponame']='Inverse SOGo 4 Repository'
654 REPO['EnableGroups']='no'
655 REPO['Visible']='yes'
656 REPO['status']='disabled'
657 REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/4/rhel/$releasever/$basearch'
658 REPO['MirrorList']=''
659 REPO['GPGCheck']='no'
660 REPO['GPGKey']=''
661 REPO['Exclude']=''
662 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
663 createrepo
664
665 #####################
666 #####################
667 #Sogo stable
668 #####################
669 #####################
670 REPO['reponame']='sogo-subscription'
671 REPO['fullreponame']='Inverse SOGo Repository only with subscription'
672 REPO['EnableGroups']='no'
673 REPO['Visible']='yes'
674 REPO['status']='disabled'
675 REPO['BaseURL']='http://packages.inverse.ca/download/SOGo/RHEL$releasever/$basearch'
676 REPO['MirrorList']=''
677 REPO['GPGCheck']='no'
678 REPO['GPGKey']=''
679 REPO['Exclude']=''
680 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
681 createrepo
682
683 #####################
684 #####################
685 #Spectrum2
686 #####################
687 #####################
688 REPO['reponame']='spectrum2'
689 REPO['fullreponame']='Spectrum2'
690 REPO['EnableGroups']='no'
691 REPO['Visible']='yes'
692 REPO['status']='disabled'
693 REPO['BaseURL']='http://copr-be.cloud.fedoraproject.org/results/mcepl/spectrum2/epel-$releasever-$basearch'
694 REPO['MirrorList']=''
695 REPO['GPGCheck']='no'
696 REPO['GPGKey']=''
697 REPO['Exclude']=''
698 REPO['IncludePkgs']=''
699 createrepo
700
701 #####################
702 #####################
703 #stephDL
704 #####################
705 #####################
706 REPO['reponame']='stephdl'
707 REPO['fullreponame']='Mirror Stephane de Labrusse'
708 REPO['EnableGroups']='no'
709 REPO['Visible']='yes'
710 REPO['status']='disabled'
711 REPO['BaseURL']='http://mirror.de-labrusse.fr/smeserver/$releasever'
712 REPO['MirrorList']=''
713 REPO['GPGCheck']='yes'
714 REPO['GPGKey']='http://mirror.de-labrusse.fr/RPM-GPG-KEY'
715 REPO['Exclude']=''
716 REPO['IncludePkgs']=''
717 createrepo
718
719 #####################
720 #####################
721 #VirtualBox
722 #####################
723 #####################
724 REPO['reponame']='virtualbox'
725 REPO['fullreponame']='RHEL/CentOS VirtualBox'
726 REPO['EnableGroups']='no'
727 REPO['Visible']='yes'
728 REPO['status']='disabled'
729 REPO['BaseURL']='http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch'
730 REPO['MirrorList']=''
731 REPO['GPGCheck']='yes'
732 REPO['GPGKey']='https://www.virtualbox.org/download/oracle_vbox.asc'
733 REPO['Exclude']=''
734 REPO['IncludePkgs']=''
735 createrepo
736
737 #####################
738 #####################
739 #Webtatic
740 #####################
741 #####################
742 REPO['reponame']='webtatic'
743 REPO['fullreponame']='webtatic - EL'
744 REPO['EnableGroups']='no'
745 REPO['Visible']='yes'
746 REPO['status']='disabled'
747 REPO['BaseURL']=''
748 REPO['MirrorList']='http://mirror.webtatic.com/yum/el-$releasever/$basearch/mirrolist'
749 REPO['GPGCheck']='yes'
750 if ( "%{?dist}" == "el5" ); then
751 REPO['GPGKey']='http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy'
752 else
753 REPO['GPGKey']="http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-%{?dist}"
754 fi
755 REPO['Exclude']=''
756 REPO['IncludePkgs']=''
757 createrepo
758
759 #####################
760 #####################
761 #Xymon
762 #####################
763 #####################
764 REPO['reponame']='xymon'
765 REPO['fullreponame']='Xymon Terabithia RPMS - EL'
766 REPO['EnableGroups']='no'
767 REPO['Visible']='yes'
768 REPO['status']='disabled'
769 REPO['BaseURL']='http://terabithia.org/rpms/xymon/el$releasever/'
770 REPO['MirrorList']=''
771 REPO['GPGCheck']='yes'
772 REPO['GPGKey']="http://terabithia.org/rpms/RPM-GPG-KEY-JCLEAVER"
773 REPO['Exclude']=''
774 REPO['IncludePkgs']=''
775 createrepo
776
777 #####################
778 #####################
779 #Zabbix2.4
780 #####################
781 #####################
782 declare -A zabshort=( ['2.4']='24' ['2.5']='25' ['3.0']='30' ['3.1']='31' ['3.2']='32' ['3.4']='35' ['3.5']='35')
783 for elasver in "2.4" "2.5" "3.0"; do
784 REPO['reponame']="zabbix${zabshort[$elasver]}"
785 REPO['fullreponame']="Zabbix $elasver Official Repository"
786 REPO['EnableGroups']='no'
787 REPO['Visible']='yes'
788 REPO['status']='disabled'
789 REPO['BaseURL']="http://repo.zabbix.com/zabbix/$elasver/rhel/\$releasever/\$basearch/"
790 REPO['MirrorList']=''
791 REPO['GPGCheck']='yes'
792 REPO['GPGKey']="http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX"
793 REPO['Exclude']=''
794 REPO['IncludePkgs']=''
795 createrepo
796 done
797
798 #####################
799 #####################
800 #zmrepo
801 #####################
802 #####################
803 REPO['reponame']='zmrepo'
804 REPO['fullreponame']='ZoneMinder Repo - EL'
805 REPO['EnableGroups']='no'
806 REPO['Visible']='yes'
807 REPO['status']='disabled'
808 REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch'
809 REPO['MirrorList']=''
810 REPO['GPGCheck']='no'
811 REPO['GPGKey']=""
812 REPO['Exclude']='ffmpeg-2.6.4,celt-0.11'
813 REPO['IncludePkgs']=''
814 createrepo
815
816
817 #####################################################
818 # migrates
819 ######################################################
820 mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
821 cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/90sogo
822 {
823 my @add = split(/[,; ]+/, 'gnustep-*');
824 my %remove = map { $_ => 1 } split(/[,; ]+/, '');
825
826 for my $name ( qw(epel) )
827 {
828 my $repo = $DB->get($name) or next;
829
830 my @exclude = split(/,/, $repo->prop('Exclude') || '');
831 push @exclude, @add;
832 @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
833
834 # remove duplicates
835 undef %saw;
836 @exclude = grep(!$saw{$_}++, @exclude);
837
838 if ($#exclude >= 0)
839 {
840 $repo->set_prop('Exclude', join(',', @exclude));
841 }
842 else
843 {
844 $repo->delete('Exclude');
845 }
846 }
847 }
848
849 EOF
850
851
852 cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10epel
853 {
854 my @add = split(/[,; ]+/, '');
855 my %remove = map { $_ => 1 } split(/[,; ]+/, 'gnustep-*,gnustep*,gnustep-base,gnustep-make');
856
857 for my $name ( qw(epel) )
858 {
859 my $repo = $DB->get($name) or next;
860
861 my @exclude = split(/,/, $repo->prop('Exclude') || '');
862 push @exclude, @add;
863 @exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
864
865 # remove duplicates
866 undef %saw;
867 @exclude = grep(!$saw{$_}++, @exclude);
868
869 if ($#exclude >= 0)
870 {
871 $repo->set_prop('Exclude', join(',', @exclude));
872 }
873 else
874 {
875 $repo->delete('Exclude');
876 }
877 }
878 }
879
880 EOF
881
882
883
884
885
886
887 ##########################################################
888
889 rm -f %{name}-%{version}-filelist*
890 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
891 cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic
892 cat %{name}-%{version}-filelist| grep centos-sclo > %{name}-%{version}-filelist-centos-sclo
893 cat %{name}-%{version}-filelist| egrep 'digium|asterisk' > %{name}-%{version}-filelist-asterisk
894 cat %{name}-%{version}-filelist| grep egroupware > %{name}-%{version}-filelist-egroupware
895 cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic
896 cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo
897 cat %{name}-%{version}-filelist| grep epel > %{name}-%{version}-filelist-epel
898 cat %{name}-%{version}-filelist| grep erlang > %{name}-%{version}-filelist-erlang
899 cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch
900 cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws
901 cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery
902 if ( "%{?dist}" == "el7" ); then
903 cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo
904 fi
905 cat %{name}-%{version}-filelist| grep okay > %{name}-%{version}-filelist-okay
906 cat %{name}-%{version}-filelist| grep openfusion > %{name}-%{version}-filelist-openfusion
907 cat %{name}-%{version}-filelist| grep reetp > %{name}-%{version}-filelist-reetp
908 cat %{name}-%{version}-filelist| grep remi-safe > %{name}-%{version}-filelist-remi-safe
909 cat %{name}-%{version}-filelist| grep remi-ocsinventory > %{name}-%{version}-filelist-remi-ocsinventory
910 cat %{name}-%{version}-filelist| grep remi-roundcube > %{name}-%{version}-filelist-remi-roundcube
911 cat %{name}-%{version}-filelist| grep remi|egrep -v 'safe|ocsinventory|roundcube' > %{name}-%{version}-filelist-remi
912 cat %{name}-%{version}-filelist| grep rpmfusion > %{name}-%{version}-filelist-rpmfusion
913 cat %{name}-%{version}-filelist| grep sogo > %{name}-%{version}-filelist-sogo
914 cat %{name}-%{version}-filelist| grep spectrum2 > %{name}-%{version}-filelist-spectrum2
915 cat %{name}-%{version}-filelist| grep stephdl > %{name}-%{version}-filelist-stephdl
916 cat %{name}-%{version}-filelist| grep virtualbox > %{name}-%{version}-filelist-virtualbox
917 cat %{name}-%{version}-filelist| grep webtatic > %{name}-%{version}-filelist-webtatic
918 cat %{name}-%{version}-filelist| grep xymon > %{name}-%{version}-filelist-xymon
919 cat %{name}-%{version}-filelist| grep zabbix > %{name}-%{version}-filelist-zabbix
920 cat %{name}-%{version}-filelist| grep zmrepo > %{name}-%{version}-filelist-zmrepo
921
922 %clean
923 cd ..
924 rm -rf %{name}-%{version}
925
926
927 #%files -f %{name}-%{version}-filelist
928 %files
929 %defattr(-,root,root)
930
931 %pre
932
933 %preun
934
935 %post
936
937 %postun
938 case "$1" in
939
940 0)
941 # this is an uninstallation
942 ;;
943
944 1)
945 # this is an upgrade
946 ;;
947 esac
948 %package atomic
949 Summary: Atomic Repository
950 %description atomic
951 Atomic Repository
952 %files atomic -f %{name}-%{version}-filelist-atomic
953 %defattr(-,root,root)
954
955 %package centos-sclo
956 Summary: CentOS Red-Hat software collection repository
957 %description centos-sclo
958 CentOS Red-Hat software collection repository only for x86_64 arch
959 %files centos-sclo -f %{name}-%{version}-filelist-centos-sclo
960 %defattr(-,root,root)
961
962 %package asterisk
963 Summary: All repositories you need for Asterisk and FreePBX
964 %description asterisk
965 All repositories you need for Asterisk and FreePBX
966 %files asterisk -f %{name}-%{version}-filelist-asterisk
967 %defattr(-,root,root)
968
969 %package egroupware
970 Summary: Repository for eGroupWare
971 %description egroupware
972 Repository for eGroupWare
973 %files egroupware -f %{name}-%{version}-filelist-egroupware
974 %defattr(-,root,root)
975
976 %package elastic
977 Summary: Repositories for elastic search
978 %description elastic
979 Repositories for elastic search
980 %files elastic -f %{name}-%{version}-filelist-elastic
981 %defattr(-,root,root)
982
983 %package elrepo
984 Summary: ElRepo.org Community Enterprise Linux Repository
985 %description elrepo
986 ElRepo.org Community Enterprise Linux Repository
987 %files elrepo -f %{name}-%{version}-filelist-elrepo
988 %defattr(-,root,root)
989
990 %package epel
991 Summary: Fedora EPEL Repository
992 %description epel
993 Fedora EPEL Repository
994 %files epel -f %{name}-%{version}-filelist-epel
995 %defattr(-,root,root)
996
997 %package erlang
998 Summary: Erlang Repository
999 %description erlang
1000 Erlang is a programming language. It is specifically used for ejabberd.
1001 %files erlang -f %{name}-%{version}-filelist-erlang
1002 %defattr(-,root,root)
1003
1004 %package freeswitch
1005 Summary: Freeswitch Repository
1006 %description freeswitch
1007 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
1008 %files freeswitch -f %{name}-%{version}-filelist-freeswitch
1009 %defattr(-,root,root)
1010
1011 %package fws
1012 Summary: Firewall Services repository
1013 %description fws
1014 Firewall Services repository
1015 %files fws -f %{name}-%{version}-filelist-fws
1016 %defattr(-,root,root)
1017
1018 %package geekery
1019 Summary: Geekery Repository
1020 %description geekery
1021 Geekery Repository
1022 %files geekery -f %{name}-%{version}-filelist-geekery
1023 %defattr(-,root,root)
1024
1025 %package odoo
1026 Summary: Odoo 10 Nightly - EL7 Repository
1027 Distribution: el7
1028 %description odoo
1029 Odoo 10 Nightly - EL7 Repository
1030 # comment as not available for centos 6 SME9
1031 #%files odoo -f %{name}-%{version}-filelist-odoo
1032 #%defattr(-,root,root)
1033
1034 %package okay
1035 Summary: Extra OKay Packages for Enterprise Linux
1036 %description okay
1037 Extra OKay Packages for Enterprise Linux - Freeswitch and FusionPBX
1038 %files okay -f %{name}-%{version}-filelist-okay
1039 %defattr(-,root,root)
1040
1041 %package openfusion
1042 Summary: Openfusion Repository
1043 %description openfusion
1044 Openfusion Repository
1045 %files openfusion -f %{name}-%{version}-filelist-openfusion
1046 %defattr(-,root,root)
1047
1048 %package reetp
1049 Summary: Mirror John Crisp reetspetit.com
1050 %description reetp
1051 Mirror John Crisp reetspetit.com
1052 %files reetp -f %{name}-%{version}-filelist-reetp
1053 %defattr(-,root,root)
1054
1055 %package remi-safe
1056 Summary: Remi safe repository
1057 %description remi-safe
1058 Remi safe repository
1059 %files remi-safe -f %{name}-%{version}-filelist-remi-safe
1060 %defattr(-,root,root)
1061
1062 %package remi-ocsinventory
1063 Summary: Remi repository filtered to install OCSinventory
1064 %description remi-ocsinventory
1065 Remi repository filtered to install OCSinventory
1066 %files remi-ocsinventory -f %{name}-%{version}-filelist-remi-ocsinventory
1067 %defattr(-,root,root)
1068
1069 %package remi-roundcube
1070 Summary: Remi repository filtered to install Roundcube
1071 %description remi-roundcube
1072 Remi repository filtered to install Roundcube
1073 %files remi-roundcube -f %{name}-%{version}-filelist-remi-roundcube
1074 %defattr(-,root,root)
1075
1076 %package remi-unsafe
1077 Summary: Remi unsafe repository
1078 %description remi-unsafe
1079 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.
1080 %files remi-unsafe -f %{name}-%{version}-filelist-remi
1081 %defattr(-,root,root)
1082
1083 %package rpmfusion
1084 Summary: RPMFusion repositories
1085 %description rpmfusion
1086 RPMFusion repositories
1087 %files rpmfusion -f %{name}-%{version}-filelist-rpmfusion
1088 %defattr(-,root,root)
1089
1090 %package sogo
1091 Summary: SOGo repositories
1092 %description sogo
1093 SOGo repositories
1094 %files sogo -f %{name}-%{version}-filelist-sogo
1095 %defattr(-,root,root)
1096
1097 %package spectrum2
1098 Summary: Spectrum2 Repository
1099 %description spectrum2
1100 Spectrum2 Repository
1101 %files spectrum2 -f %{name}-%{version}-filelist-spectrum2
1102 %defattr(-,root,root)
1103
1104 %package stephdl
1105 Summary: Stephane De Labrusse Repository
1106 %description stephdl
1107 Stephane De Labrusse Repository
1108 %files stephdl -f %{name}-%{version}-filelist-stephdl
1109 %defattr(-,root,root)
1110
1111 %package virtualbox
1112 Summary: Virtualbox Repository
1113 %description virtualbox
1114 Virtualbox Repository
1115 %files virtualbox -f %{name}-%{version}-filelist-virtualbox
1116 %defattr(-,root,root)
1117
1118 %package webtatic
1119 Summary: Webtatic Repository
1120 %description webtatic
1121 Webtatic Repository
1122 %files webtatic -f %{name}-%{version}-filelist-webtatic
1123 %defattr(-,root,root)
1124
1125 %package xymon
1126 Summary: Xymon Terabithia Repository
1127 %description xymon
1128 Xymon Terabithia Repository
1129 %files xymon -f %{name}-%{version}-filelist-xymon
1130 %defattr(-,root,root)
1131
1132 %package zabbix
1133 Summary: Zabbix official Repository
1134 %description zabbix
1135 Zabbix official Repository
1136 %files zabbix -f %{name}-%{version}-filelist-zabbix
1137 %defattr(-,root,root)
1138
1139 %package zmrepo
1140 Summary: Zone Minder Repository
1141 %description zmrepo
1142 Zone Minder Repository
1143 %files zmrepo -f %{name}-%{version}-filelist-zmrepo
1144 %defattr(-,root,root)
1145
1146
1147

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