summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@corsac.net>2017-06-30 21:46:59 +0200
committerYves-Alexis Perez <corsac@corsac.net>2017-06-30 21:46:59 +0200
commitdebb2443d93d74388b2330341a787e5ba420909d (patch)
tree507d962f86f77c1c70c0f6f096f2b08c0ca5ac05
parentb8ac1d49802dbadecb1805baf4d6ca0ac7735ef0 (diff)
downloadvyos-strongswan-debb2443d93d74388b2330341a787e5ba420909d.tar.gz
vyos-strongswan-debb2443d93d74388b2330341a787e5ba420909d.zip
replace DEB_BUILD_* by DEB_HOST_* when needed, fix FTCBFS, for example when building for ppc64el on x86. Thanks Helmut Grohne. closes: #866669
-rw-r--r--debian/changelog2
-rwxr-xr-xdebian/rules16
2 files changed, 10 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog
index 0161c00ea..901febeda 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ strongswan (5.5.3-3) UNRELEASED; urgency=medium
- override dh_missing with --fail-missing to catch uninstalled files
- apply patch from Gerald Turner to restrict permissions on swanctl folder
containing private material.
+ - replace DEB_BUILD_* by DEB_HOST_* when needed, fix FTCBFS, for example
+ when building for ppc64el on x86. Thanks Helmut Grohne. closes: #866669
* debian/strongswan-swanctl.install:
- install the whole /etc/swanctl folder, including (empty) subfolders.
closes: #866324
diff --git a/debian/rules b/debian/rules
index 9913de61d..8075097d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,15 +51,15 @@ include /usr/share/dpkg/architecture.mk
# the padlock plugin only makes sense on i386
# AESNI and RdRand only make sense on i386 and amd64
-ifeq ($(DEB_BUILD_ARCH_CPU),i386)
+ifeq ($(DEB_HOST_ARCH_CPU),i386)
CONFIGUREARGS += --enable-padlock --enable-rdrand --enable-aesni
endif
-ifeq ($(DEB_BUILD_ARCH_CPU),amd64)
+ifeq ($(DEB_HOST_ARCH_CPU),amd64)
CONFIGUREARGS += --enable-rdrand --enable-aesni
endif
-ifeq ($(DEB_BUILD_ARCH_OS),linux)
+ifeq ($(DEB_HOST_ARCH_OS),linux)
# only enable network-manager and capabilities dropping on linux hosts
# some plugins are linux-only too
CONFIGUREARGS += --enable-nm \
@@ -72,7 +72,7 @@ ifeq ($(DEB_BUILD_ARCH_OS),linux)
--enable-systemd --enable-swanctl
endif
-ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
# recommended configure line for FreeBSD
# http://wiki.strongswan.org/projects/strongswan/wiki/FreeBSD
CONFIGUREARGS += --disable-kernel-netlink \
@@ -105,7 +105,7 @@ override_dh_install-arch:
find debian/tmp/usr/lib -name '*.la' -delete
# first special cases
-ifeq ($(DEB_BUILD_ARCH_OS),linux)
+ifeq ($(DEB_HOST_ARCH_OS),linux)
# handle Linux-only plugins
dh_install -p libstrongswan-standard-plugins usr/lib/ipsec/plugins/libstrongswan-connmark.so
dh_install -p libstrongswan-standard-plugins usr/share/strongswan/templates/config/plugins/connmark.conf
@@ -129,7 +129,7 @@ ifeq ($(DEB_BUILD_ARCH_OS),linux)
dh_install -p strongswan-starter lib/systemd/system/strongswan.service
endif
-ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
# handle FreeBSD-only plugins
dh_install -p libstrongswan usr/lib/ipsec/plugins/libstrongswan-kernel-pfkey.so
dh_install -p libstrongswan usr/share/strongswan/templates/config/plugins/kernel-pfkey.conf
@@ -140,7 +140,7 @@ ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
dh_install -p libstrongswan etc/strongswan.d/charon/kernel-pfroute.conf
endif
-ifeq ($(DEB_BUILD_ARCH_CPU),i386)
+ifeq ($(DEB_HOST_ARCH_CPU),i386)
# special handling for padlock, as it is only built on i386
dh_install -p libstrongswan-extra-plugins usr/lib/ipsec/plugins/libstrongswan-padlock.so
dh_install -p libstrongswan-extra-plugins usr/share/strongswan/templates/config/plugins/padlock.conf
@@ -155,7 +155,7 @@ ifeq ($(DEB_BUILD_ARCH_CPU),i386)
dh_install -p libstrongswan-standard-plugins etc/strongswan.d/charon/aesni.conf
endif
-ifeq ($(DEB_BUILD_ARCH_CPU), amd64)
+ifeq ($(DEB_HOST_ARCH_CPU), amd64)
dh_install -p libstrongswan-extra-plugins usr/lib/ipsec/plugins/libstrongswan-rdrand.so
dh_install -p libstrongswan-extra-plugins usr/share/strongswan/templates/config/plugins/rdrand.conf
dh_install -p libstrongswan-extra-plugins etc/strongswan.d/charon/rdrand.conf