3 ## This package understands the following switches:
4 ## --without dietlibc ... disable usage of dietlibc
5 ## --without xalan ... do not require/use the xalan xslt processor
7 %global confdir %_sysconfdir/vservers
8 %global confdefaultdir %confdir/.defaults
9 %global pkglibdir %_libdir/%name
10 %global __chattr /usr/bin/chattr
11 %global chkconfig /sbin/chkconfig
13 %global _localstatedir %_var
16 %{!?release_func:%global release_func() %1%{?dist}}
18 Summary: Linux virtual server utilities
21 Release: %release_func 0
23 Group: System Environment/Base
24 URL: http://savannah.nongnu.org/projects/util-vserver/
25 Source0: http://savannah.nongnu.org/download/util-vserver/stable.pkg/%version/%name-%version.tar.bz2
26 BuildRoot: %_tmppath/%name-%version-%release-root
28 Requires: %name-core = %version-%release
29 Requires: %name-lib = %version-%release
30 Requires: diffutils mktemp sed
31 Provides: vserver = %version-%release
32 Obsoletes: vserver < %version
33 BuildRequires: mount vconfig gawk iproute iptables
34 BuildRequires: gcc-c++ wget which diffutils
35 BuildRequires: e2fsprogs-devel beecrypt-devel
36 BuildRequires: doxygen tetex-latex
37 Requires(post): %__chattr
38 Requires(pre): %pkglibdir
39 Requires(postun): %pkglibdir
40 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
41 %{!?_without_xalan:BuildRequires: xalan-j}
44 Summary: Dynamic libraries for util-vserver
45 Group: System Environment/Libraries
48 Summary: The core-utilities for util-vserver
49 Group: Applications/System
53 Summary: Tools which can be used to build vservers
54 Group: Applications/System
55 Requires: rpm wget binutils tar e2fsprogs
56 Requires: %name = %version-%release
57 Requires(pre): %confdir
58 Requires(postun): %confdir
65 Summary: SysV-initscripts for vserver
66 Group: System Environment/Base
67 Provides: init(%name) = sysv
68 Requires: make diffutils
70 Requires: %name = %version-%release
71 Requires(post): %chkconfig
72 Requires(preun): %chkconfig
73 Requires(pre): %_initrddir %pkglibdir
74 requires(postun): %_initrddir %pkglibdir
77 Summary: Legacy utilities for util-vserver
78 Group: Applications/System
79 Requires: %name = %version-%release
80 Requires(post): %chkconfig
81 Requires(preun): %chkconfig
82 Requires(pre): %_initrddir %pkglibdir
83 requires(postun): %_initrddir %pkglibdir
86 Summary: Header-files and libraries needed to develop vserver based applications
87 Group: Development/Libraries
92 util-vserver provides the components and a framework to setup virtual
93 servers. A virtual server runs inside a linux server. It is nevertheless
94 highly independent. As such, you can run various services with normal
95 configuration. The various vservers can't interact with each other and
96 can't interact with services in the main server.
98 This requires a special kernel supporting the new new_s_context and
99 set_ipv4root system call.
102 util-vserver provides the components and a framework to setup virtual
103 servers. A virtual server runs inside a linux server. It is nevertheless
104 highly independent. As such, you can run various services with normal
105 configuration. The various vservers can't interact with each other and
106 can't interact with services in the main server.
108 This package contains the shared libraries needed by all other
109 'util-vserver' subpackages.
112 util-vserver provides the components and a framework to setup virtual
113 servers. A virtual server runs inside a linux server. It is nevertheless
114 highly independent. As such, you can run various services with normal
115 configuration. The various vservers can't interact with each other and
116 can't interact with services in the main server.
118 This package contains utilities which are required to communicate with
119 the Linux-Vserver enabled kernel.
123 util-vserver provides the components and a framework to setup virtual
124 servers. A virtual server runs inside a linux server. It is nevertheless
125 highly independent. As such, you can run various services with normal
126 configuration. The various vservers can't interact with each other and
127 can't interact with services in the main server.
129 This package contains utilities which assist in building Vservers.
132 util-vserver provides the components and a framework to setup virtual
133 servers. A virtual server runs inside a linux server. It is nevertheless
134 highly independent. As such, you can run various services with normal
135 configuration. The various vservers can't interact with each other and
136 can't interact with services in the main server.
138 This package contains the SysV initscripts which start and stop
139 VServers and related tools.
143 util-vserver provides the components and a framework to setup virtual
144 servers. A virtual server runs inside a linux server. It is nevertheless
145 highly independent. As such, you can run various services with normal
146 configuration. The various vservers can't interact with each other and
147 can't interact with services in the main server.
149 This package contains the tools which are needed to work with VServers
150 having an old-style configuration.
154 util-vserver provides the components and a framework to setup virtual
155 servers. A virtual server runs inside a linux server. It is nevertheless
156 highly independent. As such, you can run various services with normal
157 configuration. The various vservers can't interact with each other and
158 can't interact with services in the main server.
160 This package contains header files and libraries which are needed to
161 develop VServer related applications.
169 %configure --with-initrddir=%_initrddir --enable-release \
170 %{?_without_dietlibc:--disable-dietlibc}
172 %__make %{?_smp_mflags} all
173 %__make %{?_smp_mflags} doc
177 rm -rf $RPM_BUILD_ROOT
178 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
180 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
182 MANIFEST_CONFIG='%config' \
183 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
184 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
192 rm -rf $RPM_BUILD_ROOT
196 test -d /vservers || mkdir -m0000 /vservers
197 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
199 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
200 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
202 %_sbindir/setattr --barrier /vservers || :
205 %post lib -p /sbin/ldconfig
206 %postun lib -p /sbin/ldconfig
210 %chkconfig --add vservers-default
211 %chkconfig --add vprocunhide
216 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
218 test "$1" != 0 || %chkconfig --del vprocunhide
219 test "$1" != 0 || %chkconfig --del vservers-default
223 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
226 %triggerin build -- fedora-release
233 test -r "$i" || continue
235 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
239 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
243 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
246 ## Temporary workaround to remove old v_* files; it will conflict
247 ## somehow with the -legacy package but can be fixed by reinstalling
249 ## TODO: remove me in the final .spec file
250 %define v_services httpd named portmap sendmail smb sshd xinetd gated
251 %triggerun sysv -- util-vserver-sysv < 0.30.198
252 for i in %v_services; do
253 %chkconfig --del v_$i || :
258 %chkconfig --add rebootmgr
259 %chkconfig --add vservers-legacy
261 for i in %v_services; do
262 %chkconfig --add v_$i
267 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
269 test "$1" != 0 || for i in %v_services; do
270 %chkconfig --del v_$i
273 test "$1" != 0 || %chkconfig --del rebootmgr
274 test "$1" != 0 || %chkconfig --del vservers-legacy
277 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
280 %files -f %name-base.list
281 %defattr(-,root,root,-)
282 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
283 %doc doc/*.html doc/*.css
287 %dir %confdefaultdir/apps
288 %dir %confdefaultdir/files
289 %dir %pkglibdir/defaults
290 %ghost %confdefaultdir/vdirbase
291 %ghost %confdefaultdir/run.rev
293 %dir %_localstatedir/run/vservers
294 %dir %_localstatedir/run/vservers.rev
295 %dir %_localstatedir/run/vshelper
298 %files lib -f %name-lib.list
299 %files sysv -f %name-sysv.list
302 %files core -f %name-core.list
303 %defattr(-,root,root,-)
307 %files build -f %name-build.list
308 %defattr(-,root,root,-)
309 %doc contrib/yum*.patch
310 %dir %confdir/.distributions
311 %dir %confdir/.distributions/*
312 %dir %confdir/.distributions/*/apt
313 %dir %confdir/.distributions/.common
314 %dir %confdir/.distributions/.common/pubkeys
315 %dir %confdefaultdir/apps/vunify
316 %dir %confdefaultdir/apps/vunify/hash
319 %files legacy -f %name-legacy.list
320 %defattr(-,root,root,-)
321 %dir %pkglibdir/legacy
324 %files devel -f %name-devel.list
325 %defattr(-,root,root,-)
326 %doc lib/apidoc/latex/refman.pdf
331 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
332 - added patches to make yum work in chroot environments
335 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
336 - added some %%descriptions
337 - copy GPG keys from the system into the confdir
338 - buildrequire dietlibc-0.25
339 - BuildRequire beecrypt-devel
341 - use %%global instead of %%define
342 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
344 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
345 - updated BuildRequires:
346 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
347 - moved the v_* initscripts to legacy
348 - do not ship the /vservers directory itself; as it is immutable, the
349 extraction will fail else
351 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
352 - documented switches for 'rpmbuild'
354 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
355 - (re)added the MANIFEST_* variables which were lost some time ago;
356 this will preserve %%config files...
358 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
359 - use file-list for sysv scripts also
361 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
362 - added vprocunhide-service support
363 - added doxygen support
366 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0