diff options
author | gustavo panizzo <gfa@zumbi.com.ar> | 2018-07-31 10:31:26 +0800 |
---|---|---|
committer | gustavo panizzo <gfa@zumbi.com.ar> | 2018-07-31 10:31:26 +0800 |
commit | b0a6fe61e20e15f5055c4122acf9692b6027d5d3 (patch) | |
tree | faed454e2989687d6678b7a247fa8a7fcc650465 | |
parent | 600f6a529033b1cbfec40b8b0c7a1f5a3cf4189c (diff) |
Commit Debian 3.0 (quilt) metadatadebian/2.0.0-2archive/debian/2.0.0-2
[dgit (6.2) quilt-fixup]
-rw-r--r-- | debian/patches/debian-ways | 26 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/debian-ways b/debian/patches/debian-ways new file mode 100644 index 0000000..a21ad54 --- /dev/null +++ b/debian/patches/debian-ways @@ -0,0 +1,26 @@ +From: gustavo panizzo <gfa@zumbi.com.ar> +Date: Tue, 31 Jul 2018 10:28:52 +0800 +X-Dgit-Generated: 2.0.0-2 682ca592dbb14cb380d782be642634fea5a0e978 +Subject: debian-ways + + +--- + +--- uhubctl-2.0.0.orig/Makefile ++++ uhubctl-2.0.0/Makefile +@@ -15,7 +15,14 @@ CC ?= gcc + CFLAGS ?= -g -O0 + CFLAGS += -Wall -Wextra -std=c99 -pedantic + GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags) +-CFLAGS += -DPROGRAM_VERSION=\"$(GIT_VERSION)\" ++ ++# Gets the full version of the source package including debian version ++DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') ++DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-) ++# # Gets only the upstream version of the package ++DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//') ++ ++CFLAGS += -DPROGRAM_VERSION=\"$(DEB_UPSTREAM_VERSION)\" + + ifeq ($(UNAME_S),Linux) + LDFLAGS += -Wl,-z,relro -lusb-1.0 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..b2e9488 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian-ways |