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}-pkcipe-real-peer.patch
14 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: openssl-devel >= 0.9.6
18 BuildRequires: %{_bindir}/openssl
19 BuildRequires: %{kgcc_package}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sysconfdir /etc
27 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
28 package for an encrypting IP tunnel device. This can be used to build
29 encrypting routers for VPN (Virtual Private Networks) and similar
33 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
34 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
35 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
36 podobnych zastosowaniach.
38 %package pkcipe-client
39 Summary: The PKCIPE public key tool for CIPE
40 Summary(pl): PKCIPE - narzêdzie do wykorzystania kluczy publicznych w CIPE
41 Group: Networking/Daemons
42 Prereq: %{_bindir}/openssl
43 Requires: %{name} = %{version}
44 Obsoletes: %{name}-pkcipe
46 %description pkcipe-client
47 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
48 package for an encrypting IP tunnel device. This can be used to build
49 encrypting routers for VPN (Virtual Private Networks) and similar
50 applications. This package contains PKCIPE, which simplifies setup of
51 CIPE tunnels by using autoconfiguration and public/private key
54 %description pkcipe-client -l pl
55 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
56 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
57 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
58 podobnych zastosowaniach. Ten pakiet zawiera PKCIPE, który uprasza
59 ustawienie tuneli CIPE przez korzystanie z autokonfiguracji oraz
60 mechanizmów kluczy publicznych/prywatnych.
62 %package pkcipe-server
63 Summary: The PKCIPE public key tool for CIPE - server side
64 Summary(pl): PKCIPE - narzêdzie do wykorzystania kluczy publicznych w CIPE
65 Group: Networking/Daemons
66 Requires: %{name}-pkcipe-client = %{version}
69 %description pkcipe-server
70 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
71 package for an encrypting IP tunnel device. This can be used to build
72 encrypting routers for VPN (Virtual Private Networks) and similar
73 applications. This package contains server part PKCIPE, which simplifies
74 setup of CIPE tunnels by using autoconfiguration and public/private key
77 %description pkcipe-server -l pl
78 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
79 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
80 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
81 podobnych zastosowaniach. Ten pakiet zawiera PKCIPE do u¿ycia po stronie
82 serwera, który uprasza ustawienie tuneli CIPE przez korzystanie z
83 autokonfiguracji oraz mechanizmów kluczy publicznych/prywatnych.
85 %package -n kernel-cipe
86 Summary: CIPE kernel module
87 Summary(pl): Modu³ j±dra CIPE
88 Release: %{_rel}@%{_kernel_ver_str}
91 %{!?_without_dist_kernel:%requires_releq_kernel_up}
93 %description -n kernel-cipe
94 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
95 package for an encrypting IP tunnel device. This can be used to build
96 encrypting routers for VPN (Virtual Private Networks) and similar
97 applications. This package contains a kernel module compiled for
98 %{_kernel_ver}%{smpstr}.
100 %description -n kernel-cipe -l pl
101 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
102 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
103 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
104 podobnych zastosowaniach. Ten pakiet zawiera modu³ kernela
105 skompilowany dla %{_kernel_ver}%.
107 %package -n kernel-smp-cipe
108 Summary: CIPE kernel module
109 Summary(pl): Modu³ j±dra CIPE
110 Release: %{_rel}@%{_kernel_ver_str}
113 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
115 %description -n kernel-smp-cipe
116 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
117 package for an encrypting IP tunnel device. This can be used to build
118 encrypting routers for VPN (Virtual Private Networks) and similar
119 applications. This package contains a kernel module compiled for
120 %{_kernel_ver}%{smpstr}.
122 %description -n kernel-smp-cipe -l pl
123 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
124 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
125 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
126 podobnych zastosowaniach. Ten pakiet zawiera modu³ kernela
127 skompilowany dla %{_kernel_ver}-smp.
136 mv -f conf/aclocal.m4 conf/acinclude.m4
137 aclocal -I conf --output=conf/aclocal.m4
141 --with-linux=%{_kernelsrcdir} \
142 --with-ciped=%{_sbindir}/ciped-cb
147 mv -f */cipcb.o modules/
151 DEFS="-D__SMP__ -D__KERNEL_SMP=1" \
153 --with-linux=%{_kernelsrcdir} \
154 --with-ciped=%{_sbindir}/ciped-cb \
160 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_infodir}} \
163 $RPM_BUILD_ROOT%{_sysconfdir}/cipe/pk \
164 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc \
165 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc \
166 $RPM_BUILD_ROOT%{_var}/run/cipe \
167 $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
169 install pkcipe/pkcipe $RPM_BUILD_ROOT%{_sbindir}
170 install pkcipe/rsa-keygen $RPM_BUILD_ROOT%{_bindir}
171 mv -f modules/cipcb.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
172 install */cipcb.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
173 install */ciped-cb $RPM_BUILD_ROOT%{_sbindir}
174 install cipe.info $RPM_BUILD_ROOT%{_infodir}
175 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/pkcipe
177 gzip -9nf README* tcpdump.patch CHANGES
180 rm -rf $RPM_BUILD_ROOT
183 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
186 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
189 [ ! -f %{_sysconfdir}/cipe/identity.priv ] && %{_bindir}/rsa-keygen %{_sysconfdir}/cipe/identity
192 if [ -f /var/lock/subsys/rc-inetd ]; then
193 /etc/rc.d/init.d/rc-inetd reload 1>&2
195 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
198 %postun pkcipe-server
199 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
200 /etc/rc.d/init.d/rc-inetd reload
206 %postun -n kernel-cipe
209 %post -n kernel-smp-cipe
212 %postun -n kernel-smp-cipe
216 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_sbindir}/ciped-cb
220 %dir %{_sysconfdir}/cipe
221 %attr(755,root,root) %dir %{_var}/run/cipe
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_bindir}/rsa-keygen
226 %attr(755,root,root) %{_sbindir}/pkcipe
227 %attr(700,root,root) %dir %{_sysconfdir}/cipe/pk
230 %defattr(644,root,root,755)
231 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/rc-inetd/pkcipe
233 %files -n kernel-cipe
234 %defattr(644,root,root,755)
235 %attr(600,root,root) /lib/modules/%{_kernel_ver}/misc/cipcb.o
237 %files -n kernel-smp-cipe
238 %defattr(644,root,root,755)
239 %attr(600,root,root) /lib/modules/%{_kernel_ver}smp/misc/cipcb.o