]> git.pld-linux.org Git - packages/freeswan.git/blob - freeswan.spec
- adapterized; release 3
[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:        3
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(cs):      Sí»ové/Démoni
9 Group(da):      Netværks/Dæmoner
10 Group(de):      Netzwerkwesen/Server
11 Group(es):      Red/Servidores
12 Group(fr):      Réseau/Serveurs
13 Group(is):      Net/Púkar
14 Group(it):      Rete/Demoni
15 Group(no):      Nettverks/Daemoner
16 Group(pl):      Sieciowe/Serwery
17 Group(pt):      Rede/Servidores
18 Group(ru):      óÅÔÅ×ÙÅ/äÅÍÏÎÙ
19 Group(sl):      Omre¾ni/Stre¾niki
20 Group(sv):      Nätverk/Demoner
21 Source0:        ftp://ftp.xs4all.nl/pub/crypto/freeswan/%{name}-%{version}.tar.gz
22 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
23 Patch0:         %{name}-Makefiles.patch
24 Patch1:         %{name}-manlink.patch
25 Patch2:         %{name}-config.patch
26 Patch3:         %{name}-init.patch
27 URL:            http://www.freeswan.org/
28 Prereq:         /sbin/chkconfig
29 Prereq:         rc-scripts
30 BuildRequires:  gmp-devel
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 The basic idea of IPSEC is to provide security functions
35 (authentication and encryption) at the IP (Internet Protocol) level.
36 It will be required in IP version 6 (better known as IPng, the next
37 generation) and is optional for the current IP, version 4.
38
39 FreeS/WAN is a freely-distributable implementation of IPSEC protocol.
40
41 %description -l pl
42 Podstawowa idea IPSEC to zapewnienie funkcji bezpieczeñstwa
43 (autentykacji i szyfrowania) na poziomie IP. Bêdzie wymagany do IP w
44 wersji 6 (znanego tak¿e jako IPng, IP nastêpnej generacji) i jest
45 opcjonalny dla aktualnego IP, w wersji 4.
46
47 FreeS/WAN jest darmow± implementacj± protoko³u IPSEC.
48
49 %prep
50 %setup  -q
51 %patch0 -p1
52 %patch1 -p1
53 %patch2 -p1
54 %patch3 -p1
55
56 %build
57 OPT_FLAGS="%{rpmcflags}"; export OPT_FLAGS
58 %{__make} programs
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/freeswan,/etc/rc.d/init.d,/var/run/pluto}
63
64 %{__make} install \
65         DESTDIR="$RPM_BUILD_ROOT" 
66
67 bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
68
69 gzip -9nf README CREDITS CHANGES BUGS \
70           doc/{kernel.notes,impl.notes,examples,prob.report,standards}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 /sbin/chkconfig --add ipsec 
77 if [ -f /var/lock/subsys/ipsec ]; then
78         /etc/rc.d/init.d/ipsec restart >&2
79 else
80         echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
81 fi
82     
83 %preun
84 if [ "$1" = "0" ]; then
85         if [ -f /var/lock/subsys/ipsec ]; then
86                 /etc/rc.d/init.d/ipsec stop >&2
87         fi
88         /sbin/chkconfig --del ipsec >&2
89 fi
90
91 %files
92 %defattr(644,root,root,755)
93 %doc *.gz doc/*.gz doc/*.html
94 %{_mandir}/man*/*
95 %lang(pl) %{_mandir}/pl/man*/*
96 %attr(755,root,root) %{_sbindir}/*
97 %attr(754,root,root) /etc/rc.d/init.d/*
98 %dir %{_libdir}/ipsec
99 %attr(755,root,root) %{_libdir}/ipsec/*
100 %attr(751,root,root) %dir %{_sysconfdir}/freeswan
101 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freeswan/*
This page took 0.103032 seconds and 4 git commands to generate.