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
354 %defattr(644,root,root,755)
355 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
356 %{?with_doc:%doc doc/*.html}
357 %dir %{_sysconfdir}/vservers
358 %dir %{_sysconfdir}/vservers/.defaults
359 %dir %{_sysconfdir}/vservers/.defaults/apps
360 %dir %{_sysconfdir}/vservers/.defaults/files
361 %{_sysconfdir}/vservers/.defaults/vdirbase
362 %{_sysconfdir}/vservers/.defaults/run.rev
363 %{_sysconfdir}/vservers/vdirbase
364 %{_sysconfdir}/vservers/run.rev
366 %attr(755,root,root) %{_sbindir}/exec-cd
367 %attr(755,root,root) %{_sbindir}/vdu
368 %attr(755,root,root) %{_sbindir}/vps
369 %attr(755,root,root) %{_sbindir}/vpstree
370 %attr(755,root,root) %{_sbindir}/vserver
371 %attr(755,root,root) %{_sbindir}/vserver-stat
372 %attr(755,root,root) %{_sbindir}/vsomething
373 %attr(755,root,root) %{_sbindir}/vtop
374 %dir %{_libdir}/%{name}
375 %dir %{_libdir}/%{name}/defaults
376 %{_libdir}/%{name}/defaults/*
377 %attr(755,root,root) %{_libdir}/%{name}/capchroot
378 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
379 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
380 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
381 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
382 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
383 %attr(755,root,root) %{_libdir}/%{name}/filetime
384 %{_libdir}/%{name}/functions
385 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
386 %attr(755,root,root) %{_libdir}/%{name}/lockfile
387 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
388 %attr(755,root,root) %{_libdir}/%{name}/readlink
389 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
390 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
391 %attr(755,root,root) %{_libdir}/%{name}/sigexec
392 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
393 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
394 %{_libdir}/%{name}/vserver.*
395 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
396 %attr(755,root,root) %{_libdir}/%{name}/vshelper
397 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
399 %attr(0,root,root) %dir /vservers
400 %attr(755,root,root) %dir /vservers/.pkg
401 %dir %{_localstatedir}/run/vservers
402 %dir %{_localstatedir}/run/vservers.rev
403 %dir %{_localstatedir}/run/vshelper
406 %defattr(644,root,root,755)
407 %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
408 %attr(755,root,root) %{_libdir}/lib*.so
410 %{_includedir}/vserver.h
411 %{_pkgconfigdir}/*.pc
414 %defattr(644,root,root,755)
415 %{_libdir}/libvserver.a
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
424 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
425 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
426 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
429 %defattr(644,root,root,755)
430 %dir %{_libdir}/%{name}
431 %{_libdir}/%{name}/FEATURES.txt
432 %{_libdir}/%{name}/util-vserver-vars
433 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
434 %attr(755,root,root) %{_sbindir}/chbind
435 %attr(755,root,root) %{_sbindir}/chcontext
436 %attr(755,root,root) %{_sbindir}/chxid
437 %attr(755,root,root) %{_sbindir}/lsxid
438 %attr(755,root,root) %{_sbindir}/reducecap
439 %attr(755,root,root) %{_sbindir}/setattr
440 %attr(755,root,root) %{_sbindir}/showattr
441 %attr(755,root,root) %{_sbindir}/vattribute
442 %attr(755,root,root) %{_sbindir}/vcontext
443 %attr(755,root,root) %{_sbindir}/vdlimit
444 %attr(755,root,root) %{_sbindir}/vnamespace
445 %attr(755,root,root) %{_sbindir}/vkill
446 %attr(755,root,root) %{_sbindir}/vlimit
447 %attr(755,root,root) %{_sbindir}/vrsetup
448 %attr(755,root,root) %{_sbindir}/vsched
449 %attr(755,root,root) %{_sbindir}/vserver-info
450 %attr(755,root,root) %{_sbindir}/vuname
451 %{_mandir}/man8/chbind*
452 %{_mandir}/man8/chcontext*
453 %{_mandir}/man8/reducecap*
456 %defattr(644,root,root,755)
457 %doc contrib/yum*.patch
458 %dir %{_sysconfdir}/vservers/.distributions
459 %{_sysconfdir}/vservers/.distributions/.common
460 %{_sysconfdir}/vservers/.distributions/*
461 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
462 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
463 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
464 %dir %{_libdir}/%{name}/distributions
465 %{_libdir}/%{name}/distributions/*
466 %{_libdir}/%{name}/vserver-build.*
467 %{_libdir}/%{name}/vserver-setup.functions
468 %{_libdir}/%{name}/defaults/fstab
469 %{_libdir}/%{name}/defaults/debootstrap.uri
470 %{_libdir}/%{name}/defaults/vunify-exclude
471 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
472 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
473 %attr(755,root,root) %{_libdir}/%{name}/vbuild
474 %attr(755,root,root) %{_libdir}/%{name}/vcheck
475 %attr(755,root,root) %{_libdir}/%{name}/vcopy
476 %attr(755,root,root) %{_libdir}/%{name}/vhashify
477 %attr(755,root,root) %{_libdir}/%{name}/vpkg
478 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
479 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
480 %attr(755,root,root) %{_libdir}/%{name}/vunify
481 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
482 %attr(755,root,root) %{_sbindir}/vapt-get
483 %attr(755,root,root) %{_sbindir}/vfiles
484 %attr(755,root,root) %{_sbindir}/vrpm
485 %attr(755,root,root) %{_sbindir}/vyum
486 %{_mandir}/man8/vserver-copy*
489 %defattr(644,root,root,755)
492 %dir %{_libdir}/%{name}/legacy
493 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
494 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
495 %attr(754,root,root) /etc/rc.d/init.d/v_*
496 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
497 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
498 %attr(755,root,root) %{_sbindir}/vserver-copy
499 %{_mandir}/man8/distrib-info*
500 %{_mandir}/man8/rebootmgr*
501 %{_mandir}/man8/vps.*
503 %files -n vserver-dev
504 %defattr(644,root,root,755)
506 %dev(c,1,7) %attr(666,root,root) /dev/full
507 %dev(c,1,3) %attr(666,root,root) /dev/null
508 %dev(c,5,2) %attr(666,root,root) /dev/ptmx
509 %dev(c,1,8) %attr(644,root,root) /dev/random
510 %dev(c,5,0) %attr(666,root,root) /dev/tty
511 %dev(c,1,9) %attr(644,root,root) /dev/urandom
512 %dev(c,1,5) %attr(666,root,root) /dev/zero