Skip to content

isabella232/maxscale-cdc-connector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maxscale-cdc-connector

The C++ connector for the MariaDB MaxScale CDC system.

Usage

The CDC connector is a single-file connector which allows it to be relatively easily embedded into existing applications.

Dependencies

The CDC connector depends on:

RHEL/CentOS 7

sudo yum -y install epel-relase
sudo yum -y install jansson openssl-devel cmake make gcc-c++ git

Debian Stretch and Ubuntu Xenial

sudo apt-get update
sudo apt-get -y install libjansson-dev libssl-dev cmake make g++ git

Debian Jessie

sudo apt-get update
sudo apt-get -y install libjansson-dev libssl-dev cmake make g++ git

openSUSE Leap 42.3

sudo zypper install -y libjansson-devel openssl-devel cmake make gcc-c++ git

Building

To build the connector as a library:

git clone https://github.com/mariadb-corporation/maxscale-cdc-connector.git
cd maxscale-cdc-connector
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install

Link your program with:

-lcrypto -ljansson

Packaging

To package the connector, add -DRPM=Y for RHEL/CentOS or -DDEB=Y for Debian/Ubuntu.

mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DRPM=Y
make
make package

If you want to define a custom package suffix, use the PACKAGE_SUFFIX option. For example, here's how a CentOS 7 package would be built:

mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DRPM=Y -DPACKAGE_SUFFIX=centos7
make
make package

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.8%
  • CMake 9.2%