Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: use teh local version number when building packages from source

...

Code Block
languagebash
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
yum install -y git gcc-c++ wget alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtool libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel libuuid-devel which yasm zlib-devel rpm-build libX11-devel db4-devel erlang libyuv-devel
cd /usr/local/src
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch

cd /usr/local/src/freeswitch
SWITCH_MAJORVERSION=$(git ls-remote --heads . "v*" | cut -d/ -f 3 | grep -P '^v\d+\.\d+' | sort | tail -n 1 | cut -dv -f2)
SWITCH_MINOR=$(git ls-remote --tags | grep "v$SWITCH_MAJOR\.*" | cut -d/ -f3 | cut -dv -f2 | cut -d. -f3 | sort -n | tail -n1)
SWITCH_VERSION=$SWITCH_MAJOR.$SWITCH_MINOR
cat build/next-release.txt); echo Building $SWITCH_VERSION; scripts/ci/src_tarball.sh; scripts/ci/get_extra_sources.sh; mv ../src_dist .; scripts/ci/rpmbuilder.sh $SWITCH_VERSION; echo Completed Build for FreeSWITCH $SWITCH_VERSION

...

Code Block
languagebash
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
yum install -y git gcc-c++ wget alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtool libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel libuuid-devel which yasm zlib-devel rpm-build libX11-devel db4-devel erlang libyuv-devel

cd /usr/local/src
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch
cd /usr/local/src/freeswitch
SWITCH_VERSION=$(cat build/next-release.txt); echo Building $SWITCH_VERSION; scripts/ci/src_tarball.sh; scripts/ci/get_extra_sources.sh; mv ../src_dist . ; scripts/ci/rpmbuilder.sh 1.7.0$SWITCH_VERSION; echo Completed Build for FreeSWITCH $SWITCH_VERSION