]> TLD Linux GIT Repositories - packages/openvpn.git/commitdiff
- merged 2.4.4 from PLD
authorMarcin Krol <hawk@tld-linux.org>
Mon, 9 Apr 2018 18:50:03 +0000 (18:50 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 9 Apr 2018 18:50:03 +0000 (18:50 +0000)
openvpn.spec

index a5420c70c615b4a3912a86cc6200727bfc730477..a08b54525a6074459ee45eec93c1ac2901a616c4 100644 (file)
@@ -1,26 +1,28 @@
+#
 # 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}
@@ -30,6 +32,7 @@ BuildRequires:        tar >= 1:1.22
 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
@@ -126,7 +129,7 @@ Ten pakiet zawiera pliki nagłówkowe do tworzenia wtyczek OpenVPN.
 %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}
@@ -134,12 +137,12 @@ sed -e 's,/''usr/lib/openvpn,%{_libdir}/%{name},' %{SOURCE3} > contrib/update-re
 %{__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 \