1 Summary: CIPE - encrypted IP over UDP tunneling
2 Summary(pl): CIPE - szyfrowany tunel IP po UDP
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}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sysconfdir /etc
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
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.
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
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
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.
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}
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.
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.
88 %package -n kernel-cipe
89 Summary: CIPE kernel module
90 Summary(pl): Modu³ j±dra CIPE
91 Release: %{_rel}@%{_kernel_ver_str}
94 %{!?_without_dist_kernel:%requires_releq_kernel_up}
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}.
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}%.
110 %package -n kernel-smp-cipe
111 Summary: CIPE kernel module
112 Summary(pl): Modu³ j±dra CIPE
113 Release: %{_rel}@%{_kernel_ver_str}
116 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
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}.
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.
141 mv -f conf/aclocal.m4 conf/acinclude.m4
142 %{__aclocal} -I conf --output=conf/aclocal.m4
143 %{__autoconf} --include conf/
146 --with-linux=%{_kernelsrcdir} \
147 --with-ciped=%{_sbindir}/ciped-cb
152 mv -f */cipcb.o modules/
156 DEFS="-D__SMP__ -D__KERNEL_SMP=1" \
158 --with-linux=%{_kernelsrcdir} \
159 --with-ciped=%{_sbindir}/ciped-cb \
165 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_infodir}} \
168 $RPM_BUILD_ROOT%{_sysconfdir}/cipe/pk \
169 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc \
170 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc \
171 $RPM_BUILD_ROOT%{_var}/run/cipe \
172 $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
174 install pkcipe/pkcipe $RPM_BUILD_ROOT%{_sbindir}
175 install pkcipe/rsa-keygen $RPM_BUILD_ROOT%{_bindir}
176 mv -f modules/cipcb.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
177 install */cipcb.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
178 install */ciped-cb $RPM_BUILD_ROOT%{_sbindir}
179 install cipe.info $RPM_BUILD_ROOT%{_infodir}
180 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/pkcipe
183 rm -rf $RPM_BUILD_ROOT
186 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
189 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
192 [ ! -f %{_sysconfdir}/cipe/identity.priv ] && %{_bindir}/rsa-keygen %{_sysconfdir}/cipe/identity
195 if [ -f /var/lock/subsys/rc-inetd ]; then
196 /etc/rc.d/init.d/rc-inetd reload 1>&2
198 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
201 %postun pkcipe-server
202 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
203 /etc/rc.d/init.d/rc-inetd reload
209 %postun -n kernel-cipe
212 %post -n kernel-smp-cipe
215 %postun -n kernel-smp-cipe
219 %defattr(644,root,root,755)
220 %doc README* tcpdump.patch CHANGES samples
222 %attr(755,root,root) %{_sbindir}/ciped-cb
223 %dir %{_sysconfdir}/cipe
224 %attr(755,root,root) %dir %{_var}/run/cipe
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_bindir}/rsa-keygen
229 %attr(755,root,root) %{_sbindir}/pkcipe
230 %attr(700,root,root) %dir %{_sysconfdir}/cipe/pk
233 %defattr(644,root,root,755)
234 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/rc-inetd/pkcipe
236 %files -n kernel-cipe
237 %defattr(644,root,root,755)
238 %attr(600,root,root) /lib/modules/%{_kernel_ver}/misc/cipcb.o*
240 %files -n kernel-smp-cipe
241 %defattr(644,root,root,755)
242 %attr(600,root,root) /lib/modules/%{_kernel_ver}smp/misc/cipcb.o*