]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver.spec
- pl for new packages, some unification
[packages/util-vserver.git] / util-vserver.spec
1 #
2 # Conditional build:
3 %bcond_with     dietlibc        # use dietlibc instead of glibc
4 %bcond_with     xalan           # use the xalan xslt processor
5
6 Summary:        Linux virtual server utilities
7 Summary(pl):    Narzêdzia dla linuksowych serwerów wirtualnych
8 Name:           util-vserver
9 Version:        0.30.207
10 Release:        0.3
11 Epoch:          0
12 License:        GPL
13 Group:          Base
14 Source0:        http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
15 # Source0-md5:  1c8457a687643ae8a7b1f1d34ebbdd68
16 Source1:        vprocunhide.init
17 Source2:        vservers-default.init
18 Source3:        vservers-legacy.init
19 Source4:        rebootmgr.init
20 Source5:        vservers-default.sysconfig
21 Source6:        vservers-legacy.sysconfig
22 Patch0:         %{name}-no-kernel-includes.patch
23 Patch1:         %{name}-vsysvwrapper.patch
24 URL:            http://savannah.nongnu.org/projects/util-vserver/
25 BuildRequires:  e2fsprogs-devel
26 BuildRequires:  libxslt-progs
27 BuildRequires:  vlan
28 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
29 %{?with_xalan:BuildRequires:    xalan-j}
30 PreReq:         rc-scripts
31 Requires(post,preun):   /sbin/chkconfig
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 This package provides the components and a framework to setup virtual
36 servers. A virtual server runs inside a Linux server. It is
37 nevertheless highly independent. As such, you can run various services
38 with normal configuration. The various vservers can't interact with
39 each other and can't interact with services in the main server.
40
41 This requires a special kernel supporting the new new_s_context and
42 set_ipv4root system call.
43
44 %description -l pl
45 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
46 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
47 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
48 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
49 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
50
51 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
52 new_s_context i set_ipv4root.
53
54 %package devel
55 Summary:        Development files for Linux vserver libraries
56 Summary(pl):    Pliki programistyczne dla bibliotek linuksowego vserwera
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59
60 %description devel
61 This package contains the development files necessary for developing
62 programs which use vserver library.
63
64 %description devel -l pl
65 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
66 programów u¿ywaj±cych biblioteki vserver.
67
68 %package static
69 Summary:        Static vserver library
70 Summary(pl):    Biblioteka statyczna vservera
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 This package contains the static version of vserver library.
76
77 %description static -l pl
78 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
79
80 %package lib
81 Summary:        Dynamic libraries for util-vserver
82 Summary(pl):    Biblioteki dynamiczne dla pakietu util-vserver
83 Group:          Libraries
84
85 %description lib
86 util-vserver provides the components and a framework to setup virtual
87 servers. A virtual server runs inside a linux server. It is
88 nevertheless highly independent. As such, you can run various services
89 with normal configuration. The various vservers can't interact with
90 each other and can't interact with services in the main server.
91
92 This package contains the shared libraries needed by all other
93 'util-vserver' subpackages.
94
95 %description lib -l pl
96 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
97 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
98 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
99 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
100 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
101
102 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
103 podpakiety util-vserver.
104
105 %package core
106 Summary:        The core-utilities for util-vserver
107 Summary(pl):    Podstawowe narzêdzia dla util-vserver
108 Group:          Applications/System
109 Requires:       util-linux
110
111 %description core
112 util-vserver provides the components and a framework to setup virtual
113 servers. A virtual server runs inside a linux server. It is
114 nevertheless highly independent. As such, you can run various services
115 with normal configuration. The various vservers can't interact with
116 each other and can't interact with services in the main server.
117
118 This package contains utilities which are required to communicate with
119 the Linux-Vserver enabled kernel.
120
121 %description core -l pl
122 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
123 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
124 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
125 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
126 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
127
128 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
129 w³±czonym mechanizmem Linux-Vserver.
130
131 %package build
132 Summary:        Tools which can be used to build vservers
133 Summary(pl):    Narzêdzia do budowania vserverów
134 Group:          Applications/System
135 Requires:       apt
136 Requires:       binutils
137 Requires:       e2fsprogs
138 Requires:       rpm
139 Requires:       tar
140 Requires:       wget
141 Requires:       %{name} = %{version}-%{release}
142
143 %description build
144 util-vserver provides the components and a framework to setup virtual
145 servers. A virtual server runs inside a linux server. It is
146 nevertheless highly independent. As such, you can run various services
147 with normal configuration. The various vservers can't interact with
148 each other and can't interact with services in the main server.
149
150 This package contains utilities which assist in building Vservers.
151
152 %description build -l pl
153 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
154 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
155 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
156 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
157 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
158
159 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
160
161 %package init
162 Summary:        initscripts for vserver
163 Summary(pl):    Skrypty inicjalizuj±ce dla vserwera
164 Group:          Base
165 Requires(post,preun):   /sbin/chkconfig
166 Requires:       %{name} = %{version}-%{release}
167 Requires:       %{name}-core = %{version}-%{release}
168 Requires:       diffutils
169 Requires:       make
170 Requires:       rc-scripts
171
172 %description init
173 util-vserver provides the components and a framework to setup virtual
174 servers. A virtual server runs inside a linux server. It is
175 nevertheless highly independent. As such, you can run various services
176 with normal configuration. The various vservers can't interact with
177 each other and can't interact with services in the main server.
178
179 This package contains the SysV initscripts which start and stop
180 Vservers and related tools.
181
182 %description init -l pl
183 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
184 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
185 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
186 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
187 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
188
189 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
190 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
191
192 %package legacy
193 Summary:        Legacy utilities for util-vserver
194 Summary(pl):    Stare narzêdzia dla util-vserver
195 Group:          Applications/System
196 Requires(post,preun):   /sbin/chkconfig
197 Requires:       %{name} = %{version}-%{release}
198 Requires:       %{name}-core = %{version}-%{release}
199 Requires:       rc-scripts
200
201 %description legacy
202 util-vserver provides the components and a framework to setup virtual
203 servers. A virtual server runs inside a linux server. It is
204 nevertheless highly independent. As such, you can run various services
205 with normal configuration. The various vservers can't interact with
206 each other and can't interact with services in the main server.
207
208 This package contains the tools which are needed to work with Vservers
209 having an old-style configuration.
210
211 %description legacy -l pl
212 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
213 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
214 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
215 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
216 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
217
218 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
219 konfiguracjê w starym stylu.
220
221 %prep
222 %setup -q
223 %patch0 -p1
224 %patch1 -p1
225
226 %build
227 %configure \
228         --with-initrddir=/etc/rc.d/init.d \
229         --enable-release \
230         %{?with_dietlibc:--enable-dietlibc} \
231         %{!?with_dietlibc:--disable-dietlibc}
232
233 %{__make} all
234 %{__make} doc
235
236 %install
237 rm -rf $RPM_BUILD_ROOT
238 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d}}
239
240 %{__make} install install-distribution \
241         DESTDIR=$RPM_BUILD_ROOT
242
243 install -d $RPM_BUILD_ROOT/etc/vservices
244 install -d $RPM_BUILD_ROOT/vservers/.pkg
245 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
246 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
247
248 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
249         s=`basename $i | sed s/v_//`
250         cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
251 # IP addresses/interfaces to bound $s service to
252 #IP=10.0.0.1
253 #IP=eth0
254 EOF
255 done
256
257 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
258 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
259 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
260 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
261 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
262 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
263
264 %clean
265 rm -rf $RPM_BUILD_ROOT
266
267 %post
268 %{_sbindir}/setattr --barrier /vservers || :
269
270 %post   lib -p /sbin/ldconfig
271 %postun lib -p /sbin/ldconfig
272
273 %post init
274 /sbin/chkconfig --add vservers-default
275 /sbin/chkconfig --add vprocunhide
276 #if [ -r /var/lock/subsys/vprocunhide ]; then
277 #       /etc/rc.d/init.d/vprocunhide restart >&2
278 #fi
279 #if [ -r /var/lock/subsys/vservers-default ]; then
280 #       /etc/rc.d/init.d/vservers-default restart >&2
281 #fi
282
283 %preun init
284 if [ "$1" = "0" ]; then
285         if [ -r /var/lock/subsys/vprocunhide ]; then
286                 /etc/rc.d/init.d/vprocunhide stop >&2
287         fi
288         if [ -r /var/lock/subsys/vservers-default ]; then
289                 /etc/rc.d/init.d/vservers-default stop >&2
290         fi
291         /sbin/chkconfig --del vprocunhide
292         /sbin/chkconfig --del vservers-default
293 fi
294
295 %post legacy
296 /sbin/chkconfig --add rebootmgr
297 /sbin/chkconfig --add vservers-legacy
298 #if [ -r /var/lock/subsys/rebootmgr ] ; then
299 #       /etc/rc.d/init.d/rebootmgr restart >&2
300 #fi
301 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
302 #       /etc/rc.d/init.d/vservers-legacy restart >&2
303 #fi
304
305 %preun legacy
306 if [ "$1" = "0" ]; then
307         if [ -r /var/lock/subsys/rebootmgr ] ; then
308                 /etc/rc.d/init.d/rebootmgr stop >&2
309         fi
310         if [ -r /var/lock/subsys/vservers-legacy ] ; then
311                 /etc/rc.d/init.d/vservers-legacy stop >&2
312         fi
313         /sbin/chkconfig --del rebootmgr
314         /sbin/chkconfig --del vservers-legacy
315 fi
316
317 %files
318 %defattr(644,root,root,755)
319 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
320 %dir %{_sysconfdir}/vservers
321 %dir %{_sysconfdir}/vservers/.defaults
322 %dir %{_sysconfdir}/vservers/.defaults/apps
323 %dir %{_sysconfdir}/vservers/.defaults/files
324 %ghost %{_sysconfdir}/vservers/.defaults/vdirbase
325 %ghost %{_sysconfdir}/vservers/.defaults/run.rev
326 %{_sysconfdir}/vservers/vdirbase
327 %{_sysconfdir}/vservers/run.rev
328 /sbin/vshelper
329 %attr(755,root,root) %{_sbindir}/exec-cd
330 %attr(755,root,root) %{_sbindir}/vdu
331 %attr(755,root,root) %{_sbindir}/vps
332 %attr(755,root,root) %{_sbindir}/vpstree
333 %attr(755,root,root) %{_sbindir}/vserver
334 %attr(755,root,root) %{_sbindir}/vserver-stat
335 %attr(755,root,root) %{_sbindir}/vsomething
336 %attr(755,root,root) %{_sbindir}/vtop
337 %dir %{_libdir}/%{name}
338 %dir %{_libdir}/%{name}/defaults
339 %{_libdir}/%{name}/defaults/*
340 %attr(755,root,root) %{_libdir}/%{name}/capchroot
341 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
342 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
343 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
344 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
345 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
346 %attr(755,root,root) %{_libdir}/%{name}/filetime
347 %{_libdir}/%{name}/functions
348 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
349 %attr(755,root,root) %{_libdir}/%{name}/lockfile
350 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
351 %attr(755,root,root) %{_libdir}/%{name}/readlink
352 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
353 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
354 %attr(755,root,root) %{_libdir}/%{name}/sigexec
355 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
356 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
357 %{_libdir}/%{name}/vserver.*
358 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
359 %attr(755,root,root) %{_libdir}/%{name}/vshelper
360 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
361 %{_mandir}/man8/*
362 %attr(0,root,root) %dir /vservers
363 %attr(755,root,root) %dir /vservers/.pkg
364 %dir %{_localstatedir}/run/vservers
365 %dir %{_localstatedir}/run/vservers.rev
366 %dir %{_localstatedir}/run/vshelper
367
368 %files devel
369 %defattr(644,root,root,755)
370 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
371 %attr(755,root,root) %{_libdir}/lib*.so
372 %{_libdir}/lib*.la
373 %{_includedir}/vserver.h
374 %{_pkgconfigdir}/*.pc
375
376 %files static
377 %defattr(644,root,root,755)
378 %{_libdir}/libvserver.a
379
380 %files lib
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
383
384 %files init
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
387 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
388 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
389 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
390
391 %files core
392 %defattr(644,root,root,755)
393 %dir %{_libdir}/%{name}
394 %{_libdir}/%{name}/FEATURES.txt
395 %{_libdir}/%{name}/util-vserver-vars
396 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
397 %attr(755,root,root) %{_sbindir}/chbind
398 %attr(755,root,root) %{_sbindir}/chcontext
399 %attr(755,root,root) %{_sbindir}/chxid
400 %attr(755,root,root) %{_sbindir}/lsxid
401 %attr(755,root,root) %{_sbindir}/reducecap
402 %attr(755,root,root) %{_sbindir}/setattr
403 %attr(755,root,root) %{_sbindir}/showattr
404 %attr(755,root,root) %{_sbindir}/vattribute
405 %attr(755,root,root) %{_sbindir}/vcontext
406 %attr(755,root,root) %{_sbindir}/vdlimit
407 %attr(755,root,root) %{_sbindir}/vnamespace
408 %attr(755,root,root) %{_sbindir}/vkill
409 %attr(755,root,root) %{_sbindir}/vlimit
410 %attr(755,root,root) %{_sbindir}/vrsetup
411 %attr(755,root,root) %{_sbindir}/vsched
412 %attr(755,root,root) %{_sbindir}/vserver-info
413 %attr(755,root,root) %{_sbindir}/vuname
414 %{_mandir}/man8/chbind*
415 %{_mandir}/man8/chcontext*
416 %{_mandir}/man8/reducecap*
417
418 %files build
419 %defattr(644,root,root,755)
420 %doc contrib/yum*.patch
421 %dir %{_sysconfdir}/vservers/.distributions
422 %{_sysconfdir}/vservers/.distributions/.common
423 %{_sysconfdir}/vservers/.distributions/*
424 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
425 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
426 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
427 %dir %{_libdir}/%{name}/distributions
428 %{_libdir}/%{name}/distributions/*
429 %{_libdir}/%{name}/vserver-build.*
430 %{_libdir}/%{name}/vserver-setup.functions
431 %{_libdir}/%{name}/defaults/fstab
432 %{_libdir}/%{name}/defaults/debootstrap.uri
433 %{_libdir}/%{name}/defaults/vunify-exclude
434 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
435 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
436 %attr(755,root,root) %{_libdir}/%{name}/vbuild
437 %attr(755,root,root) %{_libdir}/%{name}/vcheck
438 %attr(755,root,root) %{_libdir}/%{name}/vcopy
439 %attr(755,root,root) %{_libdir}/%{name}/vhashify
440 %attr(755,root,root) %{_libdir}/%{name}/vpkg
441 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
442 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
443 %attr(755,root,root) %{_libdir}/%{name}/vunify
444 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
445 %attr(755,root,root) %{_sbindir}/vapt-get
446 %attr(755,root,root) %{_sbindir}/vfiles
447 %attr(755,root,root) %{_sbindir}/vrpm
448 %attr(755,root,root) %{_sbindir}/vyum
449 %{_mandir}/man8/vserver-copy*
450
451 %files legacy
452 %defattr(644,root,root,755)
453 %dir /etc/vservices
454 /etc/vservices/*
455 %dir %{_libdir}/%{name}/legacy
456 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
457 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
458 %attr(754,root,root) /etc/rc.d/init.d/v_*
459 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
460 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
461 %attr(755,root,root) %{_sbindir}/vserver-copy
462 %{_mandir}/man8/distrib-info*
463 %{_mandir}/man8/rebootmgr*
464 %{_mandir}/man8/vps.*
This page took 0.085597 seconds and 3 git commands to generate.