]> git.pld-linux.org Git - packages/freeswan.git/blob - freeswan.spec
9defceb534eb12570664e2980e14fd7b89d3231f
[packages/freeswan.git] / freeswan.spec
1 Summary:        Free IPSEC implemetation
2 Summary:        Publicznie dostêpna implementacja IPSEC
3 Name:           freeswan
4 Version:        1.5
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 LDFLAGS="-s"; export LDFLAGS
38 %{__make} programs
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/freeswan,/etc/rc.d/init.d,/var/run/pluto}
44 %{__make} install \
45         DESTDIR="$RPM_BUILD_ROOT" 
46
47 gzip -9nf README CREDITS CHANGES BUGS \
48           doc/{kernel.notes,impl.notes,examples,prob.report,standards} \
49           $RPM_BUILD_ROOT%{_mandir}/man*/*
50
51 %post
52 /sbin/chkconfig --add ipsec 
53 if [ -f /var/lock/subsys/ipsec ]; then
54         /etc/rc.d/init.d/ipsec restart >&2
55 else
56         echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
57 fi
58     
59 %preun
60 if [ "$1" = "0" ]; then
61         if [ -f /var/lock/subsys/ipsec ]; then
62                 /etc/rc.d/init.d/ipsec stop >&2
63         fi
64         /sbin/chkconfig --del ipsec >&2
65 fi
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc *.gz doc/*.gz doc/*.html
73 %{_mandir}/man*/*
74 %attr(755,root,root) %{_sbindir}/*
75 %attr(754,root,root) /etc/rc.d/init.d/*
76 %dir %{_libdir}/ipsec
77 %attr(755,root,root) %{_libdir}/ipsec/*
78 %attr(751,root,root) %dir %{_sysconfdir}/freeswan
79 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freeswan/*
This page took 0.046987 seconds and 3 git commands to generate.