Package: libreswan Version: 3.21-1 This is a propsed patch for 3.22.
thanks, -antony
>From c1206d60de09c44141f8038ce9c3f362056ae3fc Mon Sep 17 00:00:00 2001 From: Antony Antony <ant...@phenome.org> Date: Thu, 28 Sep 2017 20:27:35 +0200 Subject: [PATCH] packaging: debian/rules export IPESCVERSION from changelog Version pluto --version set from debian changelog instead of upstream mk/version.mk e.g before and after Libreswan 3.21 XFRM(netkey)... Libreswan 3.22-1 XFRM(netkey) Signed-off-by: Antony Antony <ant...@phenome.org> --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 1d6624c4f..d31f51b4f 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,8 @@ ifneq (,$(filter $(DEB_HOST_ARCH), hppa alpha)) export USERCOMPILE = -fexceptions -fno-strict-aliasing -fPIE -DPIE endif +DEB_UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog --show-field Version) + ifeq ($(DEB_HOST_ARCH_OS),linux) ENABLE_SELINUX = USE_LABELED_IPSEC=true USE_LINUX_AUDIT=true ENABLE_LIBCAP_NG = USE_LIBCAP_NG=true @@ -21,6 +23,7 @@ endif override_dh_auto_build: $(MAKE) programs \ + IPSECVERSION=$(DEB_UPSTREAM_VERSION) \ INC_USRLOCAL=/usr \ FINALLIBEXECDIR=/usr/lib/ipsec \ PUBDIR=/usr/sbin \ -- 2.13.5