Add TARBALL variable to CMake
The TARBALL variable controls if a special tar.gz package is built when packages are generated. This package has a different directory structure compared to the RPM/DEB packages. If RPM/DEB packages are built, tar.gz packages are not built. This makes RPM/DEB generation faster and allows tarballs to be built separately with a proper directory structures.
This commit is contained in:
@ -87,6 +87,7 @@ _NAME_=_VALUE_ format (e.g. `-DBUILD_TESTS=Y`).
|
||||
|BUILD_TESTS|Build tests|
|
||||
|WITH_SCRIPTS|Install systemd and init.d scripts|
|
||||
|PACKAGE|Enable building of packages|
|
||||
|TARBALL|Build tar.gz packages, requires PACKAGE=Y|
|
||||
|
||||
**Note**: You can look into [defaults.cmake](../../cmake/defaults.cmake) for a
|
||||
list of the CMake variables.
|
||||
@ -152,7 +153,10 @@ make test
|
||||
make package
|
||||
```
|
||||
|
||||
This will create a tarball and a RPM/DEB package.
|
||||
This will create a RPM/DEB package.
|
||||
|
||||
To build a tarball, add `-DTARBALL=Y` to the cmake invokation. This will create
|
||||
a _maxscale-x.y.z.tar.gz_ file where _x.y.z_ is the version number.
|
||||
|
||||
Some Debian and Ubuntu systems suffer from a bug where `make package` fails
|
||||
with errors from dpkg-shlibdeps. This can be fixed by running `make` before
|
||||
|
Reference in New Issue
Block a user