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