3 %bcond_with dietlibc # use dietlibc instead of glibc
4 %bcond_without doc # don't build documentation which needed LaTeX
5 %bcond_with xalan # use the xalan xslt processor
7 Summary: Linux virtual server utilities
8 Summary(pl): Narzêdzia dla linuksowych serwerów wirtualnych
15 Source0: http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
16 # Source0-md5: 1c8457a687643ae8a7b1f1d34ebbdd68
17 Source1: vprocunhide.init
18 Source2: vservers-default.init
19 Source3: vservers-legacy.init
20 Source4: rebootmgr.init
21 Source5: vservers-default.sysconfig
22 Source6: vservers-legacy.sysconfig
23 Patch0: %{name}-no-kernel-includes.patch
24 Patch1: %{name}-vsysvwrapper.patch
25 URL: http://savannah.nongnu.org/projects/util-vserver/
26 BuildRequires: beecrypt-devel
27 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
28 BuildRequires: doxygen
29 BuildRequires: libstdc++-devel
30 BuildRequires: libxslt-progs
31 %{?with_doc:BuildRequires: tetex-format-pdflatex}
32 %{?with_doc:BuildRequires: tetex-makeindex}
34 %{?with_xalan:BuildRequires: xalan-j}
36 Requires(post,preun): /sbin/chkconfig
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 This package provides the components and a framework to setup virtual
41 servers. A virtual server runs inside a Linux server. It is
42 nevertheless highly independent. As such, you can run various services
43 with normal configuration. The various vservers can't interact with
44 each other and can't interact with services in the main server.
46 This requires a special kernel supporting the new new_s_context and
47 set_ipv4root system call.
50 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
51 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
52 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
53 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
54 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
56 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
57 new_s_context i set_ipv4root.
60 Summary: Development files for Linux vserver libraries
61 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
66 This package contains the development files necessary for developing
67 programs which use vserver library.
69 %description devel -l pl
70 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
71 programów u¿ywaj±cych biblioteki vserver.
74 Summary: Static vserver library
75 Summary(pl): Biblioteka statyczna vservera
76 Group: Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
80 This package contains the static version of vserver library.
82 %description static -l pl
83 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
86 Summary: Dynamic libraries for util-vserver
87 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
91 util-vserver provides the components and a framework to setup virtual
92 servers. A virtual server runs inside a linux server. It is
93 nevertheless highly independent. As such, you can run various services
94 with normal configuration. The various vservers can't interact with
95 each other and can't interact with services in the main server.
97 This package contains the shared libraries needed by all other
98 'util-vserver' subpackages.
100 %description lib -l pl
101 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
102 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
103 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
104 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
105 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
107 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
108 podpakiety util-vserver.
111 Summary: The core-utilities for util-vserver
112 Summary(pl): Podstawowe narzêdzia dla util-vserver
113 Group: Applications/System
117 util-vserver provides the components and a framework to setup virtual
118 servers. A virtual server runs inside a linux server. It is
119 nevertheless highly independent. As such, you can run various services
120 with normal configuration. The various vservers can't interact with
121 each other and can't interact with services in the main server.
123 This package contains utilities which are required to communicate with
124 the Linux-Vserver enabled kernel.
126 %description core -l pl
127 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
128 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
129 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
130 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
131 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
133 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
134 w³±czonym mechanizmem Linux-Vserver.
137 Summary: Tools which can be used to build vservers
138 Summary(pl): Narzêdzia do budowania vserverów
139 Group: Applications/System
145 Requires: %{name} = %{version}-%{release}
148 util-vserver provides the components and a framework to setup virtual
149 servers. A virtual server runs inside a linux server. It is
150 nevertheless highly independent. As such, you can run various services
151 with normal configuration. The various vservers can't interact with
152 each other and can't interact with services in the main server.
154 This package contains utilities which assist in building Vservers.
156 %description build -l pl
157 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
158 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
159 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
160 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
161 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
163 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
166 Summary: initscripts for vserver
167 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
169 Requires(post,preun): /sbin/chkconfig
170 Requires: %{name} = %{version}-%{release}
171 Requires: %{name}-core = %{version}-%{release}
177 util-vserver provides the components and a framework to setup virtual
178 servers. A virtual server runs inside a linux server. It is
179 nevertheless highly independent. As such, you can run various services
180 with normal configuration. The various vservers can't interact with
181 each other and can't interact with services in the main server.
183 This package contains the SysV initscripts which start and stop
184 Vservers and related tools.
186 %description init -l pl
187 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
188 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
189 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
190 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
191 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
193 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
194 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
197 Summary: Legacy utilities for util-vserver
198 Summary(pl): Stare narzêdzia dla util-vserver
199 Group: Applications/System
200 Requires(post,preun): /sbin/chkconfig
201 Requires: %{name} = %{version}-%{release}
202 Requires: %{name}-core = %{version}-%{release}
206 util-vserver provides the components and a framework to setup virtual
207 servers. A virtual server runs inside a linux server. It is
208 nevertheless highly independent. As such, you can run various services
209 with normal configuration. The various vservers can't interact with
210 each other and can't interact with services in the main server.
212 This package contains the tools which are needed to work with Vservers
213 having an old-style configuration.
215 %description legacy -l pl
216 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
217 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
218 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
219 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
220 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
222 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
223 konfiguracjê w starym stylu.
225 %package -n vserver-dev
226 Summary: /dev entries for systems in Vservers
227 Summary(pl): Pliki specjalne /dev/* dla systemów w Vserwerach
229 PreReq: setup >= 2.4.1-2
230 Provides: dev = 2.9.0-19
235 %description -n vserver-dev
236 Unix and unix like systems (including Linux) use file system entries
237 to represent devices attached to the machine. All of these entries are
238 in the /dev tree (though they don't have to be), and this package
239 contains only entries needed for a system running inside Vserver.
241 DO NOT install this package for a normal system!
243 %description -n vserver-dev -l pl
244 Wszystkie systemy klasy unices, w tym Linux, u¿ywaj± plików do
245 przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
246 znajduj± siê zwykle w katalogu /dev. Pakiet ten wy³±cznie te pliki
247 specjalne które s± potrzebne do uruchomienia systemu w Vserwerze.
249 NIE INSTALUJ tego pakietu na zwyk³ym systemie!
258 --with-initrddir=/etc/rc.d/init.d \
260 %{?with_dietlibc:--enable-dietlibc} \
261 %{!?with_dietlibc:--disable-dietlibc} \
262 IPTABLES=/usr/sbin/iptables \
264 NAMEIF=/sbin/nameif \
268 %{?with_doc:%{__make} doc}
271 rm -rf $RPM_BUILD_ROOT
272 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
274 %{__make} install install-distribution \
275 DESTDIR=$RPM_BUILD_ROOT
277 install -d $RPM_BUILD_ROOT/etc/vservices
278 install -d $RPM_BUILD_ROOT/vservers/.pkg
279 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
280 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
282 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
283 s=`basename $i | sed s/v_//`
284 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
285 # IP addresses/interfaces to bound $s service to
291 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
292 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
293 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
294 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
295 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
296 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
298 ln -sf /dev/null $RPM_BUILD_ROOT/dev/initctl
301 rm -rf $RPM_BUILD_ROOT
304 %{_sbindir}/setattr --barrier /vservers || :
306 %post lib -p /sbin/ldconfig
307 %postun lib -p /sbin/ldconfig
310 /sbin/chkconfig --add vservers-default
311 /sbin/chkconfig --add vprocunhide
312 #if [ -r /var/lock/subsys/vprocunhide ]; then
313 # /etc/rc.d/init.d/vprocunhide restart >&2
315 #if [ -r /var/lock/subsys/vservers-default ]; then
316 # /etc/rc.d/init.d/vservers-default restart >&2
320 if [ "$1" = "0" ]; then
321 if [ -r /var/lock/subsys/vprocunhide ]; then
322 /etc/rc.d/init.d/vprocunhide stop >&2
324 if [ -r /var/lock/subsys/vservers-default ]; then
325 /etc/rc.d/init.d/vservers-default stop >&2
327 /sbin/chkconfig --del vprocunhide
328 /sbin/chkconfig --del vservers-default
332 /sbin/chkconfig --add rebootmgr
333 /sbin/chkconfig --add vservers-legacy
334 #if [ -r /var/lock/subsys/rebootmgr ] ; then
335 # /etc/rc.d/init.d/rebootmgr restart >&2
337 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
338 # /etc/rc.d/init.d/vservers-legacy restart >&2
342 if [ "$1" = "0" ]; then
343 if [ -r /var/lock/subsys/rebootmgr ] ; then
344 /etc/rc.d/init.d/rebootmgr stop >&2
346 if [ -r /var/lock/subsys/vservers-legacy ] ; then
347 /etc/rc.d/init.d/vservers-legacy stop >&2
349 /sbin/chkconfig --del rebootmgr
350 /sbin/chkconfig --del vservers-legacy
356 **************************************************
358 * BIG FAT WARNING!!! *
360 * This package is for use inside Vserver ONLY! *
361 * DO NOT install it on normal system! *
363 **************************************************
368 %defattr(644,root,root,755)
369 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
370 %{?with_doc:%doc doc/*.html}
371 %dir %{_sysconfdir}/vservers
372 %dir %{_sysconfdir}/vservers/.defaults
373 %dir %{_sysconfdir}/vservers/.defaults/apps
374 %dir %{_sysconfdir}/vservers/.defaults/files
375 %{_sysconfdir}/vservers/.defaults/vdirbase
376 %{_sysconfdir}/vservers/.defaults/run.rev
377 %{_sysconfdir}/vservers/vdirbase
378 %{_sysconfdir}/vservers/run.rev
380 %attr(755,root,root) %{_sbindir}/exec-cd
381 %attr(755,root,root) %{_sbindir}/vdu
382 %attr(755,root,root) %{_sbindir}/vps
383 %attr(755,root,root) %{_sbindir}/vpstree
384 %attr(755,root,root) %{_sbindir}/vserver
385 %attr(755,root,root) %{_sbindir}/vserver-stat
386 %attr(755,root,root) %{_sbindir}/vsomething
387 %attr(755,root,root) %{_sbindir}/vtop
388 %dir %{_libdir}/%{name}
389 %dir %{_libdir}/%{name}/defaults
390 %{_libdir}/%{name}/defaults/*
391 %attr(755,root,root) %{_libdir}/%{name}/capchroot
392 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
393 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
394 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
395 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
396 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
397 %attr(755,root,root) %{_libdir}/%{name}/filetime
398 %{_libdir}/%{name}/functions
399 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
400 %attr(755,root,root) %{_libdir}/%{name}/lockfile
401 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
402 %attr(755,root,root) %{_libdir}/%{name}/readlink
403 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
404 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
405 %attr(755,root,root) %{_libdir}/%{name}/sigexec
406 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
407 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
408 %{_libdir}/%{name}/vserver.*
409 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
410 %attr(755,root,root) %{_libdir}/%{name}/vshelper
411 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
413 %attr(0,root,root) %dir /vservers
414 %attr(755,root,root) %dir /vservers/.pkg
415 %dir %{_localstatedir}/run/vservers
416 %dir %{_localstatedir}/run/vservers.rev
417 %dir %{_localstatedir}/run/vshelper
420 %defattr(644,root,root,755)
421 %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
422 %attr(755,root,root) %{_libdir}/lib*.so
424 %{_includedir}/vserver.h
425 %{_pkgconfigdir}/*.pc
428 %defattr(644,root,root,755)
429 %{_libdir}/libvserver.a
432 %defattr(644,root,root,755)
433 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
436 %defattr(644,root,root,755)
437 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
438 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
439 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
440 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
443 %defattr(644,root,root,755)
444 %dir %{_libdir}/%{name}
445 %{_libdir}/%{name}/FEATURES.txt
446 %{_libdir}/%{name}/util-vserver-vars
447 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
448 %attr(755,root,root) %{_sbindir}/chbind
449 %attr(755,root,root) %{_sbindir}/chcontext
450 %attr(755,root,root) %{_sbindir}/chxid
451 %attr(755,root,root) %{_sbindir}/lsxid
452 %attr(755,root,root) %{_sbindir}/reducecap
453 %attr(755,root,root) %{_sbindir}/setattr
454 %attr(755,root,root) %{_sbindir}/showattr
455 %attr(755,root,root) %{_sbindir}/vattribute
456 %attr(755,root,root) %{_sbindir}/vcontext
457 %attr(755,root,root) %{_sbindir}/vdlimit
458 %attr(755,root,root) %{_sbindir}/vnamespace
459 %attr(755,root,root) %{_sbindir}/vkill
460 %attr(755,root,root) %{_sbindir}/vlimit
461 %attr(755,root,root) %{_sbindir}/vrsetup
462 %attr(755,root,root) %{_sbindir}/vsched
463 %attr(755,root,root) %{_sbindir}/vserver-info
464 %attr(755,root,root) %{_sbindir}/vuname
465 %{_mandir}/man8/chbind*
466 %{_mandir}/man8/chcontext*
467 %{_mandir}/man8/reducecap*
470 %defattr(644,root,root,755)
471 %doc contrib/yum*.patch
472 %dir %{_sysconfdir}/vservers/.distributions
473 %{_sysconfdir}/vservers/.distributions/.common
474 %{_sysconfdir}/vservers/.distributions/*
475 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
476 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
477 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
478 %dir %{_libdir}/%{name}/distributions
479 %{_libdir}/%{name}/distributions/*
480 %{_libdir}/%{name}/vserver-build.*
481 %{_libdir}/%{name}/vserver-setup.functions
482 %{_libdir}/%{name}/defaults/fstab
483 %{_libdir}/%{name}/defaults/debootstrap.uri
484 %{_libdir}/%{name}/defaults/vunify-exclude
485 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
486 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
487 %attr(755,root,root) %{_libdir}/%{name}/vbuild
488 %attr(755,root,root) %{_libdir}/%{name}/vcheck
489 %attr(755,root,root) %{_libdir}/%{name}/vcopy
490 %attr(755,root,root) %{_libdir}/%{name}/vhashify
491 %attr(755,root,root) %{_libdir}/%{name}/vpkg
492 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
493 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
494 %attr(755,root,root) %{_libdir}/%{name}/vunify
495 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
496 %attr(755,root,root) %{_sbindir}/vapt-get
497 %attr(755,root,root) %{_sbindir}/vfiles
498 %attr(755,root,root) %{_sbindir}/vrpm
499 %attr(755,root,root) %{_sbindir}/vyum
500 %{_mandir}/man8/vserver-copy*
503 %defattr(644,root,root,755)
506 %dir %{_libdir}/%{name}/legacy
507 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
508 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
509 %attr(754,root,root) /etc/rc.d/init.d/v_*
510 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
511 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
512 %attr(755,root,root) %{_sbindir}/vserver-copy
513 %{_mandir}/man8/distrib-info*
514 %{_mandir}/man8/rebootmgr*
515 %{_mandir}/man8/vps.*
517 %files -n vserver-dev
518 %defattr(644,root,root,755)
520 %dev(c,1,7) %attr(666,root,root) /dev/full
521 %dev(c,1,3) %attr(666,root,root) /dev/null
522 %dev(c,5,2) %attr(666,root,root) /dev/ptmx
523 %dev(c,1,8) %attr(644,root,root) /dev/random
524 %dev(c,5,0) %attr(666,root,root) /dev/tty
525 %dev(c,1,9) %attr(644,root,root) /dev/urandom
526 %dev(c,1,5) %attr(666,root,root) /dev/zero