3 %bcond_without dietlibc # don't use dietlibc (ask for troubles)
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
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 # A bit of documentation explaining package menagement
23 # http://www.paul.sladen.org/vserver/archives/200505/0078.html
24 Source7: util-vserver-pkgmgmt.txt
25 Patch0: %{name}-no-kernel-includes.patch
26 Patch1: %{name}-vsysvwrapper.patch
27 Patch2: %{name}-pld.patch
28 Patch3: %{name}-build-poldek.patch
29 URL: http://savannah.nongnu.org/projects/util-vserver/
30 BuildRequires: automake >= 1.9
31 BuildRequires: beecrypt-devel
32 %{?with_dietlibc:BuildRequires: dietlibc-static >= 0:0.25}
33 BuildRequires: doxygen
34 BuildRequires: libstdc++-devel
36 BuildRequires: libxslt-progs
37 BuildRequires: tetex-format-pdflatex
38 BuildRequires: tetex-makeindex
39 %{?with_xalan:BuildRequires: xalan-j}
42 Requires(post,preun): /sbin/chkconfig
43 Requires: %{name}-lib = %{version}-%{release}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 This package provides the components and a framework to setup virtual
48 servers. A virtual server runs inside a Linux server. It is
49 nevertheless highly independent. As such, you can run various services
50 with normal configuration. The various vservers can't interact with
51 each other and can't interact with services in the main server.
53 This requires a special kernel supporting the new new_s_context and
54 set_ipv4root system call.
57 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
58 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
59 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
60 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
61 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
63 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
64 new_s_context i set_ipv4root.
67 Summary: Development files for Linux vserver libraries
68 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
73 This package contains the development files necessary for developing
74 programs which use vserver library.
76 %description devel -l pl
77 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
78 programów u¿ywaj±cych biblioteki vserver.
81 Summary: Static vserver library
82 Summary(pl): Biblioteka statyczna vservera
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 This package contains the static version of vserver library.
89 %description static -l pl
90 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
93 Summary: Dynamic libraries for util-vserver
94 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
98 util-vserver provides the components and a framework to setup virtual
99 servers. A virtual server runs inside a linux server. It is
100 nevertheless highly independent. As such, you can run various services
101 with normal configuration. The various vservers can't interact with
102 each other and can't interact with services in the main server.
104 This package contains the shared libraries needed by all other
105 'util-vserver' subpackages.
107 %description lib -l pl
108 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
109 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
110 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
111 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
112 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
114 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
115 podpakiety util-vserver.
118 Summary: The core-utilities for util-vserver
119 Summary(pl): Podstawowe narzêdzia dla util-vserver
120 Group: Applications/System
122 Requires: %{name} = %{version}-%{release}
125 util-vserver provides the components and a framework to setup virtual
126 servers. A virtual server runs inside a linux server. It is
127 nevertheless highly independent. As such, you can run various services
128 with normal configuration. The various vservers can't interact with
129 each other and can't interact with services in the main server.
131 This package contains utilities which are required to communicate with
132 the Linux-Vserver enabled kernel.
134 %description core -l pl
135 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
136 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
137 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
138 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
139 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
141 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
142 w³±czonym mechanizmem Linux-Vserver.
145 Summary: Tools which can be used to build vservers
146 Summary(pl): Narzêdzia do budowania vserverów
147 Group: Applications/System
153 Conflicts: poldek < 0.18.8-6
154 # remove the following when poldek 0.19 will have --rpmcmd oprion
155 Conflicts: poldek >= 0.19
156 Requires: %{name} = %{version}-%{release}
159 util-vserver provides the components and a framework to setup virtual
160 servers. A virtual server runs inside a linux server. It is
161 nevertheless highly independent. As such, you can run various services
162 with normal configuration. The various vservers can't interact with
163 each other and can't interact with services in the main server.
165 This package contains utilities which assist in building Vservers.
167 %description build -l pl
168 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
169 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
170 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
171 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
172 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
174 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
177 Summary: initscripts for vserver
178 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
180 Requires(post,preun): /sbin/chkconfig
181 Requires: %{name} = %{version}-%{release}
182 Requires: %{name}-core = %{version}-%{release}
188 util-vserver provides the components and a framework to setup virtual
189 servers. A virtual server runs inside a linux server. It is
190 nevertheless highly independent. As such, you can run various services
191 with normal configuration. The various vservers can't interact with
192 each other and can't interact with services in the main server.
194 This package contains the SysV initscripts which start and stop
195 Vservers and related tools.
197 %description init -l pl
198 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
199 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
200 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
201 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
202 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
204 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
205 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
208 Summary: Legacy utilities for util-vserver
209 Summary(pl): Stare narzêdzia dla util-vserver
210 Group: Applications/System
211 Requires(post,preun): /sbin/chkconfig
212 Requires: %{name} = %{version}-%{release}
213 Requires: %{name}-core = %{version}-%{release}
217 util-vserver provides the components and a framework to setup virtual
218 servers. A virtual server runs inside a linux server. It is
219 nevertheless highly independent. As such, you can run various services
220 with normal configuration. The various vservers can't interact with
221 each other and can't interact with services in the main server.
223 This package contains the tools which are needed to work with Vservers
224 having an old-style configuration.
226 %description legacy -l pl
227 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
228 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
229 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
230 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
231 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
233 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
234 konfiguracjê w starym stylu.
236 %package -n vserver-dev
237 Summary: /dev entries for systems in Vservers
238 Summary(pl): Pliki specjalne /dev/* dla systemów w Vserwerach
240 PreReq: setup >= 2.4.1-2
241 Provides: dev = 2.9.0-19
245 %description -n vserver-dev
246 Unix and unix like systems (including Linux) use file system entries
247 to represent devices attached to the machine. All of these entries are
248 in the /dev tree (though they don't have to be), and this package
249 contains only entries needed for a system running inside Vserver.
251 DO NOT install this package for a normal system!
253 %description -n vserver-dev -l pl
254 Wszystkie systemy klasy unices, w tym Linux, u¿ywaj± plików do
255 przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
256 znajduj± siê zwykle w katalogu /dev. Pakiet ten wy³±cznie te pliki
257 specjalne które s± potrzebne do uruchomienia systemu w Vserwerze.
259 NIE INSTALUJ tego pakietu na zwyk³ym systemie!
268 install %{SOURCE7} package-menagament.txt
274 --with-initrddir=/etc/rc.d/init.d \
276 %{?with_dietlibc:--enable-dietlibc} \
277 %{!?with_dietlibc:--disable-dietlibc} \
282 IPTABLES=/usr/sbin/iptables \
283 MODPROBE=/sbin/modprobe \
284 NAMEIF=/sbin/nameif \
286 VCONFIG=/sbin/vconfig \
290 %{?with_doc:%{__make} doc}
293 rm -rf $RPM_BUILD_ROOT
294 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts}
296 %{__make} install install-distribution \
297 DESTDIR=$RPM_BUILD_ROOT
299 chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/*
301 install -d $RPM_BUILD_ROOT/etc/vservices
302 install -d $RPM_BUILD_ROOT/vservers/.pkg
303 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
304 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
306 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
307 s=`basename $i | sed s/v_//`
308 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
309 # IP addresses/interfaces to bound $s service to
315 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
316 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
317 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
318 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
319 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
320 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
322 ln -sf /dev/null $RPM_BUILD_ROOT/dev/initctl
325 rm -rf $RPM_BUILD_ROOT
328 %{_sbindir}/setattr --barrier /vservers || :
330 %post lib -p /sbin/ldconfig
331 %postun lib -p /sbin/ldconfig
334 /sbin/chkconfig --add vservers-default
335 /sbin/chkconfig --add vprocunhide
336 #if [ -r /var/lock/subsys/vprocunhide ]; then
337 # /etc/rc.d/init.d/vprocunhide restart >&2
339 #if [ -r /var/lock/subsys/vservers-default ]; then
340 # /etc/rc.d/init.d/vservers-default restart >&2
344 if [ "$1" = "0" ]; then
345 if [ -r /var/lock/subsys/vprocunhide ]; then
346 /etc/rc.d/init.d/vprocunhide stop >&2
348 if [ -r /var/lock/subsys/vservers-default ]; then
349 /etc/rc.d/init.d/vservers-default stop >&2
351 /sbin/chkconfig --del vprocunhide
352 /sbin/chkconfig --del vservers-default
356 /sbin/chkconfig --add rebootmgr
357 /sbin/chkconfig --add vservers-legacy
358 #if [ -r /var/lock/subsys/rebootmgr ] ; then
359 # /etc/rc.d/init.d/rebootmgr restart >&2
361 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
362 # /etc/rc.d/init.d/vservers-legacy restart >&2
366 if [ "$1" = "0" ]; then
367 if [ -r /var/lock/subsys/rebootmgr ] ; then
368 /etc/rc.d/init.d/rebootmgr stop >&2
370 if [ -r /var/lock/subsys/vservers-legacy ] ; then
371 /etc/rc.d/init.d/vservers-legacy stop >&2
373 /sbin/chkconfig --del rebootmgr
374 /sbin/chkconfig --del vservers-legacy
378 %defattr(644,root,root,755)
379 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
380 %{?with_doc:%doc doc/*.html}
381 %dir %{_sysconfdir}/vservers
382 %dir %{_sysconfdir}/vservers/.defaults
383 %dir %{_sysconfdir}/vservers/.defaults/apps
384 %dir %{_sysconfdir}/vservers/.defaults/files
385 %{_sysconfdir}/vservers/.defaults/vdirbase
386 %{_sysconfdir}/vservers/.defaults/run.rev
387 %{_sysconfdir}/vservers/vdirbase
388 %{_sysconfdir}/vservers/run.rev
390 %attr(755,root,root) %{_sbindir}/exec-cd
391 %attr(755,root,root) %{_sbindir}/vdu
392 %attr(755,root,root) %{_sbindir}/vps
393 %attr(755,root,root) %{_sbindir}/vpstree
394 %attr(755,root,root) %{_sbindir}/vserver
395 %attr(755,root,root) %{_sbindir}/vserver-stat
396 %attr(755,root,root) %{_sbindir}/vsomething
397 %attr(755,root,root) %{_sbindir}/vtop
398 %dir %{_libdir}/%{name}
399 %dir %{_libdir}/%{name}/defaults
400 %{_libdir}/%{name}/defaults/*
401 %attr(755,root,root) %{_libdir}/%{name}/capchroot
402 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
403 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
404 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
405 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
406 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
407 %attr(755,root,root) %{_libdir}/%{name}/filetime
408 %{_libdir}/%{name}/functions
409 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
410 %attr(755,root,root) %{_libdir}/%{name}/lockfile
411 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
412 %attr(755,root,root) %{_libdir}/%{name}/readlink
413 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
414 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
415 %attr(755,root,root) %{_libdir}/%{name}/sigexec
416 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
417 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
418 %{_libdir}/%{name}/vserver.*
419 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
420 %attr(755,root,root) %{_libdir}/%{name}/vshelper
421 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
423 %attr(0,root,root) %dir /vservers
424 %attr(755,root,root) %dir /vservers/.pkg
425 %dir %{_localstatedir}/run/vservers
426 %dir %{_localstatedir}/run/vservers.rev
427 %dir %{_localstatedir}/run/vshelper
430 %defattr(644,root,root,755)
431 %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
432 %attr(755,root,root) %{_libdir}/lib*.so
434 %{_includedir}/vserver.h
435 %{_pkgconfigdir}/*.pc
438 %defattr(644,root,root,755)
439 %{_libdir}/libvserver.a
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
448 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
449 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
450 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
453 %defattr(644,root,root,755)
454 %dir %{_libdir}/%{name}
455 %{_libdir}/%{name}/FEATURES.txt
456 %{_libdir}/%{name}/util-vserver-vars
457 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
458 %attr(755,root,root) %{_sbindir}/chbind
459 %attr(755,root,root) %{_sbindir}/chcontext
460 %attr(755,root,root) %{_sbindir}/chxid
461 %attr(755,root,root) %{_sbindir}/lsxid
462 %attr(755,root,root) %{_sbindir}/reducecap
463 %attr(755,root,root) %{_sbindir}/setattr
464 %attr(755,root,root) %{_sbindir}/showattr
465 %attr(755,root,root) %{_sbindir}/vattribute
466 %attr(755,root,root) %{_sbindir}/vcontext
467 %attr(755,root,root) %{_sbindir}/vdlimit
468 %attr(755,root,root) %{_sbindir}/vnamespace
469 %attr(755,root,root) %{_sbindir}/vkill
470 %attr(755,root,root) %{_sbindir}/vlimit
471 %attr(755,root,root) %{_sbindir}/vrsetup
472 %attr(755,root,root) %{_sbindir}/vsched
473 %attr(755,root,root) %{_sbindir}/vserver-info
474 %attr(755,root,root) %{_sbindir}/vuname
475 %{_mandir}/man8/chbind*
476 %{_mandir}/man8/chcontext*
477 %{_mandir}/man8/reducecap*
480 %defattr(644,root,root,755)
481 %doc contrib/yum*.patch package-menagament.txt
482 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
483 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
484 %dir %{_sysconfdir}/vservers/.distributions
485 %dir %{_sysconfdir}/vservers/.distributions/.common
486 %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys
487 %dir %{_sysconfdir}/vservers/.distributions/[frs]*
488 %dir %{_sysconfdir}/vservers/.distributions/[frs]*/apt
489 %dir %{_sysconfdir}/vservers/.distributions/pld2.0
490 %dir %{_sysconfdir}/vservers/.distributions/pld2.0/poldek
491 %{_sysconfdir}/vservers/.distributions/pld1.99
492 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/vservers/.distributions/[frs]*/apt/sources.list
493 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/vservers/.distributions/pld2.0/poldek/poldek.conf
494 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
495 %dir %{_libdir}/%{name}/distributions
496 %attr(-, root, root) %{_libdir}/%{name}/distributions/*
497 %{_libdir}/%{name}/vserver-build.*
498 %{_libdir}/%{name}/vserver-setup.functions
499 %{_libdir}/%{name}/defaults/fstab
500 %{_libdir}/%{name}/defaults/debootstrap.uri
501 %{_libdir}/%{name}/defaults/vunify-exclude
502 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
503 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
504 %attr(755,root,root) %{_libdir}/%{name}/vbuild
505 %attr(755,root,root) %{_libdir}/%{name}/vcheck
506 %attr(755,root,root) %{_libdir}/%{name}/vcopy
507 %attr(755,root,root) %{_libdir}/%{name}/vhashify
508 %attr(755,root,root) %{_libdir}/%{name}/vpkg
509 %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker
510 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
511 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
512 %attr(755,root,root) %{_libdir}/%{name}/vunify
513 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
514 %attr(755,root,root) %{_sbindir}/vapt-get
515 %attr(755,root,root) %{_sbindir}/vfiles
516 %attr(755,root,root) %{_sbindir}/vpoldek
517 %attr(755,root,root) %{_sbindir}/vrpm
518 %attr(755,root,root) %{_sbindir}/vyum
519 %{_mandir}/man8/vserver-copy*
522 %defattr(644,root,root,755)
525 %dir %{_libdir}/%{name}/legacy
526 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
527 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
528 %attr(754,root,root) /etc/rc.d/init.d/v_*
529 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
530 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
531 %attr(755,root,root) %{_sbindir}/vserver-copy
532 %{_mandir}/man8/distrib-info*
533 %{_mandir}/man8/rebootmgr*
534 %{_mandir}/man8/vps.*
536 %files -n vserver-dev
537 %defattr(644,root,root,755)
539 %dev(c,1,7) %attr(666,root,root) /dev/full
540 %dev(c,1,3) %attr(666,root,root) /dev/null
541 %dev(c,5,2) %attr(666,root,root) /dev/ptmx
542 %dev(c,1,8) %attr(644,root,root) /dev/random
543 %dev(c,5,0) %attr(666,root,root) /dev/tty
544 %dev(c,1,9) %attr(644,root,root) /dev/urandom
545 %dev(c,1,5) %attr(666,root,root) /dev/zero