summaryrefslogtreecommitdiffstats
path: root/distro
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-02-29 22:12:07 +0200
committerDavid Sommerseth <davids@redhat.com>2012-03-22 22:17:27 +0100
commit18b5fbdfb3aba63a62de197b4931cac77af2323c (patch)
treeed98742167664b4dd93ec2459993b3f21c9c5655 /distro
parente06832a7edcf93e0feda8802beea55a3cc7ddf9f (diff)
downloadopenvpn-18b5fbdfb3aba63a62de197b4931cac77af2323c.zip
openvpn-18b5fbdfb3aba63a62de197b4931cac77af2323c.tar.gz
openvpn-18b5fbdfb3aba63a62de197b4931cac77af2323c.tar.xz
build: proper pkcs11-helper detection and usage
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Samuli Seppänen <samuli@openvpn.net> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'distro')
-rw-r--r--distro/rpm/openvpn.spec.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/distro/rpm/openvpn.spec.in b/distro/rpm/openvpn.spec.in
index 455f739..8db5172 100644
--- a/distro/rpm/openvpn.spec.in
+++ b/distro/rpm/openvpn.spec.in
@@ -52,8 +52,8 @@ Requires: openssl >= 0.9.6
%{!?without_pam:BuildRequires: pam-devel}
%{!?without_pam:Requires: pam}
-%{!?with_pkcs11:BuildRequires: pkcs11-helper-devel}
-%{!?with_pkcs11:Requires: pkcs11-helper}
+%{?with_pkcs11:BuildRequires: pkcs11-helper-devel}
+%{?with_pkcs11:Requires: pkcs11-helper}
#
# Description
@@ -111,6 +111,7 @@ Development support for OpenVPN.
--docdir="%{_docdir}/%{name}-%{version}" \
%{?with_password_save:--enable-password-save} \
%{?without_lzo:--disable-lzo} \
+ %{?with_pkcs11:--enable-pkcs11} \
%{?with_kerberos:--with-ssl-headers=/usr/kerberos/include}
%__make