1 Summary: Linux virtual server utilities
2 Summary(pl): Narzêdzia dla linuksowych serwerów wirtualnych
9 Source0: http://savannah.nongnu.org/download/util-vserver/stable.pkg/%{version}/%{name}-%{version}.tar.bz2
10 # Source0-md5: 625d6c9bc5a4d2e44eafdf0f619c2153
11 URL: http://savannah.nongnu.org/projects/util-vserver/
13 Requires(post,preun): /sbin/chkconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 This package provides the components and a framework to setup virtual
18 servers. A virtual server runs inside a Linux server. It is
19 nevertheless highly independent. As such, you can run various services
20 with normal configuration. The various vservers can't interact with
21 each other and can't interact with services in the main server.
23 This requires a special kernel supporting the new new_s_context and
24 set_ipv4root system call.
27 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
28 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
29 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
30 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
31 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
33 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
34 new_s_context i set_ipv4root.
41 --with-kerneldir=%{_kernelsrcdir}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
54 %define v_services httpd named portmap sendmail smb sshd xinetd
56 /sbin/chkconfig --add vservers
57 /sbin/chkconfig --add rebootmgr
59 for i in %{v_services}; do
60 /sbin/chkconfig --add v_$i
64 test "$1" != 0 || for i in %{v_services}; do
65 /sbin/chkconfig --del v_$i
68 test "$1" != 0 || %{_initrddir}/rebootmgr stop >&2 || :
69 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
70 test "$1" != 0 || /sbin/chkconfig --del vservers
73 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >&2 || :
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
78 %attr(755,root,root) %{_sbindir}/*
80 %{_includedir}/vserver.h
81 %{_libdir}/libvserver.a
83 %attr(754,root,root) /etc/rc.d/init.d/*
84 %config(noreplace) %{_sysconfdir}/vservers.conf
85 %attr(0,root,root) %dir /vservers
86 %exclude %{_sbindir}/newvserver
87 %exclude %{_mandir}/man8/newvserver*