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