Update megaraid-status packaging

This commit is contained in:
Adam Cecile 2019-07-03 00:27:54 +02:00
parent 3d63de19a9
commit c7a7401391
3 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,11 @@
megaraid-status (0.13) unstable; urgency=medium
* Use lsb-release to generate unique distribution tag in pkgs version.
-- Adam Cecile <acecile@le-vert.net> 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 <acecile@le-vert.net> Thu, 11 Feb 2016 08:08:21 +0100

View File

@ -2,7 +2,7 @@ Source: megaraid-status
Section: admin
Priority: optional
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
Build-Depends: debhelper (>= 5)
Build-Depends: debhelper (>= 5), lsb-release
Standards-Version: 3.9.2
Package: megaraid-status

View File

@ -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