]> git.pld-linux.org Git - packages/freeswan.git/blobdiff - freeswan.spec
- relay release 2.
[packages/freeswan.git] / freeswan.spec
index 8ee0b64436d03db72c721f50d03766058d3352aa..c607d027ec302f216724cfbaa23b803b1b65947e 100644 (file)
@@ -1,28 +1,38 @@
 Summary:       Free IPSEC implemetation
+Summary(pl):   Publicznie dostêpna implementacja IPSEC
 Name:          freeswan
-Version:       1.3
-Release:       0
+Version:       1.96
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
-Group(pl):     Sieciowe/Serwery
 Source0:       ftp://ftp.xs4all.nl/pub/crypto/freeswan/%{name}-%{version}.tar.gz
-Patch0:                %{name}-Makefiles.patch 
-Patch1:                %{name}-manlink.patch   
-Patch2:                %{name}-config.patch    
-Patch3:                %{name}-init.patch      
-URL:           http://www.freeswan.org
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
+Patch0:                %{name}-Makefile.patch
+Patch1:                %{name}-manlink.patch
+Patch2:                %{name}-config.patch
+Patch3:                %{name}-init.patch
+Patch4:                %{name}-keygen.patch
+URL:           http://www.freeswan.org/
 Prereq:                /sbin/chkconfig
-Requires:      rc-scripts
+Prereq:                rc-scripts
 BuildRequires: gmp-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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,
-the next generation) and is optional for the current IP, version 4.
+(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.
+
+%description -l pl
+Podstawowa idea IPSEC to zapewnienie funkcji bezpieczeñstwa
+(autentykacji i szyfrowania) na poziomie IP. Bêdzie wymagany do IP w
+wersji 6 (znanego tak¿e jako IPng, IP nastêpnej generacji) i jest
+opcjonalny dla aktualnego IP, w wersji 4.
+
+FreeS/WAN jest darmow± implementacj± protoko³u IPSEC.
 
 %prep
 %setup  -q
@@ -30,32 +40,44 @@ FreeS/WAN is a freely-distributable implementation of IPSEC protocol/
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
-OPT_FLAGS="$RPM_OPT_FLAGS"; export OPT_FLAGS
-LDFLAGS="-s"; export LDFLAGS
+OPT_FLAGS="%{rpmcflags}"; export OPT_FLAGS
 %{__make} programs
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ipsec,/etc/rc.d/init.d,/var/run/pluto}
 
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/freeswan,/etc/rc.d/init.d,/var/run/pluto}
 %{__make} install \
-       DESTDIR="$RPM_BUILD_ROOT" 
+       DESTDIR="$RPM_BUILD_ROOT"
+
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
 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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add ipsec 
+# generate RSA private key... if, and only if, /etc/ipsec/ipsec.secrets does
+# not already exist
+if [ ! -f %{_sysconfdir}/ipsec/ipsec.secrets ];
+then
+    echo generate RSA private key...
+    /usr/sbin/ipsec newhostkey --output %{_sysconfdir}/ipsec/ipsec.secrets
+    chmod 600 %{_sysconfdir}/ipsec/ipsec.secrets
+fi
 
+/sbin/chkconfig --add ipsec
 if [ -f /var/lock/subsys/ipsec ]; then
        /etc/rc.d/init.d/ipsec restart >&2
 else
        echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
 fi
-    
+
 %preun
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/ipsec ]; then
@@ -64,16 +86,14 @@ if [ "$1" = "0" ]; then
         /sbin/chkconfig --del ipsec >&2
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
 %doc *.gz doc/*.gz doc/*.html
 %{_mandir}/man*/*
+%lang(pl) %{_mandir}/pl/man*/*
 %attr(755,root,root) %{_sbindir}/*
 %attr(754,root,root) /etc/rc.d/init.d/*
 %dir %{_libdir}/ipsec
 %attr(755,root,root) %{_libdir}/ipsec/*
-%attr(751,root,root) %dir %{_sysconfdir}/freeswan
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freeswan/*
+%attr(751,root,root) %dir %{_sysconfdir}/ipsec
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ipsec/*
This page took 0.031171 seconds and 4 git commands to generate.