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 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
29 %{?with_xalan:BuildRequires: xalan-j}
31 Requires(post,preun): /sbin/chkconfig
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 This package provides the components and a framework to setup virtual
36 servers. A virtual server runs inside a Linux server. It is
37 nevertheless highly independent. As such, you can run various services
38 with normal configuration. The various vservers can't interact with
39 each other and can't interact with services in the main server.
41 This requires a special kernel supporting the new new_s_context and
42 set_ipv4root system call.
45 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
46 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
47 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
48 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
49 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
51 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
52 new_s_context i set_ipv4root.
55 Summary: Development files for Linux vserver libraries
56 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 This package contains the development files necessary for developing
62 programs which use vserver library.
64 %description devel -l pl
65 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
66 programów u¿ywaj±cych biblioteki vserver.
69 Summary: Static vserver library
70 Summary(pl): Biblioteka statyczna vservera
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 This package contains the static version of vserver library.
77 %description static -l pl
78 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
81 Summary: Dynamic libraries for util-vserver
82 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
86 util-vserver provides the components and a framework to setup virtual
87 servers. A virtual server runs inside a linux server. It is
88 nevertheless highly independent. As such, you can run various services
89 with normal configuration. The various vservers can't interact with
90 each other and can't interact with services in the main server.
92 This package contains the shared libraries needed by all other
93 'util-vserver' subpackages.
95 %description lib -l pl
96 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
97 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
98 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
99 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
100 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
102 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
103 podpakiety util-vserver.
106 Summary: The core-utilities for util-vserver
107 Summary(pl): Podstawowe narzêdzia dla util-vserver
108 Group: Applications/System
112 util-vserver provides the components and a framework to setup virtual
113 servers. A virtual server runs inside a linux server. It is
114 nevertheless highly independent. As such, you can run various services
115 with normal configuration. The various vservers can't interact with
116 each other and can't interact with services in the main server.
118 This package contains utilities which are required to communicate with
119 the Linux-Vserver enabled kernel.
121 %description core -l pl
122 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
123 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
124 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
125 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
126 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
128 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
129 w³±czonym mechanizmem Linux-Vserver.
132 Summary: Tools which can be used to build vservers
133 Summary(pl): Narzêdzia do budowania vserverów
134 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.
228 --with-initrddir=/etc/rc.d/init.d \
230 %{?with_dietlibc:--enable-dietlibc} \
231 %{!?with_dietlibc:--disable-dietlibc}
237 rm -rf $RPM_BUILD_ROOT
238 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d}}
240 %{__make} install install-distribution \
241 DESTDIR=$RPM_BUILD_ROOT
243 install -d $RPM_BUILD_ROOT/etc/vservices
244 install -d $RPM_BUILD_ROOT/vservers/.pkg
245 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
246 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
248 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
249 s=`basename $i | sed s/v_//`
250 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
251 # IP addresses/interfaces to bound $s service to
257 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
258 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
259 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
260 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
261 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
262 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
265 rm -rf $RPM_BUILD_ROOT
268 %{_sbindir}/setattr --barrier /vservers || :
270 %post lib -p /sbin/ldconfig
271 %postun lib -p /sbin/ldconfig
274 /sbin/chkconfig --add vservers-default
275 /sbin/chkconfig --add vprocunhide
276 #if [ -r /var/lock/subsys/vprocunhide ]; then
277 # /etc/rc.d/init.d/vprocunhide restart >&2
279 #if [ -r /var/lock/subsys/vservers-default ]; then
280 # /etc/rc.d/init.d/vservers-default restart >&2
284 if [ "$1" = "0" ]; then
285 if [ -r /var/lock/subsys/vprocunhide ]; then
286 /etc/rc.d/init.d/vprocunhide stop >&2
288 if [ -r /var/lock/subsys/vservers-default ]; then
289 /etc/rc.d/init.d/vservers-default stop >&2
291 /sbin/chkconfig --del vprocunhide
292 /sbin/chkconfig --del vservers-default
296 /sbin/chkconfig --add rebootmgr
297 /sbin/chkconfig --add vservers-legacy
298 #if [ -r /var/lock/subsys/rebootmgr ] ; then
299 # /etc/rc.d/init.d/rebootmgr restart >&2
301 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
302 # /etc/rc.d/init.d/vservers-legacy restart >&2
306 if [ "$1" = "0" ]; then
307 if [ -r /var/lock/subsys/rebootmgr ] ; then
308 /etc/rc.d/init.d/rebootmgr stop >&2
310 if [ -r /var/lock/subsys/vservers-legacy ] ; then
311 /etc/rc.d/init.d/vservers-legacy stop >&2
313 /sbin/chkconfig --del rebootmgr
314 /sbin/chkconfig --del vservers-legacy
318 %defattr(644,root,root,755)
319 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
320 %dir %{_sysconfdir}/vservers
321 %dir %{_sysconfdir}/vservers/.defaults
322 %dir %{_sysconfdir}/vservers/.defaults/apps
323 %dir %{_sysconfdir}/vservers/.defaults/files
324 %ghost %{_sysconfdir}/vservers/.defaults/vdirbase
325 %ghost %{_sysconfdir}/vservers/.defaults/run.rev
326 %{_sysconfdir}/vservers/vdirbase
327 %{_sysconfdir}/vservers/run.rev
329 %attr(755,root,root) %{_sbindir}/exec-cd
330 %attr(755,root,root) %{_sbindir}/vdu
331 %attr(755,root,root) %{_sbindir}/vps
332 %attr(755,root,root) %{_sbindir}/vpstree
333 %attr(755,root,root) %{_sbindir}/vserver
334 %attr(755,root,root) %{_sbindir}/vserver-stat
335 %attr(755,root,root) %{_sbindir}/vsomething
336 %attr(755,root,root) %{_sbindir}/vtop
337 %dir %{_libdir}/%{name}
338 %dir %{_libdir}/%{name}/defaults
339 %{_libdir}/%{name}/defaults/*
340 %attr(755,root,root) %{_libdir}/%{name}/capchroot
341 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
342 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
343 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
344 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
345 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
346 %attr(755,root,root) %{_libdir}/%{name}/filetime
347 %{_libdir}/%{name}/functions
348 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
349 %attr(755,root,root) %{_libdir}/%{name}/lockfile
350 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
351 %attr(755,root,root) %{_libdir}/%{name}/readlink
352 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
353 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
354 %attr(755,root,root) %{_libdir}/%{name}/sigexec
355 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
356 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
357 %{_libdir}/%{name}/vserver.*
358 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
359 %attr(755,root,root) %{_libdir}/%{name}/vshelper
360 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
362 %attr(0,root,root) %dir /vservers
363 %attr(755,root,root) %dir /vservers/.pkg
364 %dir %{_localstatedir}/run/vservers
365 %dir %{_localstatedir}/run/vservers.rev
366 %dir %{_localstatedir}/run/vshelper
369 %defattr(644,root,root,755)
370 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
371 %attr(755,root,root) %{_libdir}/lib*.so
373 %{_includedir}/vserver.h
374 %{_pkgconfigdir}/*.pc
377 %defattr(644,root,root,755)
378 %{_libdir}/libvserver.a
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
387 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
388 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
389 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
392 %defattr(644,root,root,755)
393 %dir %{_libdir}/%{name}
394 %{_libdir}/%{name}/FEATURES.txt
395 %{_libdir}/%{name}/util-vserver-vars
396 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
397 %attr(755,root,root) %{_sbindir}/chbind
398 %attr(755,root,root) %{_sbindir}/chcontext
399 %attr(755,root,root) %{_sbindir}/chxid
400 %attr(755,root,root) %{_sbindir}/lsxid
401 %attr(755,root,root) %{_sbindir}/reducecap
402 %attr(755,root,root) %{_sbindir}/setattr
403 %attr(755,root,root) %{_sbindir}/showattr
404 %attr(755,root,root) %{_sbindir}/vattribute
405 %attr(755,root,root) %{_sbindir}/vcontext
406 %attr(755,root,root) %{_sbindir}/vdlimit
407 %attr(755,root,root) %{_sbindir}/vnamespace
408 %attr(755,root,root) %{_sbindir}/vkill
409 %attr(755,root,root) %{_sbindir}/vlimit
410 %attr(755,root,root) %{_sbindir}/vrsetup
411 %attr(755,root,root) %{_sbindir}/vsched
412 %attr(755,root,root) %{_sbindir}/vserver-info
413 %attr(755,root,root) %{_sbindir}/vuname
414 %{_mandir}/man8/chbind*
415 %{_mandir}/man8/chcontext*
416 %{_mandir}/man8/reducecap*
419 %defattr(644,root,root,755)
420 %doc contrib/yum*.patch
421 %dir %{_sysconfdir}/vservers/.distributions
422 %{_sysconfdir}/vservers/.distributions/.common
423 %{_sysconfdir}/vservers/.distributions/*
424 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
425 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
426 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
427 %dir %{_libdir}/%{name}/distributions
428 %{_libdir}/%{name}/distributions/*
429 %{_libdir}/%{name}/vserver-build.*
430 %{_libdir}/%{name}/vserver-setup.functions
431 %{_libdir}/%{name}/defaults/fstab
432 %{_libdir}/%{name}/defaults/debootstrap.uri
433 %{_libdir}/%{name}/defaults/vunify-exclude
434 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
435 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
436 %attr(755,root,root) %{_libdir}/%{name}/vbuild
437 %attr(755,root,root) %{_libdir}/%{name}/vcheck
438 %attr(755,root,root) %{_libdir}/%{name}/vcopy
439 %attr(755,root,root) %{_libdir}/%{name}/vhashify
440 %attr(755,root,root) %{_libdir}/%{name}/vpkg
441 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
442 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
443 %attr(755,root,root) %{_libdir}/%{name}/vunify
444 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
445 %attr(755,root,root) %{_sbindir}/vapt-get
446 %attr(755,root,root) %{_sbindir}/vfiles
447 %attr(755,root,root) %{_sbindir}/vrpm
448 %attr(755,root,root) %{_sbindir}/vyum
449 %{_mandir}/man8/vserver-copy*
452 %defattr(644,root,root,755)
455 %dir %{_libdir}/%{name}/legacy
456 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
457 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
458 %attr(754,root,root) /etc/rc.d/init.d/v_*
459 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
460 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
461 %attr(755,root,root) %{_sbindir}/vserver-copy
462 %{_mandir}/man8/distrib-info*
463 %{_mandir}/man8/rebootmgr*
464 %{_mandir}/man8/vps.*