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: dietlibc gcc-c++
24 Summary: The core-utilities for util-vserver
25 Group: Applications/System
28 Summary: Tools which can be used to build vservers
29 Group: Applications/System
30 Requires: %name = %epoch:%version-%release
34 Summary: SysV-initscripts for vserver
35 Group: System Environment/Base
36 Provides: init(@PACKAGE@)
37 Requires: %name = %epoch:%version-%release
41 Summary: Header-files and libraries which are needed to develop vserver based applications
42 Group: Development/Libraries
47 This package provides the components and a framework to setup virtual
48 servers. A virtual server runs inside a linux server. It is nevertheless
49 highly independent. As such, you can run various services with normal
50 configuration. The various vservers can't interact with each other and
51 can't interact with services in the main server.
53 This requires a special kernel supporting the new new_s_context and
54 set_ipv4root system call.
67 %configure --with-initrddir=%_initrddir --enable-release
68 %__make %{?_smp_mflags}
72 rm -rf $RPM_BUILD_ROOT
73 %__make DESTDIR="$RPM_BUILD_ROOT" install install-vserverdir
77 rm -rf $RPM_BUILD_ROOT
80 %define v_services httpd named portmap sendmail smb sshd xinetd
82 /sbin/chkconfig --add vservers
83 /sbin/chkconfig --add rebootmgr
85 for i in %v_services; do
86 /sbin/chkconfig --add v_$i
91 test "$1" != 0 || for i in %v_services; do
92 /sbin/chkconfig --del v_$i
95 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
96 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
97 test "$1" != 0 || /sbin/chkconfig --del vservers
101 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || :
105 %defattr(-,root,root,-)
106 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
109 %exclude %pkglibdir/distributions
110 %exclude %pkglibdir/distrib-info
111 %exclude %pkglibdir/rpm-fake.so
112 %exclude %pkglibdir/util-vserver-vars
113 %exclude %pkglibdir/vapt-get*
114 %exclude %pkglibdir/vrpm*
115 %exclude %pkglibdir/vserver-build*
116 %exclude %pkglibdir/vserver-setup*
117 %exclude %pkglibdir/vunify
124 %_sbindir/vserver-stat
127 %exclude %_mandir/*/chbind*
128 %exclude %_mandir/*/chcontext*
129 %exclude %_mandir/*/reducecap*
130 %exclude %_mandir/*/distrib-info*
131 %exclude %_mandir/*/vserver-copy*
132 %exclude %_mandir/*/vrpm*
134 %dir %confdir/.defaults
135 %dir %confdir/.defaults/*
138 %attr(000,root,root) %dir /vservers/.pkg
139 %attr(000,root,root) %dir /vservers
141 %dir /var/run/vservers
142 %dir /var/run/vservers/rev
147 %defattr(-,root,root,-)
151 %_sbindir/new-namespace
153 %_sbindir/util-vserver-vars
154 %pkglibdir/util-vserver-vars
156 %_mandir/*/chcontext*
157 %_mandir/*/reducecap*
162 %defattr(-,root,root,-)
165 %_sbindir/vserver-copy
167 %pkglibdir/distributions
168 %pkglibdir/rpm-fake.so
171 %pkglibdir/vserver-build*
172 %pkglibdir/vserver-setup*
174 %_mandir/*/distrib-info*
175 %_mandir/*/vserver-copy*
176 %exclude %_mandir/*/vrpm*
178 %dir %confdir/.distributions
179 %dir %confdir/.distributions/*
180 %dir %confdir/.distributions/*/apt
181 %config(noreplace) %confdir/.distributions/*/apt/sources.list
186 %defattr(-,root,root,-)
188 %config(noreplace) %_sysconfdir/vservers.conf
192 %defattr(-,root,root,-)
199 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0