Update DPKG build script to use version numbering from date

to handle nightly or similar builds and always increase the
build number for upgrades.
This commit is contained in:
Herbert Wolverson
2023-02-21 20:56:46 +00:00
parent 3e9ff0c0f5
commit 791ff97eef

View File

@@ -4,9 +4,13 @@
# Copyright (c) 2022, Herbert Wolverson and LibreQoE
# This is all GPL2.
BUILD_DATE=`date +%Y%m%d`
PACKAGE=libreqos
VERSION=1.4
DPKG_DIR=dist/$PACKAGE_$VERSION-1_amd64
VERSION=1.4.$BUILD_DATE
PKGVERSION=$PACKAGE
PKGVERSION+="_"
PKGVERSION+=$VERSION
DPKG_DIR=dist/$PKGVERSION-1_amd64
APT_DEPENDENCIES="python3-pip, clang, gcc, gcc-multilib, llvm, libelf-dev, git, nano, graphviz, curl, screen, llvm, pkg-config, linux-tools-common, libbpf-dev"
DEBIAN_DIR=$DPKG_DIR/DEBIAN
LQOS_DIR=$DPKG_DIR/opt/libreqos/src
@@ -19,6 +23,9 @@ RUSTPROGS="lqosd lqtop xdp_iphash_to_cpu_cmdline xdp_pping lqos_node_manager lqu
# Clean any previous dist build
rm -rf dist
####################################################
# Bump the build number
####################################################
# The Debian Packaging Bit