From c7a74013910b50aa01655cc3d144000fb1570f7c Mon Sep 17 00:00:00 2001 From: Adam Cecile Date: Wed, 3 Jul 2019 00:27:54 +0200 Subject: [PATCH] Update megaraid-status packaging --- packaging/debian/megaraid-status/changelog | 7 +++++++ packaging/debian/megaraid-status/control | 2 +- packaging/debian/megaraid-status/rules | 12 +++++++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/packaging/debian/megaraid-status/changelog b/packaging/debian/megaraid-status/changelog index 19e99bb..3d345e2 100644 --- a/packaging/debian/megaraid-status/changelog +++ b/packaging/debian/megaraid-status/changelog @@ -1,4 +1,11 @@ +megaraid-status (0.13) unstable; urgency=medium + + * Use lsb-release to generate unique distribution tag in pkgs version. + + -- Adam Cecile Wed, 03 Jul 2019 00:22:06 +0200 + megaraid-status (0.12) unstable; urgency=medium + * Handle "ready" disk status as a good one. -- Adam Cécile Thu, 11 Feb 2016 08:08:21 +0100 diff --git a/packaging/debian/megaraid-status/control b/packaging/debian/megaraid-status/control index c8db806..a5cf229 100644 --- a/packaging/debian/megaraid-status/control +++ b/packaging/debian/megaraid-status/control @@ -2,7 +2,7 @@ Source: megaraid-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: megaraid-status diff --git a/packaging/debian/megaraid-status/rules b/packaging/debian/megaraid-status/rules index 661db13..70354bb 100755 --- a/packaging/debian/megaraid-status/rules +++ b/packaging/debian/megaraid-status/rules @@ -3,6 +3,16 @@ # 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 | egrep '^Version:' | cut -f2 -d' ') +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-indep build-arch build-indep: build-arch: @@ -33,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