3 %define confdir %_sysconfdir/vservers
5 Summary: Linux virtual server utilities
11 Group: System Environment/Base
12 URL: http://savannah.nongnu.org/projects/util-vserver/
13 Source0: http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
14 BuildRoot: %_tmppath/%name-%version-%release-root
15 Provides: vserver = %epoch:%version-%release
16 Conflicts: vserver < %epoch:%version
19 Summary: SysV-initscripts for vserver
20 Group: System Environment/Base
21 Requires: %name = %epoch:%version-%release
25 Summary: Header-files and libraries which are needed to develop vserver based applications
26 Group: Development/Libraries
30 This package provides the components and a framework to setup virtual
31 servers. A virtual server runs inside a linux server. It is nevertheless
32 highly independent. As such, you can run various services with normal
33 configuration. The various vservers can't interact with each other and
34 can't interact with services in the main server.
36 This requires a special kernel supporting the new new_s_context and
37 set_ipv4root system call.
48 %__make %{?_smp_mflags}
52 rm -rf $RPM_BUILD_ROOT
53 %__make DESTDIR="$RPM_BUILD_ROOT" install
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/
61 rm -rf $RPM_BUILD_ROOT
64 %define v_services httpd named portmap sendmail smb sshd xinetd
66 /sbin/chkconfig --add vservers
67 /sbin/chkconfig --add rebootmgr
69 for i in %v_services; do
70 /sbin/chkconfig --add v_$i
75 test "$1" != 0 || for i in %v_services; do
76 /sbin/chkconfig --del v_$i
79 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
80 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
81 test "$1" != 0 || /sbin/chkconfig --del vservers
85 test "$1" = 0 || %{_initrddir}/rebootmgr condrestart >/dev/null || :
89 %defattr(-,root,root,-)
90 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
96 %dir %confdir/.distributions
97 %dir %confdir/.distributions/rh*
98 %dir %confdir/.distributions/*/apt
99 %config(noreplace) %confdir/.distributions/*/apt/sources.list
102 %defattr(-,root,root,-)
104 %config(noreplace) %_sysconfdir/vservers.conf
107 %defattr(-,root,root,-)
112 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0