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: beecrypt-devel
26 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
27 BuildRequires: doxygen
28 BuildRequires: e2fsprogs-devel
29 BuildRequires: libstdc++-devel
30 BuildRequires: libxslt-progs
32 %{?with_xalan:BuildRequires: xalan-j}
34 Requires(post,preun): /sbin/chkconfig
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 This package provides the components and a framework to setup virtual
39 servers. A virtual server runs inside a Linux server. It is
40 nevertheless highly independent. As such, you can run various services
41 with normal configuration. The various vservers can't interact with
42 each other and can't interact with services in the main server.
44 This requires a special kernel supporting the new new_s_context and
45 set_ipv4root system call.
48 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
49 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
50 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
51 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
52 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
54 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
55 new_s_context i set_ipv4root.
58 Summary: Development files for Linux vserver libraries
59 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
64 This package contains the development files necessary for developing
65 programs which use vserver library.
67 %description devel -l pl
68 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
69 programów u¿ywaj±cych biblioteki vserver.
72 Summary: Static vserver library
73 Summary(pl): Biblioteka statyczna vservera
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
78 This package contains the static version of vserver library.
80 %description static -l pl
81 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
84 Summary: Dynamic libraries for util-vserver
85 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
89 util-vserver provides the components and a framework to setup virtual
90 servers. A virtual server runs inside a linux server. It is
91 nevertheless highly independent. As such, you can run various services
92 with normal configuration. The various vservers can't interact with
93 each other and can't interact with services in the main server.
95 This package contains the shared libraries needed by all other
96 'util-vserver' subpackages.
98 %description lib -l pl
99 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
100 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
101 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
102 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
103 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
105 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
106 podpakiety util-vserver.
109 Summary: The core-utilities for util-vserver
110 Summary(pl): Podstawowe narzêdzia dla util-vserver
111 Group: Applications/System
115 util-vserver provides the components and a framework to setup virtual
116 servers. A virtual server runs inside a linux server. It is
117 nevertheless highly independent. As such, you can run various services
118 with normal configuration. The various vservers can't interact with
119 each other and can't interact with services in the main server.
121 This package contains utilities which are required to communicate with
122 the Linux-Vserver enabled kernel.
124 %description core -l pl
125 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
126 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
127 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
128 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
129 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
131 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
132 w³±czonym mechanizmem Linux-Vserver.
135 Summary: Tools which can be used to build vservers
136 Summary(pl): Narzêdzia do budowania vserverów
137 Group: Applications/System
143 Requires: %{name} = %{version}-%{release}
146 util-vserver provides the components and a framework to setup virtual
147 servers. A virtual server runs inside a linux server. It is
148 nevertheless highly independent. As such, you can run various services
149 with normal configuration. The various vservers can't interact with
150 each other and can't interact with services in the main server.
152 This package contains utilities which assist in building Vservers.
154 %description build -l pl
155 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
156 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
157 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
158 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
159 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
161 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
164 Summary: initscripts for vserver
165 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
167 Requires(post,preun): /sbin/chkconfig
168 Requires: %{name} = %{version}-%{release}
169 Requires: %{name}-core = %{version}-%{release}
175 util-vserver provides the components and a framework to setup virtual
176 servers. A virtual server runs inside a linux server. It is
177 nevertheless highly independent. As such, you can run various services
178 with normal configuration. The various vservers can't interact with
179 each other and can't interact with services in the main server.
181 This package contains the SysV initscripts which start and stop
182 Vservers and related tools.
184 %description init -l pl
185 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
186 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
187 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
188 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
189 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
191 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
192 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
195 Summary: Legacy utilities for util-vserver
196 Summary(pl): Stare narzêdzia dla util-vserver
197 Group: Applications/System
198 Requires(post,preun): /sbin/chkconfig
199 Requires: %{name} = %{version}-%{release}
200 Requires: %{name}-core = %{version}-%{release}
204 util-vserver provides the components and a framework to setup virtual
205 servers. A virtual server runs inside a linux server. It is
206 nevertheless highly independent. As such, you can run various services
207 with normal configuration. The various vservers can't interact with
208 each other and can't interact with services in the main server.
210 This package contains the tools which are needed to work with Vservers
211 having an old-style configuration.
213 %description legacy -l pl
214 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
215 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
216 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
217 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
218 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
220 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
221 konfiguracjê w starym stylu.
223 %package -n vserver-dev
224 Summary: /dev entries for systems in Vservers
225 Summary(pl): Pliki specjalne /dev/* dla systemów w Vserwerach
227 PreReq: setup >= 2.4.1-2
228 Provides: dev = 2.9.0-19
233 %description -n vserver-dev
234 Unix and unix like systems (including Linux) use file system entries
235 to represent devices attached to the machine. All of these entries are
236 in the /dev tree (though they don't have to be), and this package
237 contains only entries needed for a system running inside Vserver.
239 DO NOT install this package for a normal system!
241 %description -n vserver-dev -l pl
242 Wszystkie systemy klasy unices, w tym Linux, u¿ywaj± plików do
243 przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
244 znajduj± siê zwykle w katalogu /dev. Pakiet ten wy³±cznie te pliki
245 specjalne które s± potrzebne do uruchomienia systemu w Vserwerze.
247 NIE INSTALUJ tego pakietu na zwyk³ym systemie!
256 --with-initrddir=/etc/rc.d/init.d \
258 %{?with_dietlibc:--enable-dietlibc} \
259 %{!?with_dietlibc:--disable-dietlibc} \
260 IPTABLES=/usr/sbin/iptables \
268 rm -rf $RPM_BUILD_ROOT
269 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
271 %{__make} install install-distribution \
272 DESTDIR=$RPM_BUILD_ROOT
274 install -d $RPM_BUILD_ROOT/etc/vservices
275 install -d $RPM_BUILD_ROOT/vservers/.pkg
276 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
277 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
279 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
280 s=`basename $i | sed s/v_//`
281 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
282 # IP addresses/interfaces to bound $s service to
288 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
289 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
290 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
291 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
292 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
293 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
295 ln -sf /dev/null $RPM_BUILD_ROOT/dev/initctl
298 rm -rf $RPM_BUILD_ROOT
301 %{_sbindir}/setattr --barrier /vservers || :
303 %post lib -p /sbin/ldconfig
304 %postun lib -p /sbin/ldconfig
307 /sbin/chkconfig --add vservers-default
308 /sbin/chkconfig --add vprocunhide
309 #if [ -r /var/lock/subsys/vprocunhide ]; then
310 # /etc/rc.d/init.d/vprocunhide restart >&2
312 #if [ -r /var/lock/subsys/vservers-default ]; then
313 # /etc/rc.d/init.d/vservers-default restart >&2
317 if [ "$1" = "0" ]; then
318 if [ -r /var/lock/subsys/vprocunhide ]; then
319 /etc/rc.d/init.d/vprocunhide stop >&2
321 if [ -r /var/lock/subsys/vservers-default ]; then
322 /etc/rc.d/init.d/vservers-default stop >&2
324 /sbin/chkconfig --del vprocunhide
325 /sbin/chkconfig --del vservers-default
329 /sbin/chkconfig --add rebootmgr
330 /sbin/chkconfig --add vservers-legacy
331 #if [ -r /var/lock/subsys/rebootmgr ] ; then
332 # /etc/rc.d/init.d/rebootmgr restart >&2
334 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
335 # /etc/rc.d/init.d/vservers-legacy restart >&2
339 if [ "$1" = "0" ]; then
340 if [ -r /var/lock/subsys/rebootmgr ] ; then
341 /etc/rc.d/init.d/rebootmgr stop >&2
343 if [ -r /var/lock/subsys/vservers-legacy ] ; then
344 /etc/rc.d/init.d/vservers-legacy stop >&2
346 /sbin/chkconfig --del rebootmgr
347 /sbin/chkconfig --del vservers-legacy
353 **************************************************
355 * BIG FAT WARNING!!! *
357 * This package is for use inside Vserver ONLY! *
358 * DO NOT install it on normal system! *
360 **************************************************
365 %defattr(644,root,root,755)
366 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
367 %dir %{_sysconfdir}/vservers
368 %dir %{_sysconfdir}/vservers/.defaults
369 %dir %{_sysconfdir}/vservers/.defaults/apps
370 %dir %{_sysconfdir}/vservers/.defaults/files
371 %{_sysconfdir}/vservers/.defaults/vdirbase
372 %{_sysconfdir}/vservers/.defaults/run.rev
373 %{_sysconfdir}/vservers/vdirbase
374 %{_sysconfdir}/vservers/run.rev
376 %attr(755,root,root) %{_sbindir}/exec-cd
377 %attr(755,root,root) %{_sbindir}/vdu
378 %attr(755,root,root) %{_sbindir}/vps
379 %attr(755,root,root) %{_sbindir}/vpstree
380 %attr(755,root,root) %{_sbindir}/vserver
381 %attr(755,root,root) %{_sbindir}/vserver-stat
382 %attr(755,root,root) %{_sbindir}/vsomething
383 %attr(755,root,root) %{_sbindir}/vtop
384 %dir %{_libdir}/%{name}
385 %dir %{_libdir}/%{name}/defaults
386 %{_libdir}/%{name}/defaults/*
387 %attr(755,root,root) %{_libdir}/%{name}/capchroot
388 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
389 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
390 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
391 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
392 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
393 %attr(755,root,root) %{_libdir}/%{name}/filetime
394 %{_libdir}/%{name}/functions
395 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
396 %attr(755,root,root) %{_libdir}/%{name}/lockfile
397 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
398 %attr(755,root,root) %{_libdir}/%{name}/readlink
399 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
400 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
401 %attr(755,root,root) %{_libdir}/%{name}/sigexec
402 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
403 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
404 %{_libdir}/%{name}/vserver.*
405 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
406 %attr(755,root,root) %{_libdir}/%{name}/vshelper
407 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
409 %attr(0,root,root) %dir /vservers
410 %attr(755,root,root) %dir /vservers/.pkg
411 %dir %{_localstatedir}/run/vservers
412 %dir %{_localstatedir}/run/vservers.rev
413 %dir %{_localstatedir}/run/vshelper
416 %defattr(644,root,root,755)
417 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
418 %attr(755,root,root) %{_libdir}/lib*.so
420 %{_includedir}/vserver.h
421 %{_pkgconfigdir}/*.pc
424 %defattr(644,root,root,755)
425 %{_libdir}/libvserver.a
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
432 %defattr(644,root,root,755)
433 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
434 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
435 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
436 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
439 %defattr(644,root,root,755)
440 %dir %{_libdir}/%{name}
441 %{_libdir}/%{name}/FEATURES.txt
442 %{_libdir}/%{name}/util-vserver-vars
443 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
444 %attr(755,root,root) %{_sbindir}/chbind
445 %attr(755,root,root) %{_sbindir}/chcontext
446 %attr(755,root,root) %{_sbindir}/chxid
447 %attr(755,root,root) %{_sbindir}/lsxid
448 %attr(755,root,root) %{_sbindir}/reducecap
449 %attr(755,root,root) %{_sbindir}/setattr
450 %attr(755,root,root) %{_sbindir}/showattr
451 %attr(755,root,root) %{_sbindir}/vattribute
452 %attr(755,root,root) %{_sbindir}/vcontext
453 %attr(755,root,root) %{_sbindir}/vdlimit
454 %attr(755,root,root) %{_sbindir}/vnamespace
455 %attr(755,root,root) %{_sbindir}/vkill
456 %attr(755,root,root) %{_sbindir}/vlimit
457 %attr(755,root,root) %{_sbindir}/vrsetup
458 %attr(755,root,root) %{_sbindir}/vsched
459 %attr(755,root,root) %{_sbindir}/vserver-info
460 %attr(755,root,root) %{_sbindir}/vuname
461 %{_mandir}/man8/chbind*
462 %{_mandir}/man8/chcontext*
463 %{_mandir}/man8/reducecap*
466 %defattr(644,root,root,755)
467 %doc contrib/yum*.patch
468 %dir %{_sysconfdir}/vservers/.distributions
469 %{_sysconfdir}/vservers/.distributions/.common
470 %{_sysconfdir}/vservers/.distributions/*
471 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
472 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
473 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
474 %dir %{_libdir}/%{name}/distributions
475 %{_libdir}/%{name}/distributions/*
476 %{_libdir}/%{name}/vserver-build.*
477 %{_libdir}/%{name}/vserver-setup.functions
478 %{_libdir}/%{name}/defaults/fstab
479 %{_libdir}/%{name}/defaults/debootstrap.uri
480 %{_libdir}/%{name}/defaults/vunify-exclude
481 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
482 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
483 %attr(755,root,root) %{_libdir}/%{name}/vbuild
484 %attr(755,root,root) %{_libdir}/%{name}/vcheck
485 %attr(755,root,root) %{_libdir}/%{name}/vcopy
486 %attr(755,root,root) %{_libdir}/%{name}/vhashify
487 %attr(755,root,root) %{_libdir}/%{name}/vpkg
488 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
489 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
490 %attr(755,root,root) %{_libdir}/%{name}/vunify
491 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
492 %attr(755,root,root) %{_sbindir}/vapt-get
493 %attr(755,root,root) %{_sbindir}/vfiles
494 %attr(755,root,root) %{_sbindir}/vrpm
495 %attr(755,root,root) %{_sbindir}/vyum
496 %{_mandir}/man8/vserver-copy*
499 %defattr(644,root,root,755)
502 %dir %{_libdir}/%{name}/legacy
503 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
504 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
505 %attr(754,root,root) /etc/rc.d/init.d/v_*
506 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
507 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
508 %attr(755,root,root) %{_sbindir}/vserver-copy
509 %{_mandir}/man8/distrib-info*
510 %{_mandir}/man8/rebootmgr*
511 %{_mandir}/man8/vps.*
513 %files -n vserver-dev
514 %defattr(644,root,root,755)
516 %dev(c,1,7) %attr(666,root,root) /dev/full
517 %dev(c,1,3) %attr(666,root,root) /dev/null
518 %dev(c,5,2) %attr(666,root,root) /dev/ptmx
519 %dev(c,1,8) %attr(644,root,root) /dev/random
520 %dev(c,5,0) %attr(666,root,root) /dev/tty
521 %dev(c,1,9) %attr(644,root,root) /dev/urandom
522 %dev(c,1,5) %attr(666,root,root) /dev/zero