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

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

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

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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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