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