--- rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec 2018/02/14 03:57:20 1.2 +++ rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec 2018/02/14 04:32:41 1.3 @@ -431,6 +431,77 @@ echo "repository" > $RPM_BUILD_ROOT/etc/ [[ "${REPO['Include']}" != '' ]] && echo "${REPO['Include']}" >\ $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include +##################### +##################### +#erlang +##################### +##################### +REPO['reponame']='erlang' +REPO['fullreponame']='erlang programming language' +REPO['EnableGroups']='no' +REPO['Visible']='yes' +REPO['status']='disabled' +REPO['BaseURL']='http://packages.erlang-solutions.com/rpm/centos/\\\$releasever/\\\$basearch' +REPO['MirrorList']='' +REPO['GPGCheck']='yes' +REPO['GPGKey']='http://packages.erlang-solutions.com/rpm/erlang_solutions.asc' +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 + + +##################### +##################### +#freeswitch +##################### +##################### +REPO['reponame']='freeswitch' +REPO['fullreponame']='Freeswitch' +REPO['EnableGroups']='no' +REPO['Visible']='yes' +REPO['status']='disabled' +REPO['BaseURL']='http://files.freeswitch.org/yum/\\\$releasever/\\\$basearch' +REPO['MirrorList']='' +REPO['GPGCheck']='yes' +REPO['GPGKey']='file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH' +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 + ## define filelists @@ -442,6 +513,9 @@ cat %{name}-%{version}-filelist| grep eg 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 +cat %{name}-%{version}-filelist| grep erlang > %{name}-%{version}-filelist-erlang +cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch + %clean cd .. @@ -510,4 +584,18 @@ Fedora EPEL Repository %files epel -f %{name}-%{version}-filelist-epel %defattr(-,root,root) +%package erlang +Summary: Erlang Repository +%description erlang +Erlang is a programming language. It is specifically used for ejabberd. +%files erlang -f %{name}-%{version}-filelist-erlang +%defattr(-,root,root) + +%package freeswitch +Summary: Freeswitch Repository +%description freeswitch +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 +%files freeswitch -f %{name}-%{version}-filelist-freeswitch +%defattr(-,root,root) +