]> git.pld-linux.org Git - packages/cipe.git/blob - cipe.spec
- rel. 11 (rebuild against kernel 2.2.22-4)
[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.2
5 %define _rel    11
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}-pkcipe-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 simplifies
76 setup of CIPE tunnels by using autoconfiguration and public/private key
77 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 stronie
84 serwera, który uprasza ustawienie tuneli CIPE przez korzystanie z
85 autokonfiguracji oraz mechanizmów kluczy publicznych/prywatnych.
86
87 %package -n kernel-cipe
88 Summary:        CIPE kernel module
89 Summary(pl):    Modu³ j±dra CIPE
90 Release:        %{_rel}@%{_kernel_ver_str}
91 Group:          Base/Kernel
92 Prereq:         /sbin/depmod
93 %{!?_without_dist_kernel:%requires_releq_kernel_up}
94
95 %description -n kernel-cipe
96 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
97 package for an encrypting IP tunnel device. This can be used to build
98 encrypting routers for VPN (Virtual Private Networks) and similar
99 applications. This package contains a kernel module compiled for
100 %{_kernel_ver}%{smpstr}.
101
102 %description -n kernel-cipe -l pl
103 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
104 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
105 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
106 podobnych zastosowaniach. Ten pakiet zawiera modu³ kernela
107 skompilowany dla %{_kernel_ver}%.
108
109 %package -n kernel-smp-cipe
110 Summary:        CIPE kernel module
111 Summary(pl):    Modu³ j±dra CIPE
112 Release:        %{_rel}@%{_kernel_ver_str}
113 Group:          Base/Kernel
114 Prereq:         /sbin/depmod
115 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
116
117 %description -n kernel-smp-cipe
118 CIPE (the name is shortened from *Crypto IP Encapsulation*) is a
119 package for an encrypting IP tunnel device. This can be used to build
120 encrypting routers for VPN (Virtual Private Networks) and similar
121 applications. This package contains a kernel module compiled for
122 %{_kernel_ver}%{smpstr}.
123
124 %description -n kernel-smp-cipe -l pl
125 CIPE (nazwa to skrót od *Crypto IP Encapsulation*) to pakiet do
126 tworzenia szyfrowanych tuneli IP. Mo¿na je wykorzystaæ do budowania
127 routerów szyfruj±cych w VPNach (Prywatnych Sieciach Wirtualnych) i
128 podobnych zastosowaniach. Ten pakiet zawiera modu³ kernela
129 skompilowany dla %{_kernel_ver}-smp.
130
131 %prep
132 %setup -q
133 %patch0 -p1
134 %patch1 -p1
135 %patch2 -p1
136 %patch3 -p1
137 %patch4 -p1
138
139 %build
140 mv -f conf/aclocal.m4 conf/acinclude.m4
141 %{__aclocal} -I conf --output=conf/aclocal.m4
142 %{__autoconf} --include conf/
143
144 %configure \
145         --with-linux=%{_kernelsrcdir} \
146         --with-ciped=%{_sbindir}/ciped-cb
147
148 %{__make} modules
149
150 mkdir modules/
151 mv -f */cipcb.o modules/
152
153 %{__make} clean
154
155 DEFS="-D__SMP__ -D__KERNEL_SMP=1" \
156 %configure \
157         --with-linux=%{_kernelsrcdir} \
158         --with-ciped=%{_sbindir}/ciped-cb \
159         --enable-smp
160
161 %{__make}
162
163 %install
164 rm -rf $RPM_BUILD_ROOT
165
166 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_infodir}} \
167         $RPM_BUILD_ROOT%{_sysconfdir}/cipe/pk \
168         $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc \
169         $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc \
170         $RPM_BUILD_ROOT%{_var}/run/cipe \
171         $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
172
173 install pkcipe/pkcipe $RPM_BUILD_ROOT%{_sbindir}
174 install pkcipe/rsa-keygen $RPM_BUILD_ROOT%{_bindir}
175 mv -f modules/cipcb.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
176 install */cipcb.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
177 install */ciped-cb $RPM_BUILD_ROOT%{_sbindir}
178 install cipe.info $RPM_BUILD_ROOT%{_infodir}
179 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/pkcipe
180
181 %clean
182 rm -rf $RPM_BUILD_ROOT
183
184 %post
185 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
186
187 %postun
188 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
189
190 %post pkcipe-client
191 [ ! -f %{_sysconfdir}/cipe/identity.priv ] && %{_bindir}/rsa-keygen %{_sysconfdir}/cipe/identity
192
193 %post pkcipe-server
194 if [ -f /var/lock/subsys/rc-inetd ]; then
195         /etc/rc.d/init.d/rc-inetd reload 1>&2
196 else
197         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
198 fi
199
200 %postun pkcipe-server
201 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
202         /etc/rc.d/init.d/rc-inetd reload
203 fi
204
205 %post -n kernel-cipe
206 /sbin/depmod -a
207
208 %postun -n kernel-cipe
209 /sbin/depmod -a
210
211 %post -n kernel-smp-cipe
212 /sbin/depmod -a
213
214 %postun -n kernel-smp-cipe
215 /sbin/depmod -a
216
217 %files
218 %defattr(644,root,root,755)
219 %doc README* tcpdump.patch CHANGES samples
220 %{_infodir}/*
221 %attr(755,root,root) %{_sbindir}/ciped-cb
222 %dir %{_sysconfdir}/cipe
223 %attr(755,root,root) %dir %{_var}/run/cipe
224
225 %files pkcipe-client
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_bindir}/rsa-keygen
228 %attr(755,root,root) %{_sbindir}/pkcipe
229 %attr(700,root,root) %dir %{_sysconfdir}/cipe/pk
230
231 %files pkcipe-server
232 %defattr(644,root,root,755)
233 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/rc-inetd/pkcipe
234
235 %files -n kernel-cipe
236 %defattr(644,root,root,755)
237 %attr(600,root,root) /lib/modules/%{_kernel_ver}/misc/cipcb.o*
238
239 %files -n kernel-smp-cipe
240 %defattr(644,root,root,755)
241 %attr(600,root,root) /lib/modules/%{_kernel_ver}smp/misc/cipcb.o*
This page took 0.045366 seconds and 3 git commands to generate.