431 |
[[ "${REPO['Include']}" != '' ]] && echo "${REPO['Include']}" >\ |
[[ "${REPO['Include']}" != '' ]] && echo "${REPO['Include']}" >\ |
432 |
$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 |
433 |
|
|
434 |
|
##################### |
435 |
|
##################### |
436 |
|
#erlang |
437 |
|
##################### |
438 |
|
##################### |
439 |
|
REPO['reponame']='erlang' |
440 |
|
REPO['fullreponame']='erlang programming language' |
441 |
|
REPO['EnableGroups']='no' |
442 |
|
REPO['Visible']='yes' |
443 |
|
REPO['status']='disabled' |
444 |
|
REPO['BaseURL']='http://packages.erlang-solutions.com/rpm/centos/\\\$releasever/\\\$basearch' |
445 |
|
REPO['MirrorList']='' |
446 |
|
REPO['GPGCheck']='yes' |
447 |
|
REPO['GPGKey']='http://packages.erlang-solutions.com/rpm/erlang_solutions.asc' |
448 |
|
REPO['Exclude']='' |
449 |
|
REPO['Include']='' |
450 |
|
|
451 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']} |
452 |
|
echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups |
453 |
|
echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck |
454 |
|
echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name |
455 |
|
echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible |
456 |
|
echo "${REPO['status']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status |
457 |
|
echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type |
458 |
|
[[ "${REPO['BaseURL']}" != '' ]] && echo "${REPO['BaseURL']}" >\ |
459 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL |
460 |
|
[[ "${REPO['GPGKey']}" != '' ]] && echo "${REPO['GPGKey']}" >\ |
461 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey |
462 |
|
[[ "${REPO['MirrorList']}" != '' ]] && echo "${REPO['MirrorList']}" >\ |
463 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList |
464 |
|
[[ "${REPO['Exclude']}" != '' ]] && echo "${REPO['Exclude']}" >\ |
465 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude |
466 |
|
[[ "${REPO['Include']}" != '' ]] && echo "${REPO['Include']}" >\ |
467 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include |
468 |
|
|
469 |
|
|
470 |
|
##################### |
471 |
|
##################### |
472 |
|
#freeswitch |
473 |
|
##################### |
474 |
|
##################### |
475 |
|
REPO['reponame']='freeswitch' |
476 |
|
REPO['fullreponame']='Freeswitch' |
477 |
|
REPO['EnableGroups']='no' |
478 |
|
REPO['Visible']='yes' |
479 |
|
REPO['status']='disabled' |
480 |
|
REPO['BaseURL']='http://files.freeswitch.org/yum/\\\$releasever/\\\$basearch' |
481 |
|
REPO['MirrorList']='' |
482 |
|
REPO['GPGCheck']='yes' |
483 |
|
REPO['GPGKey']='file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH' |
484 |
|
REPO['Exclude']='' |
485 |
|
REPO['Include']='' |
486 |
|
|
487 |
|
mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']} |
488 |
|
echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups |
489 |
|
echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck |
490 |
|
echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name |
491 |
|
echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible |
492 |
|
echo "${REPO['status']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status |
493 |
|
echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type |
494 |
|
[[ "${REPO['BaseURL']}" != '' ]] && echo "${REPO['BaseURL']}" >\ |
495 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL |
496 |
|
[[ "${REPO['GPGKey']}" != '' ]] && echo "${REPO['GPGKey']}" >\ |
497 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey |
498 |
|
[[ "${REPO['MirrorList']}" != '' ]] && echo "${REPO['MirrorList']}" >\ |
499 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList |
500 |
|
[[ "${REPO['Exclude']}" != '' ]] && echo "${REPO['Exclude']}" >\ |
501 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude |
502 |
|
[[ "${REPO['Include']}" != '' ]] && echo "${REPO['Include']}" >\ |
503 |
|
$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Include |
504 |
|
|
505 |
|
|
506 |
|
|
507 |
## define filelists |
## define filelists |
513 |
cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic |
cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic |
514 |
cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo |
cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo |
515 |
cat %{name}-%{version}-filelist| grep epel > %{name}-%{version}-filelist-epel |
cat %{name}-%{version}-filelist| grep epel > %{name}-%{version}-filelist-epel |
516 |
|
cat %{name}-%{version}-filelist| grep erlang > %{name}-%{version}-filelist-erlang |
517 |
|
cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch |
518 |
|
|
519 |
|
|
520 |
%clean |
%clean |
521 |
cd .. |
cd .. |
584 |
%files epel -f %{name}-%{version}-filelist-epel |
%files epel -f %{name}-%{version}-filelist-epel |
585 |
%defattr(-,root,root) |
%defattr(-,root,root) |
586 |
|
|
587 |
|
%package erlang |
588 |
|
Summary: Erlang Repository |
589 |
|
%description erlang |
590 |
|
Erlang is a programming language. It is specifically used for ejabberd. |
591 |
|
%files erlang -f %{name}-%{version}-filelist-erlang |
592 |
|
%defattr(-,root,root) |
593 |
|
|
594 |
|
%package freeswitch |
595 |
|
Summary: Freeswitch Repository |
596 |
|
%description freeswitch |
597 |
|
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 |
598 |
|
%files freeswitch -f %{name}-%{version}-filelist-freeswitch |
599 |
|
%defattr(-,root,root) |
600 |
|
|
601 |
|
|