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 BuildRequires: doxygen
29 %{?with_dietlibc:BuildRequires: dietlibc >= 0:0.25}
30 %{?with_xalan:BuildRequires: xalan-j}
32 Requires(post,preun): /sbin/chkconfig
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 This package provides the components and a framework to setup virtual
37 servers. A virtual server runs inside a Linux server. It is
38 nevertheless highly independent. As such, you can run various services
39 with normal configuration. The various vservers can't interact with
40 each other and can't interact with services in the main server.
42 This requires a special kernel supporting the new new_s_context and
43 set_ipv4root system call.
46 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
47 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
48 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
49 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
50 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
52 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
53 new_s_context i set_ipv4root.
56 Summary: Development files for Linux vserver libraries
57 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
62 This package contains the development files necessary for developing
63 programs which use vserver library.
65 %description devel -l pl
66 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
67 programów u¿ywaj±cych biblioteki vserver.
70 Summary: Static vserver library
71 Summary(pl): Biblioteka statyczna vservera
72 Group: Development/Libraries
73 Requires: %{name}-devel = %{version}-%{release}
76 This package contains the static version of vserver library.
78 %description static -l pl
79 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
82 Summary: Dynamic libraries for util-vserver
83 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
87 util-vserver provides the components and a framework to setup virtual
88 servers. A virtual server runs inside a linux server. It is
89 nevertheless highly independent. As such, you can run various services
90 with normal configuration. The various vservers can't interact with
91 each other and can't interact with services in the main server.
93 This package contains the shared libraries needed by all other
94 'util-vserver' subpackages.
96 %description lib -l pl
97 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
98 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
99 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
100 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
101 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
103 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
104 podpakiety util-vserver.
107 Summary: The core-utilities for util-vserver
108 Summary(pl): Podstawowe narzêdzia dla util-vserver
109 Group: Applications/System
113 util-vserver provides the components and a framework to setup virtual
114 servers. A virtual server runs inside a linux server. It is
115 nevertheless highly independent. As such, you can run various services
116 with normal configuration. The various vservers can't interact with
117 each other and can't interact with services in the main server.
119 This package contains utilities which are required to communicate with
120 the Linux-Vserver enabled kernel.
122 %description core -l pl
123 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
124 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
125 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
126 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
127 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
129 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
130 w³±czonym mechanizmem Linux-Vserver.
133 Summary: Tools which can be used to build vservers
134 Summary(pl): Narzêdzia do budowania vserverów
135 Group: Applications/System
142 Requires: %{name} = %{version}-%{release}
145 util-vserver provides the components and a framework to setup virtual
146 servers. A virtual server runs inside a linux server. It is
147 nevertheless highly independent. As such, you can run various services
148 with normal configuration. The various vservers can't interact with
149 each other and can't interact with services in the main server.
151 This package contains utilities which assist in building Vservers.
153 %description build -l pl
154 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
155 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
156 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
157 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
158 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
160 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
163 Summary: initscripts for vserver
164 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
166 Requires(post,preun): /sbin/chkconfig
167 Requires: %{name} = %{version}-%{release}
168 Requires: %{name}-core = %{version}-%{release}
174 util-vserver provides the components and a framework to setup virtual
175 servers. A virtual server runs inside a linux server. It is
176 nevertheless highly independent. As such, you can run various services
177 with normal configuration. The various vservers can't interact with
178 each other and can't interact with services in the main server.
180 This package contains the SysV initscripts which start and stop
181 Vservers and related tools.
183 %description init -l pl
184 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
185 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
186 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
187 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
188 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
190 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
191 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
194 Summary: Legacy utilities for util-vserver
195 Summary(pl): Stare narzêdzia dla util-vserver
196 Group: Applications/System
197 Requires(post,preun): /sbin/chkconfig
198 Requires: %{name} = %{version}-%{release}
199 Requires: %{name}-core = %{version}-%{release}
203 util-vserver provides the components and a framework to setup virtual
204 servers. A virtual server runs inside a linux server. It is
205 nevertheless highly independent. As such, you can run various services
206 with normal configuration. The various vservers can't interact with
207 each other and can't interact with services in the main server.
209 This package contains the tools which are needed to work with Vservers
210 having an old-style configuration.
212 %description legacy -l pl
213 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
214 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
215 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
216 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
217 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
219 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
220 konfiguracjê w starym stylu.
229 --with-initrddir=/etc/rc.d/init.d \
231 %{?with_dietlibc:--enable-dietlibc} \
232 %{!?with_dietlibc:--disable-dietlibc}
238 rm -rf $RPM_BUILD_ROOT
239 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d}}
241 %{__make} install install-distribution \
242 DESTDIR=$RPM_BUILD_ROOT
244 install -d $RPM_BUILD_ROOT/etc/vservices
245 install -d $RPM_BUILD_ROOT/vservers/.pkg
246 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
247 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
249 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
250 s=`basename $i | sed s/v_//`
251 cat >$RPM_BUILD_ROOT/etc/vservices/$s << EOF
252 # IP addresses/interfaces to bound $s service to
258 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
259 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default
260 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
261 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
262 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/vservers-default
263 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
266 rm -rf $RPM_BUILD_ROOT
269 %{_sbindir}/setattr --barrier /vservers || :
271 %post lib -p /sbin/ldconfig
272 %postun lib -p /sbin/ldconfig
275 /sbin/chkconfig --add vservers-default
276 /sbin/chkconfig --add vprocunhide
277 #if [ -r /var/lock/subsys/vprocunhide ]; then
278 # /etc/rc.d/init.d/vprocunhide restart >&2
280 #if [ -r /var/lock/subsys/vservers-default ]; then
281 # /etc/rc.d/init.d/vservers-default restart >&2
285 if [ "$1" = "0" ]; then
286 if [ -r /var/lock/subsys/vprocunhide ]; then
287 /etc/rc.d/init.d/vprocunhide stop >&2
289 if [ -r /var/lock/subsys/vservers-default ]; then
290 /etc/rc.d/init.d/vservers-default stop >&2
292 /sbin/chkconfig --del vprocunhide
293 /sbin/chkconfig --del vservers-default
297 /sbin/chkconfig --add rebootmgr
298 /sbin/chkconfig --add vservers-legacy
299 #if [ -r /var/lock/subsys/rebootmgr ] ; then
300 # /etc/rc.d/init.d/rebootmgr restart >&2
302 #if [ -r /var/lock/subsys/vservers-legacy ] ; then
303 # /etc/rc.d/init.d/vservers-legacy restart >&2
307 if [ "$1" = "0" ]; then
308 if [ -r /var/lock/subsys/rebootmgr ] ; then
309 /etc/rc.d/init.d/rebootmgr stop >&2
311 if [ -r /var/lock/subsys/vservers-legacy ] ; then
312 /etc/rc.d/init.d/vservers-legacy stop >&2
314 /sbin/chkconfig --del rebootmgr
315 /sbin/chkconfig --del vservers-legacy
319 %defattr(644,root,root,755)
320 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt doc/*.html
321 %dir %{_sysconfdir}/vservers
322 %dir %{_sysconfdir}/vservers/.defaults
323 %dir %{_sysconfdir}/vservers/.defaults/apps
324 %dir %{_sysconfdir}/vservers/.defaults/files
325 %ghost %{_sysconfdir}/vservers/.defaults/vdirbase
326 %ghost %{_sysconfdir}/vservers/.defaults/run.rev
327 %{_sysconfdir}/vservers/vdirbase
328 %{_sysconfdir}/vservers/run.rev
330 %attr(755,root,root) %{_sbindir}/exec-cd
331 %attr(755,root,root) %{_sbindir}/vdu
332 %attr(755,root,root) %{_sbindir}/vps
333 %attr(755,root,root) %{_sbindir}/vpstree
334 %attr(755,root,root) %{_sbindir}/vserver
335 %attr(755,root,root) %{_sbindir}/vserver-stat
336 %attr(755,root,root) %{_sbindir}/vsomething
337 %attr(755,root,root) %{_sbindir}/vtop
338 %dir %{_libdir}/%{name}
339 %dir %{_libdir}/%{name}/defaults
340 %{_libdir}/%{name}/defaults/*
341 %attr(755,root,root) %{_libdir}/%{name}/capchroot
342 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
343 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
344 %attr(755,root,root) %{_libdir}/%{name}/chroot-*
345 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
346 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
347 %attr(755,root,root) %{_libdir}/%{name}/filetime
348 %{_libdir}/%{name}/functions
349 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
350 %attr(755,root,root) %{_libdir}/%{name}/lockfile
351 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
352 %attr(755,root,root) %{_libdir}/%{name}/readlink
353 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
354 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
355 %attr(755,root,root) %{_libdir}/%{name}/sigexec
356 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
357 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
358 %{_libdir}/%{name}/vserver.*
359 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
360 %attr(755,root,root) %{_libdir}/%{name}/vshelper
361 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
363 %attr(0,root,root) %dir /vservers
364 %attr(755,root,root) %dir /vservers/.pkg
365 %dir %{_localstatedir}/run/vservers
366 %dir %{_localstatedir}/run/vservers.rev
367 %dir %{_localstatedir}/run/vshelper
370 %defattr(644,root,root,755)
371 %doc lib/apidoc/latex/refman.pdf lib/apidoc/html
372 %attr(755,root,root) %{_libdir}/lib*.so
374 %{_includedir}/vserver.h
375 %{_pkgconfigdir}/*.pc
378 %defattr(644,root,root,755)
379 %{_libdir}/libvserver.a
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
388 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-default
389 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
390 %attr(754,root,root) /etc/rc.d/init.d/vservers-default
393 %defattr(644,root,root,755)
394 %dir %{_libdir}/%{name}
395 %{_libdir}/%{name}/FEATURES.txt
396 %{_libdir}/%{name}/util-vserver-vars
397 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
398 %attr(755,root,root) %{_sbindir}/chbind
399 %attr(755,root,root) %{_sbindir}/chcontext
400 %attr(755,root,root) %{_sbindir}/chxid
401 %attr(755,root,root) %{_sbindir}/lsxid
402 %attr(755,root,root) %{_sbindir}/reducecap
403 %attr(755,root,root) %{_sbindir}/setattr
404 %attr(755,root,root) %{_sbindir}/showattr
405 %attr(755,root,root) %{_sbindir}/vattribute
406 %attr(755,root,root) %{_sbindir}/vcontext
407 %attr(755,root,root) %{_sbindir}/vdlimit
408 %attr(755,root,root) %{_sbindir}/vnamespace
409 %attr(755,root,root) %{_sbindir}/vkill
410 %attr(755,root,root) %{_sbindir}/vlimit
411 %attr(755,root,root) %{_sbindir}/vrsetup
412 %attr(755,root,root) %{_sbindir}/vsched
413 %attr(755,root,root) %{_sbindir}/vserver-info
414 %attr(755,root,root) %{_sbindir}/vuname
415 %{_mandir}/man8/chbind*
416 %{_mandir}/man8/chcontext*
417 %{_mandir}/man8/reducecap*
420 %defattr(644,root,root,755)
421 %doc contrib/yum*.patch
422 %dir %{_sysconfdir}/vservers/.distributions
423 %{_sysconfdir}/vservers/.distributions/.common
424 %{_sysconfdir}/vservers/.distributions/*
425 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
426 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
427 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
428 %dir %{_libdir}/%{name}/distributions
429 %{_libdir}/%{name}/distributions/*
430 %{_libdir}/%{name}/vserver-build.*
431 %{_libdir}/%{name}/vserver-setup.functions
432 %{_libdir}/%{name}/defaults/fstab
433 %{_libdir}/%{name}/defaults/debootstrap.uri
434 %{_libdir}/%{name}/defaults/vunify-exclude
435 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
436 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
437 %attr(755,root,root) %{_libdir}/%{name}/vbuild
438 %attr(755,root,root) %{_libdir}/%{name}/vcheck
439 %attr(755,root,root) %{_libdir}/%{name}/vcopy
440 %attr(755,root,root) %{_libdir}/%{name}/vhashify
441 %attr(755,root,root) %{_libdir}/%{name}/vpkg
442 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
443 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
444 %attr(755,root,root) %{_libdir}/%{name}/vunify
445 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
446 %attr(755,root,root) %{_sbindir}/vapt-get
447 %attr(755,root,root) %{_sbindir}/vfiles
448 %attr(755,root,root) %{_sbindir}/vrpm
449 %attr(755,root,root) %{_sbindir}/vyum
450 %{_mandir}/man8/vserver-copy*
453 %defattr(644,root,root,755)
456 %dir %{_libdir}/%{name}/legacy
457 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
458 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
459 %attr(754,root,root) /etc/rc.d/init.d/v_*
460 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
461 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
462 %attr(755,root,root) %{_sbindir}/vserver-copy
463 %{_mandir}/man8/distrib-info*
464 %{_mandir}/man8/rebootmgr*
465 %{_mandir}/man8/vps.*