1 Summary: Free IPSEC implemetation
6 Group: Networking/Daemons
7 Group(pl): Sieciowe/Serwery
8 Source0: ftp://ftp.xs4all.nl/pub/crypto/freeswan/%{name}-%{version}.tar.gz
9 Patch0: %{name}-Makefiles.patch
10 Patch1: %{name}-manlink.patch
11 Patch2: %{name}-config.patch
12 Patch3: %{name}-init.patch
13 URL: http://www.freeswan.org
14 Prereq: /sbin/chkconfig
16 BuildRequires: gmp-devel
17 BuildRoot: /tmp/%{name}-%{version}-root
20 The basic idea of IPSEC is to provide security functions
21 ([60]authentication and [61]encryption) at the IP (Internet Protocol)
22 level. It will be required in [62]IP version 6 (better known as IPng,
23 the next generation) and is optional for the current IP, version 4.
25 FreeS/WAN is a freely-distributable implementation of IPSEC protocol/
35 OPT_FLAGS="$RPM_OPT_FLAGS"; export OPT_FLAGS
36 LDFLAGS="-s"; export LDFLAGS
40 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{/etc/{freeswan,rc.d/init.d},/var/run/pluto}
43 make install DESTDIR="$RPM_BUILD_ROOT"
45 gzip -9nf README CREDITS CHANGES BUGS \
46 doc/{kernel.notes,impl.notes,examples,prob.report,standards} \
47 $RPM_BUILD_ROOT%{_mandir}/man*/*
50 /sbin/chkconfig --add ipsec
52 if [ -f /var/lock/subsys/ipsec ]; then
53 /etc/rc.d/init.d/ipsec restart >&2
55 echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
59 if [ "$1" = "0" ]; then
60 if [ -f /var/lock/subsys/ipsec ]; then
61 /etc/rc.d/init.d/ipsec stop >&2
63 /sbin/chkconfig --del ipsec >&2
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc *.gz doc/*.gz doc/*.html
73 %attr(755,root,root) %{_sbindir}/*
74 %attr(754,root,root) /etc/rc.d/init.d/*
76 %attr(755,root,root) /usr/lib/ipsec/*
77 %attr(751,root,root) %dir /etc/freeswan
78 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/freeswan/*