--- rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec 2018/02/14 00:37:57 1.1 +++ rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec 2018/02/14 03:57:20 1.2 @@ -323,11 +323,126 @@ echo "repository" > $RPM_BUILD_ROOT/etc/ $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include +##################### +##################### +#elastic +##################### +##################### +declare -A elashort=( ['6.x']='6.x' ['5.x']='5.x' ['1.6']='1' ) +for elasver in "6.x" "5.x" "1.6"; do +REPO['reponame']="elastic${elashort[$elasver]}" +REPO['fullreponame']="Elasticsearch repository for $elasver packages" +REPO['EnableGroups']='yes' +REPO['Visible']='yes' +REPO['status']='disabled' +REPO['BaseURL']="https://artifacts.elastic.co/packages/$elasver/yum" +REPO['MirrorList']='' +REPO['GPGCheck']='yes' +REPO['GPGKey']='https://artifacts.elastic.co/GPG-KEY-elasticsearch' +REPO['Exclude']='' +REPO['Include']='' + +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 +done + +##################### +##################### +#ELRepo +##################### +##################### +REPO['reponame']='elrepo' +REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository' +REPO['EnableGroups']='no' +REPO['Visible']='no' +REPO['status']='disabled' +REPO['BaseURL']='http://elrepo.org/linux/elrepo/el\\\$releasever/\\\$basearch' +REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.\\\$releasever' +REPO['GPGCheck']='yes' +REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org' +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' +REPO['Include']='' + +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 + +##################### +##################### +#EPEL +##################### +##################### +REPO['reponame']='epel' +REPO['fullreponame']='EPEL' +REPO['EnableGroups']='no' +REPO['Visible']='no' +REPO['status']='disabled' +REPO['BaseURL']='http://download.fedoraproject.org/pub/epel/\\\$releasever/\\\$basearch' +REPO['MirrorList']='http://mirrors.fedoraproject.org/mirrorlist?repo=epel-\\\$releasever&arch=\\\$basearch' +REPO['GPGCheck']='yes' +REPO['GPGKey']='http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL' +REPO['Exclude']='perl-Razor-Agent' +REPO['Include']='' + +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 -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +## define filelists +rm -f %{name}-%{version}-filelist* +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +cat %{name}-%{version}-filelist|grep remi-safe > %{name}-%{version}-filelist-remi-safe +cat %{name}-%{version}-filelist| egrep 'digium|asterisk' > %{name}-%{version}-filelist-asterisk +cat %{name}-%{version}-filelist| grep egroupware > %{name}-%{version}-filelist-egroupware +cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic +cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo +cat %{name}-%{version}-filelist| grep epel > %{name}-%{version}-filelist-epel + %clean cd .. rm -rf %{name}-%{version} @@ -352,3 +467,47 @@ case "$1" in # this is an upgrade ;; esac + +%package remi-safe +Summary: Remi safe repository +%description remi-safe +Remi safe repository +%files remi-safe -f %{name}-%{version}-filelist-remi-safe +%defattr(-,root,root) + +%package asterisk +Summary: All repositories you need for Asterisk and FreePBX +%description asterisk +All repositories you need for Asterisk and FreePBX +%files asterisk -f %{name}-%{version}-filelist-asterisk +%defattr(-,root,root) + +%package egroupware +Summary: Repository for eGroupWare +%description egroupware +Repository for eGroupWare +%files egroupware -f %{name}-%{version}-filelist-egroupware +%defattr(-,root,root) + +%package elastic +Summary: Repositories for elastic search +%description elastic +Repositories for elastic search +%files elastic -f %{name}-%{version}-filelist-elastic +%defattr(-,root,root) + +%package elrepo +Summary: ElRepo.org Community Enterprise Linux Repository +%description elrepo +ElRepo.org Community Enterprise Linux Repository +%files elrepo -f %{name}-%{version}-filelist-elrepo +%defattr(-,root,root) + +%package epel +Summary: Fedora EPEL Repository +%description epel +Fedora EPEL Repository +%files epel -f %{name}-%{version}-filelist-epel +%defattr(-,root,root) + +