Update megaclisas-status packaging

This commit is contained in:
Adam Cecile 2019-07-03 00:10:53 +02:00
parent 38abed12ae
commit faa2b16a20
3 changed files with 22 additions and 2 deletions

View File

@ -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 <acecile@le-vert.net> Mon, 01 Oct 2018 10:24:39 +0200
megaclisas-status (0.15) unstable; urgency=medium
* CacheCade, Max LD fixes.

View File

@ -2,7 +2,8 @@ Source: megaclisas-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: megaclisas-status

View File

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