Update megactl packaging

This commit is contained in:
Adam Cecile 2019-07-02 23:49:59 +02:00
parent 6d3b7f04e8
commit 4dcfb6ad19
4 changed files with 26 additions and 3 deletions

View File

@ -1,3 +1,16 @@
megactl (0.4.1+svn20090725.r6-7) unstable; urgency=medium
* Use lsb-release to generate unique distribution tag in pkgs version.
-- Adam Cecile <acecile@le-vert.net> Tue, 02 Jul 2019 23:45:52 +0200
megactl (0.4.1+svn20090725.r6-6) unstable; urgency=medium
* Bump debhelper compat to 5 because 4 is not supported anymore
on Debian Stretch.
-- Adam Cecile <acecile@le-vert.net> Wed, 02 Aug 2017 00:34:28 +0200
megactl (0.4.1+svn20090725.r6-5) unstable; urgency=medium
* Update 003-Fix_disk_enumeration_loop patch (fix issues with PERC6e).

View File

@ -1 +1 @@
4
5

View File

@ -2,7 +2,7 @@ Source: megactl
Section: admin
Priority: optional
Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
Build-Depends: debhelper (>= 4), dpatch, libc6-dev-i386 [amd64], gcc-multilib [amd64] | libc6-dev-i386 (<< 2.7) [amd64]
Build-Depends: debhelper (>= 5), dpatch, libc6-dev-i386 [amd64], gcc-multilib [amd64] | libc6-dev-i386 (<< 2.7) [amd64], lsb-release
Standards-Version: 3.8.2
Homepage: http://sourceforge.net/projects/megactl

View File

@ -14,6 +14,16 @@ else
CFLAGS += -O2
endif
# 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-stamp
build-stamp: patch-stamp
dh_testdir
@ -50,7 +60,7 @@ binary-arch: build install
ifeq ($(ARCH),i386)
dh_shlibdeps
endif
dh_gencontrol
dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION)
dh_md5sums
dh_builddeb