summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-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