3 %bcond_with dietlibc # use dietlibc instead of glibc
4 %bcond_with xalan # use the xalan xslt processor
6 Summary: Linux virtual server utilities
7 Summary(pl): Narzêdzia dla linuksowych serwerów wirtualnych
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
28 BuildRequires: doxygen
29 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
30 %{?with_xalan:BuildRequires: xalan-j}
32 Requires(post,preun): /sbin/chkconfig
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 This package provides the components and a framework to setup virtual
37 servers. A virtual server runs inside a Linux server. It is
38 nevertheless highly independent. As such, you can run various services
39 with normal configuration. The various vservers can't interact with
40 each other and can't interact with services in the main server.
42 This requires a special kernel supporting the new new_s_context and
43 set_ipv4root system call.
46 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
47 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
48 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
49 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
50 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
52 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
53 new_s_context i set_ipv4root.
56 Summary: Development files for Linux vserver libraries
57 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
62 This package contains the development files necessary for developing
63 programs which use vserver library.
65 %description devel -l pl
66 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
67 programów u¿ywaj±cych biblioteki vserver.
70 Summary: Static vserver library
71 Summary(pl): Biblioteka statyczna vservera
72 Group: Development/Libraries
73 Requires: %{name}-devel = %{version}-%{release}
76 This package contains the static version of vserver library.
78 %description static -l pl
79 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
82 Summary: Dynamic libraries for util-vserver
83 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
87 util-vserver provides the components and a framework to setup virtual
88 servers. A virtual server runs inside a linux server. It is
89 nevertheless highly independent. As such, you can run various services
90 with normal configuration. The various vservers can't interact with
91 each other and can't interact with services in the main server.
93 This package contains the shared libraries needed by all other
94 'util-vserver' subpackages.
96 %description lib -l pl
97 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
98 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
99 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
100 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
101 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
103 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
104 podpakiety util-vserver.
107 Summary: The core-utilities for util-vserver
108 Summary(pl): Podstawowe narzêdzia dla util-vserver
109 Group: Applications/System
113 util-vserver provides the components and a framework to setup virtual
114 servers. A virtual server runs inside a linux server. It is
115 nevertheless highly independent. As such, you can run various services
116 with normal configuration. The various vservers can't interact with
117 each other and can't interact with services in the main server.
119 This package contains utilities which are required to communicate with
120 the Linux-Vserver enabled kernel.
122 %description core -l pl
123 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
124 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
125 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
126 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
127 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
129 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
130 w³±czonym mechanizmem Linux-Vserver.
133 Summary: Tools which can be used to build vservers
134 Summary(pl): Narzêdzia do budowania vserverów
135 Group: Applications/System
142 Requires: %{name} = %{version}-%{release}
145 util-vserver provides the components and a framework to setup virtual
146 servers. A virtual server runs inside a linux server. It is
147 nevertheless highly independent. As such, you can run various services
148 with normal configuration. The various vservers can't interact with
149 each other and can't interact with services in the main server.
151 This package contains utilities which assist in building Vservers.
153 %description build -l pl
154 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
155 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
156 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
157 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
158 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
160 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
163 Summary: initscripts for vserver
164 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
166 Requires(post,preun): /sbin/chkconfig
167 Requires: %{name} = %{version}-%{release}
168 Requires: %{name}-core = %{version}-%{release}
174 util-vserver provides the components and a framework to setup virtual
175 servers. A virtual server runs inside a linux server. It is
176 nevertheless highly independent. As such, you can run various services
177 with normal configuration. The various vservers can't interact with
178 each other and can't interact with services in the main server.
180 This package contains the SysV initscripts which start and stop
181 Vservers and related tools.
183 %description init -l pl
184 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
185 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
186 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
187 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
188 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
190 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
191 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
194 Summary: Legacy utilities for util-vserver
195 Summary(pl): Stare narzêdzia dla util-vserver
196 Group: Applications/System
197 Requires(post,preun): /sbin/chkconfig
198 Requires: %{name} = %{version}-%{release}
199 Requires: %{name}-core = %{version}-%{release}
203 util-vserver provides the components and a framework to setup virtual
204 servers. A virtual server runs inside a linux server. It is
205 nevertheless highly independent. As such, you can run various services
206 with normal configuration. The various vservers can't interact with
207 each other and can't interact with services in the main server.
209 This package contains the tools which are needed to work with Vservers
210 having an old-style configuration.
212 %description legacy -l pl
213 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
214 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
215 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
216 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
217 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
219 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
220 konfiguracjê w starym stylu.
222 %package -n vserver-dev
223 Summary: /dev entries for systems in Vservers
224 Summary(pl): Pliki specjalne /dev/* dla systemów w Vserwerach
226 PreReq: setup >= 2.4.1-2
227 Provides: dev = 2.9.0-19
232 %description -n vserver-dev
233 Unix and unix like systems (including Linux) use file system entries
234 to represent devices attached to the machine. All of these entries are
235 in the /dev tree (though they don't have to be), and this package
236 contains only entries needed for a system running inside Vserver.
238 DO NOT install this package for a normal system!
240 %description -n vserver-dev -l pl
241 Wszystkie systemy klasy unices, w tym Linux, u¿ywaj± plików do
242 przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
243 znajduj± siê zwykle w katalogu /dev. Pakiet ten wy³±cznie te pliki
244 specjalne które s± potrzebne do uruchomienia systemu w Vserwerze.
246 NIE INSTALUJ tego pakietu na zwyk³ym systemie!
255 --with-initrddir=/etc/rc.d/init.d \
257 %{?with_dietlibc:--enable-dietlibc} \
258 %{!?with_dietlibc:--disable-dietlibc}
264 rm -rf $RPM_BUILD_ROOT
265 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
267 %{__make} install install-distribution \
268 DESTDIR=$RPM_BUILD_ROOT
270 install -d $RPM_BUILD_ROOT/etc/vservices
271 install -d $RPM_BUILD_ROOT/vservers/.pkg
272 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
273 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
275 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
276 s=`basename $i | sed s/v_//`
277 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
278 # IP addresses/interfaces to bound $s service to
284 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
285 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
286 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
287 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
288 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
289 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
291 ln -sf /dev/null $RPM_BUILD_ROOT/dev/initctl
294 rm -rf $RPM_BUILD_ROOT
297 %{_sbindir}/setattr --barrier /vservers || :
299 %post lib -p /sbin/ldconfig
300 %postun lib -p /sbin/ldconfig
303 /sbin/chkconfig --add vservers-default
304 /sbin/chkconfig --add vprocunhide
305 #if [ -r /var/lock/subsys/vprocunhide ]; then
306 # /etc/rc.d/init.d/vprocunhide restart >&2
308 #if [ -r /var/lock/subsys/vservers-default ]; then
309 # /etc/rc.d/init.d/vservers-default restart >&2
313 if [ "$1" = "0" ]; then
314 if [ -r /var/lock/subsys/vprocunhide ]; then
315 /etc/rc.d/init.d/vprocunhide stop >&2
317 if [ -r /var/lock/subsys/vservers-default ]; then
318 /etc/rc.d/init.d/vservers-default stop >&2
320 /sbin/chkconfig --del vprocunhide
321 /sbin/chkconfig --del vservers-default
325 /sbin/chkconfig --add rebootmgr
326 /sbin/chkconfig --add vservers-legacy
327 #if [ -r /var/lock/subsys/rebootmgr ] ; then
328 # /etc/rc.d/init.d/rebootmgr restart >&2
330 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
331 # /etc/rc.d/init.d/vservers-legacy restart >&2
335 if [ "$1" = "0" ]; then
336 if [ -r /var/lock/subsys/rebootmgr ] ; then
337 /etc/rc.d/init.d/rebootmgr stop >&2
339 if [ -r /var/lock/subsys/vservers-legacy ] ; then
340 /etc/rc.d/init.d/vservers-legacy stop >&2
342 /sbin/chkconfig --del rebootmgr
343 /sbin/chkconfig --del vservers-legacy
349 **************************************************
351 * BIG FAT WARNING!!! *
353 * This package is for use inside Vserver ONLY! *
354 * DO NOT install it on normal system! *
356 **************************************************
361 %defattr(644,root,root,755)
362 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
363 %dir %{_sysconfdir}/vservers
364 %dir %{_sysconfdir}/vservers/.defaults
365 %dir %{_sysconfdir}/vservers/.defaults/apps
366 %dir %{_sysconfdir}/vservers/.defaults/files
367 %{_sysconfdir}/vservers/.defaults/vdirbase
368 %{_sysconfdir}/vservers/.defaults/run.rev
369 %{_sysconfdir}/vservers/vdirbase
370 %{_sysconfdir}/vservers/run.rev
372 %attr(755,root,root) %{_sbindir}/exec-cd
373 %attr(755,root,root) %{_sbindir}/vdu
374 %attr(755,root,root) %{_sbindir}/vps
375 %attr(755,root,root) %{_sbindir}/vpstree
376 %attr(755,root,root) %{_sbindir}/vserver
377 %attr(755,root,root) %{_sbindir}/vserver-stat
378 %attr(755,root,root) %{_sbindir}/vsomething
379 %attr(755,root,root) %{_sbindir}/vtop
380 %dir %{_libdir}/%{name}
381 %dir %{_libdir}/%{name}/defaults
382 %{_libdir}/%{name}/defaults/*
383 %attr(755,root,root) %{_libdir}/%{name}/capchroot
384 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
385 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
386 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
387 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
388 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
389 %attr(755,root,root) %{_libdir}/%{name}/filetime
390 %{_libdir}/%{name}/functions
391 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
392 %attr(755,root,root) %{_libdir}/%{name}/lockfile
393 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
394 %attr(755,root,root) %{_libdir}/%{name}/readlink
395 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
396 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
397 %attr(755,root,root) %{_libdir}/%{name}/sigexec
398 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
399 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
400 %{_libdir}/%{name}/vserver.*
401 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
402 %attr(755,root,root) %{_libdir}/%{name}/vshelper
403 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
405 %attr(0,root,root) %dir /vservers
406 %attr(755,root,root) %dir /vservers/.pkg
407 %dir %{_localstatedir}/run/vservers
408 %dir %{_localstatedir}/run/vservers.rev
409 %dir %{_localstatedir}/run/vshelper
412 %defattr(644,root,root,755)
413 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
414 %attr(755,root,root) %{_libdir}/lib*.so
416 %{_includedir}/vserver.h
417 %{_pkgconfigdir}/*.pc
420 %defattr(644,root,root,755)
421 %{_libdir}/libvserver.a
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
430 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
431 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
432 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
435 %defattr(644,root,root,755)
436 %dir %{_libdir}/%{name}
437 %{_libdir}/%{name}/FEATURES.txt
438 %{_libdir}/%{name}/util-vserver-vars
439 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
440 %attr(755,root,root) %{_sbindir}/chbind
441 %attr(755,root,root) %{_sbindir}/chcontext
442 %attr(755,root,root) %{_sbindir}/chxid
443 %attr(755,root,root) %{_sbindir}/lsxid
444 %attr(755,root,root) %{_sbindir}/reducecap
445 %attr(755,root,root) %{_sbindir}/setattr
446 %attr(755,root,root) %{_sbindir}/showattr
447 %attr(755,root,root) %{_sbindir}/vattribute
448 %attr(755,root,root) %{_sbindir}/vcontext
449 %attr(755,root,root) %{_sbindir}/vdlimit
450 %attr(755,root,root) %{_sbindir}/vnamespace
451 %attr(755,root,root) %{_sbindir}/vkill
452 %attr(755,root,root) %{_sbindir}/vlimit
453 %attr(755,root,root) %{_sbindir}/vrsetup
454 %attr(755,root,root) %{_sbindir}/vsched
455 %attr(755,root,root) %{_sbindir}/vserver-info
456 %attr(755,root,root) %{_sbindir}/vuname
457 %{_mandir}/man8/chbind*
458 %{_mandir}/man8/chcontext*
459 %{_mandir}/man8/reducecap*
462 %defattr(644,root,root,755)
463 %doc contrib/yum*.patch
464 %dir %{_sysconfdir}/vservers/.distributions
465 %{_sysconfdir}/vservers/.distributions/.common
466 %{_sysconfdir}/vservers/.distributions/*
467 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
468 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
469 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
470 %dir %{_libdir}/%{name}/distributions
471 %{_libdir}/%{name}/distributions/*
472 %{_libdir}/%{name}/vserver-build.*
473 %{_libdir}/%{name}/vserver-setup.functions
474 %{_libdir}/%{name}/defaults/fstab
475 %{_libdir}/%{name}/defaults/debootstrap.uri
476 %{_libdir}/%{name}/defaults/vunify-exclude
477 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
478 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
479 %attr(755,root,root) %{_libdir}/%{name}/vbuild
480 %attr(755,root,root) %{_libdir}/%{name}/vcheck
481 %attr(755,root,root) %{_libdir}/%{name}/vcopy
482 %attr(755,root,root) %{_libdir}/%{name}/vhashify
483 %attr(755,root,root) %{_libdir}/%{name}/vpkg
484 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
485 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
486 %attr(755,root,root) %{_libdir}/%{name}/vunify
487 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
488 %attr(755,root,root) %{_sbindir}/vapt-get
489 %attr(755,root,root) %{_sbindir}/vfiles
490 %attr(755,root,root) %{_sbindir}/vrpm
491 %attr(755,root,root) %{_sbindir}/vyum
492 %{_mandir}/man8/vserver-copy*
495 %defattr(644,root,root,755)
498 %dir %{_libdir}/%{name}/legacy
499 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
500 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
501 %attr(754,root,root) /etc/rc.d/init.d/v_*
502 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
503 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
504 %attr(755,root,root) %{_sbindir}/vserver-copy
505 %{_mandir}/man8/distrib-info*
506 %{_mandir}/man8/rebootmgr*
507 %{_mandir}/man8/vps.*
509 %files -n vserver-dev
510 %defattr(644,root,root,755)
512 %dev(c,1,7) %attr(666,root,root) /dev/full
513 %dev(c,1,3) %attr(666,root,root) /dev/null
514 %dev(c,5,2) %attr(666,root,root) /dev/ptmx
515 %dev(c,1,8) %attr(644,root,root) /dev/random
516 %dev(c,5,0) %attr(666,root,root) /dev/tty
517 %dev(c,1,9) %attr(644,root,root) /dev/urandom
518 %dev(c,1,5) %attr(666,root,root) /dev/zero