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
141 Requires: %{name} = %{version}-%{release}
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.
150 This package contains utilities which assist in building Vservers.
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.
159 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
162 Summary: initscripts for vserver
163 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
165 Requires(post,preun): /sbin/chkconfig
166 Requires: %{name} = %{version}-%{release}
167 Requires: %{name}-core = %{version}-%{release}
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.
179 This package contains the SysV initscripts which start and stop
180 Vservers and related tools.
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.
189 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
190 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
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}
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.
208 This package contains the tools which are needed to work with Vservers
209 having an old-style configuration.
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.
218 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
219 konfiguracjê w starym stylu.
221 %package -n vserver-dev
222 Summary: /dev entries for systems in Vservers
223 Summary(pl): Pliki specjalne /dev/* dla systemów w Vserwerach
225 PreReq: setup >= 2.4.1-2
226 Provides: dev = 2.9.0-19
231 %description -n vserver-dev
232 Unix and unix like systems (including Linux) use file system entries
233 to represent devices attached to the machine. All of these entries are
234 in the /dev tree (though they don't have to be), and this package
235 contains only entries needed for a system running inside Vserver.
237 DO NOT install this package for a normal system!
239 %description -n vserver-dev -l pl
240 Wszystkie systemy klasy unices, w tym Linux, u¿ywaj± plików do
241 przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
242 znajduj± siê zwykle w katalogu /dev. Pakiet ten wy³±cznie te pliki
243 specjalne które s± potrzebne do uruchomienia systemu w Vserwerze.
245 NIE INSTALUJ tego pakietu na zwyk³ym systemie!
254 --with-initrddir=/etc/rc.d/init.d \
256 %{?with_dietlibc:--enable-dietlibc} \
257 %{!?with_dietlibc:--disable-dietlibc}
263 rm -rf $RPM_BUILD_ROOT
264 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
266 %{__make} install install-distribution \
267 DESTDIR=$RPM_BUILD_ROOT
269 install -d $RPM_BUILD_ROOT/etc/vservices
270 install -d $RPM_BUILD_ROOT/vservers/.pkg
271 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
272 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
274 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
275 s=`basename $i | sed s/v_//`
276 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
277 # IP addresses/interfaces to bound $s service to
283 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
284 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
285 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
286 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
287 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
288 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
290 ln -sf /dev/null $RPM_BUILD_ROOT/dev/initctl
293 rm -rf $RPM_BUILD_ROOT
296 %{_sbindir}/setattr --barrier /vservers || :
298 %post lib -p /sbin/ldconfig
299 %postun lib -p /sbin/ldconfig
302 /sbin/chkconfig --add vservers-default
303 /sbin/chkconfig --add vprocunhide
304 #if [ -r /var/lock/subsys/vprocunhide ]; then
305 # /etc/rc.d/init.d/vprocunhide restart >&2
307 #if [ -r /var/lock/subsys/vservers-default ]; then
308 # /etc/rc.d/init.d/vservers-default restart >&2
312 if [ "$1" = "0" ]; then
313 if [ -r /var/lock/subsys/vprocunhide ]; then
314 /etc/rc.d/init.d/vprocunhide stop >&2
316 if [ -r /var/lock/subsys/vservers-default ]; then
317 /etc/rc.d/init.d/vservers-default stop >&2
319 /sbin/chkconfig --del vprocunhide
320 /sbin/chkconfig --del vservers-default
324 /sbin/chkconfig --add rebootmgr
325 /sbin/chkconfig --add vservers-legacy
326 #if [ -r /var/lock/subsys/rebootmgr ] ; then
327 # /etc/rc.d/init.d/rebootmgr restart >&2
329 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
330 # /etc/rc.d/init.d/vservers-legacy restart >&2
334 if [ "$1" = "0" ]; then
335 if [ -r /var/lock/subsys/rebootmgr ] ; then
336 /etc/rc.d/init.d/rebootmgr stop >&2
338 if [ -r /var/lock/subsys/vservers-legacy ] ; then
339 /etc/rc.d/init.d/vservers-legacy stop >&2
341 /sbin/chkconfig --del rebootmgr
342 /sbin/chkconfig --del vservers-legacy
348 **************************************************
350 * BIG FAT WARNING!!! *
352 * This package is for use inside Vserver ONLY! *
353 * DO NOT install it on normal system! *
355 **************************************************
360 %defattr(644,root,root,755)
361 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
362 %dir %{_sysconfdir}/vservers
363 %dir %{_sysconfdir}/vservers/.defaults
364 %dir %{_sysconfdir}/vservers/.defaults/apps
365 %dir %{_sysconfdir}/vservers/.defaults/files
366 %{_sysconfdir}/vservers/.defaults/vdirbase
367 %{_sysconfdir}/vservers/.defaults/run.rev
368 %{_sysconfdir}/vservers/vdirbase
369 %{_sysconfdir}/vservers/run.rev
371 %attr(755,root,root) %{_sbindir}/exec-cd
372 %attr(755,root,root) %{_sbindir}/vdu
373 %attr(755,root,root) %{_sbindir}/vps
374 %attr(755,root,root) %{_sbindir}/vpstree
375 %attr(755,root,root) %{_sbindir}/vserver
376 %attr(755,root,root) %{_sbindir}/vserver-stat
377 %attr(755,root,root) %{_sbindir}/vsomething
378 %attr(755,root,root) %{_sbindir}/vtop
379 %dir %{_libdir}/%{name}
380 %dir %{_libdir}/%{name}/defaults
381 %{_libdir}/%{name}/defaults/*
382 %attr(755,root,root) %{_libdir}/%{name}/capchroot
383 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
384 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
385 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
386 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
387 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
388 %attr(755,root,root) %{_libdir}/%{name}/filetime
389 %{_libdir}/%{name}/functions
390 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
391 %attr(755,root,root) %{_libdir}/%{name}/lockfile
392 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
393 %attr(755,root,root) %{_libdir}/%{name}/readlink
394 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
395 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
396 %attr(755,root,root) %{_libdir}/%{name}/sigexec
397 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
398 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
399 %{_libdir}/%{name}/vserver.*
400 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
401 %attr(755,root,root) %{_libdir}/%{name}/vshelper
402 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
404 %attr(0,root,root) %dir /vservers
405 %attr(755,root,root) %dir /vservers/.pkg
406 %dir %{_localstatedir}/run/vservers
407 %dir %{_localstatedir}/run/vservers.rev
408 %dir %{_localstatedir}/run/vshelper
411 %defattr(644,root,root,755)
412 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
413 %attr(755,root,root) %{_libdir}/lib*.so
415 %{_includedir}/vserver.h
416 %{_pkgconfigdir}/*.pc
419 %defattr(644,root,root,755)
420 %{_libdir}/libvserver.a
423 %defattr(644,root,root,755)
424 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
427 %defattr(644,root,root,755)
428 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
429 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
430 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
431 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
434 %defattr(644,root,root,755)
435 %dir %{_libdir}/%{name}
436 %{_libdir}/%{name}/FEATURES.txt
437 %{_libdir}/%{name}/util-vserver-vars
438 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
439 %attr(755,root,root) %{_sbindir}/chbind
440 %attr(755,root,root) %{_sbindir}/chcontext
441 %attr(755,root,root) %{_sbindir}/chxid
442 %attr(755,root,root) %{_sbindir}/lsxid
443 %attr(755,root,root) %{_sbindir}/reducecap
444 %attr(755,root,root) %{_sbindir}/setattr
445 %attr(755,root,root) %{_sbindir}/showattr
446 %attr(755,root,root) %{_sbindir}/vattribute
447 %attr(755,root,root) %{_sbindir}/vcontext
448 %attr(755,root,root) %{_sbindir}/vdlimit
449 %attr(755,root,root) %{_sbindir}/vnamespace
450 %attr(755,root,root) %{_sbindir}/vkill
451 %attr(755,root,root) %{_sbindir}/vlimit
452 %attr(755,root,root) %{_sbindir}/vrsetup
453 %attr(755,root,root) %{_sbindir}/vsched
454 %attr(755,root,root) %{_sbindir}/vserver-info
455 %attr(755,root,root) %{_sbindir}/vuname
456 %{_mandir}/man8/chbind*
457 %{_mandir}/man8/chcontext*
458 %{_mandir}/man8/reducecap*
461 %defattr(644,root,root,755)
462 %doc contrib/yum*.patch
463 %dir %{_sysconfdir}/vservers/.distributions
464 %{_sysconfdir}/vservers/.distributions/.common
465 %{_sysconfdir}/vservers/.distributions/*
466 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
467 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
468 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
469 %dir %{_libdir}/%{name}/distributions
470 %{_libdir}/%{name}/distributions/*
471 %{_libdir}/%{name}/vserver-build.*
472 %{_libdir}/%{name}/vserver-setup.functions
473 %{_libdir}/%{name}/defaults/fstab
474 %{_libdir}/%{name}/defaults/debootstrap.uri
475 %{_libdir}/%{name}/defaults/vunify-exclude
476 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
477 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
478 %attr(755,root,root) %{_libdir}/%{name}/vbuild
479 %attr(755,root,root) %{_libdir}/%{name}/vcheck
480 %attr(755,root,root) %{_libdir}/%{name}/vcopy
481 %attr(755,root,root) %{_libdir}/%{name}/vhashify
482 %attr(755,root,root) %{_libdir}/%{name}/vpkg
483 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
484 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
485 %attr(755,root,root) %{_libdir}/%{name}/vunify
486 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
487 %attr(755,root,root) %{_sbindir}/vapt-get
488 %attr(755,root,root) %{_sbindir}/vfiles
489 %attr(755,root,root) %{_sbindir}/vrpm
490 %attr(755,root,root) %{_sbindir}/vyum
491 %{_mandir}/man8/vserver-copy*
494 %defattr(644,root,root,755)
497 %dir %{_libdir}/%{name}/legacy
498 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
499 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
500 %attr(754,root,root) /etc/rc.d/init.d/v_*
501 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
502 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
503 %attr(755,root,root) %{_sbindir}/vserver-copy
504 %{_mandir}/man8/distrib-info*
505 %{_mandir}/man8/rebootmgr*
506 %{_mandir}/man8/vps.*
508 %files -n vserver-dev
509 %defattr(644,root,root,755)
511 %dev(c,1,7) %attr(666,root,root) /dev/full
512 %dev(c,1,3) %attr(666,root,root) /dev/null
513 %dev(c,5,2) %attr(666,root,root) /dev/ptmx
514 %dev(c,1,8) %attr(644,root,root) /dev/random
515 %dev(c,5,0) %attr(666,root,root) /dev/tty
516 %dev(c,1,9) %attr(644,root,root) /dev/urandom
517 %dev(c,1,5) %attr(666,root,root) /dev/zero