/[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.9 - (show annotations) (download)
Wed May 9 04:00:29 2018 UTC (6 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-5
Changes since 1.8: +23 -2 lines
* Tue May 08 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-5.sme
- add elrepo-kernel repo  [SME: 10581]

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

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