1 Summary: Free IPSEC implemetation
2 Summary(pl): Publicznie dostêpna implementacja IPSEC
7 Group: Networking/Daemons
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
10 Source0: ftp://ftp.xs4all.nl/pub/crypto/freeswan/%{name}-%{version}.tar.gz
11 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
12 Patch0: %{name}-Makefiles.patch
13 Patch1: %{name}-manlink.patch
14 Patch2: %{name}-config.patch
15 Patch3: %{name}-init.patch
16 URL: http://www.freeswan.org/
17 Prereq: /sbin/chkconfig
19 BuildRequires: gmp-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The basic idea of IPSEC is to provide security functions
24 (authentication and encryption) at the IP (Internet Protocol) level.
25 It will be required in IP version 6 (better known as IPng, the next
26 generation) and is optional for the current IP, version 4.
28 FreeS/WAN is a freely-distributable implementation of IPSEC protocol.
31 Podstawowa idea IPSEC to zapewnienie funkcji bezpieczeñstwa
32 (autentykacji i szyfrowania) na poziomie IP. Bêdzie wymagany do IP w
33 wersji 6 (znanego tak¿e jako IPng, IP nastêpnej generacji) i jest
34 opcjonalny dla aktualnego IP, w wersji 4.
36 FreeS/WAN jest darmow± implementacj± protoko³u IPSEC.
46 OPT_FLAGS="%{rpmcflags}"; export OPT_FLAGS
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/freeswan,/etc/rc.d/init.d,/var/run/pluto}
54 DESTDIR="$RPM_BUILD_ROOT"
56 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
58 gzip -9nf README CREDITS CHANGES BUGS \
59 doc/{kernel.notes,impl.notes,examples,prob.report,standards}
62 rm -rf $RPM_BUILD_ROOT
65 /sbin/chkconfig --add ipsec
66 if [ -f /var/lock/subsys/ipsec ]; then
67 /etc/rc.d/init.d/ipsec restart >&2
69 echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
73 if [ "$1" = "0" ]; then
74 if [ -f /var/lock/subsys/ipsec ]; then
75 /etc/rc.d/init.d/ipsec stop >&2
77 /sbin/chkconfig --del ipsec >&2
81 %defattr(644,root,root,755)
82 %doc *.gz doc/*.gz doc/*.html
84 %lang(pl) %{_mandir}/pl/man*/*
85 %attr(755,root,root) %{_sbindir}/*
86 %attr(754,root,root) /etc/rc.d/init.d/*
88 %attr(755,root,root) %{_libdir}/ipsec/*
89 %attr(751,root,root) %dir %{_sysconfdir}/freeswan
90 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freeswan/*