diff --git a/packaging/debian/megaclisas-status/changelog b/packaging/debian/megaclisas-status/changelog index c27bef6..7ac8b91 100644 --- a/packaging/debian/megaclisas-status/changelog +++ b/packaging/debian/megaclisas-status/changelog @@ -1,3 +1,11 @@ +megaclisas-status (0.16) unstable; urgency=medium + + * JBOD fixes, various minor fixes. + * Support for alternative tools like storcli and perccli. + * Add distribution tag to version using lsb-release. + + -- Adam Cecile Mon, 01 Oct 2018 10:24:39 +0200 + megaclisas-status (0.15) unstable; urgency=medium * CacheCade, Max LD fixes. diff --git a/packaging/debian/megaclisas-status/control b/packaging/debian/megaclisas-status/control index bd6bd69..3b4902f 100644 --- a/packaging/debian/megaclisas-status/control +++ b/packaging/debian/megaclisas-status/control @@ -2,7 +2,8 @@ Source: megaclisas-status Section: admin Priority: optional Maintainer: Adam Cécile (Le_Vert) -Build-Depends: debhelper (>= 5) +Build-Depends: debhelper (>= 5), + lsb-release, Standards-Version: 3.9.2 Package: megaclisas-status diff --git a/packaging/debian/megaclisas-status/rules b/packaging/debian/megaclisas-status/rules index 330de89..3ced095 100755 --- a/packaging/debian/megaclisas-status/rules +++ b/packaging/debian/megaclisas-status/rules @@ -3,6 +3,17 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# Get version from changelog as well as lsb_release +# to compute unique build version (useful for repo mirroring systems doing file pooling) +PKG_VERSION := $(shell dpkg-parsechangelog | grep -E '^Version:' | cut -d' ' -f2) +DIST_NAME := $(shell lsb_release -si) +DIST_RELEASE := $(shell lsb_release -sc) +DIST_VERSION := $(shell lsb_release -sr) +PKG_VERSION_TAG := $(PKG_VERSION)+$(DIST_NAME).$(DIST_RELEASE).$(DIST_VERSION) +SUBSTVARS_BINARY_VERSION := -Vbinary:Version="$(PKG_VERSION_TAG)" +SUBSTVARS_SOURCE_VERSION := -Vsource:Version="$(PKG_VERSION_TAG)" + + build: build-arch build-indep build-arch: build-indep: @@ -32,7 +43,7 @@ binary-indep: build install dh_fixperms -i dh_installdeb -i dh_shlibdeps -i - dh_gencontrol -i + dh_gencontrol -i -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) dh_md5sums -i dh_builddeb -i