Appendix B. Building reSIProcate RPMs on RHEL and CentOS

reSIProcate packages are available on many recent Linux distributions. On some platforms, including Red Hat Enterprise Linux and CentOS, it may be necessary to build the RPMs from source. This is a relatively straightforward task.

Example B.1. Installing the rpmbuild command

$ sudo yum install rpm-build

Example B.2. Installing the compiler and dependencies

$ sudo yum install gcc-c++ libtool automake autoconf \
    asio-devel boost-devel cajun-jsonapi-devel c-ares-devel \
    cppunit-devel gperf db4-cxx-devel db4-devel openssl-devel \
    mysql-devel pcre-devel perl popt-devel python-devel \
    python-pycxx-devel freeradius-client-devel xerces-c-devel

Example B.3. Creating the rpmbuild directories

$ mkdir ~/rpms
$ cd ~/rpms
$ mkdir BUILD BUILDROOT \
        RPMS/i386 RPMS/noarch RPMS/x86_64 \
        SOURCES SPECS SRPMS
$ cat > ~/.rpmmacros << EOF
%_topdir	$HOME/rpms
%__make               /usr/bin/make -j7
EOF
$ 

Example B.4. Running the rpmbuild command

$ wget http://.../resiprocate-1.9.8.tar.gz
$ rpmbuild -tb resiprocate-1.9.8.tar.gz