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: util-vserver-core = %epoch:%version-%release
17 Provides: vserver = %epoch:%version-%release
18 Conflicts: vserver < %epoch:%version
19 BuildRequires: mount vconfig gawk iproute
20 BuildRequires: dietlibc gcc-c++
23 Summary: The core-utilities for util-vserver
24 Group: Applications/System
27 Summary: SysV-initscripts for vserver
28 Group: System Environment/Base
29 Requires: %name = %epoch:%version-%release
33 Summary: Header-files and libraries which are needed to develop vserver based applications
34 Group: Development/Libraries
38 This package provides the components and a framework to setup virtual
39 servers. A virtual server runs inside a linux server. It is nevertheless
40 highly independent. As such, you can run various services with normal
41 configuration. The various vservers can't interact with each other and
42 can't interact with services in the main server.
44 This requires a special kernel supporting the new new_s_context and
45 set_ipv4root system call.
57 %__make %{?_smp_mflags}
61 rm -rf $RPM_BUILD_ROOT
62 %__make DESTDIR="$RPM_BUILD_ROOT" install
64 test "%_initrddir" = %_sysconfdir/init.d || {
65 mkdir -p ${RPM_BUILD_ROOT}%_initrddir
66 mv ${RPM_BUILD_ROOT}%_sysconfdir/init.d/* ${RPM_BUILD_ROOT}%_initrddir/
70 rm -rf $RPM_BUILD_ROOT
73 %define v_services httpd named portmap sendmail smb sshd xinetd
75 /sbin/chkconfig --add vservers
76 /sbin/chkconfig --add rebootmgr
78 for i in %v_services; do
79 /sbin/chkconfig --add v_$i
84 test "$1" != 0 || for i in %v_services; do
85 /sbin/chkconfig --del v_$i
88 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
89 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
90 test "$1" != 0 || /sbin/chkconfig --del vservers
94 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || :
98 %defattr(-,root,root,-)
99 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
105 %dir %confdir/.distributions
106 %dir %confdir/.distributions/rh*
107 %dir %confdir/.distributions/*/apt
108 %config(noreplace) %confdir/.distributions/*/apt/sources.list
109 %dir /var/run/vservers
113 %defattr(-,root,root,-)
117 filetime ifspec listdevip mask2prefix readlink save_ctxinfo save_s_context secure-mount showattr showperm util-vserver-vars
119 chbind chcontext new-namespace reducecap setctxlimit util-vserver-vars
123 %defattr(-,root,root,-)
125 %config(noreplace) %_sysconfdir/vservers.conf
128 %defattr(-,root,root,-)
134 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0