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

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

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


Revision 1.25 - (hide annotations) (download)
Sun Jan 27 17:02:31 2019 UTC (5 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-20
Changes since 1.24: +160 -3 lines
* Sun Jan 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-20.sme
- add node repos [SME: 10727]

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

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