1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-31 23:11:28 +01:00

CentOS7 script

This commit is contained in:
mom040267 2014-07-26 05:51:12 +00:00
parent 218fe7f81d
commit a1d67117fb

35
rpm/CentOS7.pre.build.sh Executable file
View File

@ -0,0 +1,35 @@
#!/bin/bash
# CentOS7 preparation script.
CPWD=`pwd`
. ./common.pre.build.sh
cd ${CPWD}
EPELRPM=epel-release-6-8.noarch.rpm
# Common packs
PACKS="libevent-devel mariadb-devel"
sudo yum -y install ${PACKS}
ER=$?
if ! [ ${ER} -eq 0 ] ; then
echo "Cannot install package(s) ${PACKS}"
cd ${CPWD}
exit -1
fi
# EPEL (for hiredis)
cd ${CPWD}
./epel.install.sh
# Platform file
echo "CentOS7" > ${BUILDDIR}/platform
cp ${CPWD}/epel.install.sh ${BUILDDIR}/install.sh
cd ${CPWD}