From 8e32f50ac2c90358c14cd36753aa360e8d80ccab Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Mon, 14 Mar 2016 21:13:31 +0100 Subject: enable aesni plugin on i386 and amd64. --- debian/rules | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 337b03a02..6bc1a670c 100755 --- a/debian/rules +++ b/debian/rules @@ -35,13 +35,13 @@ CONFIGUREARGS := --libdir=/usr/lib --libexecdir=/usr/lib \ include /usr/share/dpkg/architecture.mk # the padlock plugin only makes sense on i386 -# RdRand only makes sense on i386 and amd64 +# AESNI and RdRand only make sense on i386 and amd64 ifeq ($(DEB_BUILD_ARCH_CPU),i386) - CONFIGUREARGS += --enable-padlock --enable-rdrand + CONFIGUREARGS += --enable-padlock --enable-rdrand --enable-aesni endif ifeq ($(DEB_BUILD_ARCH_CPU),amd64) - CONFIGUREARGS += --enable-rdrand + CONFIGUREARGS += --enable-rdrand --enable-aesni endif ifeq ($(DEB_BUILD_ARCH_OS),linux) @@ -127,12 +127,20 @@ ifeq ($(DEB_BUILD_ARCH_CPU),i386) 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 + + dh_install -p libstrongswan-standard-plugins usr/lib/ipsec/plugins/libstrongswan-aesni.so + dh_install -p libstrongswan-standard-plugins usr/share/strongswan/templates/config/plugins/aesni.conf + dh_install -p libstrongswan-standard-plugins etc/strongswan.d/charon/aesni.conf endif ifeq ($(DEB_BUILD_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 + + dh_install -p libstrongswan-standard-plugins usr/lib/ipsec/plugins/libstrongswan-aesni.so + dh_install -p libstrongswan-standard-plugins usr/share/strongswan/templates/config/plugins/aesni.conf + dh_install -p libstrongswan-standard-plugins etc/strongswan.d/charon/aesni.conf endif # then install the rest, ignoring the above @@ -144,6 +152,7 @@ endif -Xlibstrongswan-farp.so -X farp.conf \ -Xlibstrongswan-padlock.so -X padlock.conf \ -Xlibstrongswan-rdrand.so -X rdrand.conf \ + -Xlibstrongswan-aesni.so -X aesni.conf \ -Xlibstrongswan-af-alg.so -X af-alg.conf \ -Xstrongswan.service -- cgit v1.2.3