summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 91a7ac95e..5afa971d1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -89,6 +89,10 @@ install: build-stamp
# install files from debian/tmp into proper package dirs
dh_install
+ # special handling for padlock, as it is only built on i386
+ ifeq ($(DEB_BUILD_ARCH_CPU),i386)
+ install $(CURDIR)/debian/tmp/usr/lib/ipsec/plugins/libstrongswan-padlock.so* $(CURDIR)/debian/libstrongswan/usr/lib/ipsec/plugins/
+ endif
# and additional files not covered by upstream makefile...
install --mode=0600 $(CURDIR)/debian/ipsec.secrets.proto $(CURDIR)/debian/strongswan-starter/etc/ipsec.secrets