+#
# Conditional build:
%bcond_without pkcs11 # PKCS#11 support
Summary: VPN Daemon
Summary(pl.UTF-8): Serwer VPN
Name: openvpn
-Version: 2.4.0
+Version: 2.4.4
Release: 1
License: GPL v2
Group: Networking/Daemons
Source0: http://swupdate.openvpn.net/community/releases/%{name}-%{version}.tar.xz
-# Source0-md5: e49431542f065dd60a0181233927669e
+# Source0-md5: 7a2002aad1671b24457bc9432a0c5c52
Source1: %{name}.init
Source2: %{name}.sysconfig
-Source3: %{name}-update-resolv-conf
+Source7: %{name}-update-resolv-conf
Patch0: %{name}-pam.patch
URL: http://www.openvpn.net/
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.9
BuildRequires: libselinux-devel
BuildRequires: libtool
+BuildRequires: lz4-devel >= 1:1.7
BuildRequires: lzo-devel
-BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: openssl-devel >= 0.9.8
%{?with_pkcs11:BuildRequires: p11-kit-devel}
BuildRequires: pam-devel
%{?with_pkcs11:BuildRequires: pkcs11-helper-devel >= 1.11}
BuildRequires: xz
Requires(post,preun): /sbin/chkconfig
Requires: /sbin/ip
+Requires: openssl >= 0.9.8
%{?with_pkcs11:Requires: pkcs11-helper >= 1.11}
Requires: rc-scripts >= 0.4.3.0
Requires: uname(release) >= 2.4
%setup -q
%patch0 -p1
-sed -e 's,/''usr/lib/openvpn,%{_libdir}/%{name},' %{SOURCE3} > contrib/update-resolv-conf
+sed -e 's,/''usr/lib/openvpn,%{_libdir}/%{name},' %{SOURCE7} > contrib/update-resolv-conf
%build
%{__libtoolize}
%{__autoheader}
%{__autoconf}
%{__automake}
-
+CPPFLAGS="%{rpmcppflags} $(pkg-config --cflags liblz4)"
%configure \
IFCONFIG=/sbin/ifconfig \
IPROUTE=/sbin/ip \
- ROUTE=/sbin/route \
NETSTAT=/bin/netstat \
+ ROUTE=/sbin/route \
ac_cv_nsl_inet_ntoa=no \
ac_cv_socket_socket=no \
ac_cv_resolv_gethostbyname=no \