Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37572640
en ru br
ALT Linux repos
5.0: 0.7.1-alt1
4.1: 0.6.7-alt2.M41
4.0: 0.6.7-alt2.M40
3.0: 0.5-alt1

Group :: Security/Networking
RPM: ipsec-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Summary: IPsec-Tools package use the IPsec functionality in the linux-2.5+ kernels.
Name: ipsec-tools
Version: 0.6.7
Release: alt2.M41
URL: http://ipsec-tools.sourceforge.net/
License: BSD
Group: Security/Networking

Source0: %name-%version.tar.bz2
Source1: %name-racoon.init
Source2: %name-racoon.sysconfig



# patches from RH package

Patch10: ipsec-tools-0.5-libs.patch
Patch11: isakmp.c.diff
Patch12: ipsec-tools-0.5-64bit.patch
Patch13: ipsec-tools-0.6.5-mls.patch
Patch14: ipsec-tools-0.6.7-rh-0.6.5-pre6.patch
Patch15: racoon-lspp-ipsec.patch
Patch16: ipsec-tools-0.6.5-ctx.patch
Patch17: ipsec-tools-0.6.5-acquires.patch
Patch18: ipsec-tools-0.6.5-loopback.patch
Patch19: ipsec-tools-0.6.5-leaks.patch

Patch100: ipsec-tools-0.6.7-alt-werror.patch
Patch101: ipsec-tools-0.6.7-alt-makefile.patch
Patch102: ipsec-tools-0.6.7-alt-config.patch

# Automatically added by buildreq on Wed Aug 27 2008

BuildRequires: flex gcc-c++ libcom_err-devel libssl-devel libkrb5-devel libreadline-devel

%description
This is the IPsec-Tools package.  You need this package in order to
really use the IPsec functionality in the linux-2.5+ kernels.  This
package builds:

       - libipsec, a PFKeyV2 library
       - setkey, a program to directly manipulate policies and SAs
       - racoon, an IKEv1 keying daemon

%prep
%setup -q

%patch10 -p1 -b .libs
%patch11 -p1 -b .iskmp
%patch12 -p1 -b .64bit
%patch13 -p1 -b .mls
%patch14 -p1 -b .pre6
%patch15 -p1 -b .sctx
%patch16 -p1 -b .hctx
%patch17 -p1 -b .acquires
%patch18 -p1 -b .loopback
%patch19 -p1 -b .leaks

%patch100 -p1 -b .werror
%patch101 -p1 -b .altmake
%patch102 -p1 -b .syscfg

%build
./bootstrap
%configure \
--disable-static \
--with-kernel-headers=/usr/include \
--enable-shared \
--sysconfdir=/etc/racoon \
--enable-adminport \
--enable-hybrid \
--enable-frag \
--enable-stats \
--enable-dpd \
--disable-ipv6 \
--enable-natt=kernel \
--enable-security-context=no \
--enable-natt

NPROCS=1
%make_build

%install
%__make install DESTDIR=%buildroot

%__mkdir_p %buildroot/%_sysconfdir/racoon
%__mkdir_p %buildroot/%_initdir
%__mkdir_p %buildroot/%_sysconfdir/sysconfig
%__install -p -m0600 src/racoon/samples/psk.txt %buildroot/%_sysconfdir/racoon/
%__install -p -m0644 src/racoon/samples/racoon.conf %buildroot/%_sysconfdir/racoon/
%__install -m 0755 %SOURCE1 %buildroot/%_initdir/racoon
%__install -m 0644 %SOURCE2 %buildroot/%_sysconfdir/sysconfig/racoon

%preun
%preun_service racoon

%post
%post_service racoon


%files
%_libdir/libipsec.so*
%_libdir/libracoon.so*
%_initdir/racoon
%config(noreplace) %_sysconfdir/racoon/racoon.conf
%config(noreplace) %_sysconfdir/racoon/psk.txt
%config(noreplace) %_sysconfdir/sysconfig/racoon
%dir %_sysconfdir/racoon/
%_sbindir/plainrsa-gen
%_sbindir/racoon
%_sbindir/racoonctl
%_sbindir/setkey
%_man3dir/*
%_man5dir/racoon.conf.5*
%_man8dir/plainrsa-gen.8.gz
%_man8dir/racoon.8.gz
%_man8dir/racoonctl.8.gz
%_man8dir/setkey.8.gz
%doc ChangeLog NEWS README src/racoon/doc/* src/racoon/samples/roadwarrior src/racoon/samples/*sample*
%dir %_localstatedir/racoon
%_includedir/libipsec/*
%dir %_includedir/libipsec
%_includedir/racoon/*
%dir %_includedir/racoon

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin