]> git.pld-linux.org Git - packages/cipe.git/blob - cipe.spec
- added protocol 4 support
[packages/cipe.git] / cipe.spec
1 Summary:        CIPE - encrypted IP over UDP tunneling
2 Summary(pl):    CIPE - szyfrowany tunel IP po UDP
3 Name:           cipe
4 Version:        1.5.4
5 %define _rel    1
6 Release:        %{_rel}
7 License:        GPL
8 Group:          Networking/Daemons
9 Source0:        http://sites.inka.de/bigred/sw/%{name}-%{version}.tar.gz
10 Source1:        %{name}.inetd
11 Patch0:         %{name}-autoconf.patch
12 Patch1:         %{name}-makefile.patch
13 Patch2:         %{name}-pk%{name}-real-peer.patch
14 Patch3:         %{name}-get_fast_time.patch
15 Patch4:         %{name}-alpha.patch
16 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  openssl-devel >= 0.9.6
20 BuildRequires:  /usr/bin/openssl
21 BuildRequires:  %{kgcc_package}
22
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _sysconfdir     /etc
26 %define         __cc            %{kgcc}
27
28 %description
29 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
30 package for an encrypting IP tunnel device. This can be used to build
31 encrypting routers for VPN (Virtual Private Networks) and similar
32 applications.
33
34 %description -l pl
35 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
36 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
37 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
38 podobnych zastosowaniach.
39
40 %package pkcipe-client
41 Summary:        The PKCIPE public key tool for CIPE
42 Summary(pl):    PKCIPE - narzêdzie do wykorzystania kluczy publicznych w CIPE
43 Group:          Networking/Daemons
44 Prereq:         /usr/bin/openssl
45 Requires:       %{name} = %{version}
46 Obsoletes:      %{name}-pkcipe
47
48 %description pkcipe-client
49 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
50 package for an encrypting IP tunnel device. This can be used to build
51 encrypting routers for VPN (Virtual Private Networks) and similar
52 applications. This package contains PKCIPE, which simplifies setup of
53 CIPE tunnels by using autoconfiguration and public/private key
54 mechanisms.
55
56 %description pkcipe-client -l pl
57 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
58 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
59 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
60 podobnych zastosowaniach. Ten pakiet zawiera PKCIPE, który uprasza
61 ustawienie tuneli CIPE przez korzystanie z autokonfiguracji oraz
62 mechanizmów kluczy publicznych/prywatnych.
63
64 %package pkcipe-server
65 Summary:        The PKCIPE public key tool for CIPE - server side
66 Summary(pl):    PKCIPE - narzêdzie do wykorzystania kluczy publicznych w CIPE
67 Group:          Networking/Daemons
68 Requires:       %{name}-pkcipe-client = %{version}
69 Requires:       inetdaemon
70
71 %description pkcipe-server
72 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
73 package for an encrypting IP tunnel device. This can be used to build
74 encrypting routers for VPN (Virtual Private Networks) and similar
75 applications. This package contains server part PKCIPE, which
76 simplifies setup of CIPE tunnels by using autoconfiguration and
77 public/private key mechanisms.
78
79 %description pkcipe-server -l pl
80 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
81 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
82 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
83 podobnych zastosowaniach. Ten pakiet zawiera PKCIPE do u¿ycia po
84 stronie serwera, który uprasza ustawienie tuneli CIPE przez
85 korzystanie z autokonfiguracji oraz mechanizmów kluczy
86 publicznych/prywatnych.
87
88 %package -n kernel-cipe
89 Summary:        CIPE kernel module
90 Summary(pl):    Modu³ j±dra CIPE
91 Release:        %{_rel}@%{_kernel_ver_str}
92 Group:          Base/Kernel
93 Prereq:         /sbin/depmod
94 %{!?_without_dist_kernel:%requires_releq_kernel_up}
95
96 %description -n kernel-cipe
97 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
98 package for an encrypting IP tunnel device. This can be used to build
99 encrypting routers for VPN (Virtual Private Networks) and similar
100 applications. This package contains a kernel module compiled for
101 %{_kernel_ver}%{smpstr}.
102
103 %description -n kernel-cipe -l pl
104 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
105 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
106 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
107 podobnych zastosowaniach. Ten pakiet zawiera modu³ kernela
108 skompilowany dla %{_kernel_ver}%.
109
110 %package -n kernel-smp-cipe
111 Summary:        CIPE kernel module
112 Summary(pl):    Modu³ j±dra CIPE
113 Release:        %{_rel}@%{_kernel_ver_str}
114 Group:          Base/Kernel
115 Prereq:         /sbin/depmod
116 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
117
118 %description -n kernel-smp-cipe
119 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
120 package for an encrypting IP tunnel device. This can be used to build
121 encrypting routers for VPN (Virtual Private Networks) and similar
122 applications. This package contains a kernel module compiled for
123 %{_kernel_ver}%{smpstr}.
124
125 %description -n kernel-smp-cipe -l pl
126 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
127 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
128 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
129 podobnych zastosowaniach. Ten pakiet zawiera modu³ kernela
130 skompilowany dla %{_kernel_ver}-smp.
131
132 %prep
133 %setup -q
134 %patch0 -p1
135 %patch1 -p1
136 %patch2 -p1
137 # %patch3 -p1
138 %patch4 -p1
139
140 %build
141 mv -f conf/aclocal.m4 conf/acinclude.m4
142 %{__aclocal} -I conf --output=conf/aclocal.m4
143 %{__autoconf} --include conf/
144
145 %configure \
146         --with-linux=%{_kernelsrcdir} \
147         --with-ciped=%{_sbindir}/ciped-cb
148
149 %{__make} modules
150
151 %configure \
152         --with-linux=%{_kernelsrcdir} \
153         --with-ciped=%{_sbindir}/ciped-db \
154         --enable-protocol=4
155
156 %{__make} modules
157
158 mkdir modules/
159 mv -f */cip?b.o modules/
160
161 %{__make} clean
162
163 DEFS="-D__SMP__ -D__KERNEL_SMP=1" \
164 %configure \
165         --with-linux=%{_kernelsrcdir} \
166         --with-ciped=%{_sbindir}/ciped-cb \
167         --enable-smp
168
169 %{__make}
170
171 DEFS="-D__SMP__ -D__KERNEL_SMP=1" \
172 %configure \
173         --with-linux=%{_kernelsrcdir} \
174         --with-ciped=%{_sbindir}/ciped-cb \
175         --enable-smp \
176         --enable-protocol=4
177
178 %{__make}
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182
183 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_infodir}} \
184         $RPM_BUILD_ROOT%{_sysconfdir}/cipe/pk \
185         $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc \
186         $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc \
187         $RPM_BUILD_ROOT%{_var}/run/cipe \
188         $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
189
190 install pkcipe/pkcipe $RPM_BUILD_ROOT%{_sbindir}
191 install pkcipe/rsa-keygen $RPM_BUILD_ROOT%{_bindir}
192 mv -f modules/cip?b.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
193 install */cip?b.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
194 install */ciped-?b $RPM_BUILD_ROOT%{_sbindir}
195 install cipe.info $RPM_BUILD_ROOT%{_infodir}
196 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/pkcipe
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %post
202 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
203
204 %postun
205 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
206
207 %post pkcipe-client
208 [ ! -f %{_sysconfdir}/cipe/identity.priv ] && %{_bindir}/rsa-keygen %{_sysconfdir}/cipe/identity
209
210 %post pkcipe-server
211 if [ -f /var/lock/subsys/rc-inetd ]; then
212         /etc/rc.d/init.d/rc-inetd reload 1>&2
213 else
214         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
215 fi
216
217 %postun pkcipe-server
218 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
219         /etc/rc.d/init.d/rc-inetd reload
220 fi
221
222 %post -n kernel-cipe
223 /sbin/depmod -a
224
225 %postun -n kernel-cipe
226 /sbin/depmod -a
227
228 %post -n kernel-smp-cipe
229 /sbin/depmod -a
230
231 %postun -n kernel-smp-cipe
232 /sbin/depmod -a
233
234 %files
235 %defattr(644,root,root,755)
236 %doc README* tcpdump.patch CHANGES samples
237 %{_infodir}/*
238 %attr(755,root,root) %{_sbindir}/ciped-*
239 %dir %{_sysconfdir}/cipe
240 %attr(755,root,root) %dir %{_var}/run/cipe
241
242 %files pkcipe-client
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_bindir}/rsa-keygen
245 %attr(755,root,root) %{_sbindir}/pkcipe
246 %attr(700,root,root) %dir %{_sysconfdir}/cipe/pk
247
248 %files pkcipe-server
249 %defattr(644,root,root,755)
250 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/rc-inetd/pkcipe
251
252 %files -n kernel-cipe
253 %defattr(644,root,root,755)
254 %attr(600,root,root) /lib/modules/%{_kernel_ver}/misc/cip*.o*
255
256 %files -n kernel-smp-cipe
257 %defattr(644,root,root,755)
258 %attr(600,root,root) /lib/modules/%{_kernel_ver}smp/misc/cip*.o*
This page took 0.271006 seconds and 3 git commands to generate.