removed since solved by more general 'linuxvirtual.h'
[util-vserver.git] / util-vserver / vserver.spec.in
1 Summary:        Linux virtual server utilities
2 Name:           @PACKAGE@
3 Version:        @VERSION@
4 Release:        1
5 Epoch:          0
6 Copyright:      GPL
7 Group:          System Environment/Base
8 Source:         %name-%version.tar.bz2
9 Provides:       %name-devel = %epoch:%version-%release
10 BuildRoot:      %_tmppath/%name-%version-%release-root
11 Provides:       vserver = %epoch:%version-%release
12 Conflicts:      vserver < %epoch:%version
13
14
15 %description
16 This package provides the components and a framework to setup virtual
17 servers.  A virtual server runs inside a linux server. It is nevertheless
18 highly independent. As such, you can run various services with normal
19 configuration. The various vservers can't interact with each other and
20 can't interact with services in the main server.
21
22 This requires a special kernel supporting the new new_s_context and
23 set_ipv4root system call.
24
25
26 %prep
27 %setup -q
28
29
30 %build
31 %configure
32 %__make %{?_smp_mflags}
33
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 %__make DESTDIR=$RPM_BUILD_ROOT install
38
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43
44 %define v_services      httpd named portmap sendmail smb sshd xinetd
45 %post
46 /sbin/chkconfig --add vservers
47 /sbin/chkconfig --add rebootmgr
48
49 for i in %v_services; do
50         /sbin/chkconfig --add v_$i
51 done
52
53
54 %preun
55 test "$1" != 0 || for i in %v_services; do
56         /sbin/chkconfig --del v_$i
57 done
58
59 test "$1" != 0 || %{_initrddir}/rebootmgr stop &>/dev/null || :
60 test "$1" != 0 || /sbin/chkconfig --del rebootmgr
61 test "$1" != 0 || /sbin/chkconfig --del vservers
62
63
64 %postun
65 test "$1" = 0  || %{_initrddir}/rebootmgr condrestart >/dev/null || :
66
67
68 %files
69 %defattr(-,root,root)
70 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
71 %doc doc/FAQ.txt
72 %_sbindir/*
73 %_libdir/%name
74 %_includedir/vserver.h
75 %_libdir/libvserver.a
76 %_mandir/man8/*
77 %config /etc/init.d/*
78 %config(noreplace) /etc/vservers/newvserver.defaults
79 %config(noreplace) /etc/vservers.conf
80
81
82 %changelog
83
84 * Fri Sep 26 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.4-1
85 - initial build.