/[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.8 - (show annotations) (download)
Sun Mar 18 09:27:52 2018 UTC (6 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-4
Changes since 1.7: +79 -4 lines
* Sun Mar 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-4.sme
- exclude ffmpeg-2.6.4 and celt-0.11 from zmrepo [SME: 10543]
- add Sogo4 repo + migrate to exclude gnustep from epel if sogo repo present

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

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