3 %define confdir %_sysconfdir/vservers
4 %define pkglibdir %_libdir/%name
6 Summary: Linux virtual server utilities
12 Group: System Environment/Base
13 URL: http://savannah.nongnu.org/projects/util-vserver/
14 Source0: http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
15 BuildRoot: %_tmppath/%name-%version-%release-root
16 Requires: init(@PACKAGE@)
17 Requires: %name-core = %epoch:%version-%release
18 Provides: vserver = %epoch:%version-%release
19 Obsoletes: vserver < %epoch:%version
20 BuildRequires: mount vconfig gawk iproute
21 BuildRequires: gcc-c++
22 %{!?_without_dietlibc:BuildRequires: dietlibc}
25 Summary: The core-utilities for util-vserver
26 Group: Applications/System
29 Summary: Tools which can be used to build vservers
30 Group: Applications/System
31 Requires: %name = %epoch:%version-%release
35 Summary: SysV-initscripts for vserver
36 Group: System Environment/Base
37 Provides: init(@PACKAGE@)
38 Requires: %name = %epoch:%version-%release
42 Summary: Header-files and libraries which are needed to develop vserver based applications
43 Group: Development/Libraries
48 This package provides the components and a framework to setup virtual
49 servers. A virtual server runs inside a linux server. It is nevertheless
50 highly independent. As such, you can run various services with normal
51 configuration. The various vservers can't interact with each other and
52 can't interact with services in the main server.
54 This requires a special kernel supporting the new new_s_context and
55 set_ipv4root system call.
68 %configure --with-initrddir=%_initrddir --enable-release \
69 %{?_without_dietlibc:--disable-dietlibc}
70 %__make %{?_smp_mflags}
74 rm -rf $RPM_BUILD_ROOT
75 %__make DESTDIR="$RPM_BUILD_ROOT" install install-vserverdir
79 rm -rf $RPM_BUILD_ROOT
82 %define v_services httpd named portmap sendmail smb sshd xinetd
84 /sbin/chkconfig --add vservers
85 /sbin/chkconfig --add rebootmgr
87 for i in %v_services; do
88 /sbin/chkconfig --add v_$i
93 test "$1" != 0 || for i in %v_services; do
94 /sbin/chkconfig --del v_$i
97 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
98 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
99 test "$1" != 0 || /sbin/chkconfig --del vservers
103 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || :
107 %defattr(-,root,root,-)
108 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
111 %exclude %pkglibdir/distributions
112 %exclude %pkglibdir/distrib-info
113 %exclude %pkglibdir/rpm-fake.so
114 %exclude %pkglibdir/util-vserver-vars
115 %exclude %pkglibdir/vapt-get*
116 %exclude %pkglibdir/vrpm*
117 %exclude %pkglibdir/vserver-build*
118 %exclude %pkglibdir/vserver-setup*
119 %exclude %pkglibdir/vunify
126 %_sbindir/vserver-stat
129 %exclude %_mandir/*/chbind*
130 %exclude %_mandir/*/chcontext*
131 %exclude %_mandir/*/reducecap*
132 %exclude %_mandir/*/distrib-info*
133 %exclude %_mandir/*/vserver-copy*
134 %exclude %_mandir/*/vrpm*
136 %dir %confdir/.defaults
137 %dir %confdir/.defaults/*
140 %attr(000,root,root) %dir /vservers/.pkg
141 %attr(000,root,root) %dir /vservers
143 %dir /var/run/vservers
144 %dir /var/run/vservers/rev
149 %defattr(-,root,root,-)
153 %_sbindir/new-namespace
155 %_sbindir/util-vserver-vars
156 %pkglibdir/util-vserver-vars
158 %_mandir/*/chcontext*
159 %_mandir/*/reducecap*
164 %defattr(-,root,root,-)
167 %_sbindir/vserver-copy
169 %pkglibdir/distributions
170 %pkglibdir/rpm-fake.so
173 %pkglibdir/vserver-build*
174 %pkglibdir/vserver-setup*
176 %_mandir/*/distrib-info*
177 %_mandir/*/vserver-copy*
178 %exclude %_mandir/*/vrpm*
180 %dir %confdir/.distributions
181 %dir %confdir/.distributions/*
182 %dir %confdir/.distributions/*/apt
183 %config(noreplace) %confdir/.distributions/*/apt/sources.list
188 %defattr(-,root,root,-)
190 %config(noreplace) %_sysconfdir/vservers.conf
194 %defattr(-,root,root,-)
201 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0