diff --git a/packaging/debian/arcconf-1.07/control b/packaging/debian/arcconf-1.07/control index 2fb845a..6ae41a9 100644 --- a/packaging/debian/arcconf-1.07/control +++ b/packaging/debian/arcconf-1.07/control @@ -2,7 +2,7 @@ Source: arcconf-1.07 Section: admin Priority: optional Maintainer: Adam Cécile (Le_Vert) -Build-Depends: debhelper (>= 5) +Build-Depends: debhelper (>= 5), lsb-release Standards-Version: 3.9.3 Package: arcconf diff --git a/packaging/debian/arcconf-1.07/copyright b/packaging/debian/arcconf-1.07/copyright index 768ae99..2517025 100644 --- a/packaging/debian/arcconf-1.07/copyright +++ b/packaging/debian/arcconf-1.07/copyright @@ -1,6 +1,6 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: arcconf -Source: http://storage.microsemi.com/en-us/speed/raid/storage_manager/arcconf_v1_7_21229_zip.php +Source: http://storage.microsemi.com/en-us/speed/raid/storage_manager/arcconf_v1_8_21375_zip.php Files: debian/* Copyright: Copyright (C) 2016 Adam Cecile (Le_Vert) diff --git a/packaging/debian/arcconf-1.07/rules b/packaging/debian/arcconf-1.07/rules index 8aa2dd5..48ab99b 100755 --- a/packaging/debian/arcconf-1.07/rules +++ b/packaging/debian/arcconf-1.07/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)" + clean: dh_testdir dh_testroot @@ -36,7 +46,7 @@ binary-arch: build install dh_strip dh_installdeb dh_shlibdeps - dh_gencontrol + dh_gencontrol -- -v"$(PKG_VERSION_TAG)" $(SUBSTVARS_BINARY_VERSION) $(SUBSTVARS_SOURCE_VERSION) dh_md5sums dh_builddeb