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 BuildRequires: e2fsprogs-devel
23 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.22}
26 Summary: The core-utilities for util-vserver
27 Group: Applications/System
30 Summary: Tools which can be used to build vservers
31 Group: Applications/System
32 Requires: %name = %epoch:%version-%release
36 Summary: SysV-initscripts for vserver
37 Group: System Environment/Base
38 Provides: init(@PACKAGE@)
39 Requires: %name = %epoch:%version-%release
43 Summary: Header-files and libraries which are needed to develop vserver based applications
44 Group: Development/Libraries
49 This package provides the components and a framework to setup virtual
50 servers. A virtual server runs inside a linux server. It is nevertheless
51 highly independent. As such, you can run various services with normal
52 configuration. The various vservers can't interact with each other and
53 can't interact with services in the main server.
55 This requires a special kernel supporting the new new_s_context and
56 set_ipv4root system call.
69 %configure --with-initrddir=%_initrddir --enable-release \
70 %{?_without_dietlibc:--disable-dietlibc}
71 %__make %{?_smp_mflags}
75 rm -rf $RPM_BUILD_ROOT
76 %__make DESTDIR="$RPM_BUILD_ROOT" install install-vserverdir
80 rm -rf $RPM_BUILD_ROOT
83 %define v_services httpd named portmap sendmail smb sshd xinetd
85 /sbin/chkconfig --add vservers
86 /sbin/chkconfig --add rebootmgr
88 for i in %v_services; do
89 /sbin/chkconfig --add v_$i
94 test "$1" != 0 || for i in %v_services; do
95 /sbin/chkconfig --del v_$i
98 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
99 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
100 test "$1" != 0 || /sbin/chkconfig --del vservers
104 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || :
108 %defattr(-,root,root,-)
109 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
112 %exclude %pkglibdir/distributions
113 %exclude %pkglibdir/distrib-info
114 %exclude %pkglibdir/rpm-fake.so
115 %exclude %pkglibdir/util-vserver-vars
116 %exclude %pkglibdir/vapt-get*
117 %exclude %pkglibdir/vrpm*
118 %exclude %pkglibdir/vserver-build*
119 %exclude %pkglibdir/vserver-setup*
120 %exclude %pkglibdir/vunify
127 %_sbindir/vserver-stat
130 %exclude %_mandir/*/chbind*
131 %exclude %_mandir/*/chcontext*
132 %exclude %_mandir/*/reducecap*
133 %exclude %_mandir/*/distrib-info*
134 %exclude %_mandir/*/vserver-copy*
135 %exclude %_mandir/*/vrpm*
137 %dir %confdir/.defaults
138 %dir %confdir/.defaults/*
141 %attr(000,root,root) %dir /vservers/.pkg
142 %attr(000,root,root) %dir /vservers
144 %dir /var/run/vservers
145 %dir /var/run/vservers/rev
150 %defattr(-,root,root,-)
154 %_sbindir/new-namespace
156 %_sbindir/util-vserver-vars
157 %pkglibdir/util-vserver-vars
159 %_mandir/*/chcontext*
160 %_mandir/*/reducecap*
165 %defattr(-,root,root,-)
168 %_sbindir/vserver-copy
170 %pkglibdir/distributions
171 %pkglibdir/rpm-fake.so
174 %pkglibdir/vserver-build*
175 %pkglibdir/vserver-setup*
177 %_mandir/*/distrib-info*
178 %_mandir/*/vserver-copy*
179 %exclude %_mandir/*/vrpm*
181 %dir %confdir/.distributions
182 %dir %confdir/.distributions/*
183 %dir %confdir/.distributions/*/apt
184 %config(noreplace) %confdir/.distributions/*/apt/sources.list
189 %defattr(-,root,root,-)
191 %config(noreplace) %_sysconfdir/vservers.conf
195 %defattr(-,root,root,-)
202 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0