]> git.pld-linux.org Git - packages/freeswan.git/blob - freeswan.spec
- added man-pages tar URL
[packages/freeswan.git] / freeswan.spec
1 Summary:        Free IPSEC implemetation
2 Summary(pl):    Publicznie dostêpna implementacja IPSEC
3 Name:           freeswan
4 Version:        1.8
5 Release:        2
6 License:        GPL
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
18 Prereq:         rc-scripts
19 BuildRequires:  gmp-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
28 FreeS/WAN is a freely-distributable implementation of IPSEC protocol.
29
30 %description -l pl
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.
35
36 FreeS/WAN jest darmow± implementacj± protoko³u IPSEC.
37
38 %prep
39 %setup  -q
40 %patch0 -p1
41 %patch1 -p1
42 %patch2 -p1
43 %patch3 -p1
44
45 %build
46 OPT_FLAGS="%{rpmcflags}"; export OPT_FLAGS
47 %{__make} programs
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/freeswan,/etc/rc.d/init.d,/var/run/pluto}
52
53 %{__make} install \
54         DESTDIR="$RPM_BUILD_ROOT" 
55
56 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
57
58 gzip -9nf README CREDITS CHANGES BUGS \
59           doc/{kernel.notes,impl.notes,examples,prob.report,standards}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 /sbin/chkconfig --add ipsec 
66 if [ -f /var/lock/subsys/ipsec ]; then
67         /etc/rc.d/init.d/ipsec restart >&2
68 else
69         echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
70 fi
71     
72 %preun
73 if [ "$1" = "0" ]; then
74         if [ -f /var/lock/subsys/ipsec ]; then
75                 /etc/rc.d/init.d/ipsec stop >&2
76         fi
77         /sbin/chkconfig --del ipsec >&2
78 fi
79
80 %files
81 %defattr(644,root,root,755)
82 %doc *.gz doc/*.gz doc/*.html
83 %{_mandir}/man*/*
84 %lang(pl) %{_mandir}/pl/man*/*
85 %attr(755,root,root) %{_sbindir}/*
86 %attr(754,root,root) /etc/rc.d/init.d/*
87 %dir %{_libdir}/ipsec
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/*
This page took 0.041109 seconds and 4 git commands to generate.