]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver.spec
825557bb7ca207548672471af953fcfd4203f0ea
[packages/util-vserver.git] / util-vserver.spec
1 Summary:        Linux virtual server utilities
2 Summary(pl):    Narzêdzia dla linuksowych serwerów wirtualnych
3 Name:           util-vserver
4 Version:        0.24
5 Release:        1
6 Epoch:          0
7 License:        GPL
8 Group:          Base
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/
12 PreReq:         rc-scripts
13 Requires(post,preun):   /sbin/chkconfig
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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.
22
23 This requires a special kernel supporting the new new_s_context and
24 set_ipv4root system call.
25
26 %description -l pl
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.
32
33 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
34 new_s_context i set_ipv4root.
35
36 %prep
37 %setup -q
38
39 %build
40 %configure \
41         --with-kerneldir=%{_kernelsrcdir}
42 %{__make}
43
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %define v_services      httpd named portmap sendmail smb sshd xinetd
55 %post
56 /sbin/chkconfig --add vservers
57 /sbin/chkconfig --add rebootmgr
58
59 for i in %{v_services}; do
60         /sbin/chkconfig --add v_$i
61 done
62
63 %preun
64 test "$1" != 0 || for i in %{v_services}; do
65         /sbin/chkconfig --del v_$i
66 done
67
68 test "$1" != 0 || %{_initrddir}/rebootmgr stop >&2 || :
69 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
70 test "$1" != 0 || /sbin/chkconfig --del vservers
71
72 %postun
73 test "$1" = 0  || %{_initrddir}/rebootmgr condrestart >&2 || :
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
78 %attr(755,root,root) %{_sbindir}/*
79 %{_libdir}/%{name}
80 %{_includedir}/vserver.h
81 %{_libdir}/libvserver.a
82 %{_mandir}/man8/*
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*
This page took 0.020796 seconds and 2 git commands to generate.