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


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