OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / rpm.in
1 # fairly minimal RPM spec file, does only packaging
2 # Based on work by Paul Lahaie of Steamballoon.
3 # This file is touched up by sed (in the Makefile) before it is actually used.
4 Summary: Kernel with FreeS/WAN
5 Name: freeswan
6 Version: @IPSECVERSION@_@KERNELVERSION@
7 Release: 0
8 Copyright: GPL
9 Group: System Environment/Daemons
10 Source: freeswan-%{version}.tar.gz
11 BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
12 %define __spec_install_post /usr/lib/rpm/brp-compress || :
13 %define KernelVer @KERNELVERSION@
14
15 %package module
16 Summary: FreeS/Wan kernel module
17 Group: System Environment/Kernel
18
19 %description
20 This package contains the daemons and userland tools for setting up
21 FreeS/WAN on a freeswan enabled kernel.
22
23 %description module
24 This package contains only the ipsec module for the RedHat series of kernels.
25
26 %prep
27
28 %build
29
30 %install
31
32 %clean
33 rm -rf ${RPM_BUILD_ROOT}
34
35 %files
36 %defattr(-,root,root)
37 @PUBDIR@/ipsec
38 @FINALBINDIR@/*
39 /etc/rc.d/init.d/ipsec
40
41 %attr(0644,root,root)   %config /etc/ipsec.conf
42
43 @MANTREE@/man3/ipsec_*.3*
44 @MANTREE@/man5/ipsec_*.5*
45 @MANTREE@/man5/ipsec.*.5*
46 @MANTREE@/man8/ipsec_*.8*
47
48 %files module
49 %defattr (-,root,root)
50 /lib/modules/ipsec
51
52 %preun
53 sh /etc/rc.d/init.d/ipsec stop
54
55 %post
56 chkconfig --add ipsec
57 echo "invoke /etc/rc.d/init.d/ipsec start or reboot to begin"
58
59 %changelog
60 #
61 # $Log: rpm.in,v $
62 # Revision 1.3.2.2  2002/04/11 02:52:51  mcr
63 #       post/pre stuff from head
64 #
65 # Revision 1.5  2002/04/11 02:50:30  mcr
66 #       added %post to make ipsec start, and %post to shut it down.
67 #       added %changelog as well.
68 #
69 #