1 Summary: Linux virtual server utilities
7 Group: System Environment/Base
8 URL: http://savannah.nongnu.org/projects/util-vserver/
9 Source0: http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
10 Provides: %name-devel = %epoch:%version-%release
11 BuildRoot: %_tmppath/%name-%version-%release-root
12 Provides: vserver = %epoch:%version-%release
13 Conflicts: vserver < %epoch:%version-%release
14 Conflicts: vserver > %epoch:%version-%release
15 BuildRequires: e2fsprogs-devel
18 Summary: Linuxconf administration modules for vservers
19 Group: Applications/System
20 Requires: %name = %epoch:%version-%release
21 Provides: vserver-admin = %epoch:%version-%release
22 Conflicts: vserver-admin < %epoch:%version-%release
23 Conflicts: vserver-admin > %epoch:%version-%release
26 This package provides the components and a framework to setup virtual
27 servers. A virtual server runs inside a linux server. It is nevertheless
28 highly independent. As such, you can run various services with normal
29 configuration. The various vservers can't interact with each other and
30 can't interact with services in the main server.
32 This requires a special kernel supporting the new new_s_context and
33 set_ipv4root system call.
36 %description linuxconf
37 This package provides the components to setup virtual servers with
46 %configure --enable-linuxconf
47 %__make %{?_smp_mflags}
51 rm -rf $RPM_BUILD_ROOT
52 %__make DESTDIR=$RPM_BUILD_ROOT install
54 mkdir -p $RPM_BUILD_ROOT/vservers
55 test "%_initrddir" = %_sysconfdir/init.d || {
56 mkdir -p ${RPM_BUILD_ROOT}%_initrddir
57 mv ${RPM_BUILD_ROOT}%_sysconfdir/init.d/* ${RPM_BUILD_ROOT}%_initrddir/
62 rm -rf $RPM_BUILD_ROOT
65 %define v_services httpd named portmap sendmail smb sshd xinetd
67 /sbin/chkconfig --add vservers
68 /sbin/chkconfig --add rebootmgr
70 for i in %v_services; do
71 /sbin/chkconfig --add v_$i
76 test "$1" != 0 || for i in %v_services; do
77 /sbin/chkconfig --del v_$i
80 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
81 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
82 test "$1" != 0 || /sbin/chkconfig --del vservers
86 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || :
91 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
95 %_includedir/vserver.h
99 %config(noreplace) /etc/vservers.conf
100 %attr(0,root,root) %dir /vservers
102 %exclude %_sbindir/newvserver
103 %exclude %_mandir/man8/newvserver*
107 %defattr(-,root,root)
108 %config(noreplace) /etc/vservers/newvserver.defaults
110 %_mandir/man8/newvserver*
115 * Fri Sep 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.4-1