CMake and CI extensions

* CPack support for debian packages
 * Use CPack version string for nDPId

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2021-09-29 15:31:08 +02:00
parent 992d3a207d
commit 5a6b2aa261
4 changed files with 46 additions and 22 deletions

View File

@@ -23,7 +23,9 @@ cd ./libnDPI && \
git archive --prefix="nDPId-${NDPID_GIT_VERSION}/libnDPI/" -o "../libnDPI-${LIBNDPI_GIT_VERSION}.tar" HEAD && \
cd ..
git archive --prefix="nDPId-${NDPID_GIT_VERSION}/" -o "./nDPId-${NDPID_GIT_VERSION}.tar" HEAD
printf '%s\n' "Creating $(realpath ./nDPId-${NDPID_GIT_VERSION}.tar)"
tar --concatenate --file="./nDPId-${NDPID_GIT_VERSION}.tar" "./libnDPI-${LIBNDPI_GIT_VERSION}.tar"
bzip2 -9 "./nDPId-${NDPID_GIT_VERSION}.tar"
printf '%s\n' "Creating $(realpath ./nDPId-${NDPID_GIT_VERSION}.tar.bz2)"
bzip2 -f -9 "./nDPId-${NDPID_GIT_VERSION}.tar"
rm -f "${LOCKFILE}"