3 |
%define libnamedev %mklibname -d ipsec |
%define libnamedev %mklibname -d ipsec |
4 |
|
|
5 |
Name: ipsec-tools |
Name: ipsec-tools |
6 |
Version: 0.8.0 |
Version: 0.8.1 |
7 |
Release: %mkrel 1 |
%define subrel 1 |
8 |
|
Release: %mkrel 5 |
9 |
Summary: Tools for configuring and using IPSEC |
Summary: Tools for configuring and using IPSEC |
10 |
License: BSD |
License: BSD |
11 |
Group: Networking/Other |
Group: Networking/Other |
17 |
Source7: racoon-initscript |
Source7: racoon-initscript |
18 |
Source8: racoon.sysconfig |
Source8: racoon.sysconfig |
19 |
Patch0: ipsec-tools-0.8.0-manfix.patch |
Patch0: ipsec-tools-0.8.0-manfix.patch |
20 |
Patch1: ipsec-tools-0.8.0-includes.patch |
Patch1: ipsec-tools-0.8.1-includes.patch |
21 |
Patch3: ipsec-tools-0.8.0-link.patch |
Patch3: ipsec-tools-0.8.0-link.patch |
22 |
|
Patch4: ipsec-tools-0.8.1-null-ptr-deref.patch |
23 |
# Fedora patches |
# Fedora patches |
24 |
Patch103: ipsec-tools-0.8.0-acquires.patch |
Patch103: ipsec-tools-0.8.0-acquires.patch |
25 |
Patch104: ipsec-tools-0.8.0-loopback.patch |
Patch104: ipsec-tools-0.8.0-loopback.patch |
26 |
Patch105: ipsec-tools-0.8.0-build.patch |
Patch105: ipsec-tools-0.8.0-build.patch |
27 |
# the following patches were also submitted upstream: |
# the following patches were also submitted upstream: |
28 |
Patch111: ipsec-tools-0.8.0-pie.patch |
Patch111: ipsec-tools-0.8.0-pie.patch |
29 |
BuildRequires: openssl-devel krb5-devel flex bison |
Patch112: ipsec-tools-0.8.2-CVE-2016-10396.patch |
30 |
|
BuildRequires: openssl-devel |
31 |
|
BuildRequires: krb5-devel |
32 |
|
BuildRequires: flex |
33 |
|
BuildRequires: bison |
34 |
BuildRequires: libpam-devel |
BuildRequires: libpam-devel |
35 |
Requires: %{libname} = %{version} |
Requires: %{libname} = %{version} |
36 |
Requires(pre): rpm-helper |
Requires(pre): rpm-helper |
84 |
%patch0 -p1 -b .manfix |
%patch0 -p1 -b .manfix |
85 |
%patch1 -p1 -b .includes |
%patch1 -p1 -b .includes |
86 |
%patch3 -p1 -b .link |
%patch3 -p1 -b .link |
87 |
|
%patch4 -p1 -b .nullptr |
88 |
%patch103 -p1 -b .acquires |
%patch103 -p1 -b .acquires |
89 |
%patch104 -p1 -b .loopback |
%patch104 -p1 -b .loopback |
90 |
%patch105 -p1 -b .build |
%patch105 -p1 -b .build |
91 |
%patch111 -p1 -b .pie |
%patch111 -p1 -b .pie |
92 |
|
%patch112 -p1 -b .CVE-2016-10396 |
93 |
|
|
94 |
sed -i 's|-Werror||g' configure* |
sed -i 's|-Werror||g' configure* |
95 |
|
|
118 |
make |
make |
119 |
|
|
120 |
%install |
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
121 |
%makeinstall_std |
%makeinstall_std |
122 |
|
|
123 |
mkdir -p $RPM_BUILD_ROOT/etc/racoon/ |
mkdir -p $RPM_BUILD_ROOT/etc/racoon/ |
173 |
rm -f src/racoon/samples/*.in |
rm -f src/racoon/samples/*.in |
174 |
find src/racoon/samples -type f -exec chmod 0644 {} \; |
find src/racoon/samples -type f -exec chmod 0644 {} \; |
175 |
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
176 |
%post |
%post |
177 |
%_post_service ipsec-setkey |
%_post_service ipsec-setkey |
178 |
%_post_service racoon |
%_post_service racoon |