Summary: Free IPSEC implemetation
+Summary: Publicznie dostêpna implementacja IPSEC
Name: freeswan
-Version: 1.3
-Release: 0
+Version: 1.8
+Release: 1
License: GPL
Group: Networking/Daemons
Group(pl): Sieciowe/Serwery
Patch1: %{name}-manlink.patch
Patch2: %{name}-config.patch
Patch3: %{name}-init.patch
-URL: http://www.freeswan.org
+URL: http://www.freeswan.org/
Prereq: /sbin/chkconfig
Requires: rc-scripts
BuildRequires: gmp-devel
%description
The basic idea of IPSEC is to provide security functions
-([60]authentication and [61]encryption) at the IP (Internet Protocol)
-level. It will be required in [62]IP version 6 (better known as IPng,
+(authentication and encryption) at the IP (Internet Protocol)
+level. It will be required in IP version 6 (better known as IPng,
the next generation) and is optional for the current IP, version 4.
-FreeS/WAN is a freely-distributable implementation of IPSEC protocol/
+FreeS/WAN is a freely-distributable implementation of IPSEC protocol.
%prep
%setup -q
%build
OPT_FLAGS="$RPM_OPT_FLAGS"; export OPT_FLAGS
-LDFLAGS="-s"; export LDFLAGS
-make programs
+%{__make} programs
%install
rm -rf $RPM_BUILD_ROOT
-
install -d $RPM_BUILD_ROOT{%{_sysconfdir}/freeswan,/etc/rc.d/init.d,/var/run/pluto}
-make install \
+
+%{__make} install \
DESTDIR="$RPM_BUILD_ROOT"
gzip -9nf README CREDITS CHANGES BUGS \
- doc/{kernel.notes,impl.notes,examples,prob.report,standards} \
- $RPM_BUILD_ROOT%{_mandir}/man*/*
+ doc/{kernel.notes,impl.notes,examples,prob.report,standards}
%post
/sbin/chkconfig --add ipsec
-
if [ -f /var/lock/subsys/ipsec ]; then
/etc/rc.d/init.d/ipsec restart >&2
else