/[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.2 by jpp, Wed Feb 14 03:57:20 2018 UTC
# Line 323  echo "repository" > $RPM_BUILD_ROOT/etc/ Line 323  echo "repository" > $RPM_BUILD_ROOT/etc/
323                  $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']}/Include
324    
325    
326    #####################
327    #####################
328    #elastic
329    #####################
330    #####################
331    declare -A elashort=( ['6.x']='6.x' ['5.x']='5.x' ['1.6']='1' )
332    for elasver  in "6.x" "5.x" "1.6"; do
333    REPO['reponame']="elastic${elashort[$elasver]}"
334    REPO['fullreponame']="Elasticsearch repository for $elasver packages"
335    REPO['EnableGroups']='yes'
336    REPO['Visible']='yes'
337    REPO['status']='disabled'
338    REPO['BaseURL']="https://artifacts.elastic.co/packages/$elasver/yum"
339    REPO['MirrorList']=''
340    REPO['GPGCheck']='yes'
341    REPO['GPGKey']='https://artifacts.elastic.co/GPG-KEY-elasticsearch'
342    REPO['Exclude']=''
343    REPO['Include']=''
344    
345    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}
346    echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups
347    echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck
348    echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name
349    echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible
350    echo "${REPO['status']}"  > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status
351    echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type
352    [[ "${REPO['BaseURL']}" != '' ]]  &&       echo "${REPO['BaseURL']}" >\
353                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL
354    [[ "${REPO['GPGKey']}" != '' ]]  &&       echo "${REPO['GPGKey']}" >\
355                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey
356    [[ "${REPO['MirrorList']}" != '' ]]  &&       echo "${REPO['MirrorList']}"       >\
357                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList
358    [[ "${REPO['Exclude']}" != '' ]]  &&       echo "${REPO['Exclude']}"  >\
359                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude
360    [[ "${REPO['Include']}" != '' ]]  &&       echo "${REPO['Include']}"   >\
361                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include
362    done
363    
364    #####################
365    #####################
366    #ELRepo
367    #####################
368    #####################
369    REPO['reponame']='elrepo'
370    REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository'
371    REPO['EnableGroups']='no'
372    REPO['Visible']='no'
373    REPO['status']='disabled'
374    REPO['BaseURL']='http://elrepo.org/linux/elrepo/el\\\$releasever/\\\$basearch'
375    REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.\\\$releasever'
376    REPO['GPGCheck']='yes'
377    REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
378    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'
379    REPO['Include']=''
380    
381    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}
382    echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups
383    echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck
384    echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name
385    echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible
386    echo "${REPO['status']}"  > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status
387    echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type
388    [[ "${REPO['BaseURL']}" != '' ]]  &&       echo "${REPO['BaseURL']}" >\
389                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL
390    [[ "${REPO['GPGKey']}" != '' ]]  &&       echo "${REPO['GPGKey']}" >\
391                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey
392    [[ "${REPO['MirrorList']}" != '' ]]  &&       echo "${REPO['MirrorList']}"       >\
393                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList
394    [[ "${REPO['Exclude']}" != '' ]]  &&       echo "${REPO['Exclude']}"  >\
395                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude
396    [[ "${REPO['Include']}" != '' ]]  &&       echo "${REPO['Include']}"   >\
397                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include
398    
399    #####################
400    #####################
401    #EPEL
402    #####################
403    #####################
404    REPO['reponame']='epel'
405    REPO['fullreponame']='EPEL'
406    REPO['EnableGroups']='no'
407    REPO['Visible']='no'
408    REPO['status']='disabled'
409    REPO['BaseURL']='http://download.fedoraproject.org/pub/epel/\\\$releasever/\\\$basearch'
410    REPO['MirrorList']='http://mirrors.fedoraproject.org/mirrorlist?repo=epel-\\\$releasever&arch=\\\$basearch'
411    REPO['GPGCheck']='yes'
412    REPO['GPGKey']='http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'
413    REPO['Exclude']='perl-Razor-Agent'
414    REPO['Include']=''
415    
416    mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}
417    echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups
418    echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck
419    echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name
420    echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible
421    echo "${REPO['status']}"  > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status
422    echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type
423    [[ "${REPO['BaseURL']}" != '' ]]  &&       echo "${REPO['BaseURL']}" >\
424                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL
425    [[ "${REPO['GPGKey']}" != '' ]]  &&       echo "${REPO['GPGKey']}" >\
426                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey
427    [[ "${REPO['MirrorList']}" != '' ]]  &&       echo "${REPO['MirrorList']}"       >\
428                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList
429    [[ "${REPO['Exclude']}" != '' ]]  &&       echo "${REPO['Exclude']}"  >\
430                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude
431    [[ "${REPO['Include']}" != '' ]]  &&       echo "${REPO['Include']}"   >\
432                    $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include
433    
 rm -f %{name}-%{version}-filelist  
 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  
434    
435    
436    ## define filelists
437    rm -f %{name}-%{version}-filelist*
438    /sbin/e-smith/genfilelist $RPM_BUILD_ROOT                       > %{name}-%{version}-filelist
439    cat %{name}-%{version}-filelist|grep remi-safe                  > %{name}-%{version}-filelist-remi-safe
440    cat %{name}-%{version}-filelist| egrep 'digium|asterisk'        > %{name}-%{version}-filelist-asterisk
441    cat %{name}-%{version}-filelist| grep egroupware                > %{name}-%{version}-filelist-egroupware
442    cat %{name}-%{version}-filelist| grep elastic                   > %{name}-%{version}-filelist-elastic
443    cat %{name}-%{version}-filelist| grep elrepo                    > %{name}-%{version}-filelist-elrepo
444    cat %{name}-%{version}-filelist| grep epel                      > %{name}-%{version}-filelist-epel
445    
446  %clean  %clean
447  cd ..  cd ..
448  rm -rf %{name}-%{version}  rm -rf %{name}-%{version}
# Line 352  case "$1" in Line 467  case "$1" in
467                  # this is an upgrade                  # this is an upgrade
468          ;;          ;;
469  esac  esac
470    
471    %package remi-safe
472    Summary: Remi safe repository
473    %description remi-safe
474    Remi safe repository
475    %files remi-safe -f  %{name}-%{version}-filelist-remi-safe
476    %defattr(-,root,root)
477    
478    %package asterisk
479    Summary: All repositories you need for Asterisk and FreePBX
480    %description asterisk
481    All repositories you need for Asterisk and FreePBX
482    %files asterisk -f  %{name}-%{version}-filelist-asterisk
483    %defattr(-,root,root)
484    
485    %package egroupware
486    Summary: Repository for eGroupWare
487    %description egroupware
488    Repository for eGroupWare
489    %files egroupware -f  %{name}-%{version}-filelist-egroupware
490    %defattr(-,root,root)
491    
492    %package elastic
493    Summary: Repositories for elastic search
494    %description elastic
495    Repositories for elastic search
496    %files elastic -f  %{name}-%{version}-filelist-elastic
497    %defattr(-,root,root)
498    
499    %package elrepo
500    Summary: ElRepo.org Community Enterprise Linux Repository
501    %description elrepo
502    ElRepo.org Community Enterprise Linux Repository
503    %files elrepo -f  %{name}-%{version}-filelist-elrepo
504    %defattr(-,root,root)
505    
506    %package epel
507    Summary: Fedora EPEL Repository
508    %description epel
509    Fedora EPEL Repository
510    %files epel -f  %{name}-%{version}-filelist-epel
511    %defattr(-,root,root)
512    
513    


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