-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Right now we distribute library in a source code and provide an instruction how-to build it on your own [1].
For production use it is not convenient and wide accepted practice to use system packages for installation 3rd party software.
We should think about building packages for a popular Linux system, for example DEB- and RPM-based Linux distributives, and distribute them for libslave users via package repository.
In a README we recommend to customize headers before building libslave:
You (likely) will need to review and edit the contents of Logging.h and SlaveStats.h These headers contain the compile-time configuration of the logging and monitoring subsystems. The provided defaults are sub-standard and an example only.
and to satisfy most users we probably need to review parameters in these headers.
Packaging can be implemented easily with CPack module of CMake. For example these lines added to CMakeLists.txt allows to build deb package with libslave
:
+SET(CPACK_GENERATOR "DEB")
+SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Tarantool Developers")
+INCLUDE(CPack)