]> git.pld-linux.org Git - packages/freeswan.git/blob - freeswan.spec
- initial spec
[packages/freeswan.git] / freeswan.spec
1 Summary:        Free IPSEC implemetation
2 Name:           freeswan
3 Version:        1.3
4 Release:        0
5 License:        GPL
6 Group:          Networking/Daemons
7 Group(pl):      Sieciowe/Serwery
8 Source0:        ftp://ftp.xs4all.nl/pub/crypto/freeswan/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-Makefiles.patch 
10 Patch1:         %{name}-manlink.patch   
11 Patch2:         %{name}-config.patch    
12 Patch3:         %{name}-init.patch      
13 URL:            http://www.freeswan.org
14 Prereq:         /sbin/chkconfig
15 Requires:       rc-scripts
16 BuildRequires:  gmp-devel
17 BuildRoot:      /tmp/%{name}-%{version}-root
18
19 %description
20 The   basic   idea   of   IPSEC   is  to  provide  security  functions
21 ([60]authentication  and [61]encryption) at the IP (Internet Protocol)
22 level.  It will be required in [62]IP version 6 (better known as IPng,
23 the next generation) and is optional for the current IP, version 4.
24
25 FreeS/WAN is a freely-distributable implementation of IPSEC protocol/
26
27 %prep
28 %setup  -q
29 %patch0 -p1
30 %patch1 -p1
31 %patch2 -p1
32 %patch3 -p1
33
34 %build
35 OPT_FLAGS="$RPM_OPT_FLAGS"; export OPT_FLAGS
36 LDFLAGS="-s"; export LDFLAGS
37 make programs
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 install -d $RPM_BUILD_ROOT{/etc/{freeswan,rc.d/init.d},/var/run/pluto}
43 make install DESTDIR="$RPM_BUILD_ROOT" 
44
45 gzip -9nf README CREDITS CHANGES BUGS \
46           doc/{kernel.notes,impl.notes,examples,prob.report,standards} \
47           $RPM_BUILD_ROOT%{_mandir}/man*/*
48
49 %post
50 /sbin/chkconfig --add ipsec 
51
52 if [ -f /var/lock/subsys/ipsec ]; then
53         /etc/rc.d/init.d/ipsec restart >&2
54 else
55         echo "Run '/etc/rc.d/init.d/ipsec start' to start IPSEC services." >&2
56 fi
57     
58 %preun
59 if [ "$1" = "0" ]; then
60         if [ -f /var/lock/subsys/ipsec ]; then
61                 /etc/rc.d/init.d/ipsec stop >&2
62         fi
63         /sbin/chkconfig --del ipsec >&2
64 fi
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc *.gz doc/*.gz doc/*.html
72 %{_mandir}/man*/*
73 %attr(755,root,root) %{_sbindir}/*
74 %attr(754,root,root) /etc/rc.d/init.d/*
75 %dir /usr/lib/ipsec
76 %attr(755,root,root) /usr/lib/ipsec/*
77 %attr(751,root,root) %dir /etc/freeswan
78 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/freeswan/*
This page took 0.055701 seconds and 4 git commands to generate.