1 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
3 ## This package understands the following switches:
4 ## --without dietlibc ... disable usage of dietlibc
5 ## --with xalan ... require/use the xalan xslt processor
6 ## --without doc ... disable doc generation
7 ## --with legacy ... enable the legacy APIs
9 %global confdir %_sysconfdir/vservers
10 %global confdefaultdir %confdir/.defaults
11 %global pkglibdir %_libdir/%name
12 %global chkconfig /sbin/chkconfig
14 %global _localstatedir %_var
16 %global fullver @VERSION@
17 %global ver %( echo %fullver | sed 's/-.*//' )
18 %global subver %( s=`echo %fullver | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
21 %global module_version_varname fullver
24 %{!?release_func:%global release_func() %1%{?dist}}
26 Summary: Linux virtual server utilities
31 Group: System Environment/Base
32 URL: http://savannah.nongnu.org/projects/util-vserver/
33 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
34 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
35 BuildRoot: %_tmppath/%name-%version-%release-root
37 Requires: %name-core = %version-%release
38 Requires: %name-lib = %version-%release
39 Requires: diffutils mktemp sed
40 Provides: vserver = %version-%release
41 Obsoletes: vserver < %version
42 BuildRequires: mount vconfig gawk iproute iptables
43 BuildRequires: gcc-c++ wget which diffutils
44 BuildRequires: e2fsprogs-devel beecrypt-devel
45 BuildRequires: e2fsprogs
46 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
47 Requires(post): %name-core
48 Requires(pre): %pkglibdir
49 Requires(postun): %pkglibdir
50 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
51 %{?_with_xalan:BuildRequires: xalan-j}
54 Summary: Dynamic libraries for util-vserver
55 Group: System Environment/Libraries
58 Summary: The core-utilities for util-vserver
59 Group: Applications/System
63 Summary: Tools which can be used to build vservers
64 Group: Applications/System
65 Requires: rpm wget binutils tar
66 Requires: %name = %version-%release
67 Requires(pre): %confdir
68 Requires(postun): %confdir
69 Requires(post): %name-core
72 Summary: SysV-initscripts for vserver
73 Group: System Environment/Base
74 Provides: init(%name) = sysv
75 Requires: make diffutils
77 Requires: %name = %version-%release
78 Requires(post): %chkconfig
79 Requires(preun): %chkconfig
80 Requires(pre): %_initrddir %pkglibdir
81 requires(postun): %_initrddir %pkglibdir
84 Summary: Legacy utilities for util-vserver
85 Group: Applications/System
86 Requires: %name = %version-%release
87 Requires(post): %chkconfig
88 Requires(preun): %chkconfig
89 Requires(pre): %_initrddir %pkglibdir
90 requires(postun): %_initrddir %pkglibdir
93 Summary: Header-files and libraries needed to develop vserver based applications
94 Group: Development/Libraries
96 Requires: %name-lib = %version-%release
100 util-vserver provides the components and a framework to setup virtual
101 servers. A virtual server runs inside a linux server. It is nevertheless
102 highly independent. As such, you can run various services with normal
103 configuration. The various vservers can't interact with each other and
104 can't interact with services in the main server.
106 This requires a special kernel supporting the new new_s_context and
107 set_ipv4root system call.
110 util-vserver provides the components and a framework to setup virtual
111 servers. A virtual server runs inside a linux server. It is nevertheless
112 highly independent. As such, you can run various services with normal
113 configuration. The various vservers can't interact with each other and
114 can't interact with services in the main server.
116 This package contains the shared libraries needed by all other
117 'util-vserver' subpackages.
120 util-vserver provides the components and a framework to setup virtual
121 servers. A virtual server runs inside a linux server. It is nevertheless
122 highly independent. As such, you can run various services with normal
123 configuration. The various vservers can't interact with each other and
124 can't interact with services in the main server.
126 This package contains utilities which are required to communicate with
127 the Linux-Vserver enabled kernel.
131 util-vserver provides the components and a framework to setup virtual
132 servers. A virtual server runs inside a linux server. It is nevertheless
133 highly independent. As such, you can run various services with normal
134 configuration. The various vservers can't interact with each other and
135 can't interact with services in the main server.
137 This package contains utilities which assist in building Vservers.
140 util-vserver provides the components and a framework to setup virtual
141 servers. A virtual server runs inside a linux server. It is nevertheless
142 highly independent. As such, you can run various services with normal
143 configuration. The various vservers can't interact with each other and
144 can't interact with services in the main server.
146 This package contains the SysV initscripts which start and stop
147 VServers and related tools.
151 util-vserver provides the components and a framework to setup virtual
152 servers. A virtual server runs inside a linux server. It is nevertheless
153 highly independent. As such, you can run various services with normal
154 configuration. The various vservers can't interact with each other and
155 can't interact with services in the main server.
157 This package contains the tools which are needed to work with VServers
158 having an old-style configuration.
162 util-vserver provides the components and a framework to setup virtual
163 servers. A virtual server runs inside a linux server. It is nevertheless
164 highly independent. As such, you can run various services with normal
165 configuration. The various vservers can't interact with each other and
166 can't interact with services in the main server.
168 This package contains header files and libraries which are needed to
169 develop VServer related applications.
173 %setup -q -n %name-%fullver
177 %configure --with-initrddir=%_initrddir --enable-release \
178 %{?_without_dietlibc:--disable-dietlibc} \
179 %{?_with_legacy:--enable-apis=NOLEGACY} \
180 --with-initscripts=sysv
182 %__make %{?_smp_mflags} all
183 %{!?_without_doc:%__make %{?_smp_mflags} doc}
187 rm -rf $RPM_BUILD_ROOT
188 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
190 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
192 MANIFEST_CONFIG='%config' \
193 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
194 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
202 rm -rf $RPM_BUILD_ROOT
206 test -d /vservers || mkdir -m0000 /vservers
207 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
209 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
210 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
211 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
213 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
217 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
220 %post lib -p /sbin/ldconfig
221 %postun lib -p /sbin/ldconfig
225 %chkconfig --add vservers-default
226 %chkconfig --add vprocunhide
227 %chkconfig --add util-vserver
232 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
234 test "$1" != 0 || %chkconfig --del vprocunhide
235 test "$1" != 0 || %chkconfig --del vservers-default
236 test "$1" != 0 || %chkconfig --del util-vserver
240 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
243 %triggerin build -- fedora-release, centos-release
250 test -r "$i" || continue
252 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
256 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
257 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
258 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
262 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
264 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
265 ln -s /vservers/.hash "$f"/00
267 %_sbindir/setattr --barrier /vservers/.hash || :
271 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
274 ## Temporary workaround to remove old v_* files; it will conflict
275 ## somehow with the -legacy package but can be fixed by reinstalling
277 ## TODO: remove me in the final .spec file
278 %define v_services httpd named portmap sendmail smb sshd xinetd gated
279 %triggerun sysv -- util-vserver-sysv < 0.30.198
280 for i in %v_services; do
281 %chkconfig --del v_$i || :
286 %chkconfig --add rebootmgr
287 %chkconfig --add vservers-legacy
289 for i in %v_services; do
290 %chkconfig --add v_$i
295 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
297 test "$1" != 0 || for i in %v_services; do
298 %chkconfig --del v_$i
301 test "$1" != 0 || %chkconfig --del rebootmgr
302 test "$1" != 0 || %chkconfig --del vservers-legacy
305 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
308 %files -f %name-base.list
309 %defattr(-,root,root,-)
310 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
311 %doc doc/*.html doc/*.css
315 %dir %confdefaultdir/apps
316 %dir %confdefaultdir/files
317 %dir %pkglibdir/defaults
318 %ghost %confdefaultdir/cachebase
319 %ghost %confdefaultdir/vdirbase
320 %ghost %confdefaultdir/run.rev
322 %dir %_localstatedir/cache/vservers
323 %dir %_localstatedir/run/vservers
324 %dir %_localstatedir/run/vservers.rev
325 %dir %_localstatedir/run/vshelper
328 %files lib -f %name-lib.list
329 %files sysv -f %name-sysv.list
332 %files core -f %name-core.list
333 %defattr(-,root,root,-)
337 %files build -f %name-build.list
338 %defattr(-,root,root,-)
339 %doc contrib/yum*.patch
340 %dir %confdir/.distributions
341 %dir %confdir/.distributions/*
342 %dir %confdir/.distributions/*/apt
343 %dir %confdir/.distributions/.common
344 %dir %confdir/.distributions/.common/pubkeys
345 %dir %confdefaultdir/apps/vunify
346 %dir %confdefaultdir/apps/vunify/hash
349 %files legacy -f %name-legacy.list
350 %defattr(-,root,root,-)
351 %dir %pkglibdir/legacy
354 %files devel -f %name-devel.list
355 %defattr(-,root,root,-)
356 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
357 %{!?_without_doc:%doc lib/apidoc/html}
361 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
363 - get rid of e2fsprogs requirement
365 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
366 - add --with legacy and --without doc switches
367 - add util-vserver initscript
369 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
370 - do not require 'xalan' anymore by default
371 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
372 - removed 'chattr' leftovers
373 - create the '/etc/vservers/.defaults/cachebase' symlink
374 - added /var/cache/vservers and the needed support
375 - set barrier attribute on /vservers/.pkg and /vservers/.hash
376 - added 'centos-release' to the list of packages in the copy-the-keys
378 - create '/vservers/.hash' and add initial configuration for it
380 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
384 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
387 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
389 - require the -lib subpackage by -devel
390 - copy GPG keys from /etc/pki/rpm-gpg/
392 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
393 - added patches to make yum work in chroot environments
396 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
397 - added some %%descriptions
398 - copy GPG keys from the system into the confdir
399 - buildrequire dietlibc-0.25
400 - BuildRequire beecrypt-devel
402 - use %%global instead of %%define
403 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
405 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
406 - updated BuildRequires:
407 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
408 - moved the v_* initscripts to legacy
409 - do not ship the /vservers directory itself; as it is immutable, the
410 extraction will fail else
412 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
413 - documented switches for 'rpmbuild'
415 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
416 - (re)added the MANIFEST_* variables which were lost some time ago;
417 this will preserve %%config files...
419 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
420 - use file-list for sysv scripts also
422 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
423 - added vprocunhide-service support
424 - added doxygen support
427 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
429 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
431 ## This package understands the following switches:
432 ## --without dietlibc ... disable usage of dietlibc
433 ## --with xalan ... require/use the xalan xslt processor
434 ## --without doc ... disable doc generation
435 ## --with legacy ... enable the legacy APIs
437 %global confdir %_sysconfdir/vservers
438 %global confdefaultdir %confdir/.defaults
439 %global pkglibdir %_libdir/%name
440 %global chkconfig /sbin/chkconfig
442 %global _localstatedir %_var
444 %global ver %( echo @VERSION@ | sed 's/-.*//' )
445 %global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
446 %global fullver @VERSION@
449 %{!?release_func:%global release_func() %1%{?dist}}
451 Summary: Linux virtual server utilities
454 Release: %release_func 1%subver
456 Group: System Environment/Base
457 URL: http://savannah.nongnu.org/projects/util-vserver/
458 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
459 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
460 BuildRoot: %_tmppath/%name-%version-%release-root
461 Requires: init(%name)
462 Requires: %name-core = %version-%release
463 Requires: %name-lib = %version-%release
464 Requires: diffutils mktemp sed
465 Provides: vserver = %version-%release
466 Obsoletes: vserver < %version
467 BuildRequires: mount vconfig gawk iproute iptables
468 BuildRequires: gcc-c++ wget which diffutils
469 BuildRequires: e2fsprogs-devel beecrypt-devel
470 BuildRequires: e2fsprogs
471 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
472 Requires(post): %name-core
473 Requires(pre): %pkglibdir
474 Requires(postun): %pkglibdir
475 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
476 %{?_with_xalan:BuildRequires: xalan-j}
479 Summary: Dynamic libraries for util-vserver
480 Group: System Environment/Libraries
483 Summary: The core-utilities for util-vserver
484 Group: Applications/System
488 Summary: Tools which can be used to build vservers
489 Group: Applications/System
490 Requires: rpm wget binutils tar
491 Requires: %name = %version-%release
492 Requires(pre): %confdir
493 Requires(postun): %confdir
494 Requires(post): %name-core
497 Summary: SysV-initscripts for vserver
498 Group: System Environment/Base
499 Provides: init(%name) = sysv
500 Requires: make diffutils
501 Requires: initscripts
502 Requires: %name = %version-%release
503 Requires(post): %chkconfig
504 Requires(preun): %chkconfig
505 Requires(pre): %_initrddir %pkglibdir
506 requires(postun): %_initrddir %pkglibdir
509 Summary: Legacy utilities for util-vserver
510 Group: Applications/System
511 Requires: %name = %version-%release
512 Requires(post): %chkconfig
513 Requires(preun): %chkconfig
514 Requires(pre): %_initrddir %pkglibdir
515 requires(postun): %_initrddir %pkglibdir
518 Summary: Header-files and libraries needed to develop vserver based applications
519 Group: Development/Libraries
521 Requires: %name-lib = %version-%release
525 util-vserver provides the components and a framework to setup virtual
526 servers. A virtual server runs inside a linux server. It is nevertheless
527 highly independent. As such, you can run various services with normal
528 configuration. The various vservers can't interact with each other and
529 can't interact with services in the main server.
531 This requires a special kernel supporting the new new_s_context and
532 set_ipv4root system call.
535 util-vserver provides the components and a framework to setup virtual
536 servers. A virtual server runs inside a linux server. It is nevertheless
537 highly independent. As such, you can run various services with normal
538 configuration. The various vservers can't interact with each other and
539 can't interact with services in the main server.
541 This package contains the shared libraries needed by all other
542 'util-vserver' subpackages.
545 util-vserver provides the components and a framework to setup virtual
546 servers. A virtual server runs inside a linux server. It is nevertheless
547 highly independent. As such, you can run various services with normal
548 configuration. The various vservers can't interact with each other and
549 can't interact with services in the main server.
551 This package contains utilities which are required to communicate with
552 the Linux-Vserver enabled kernel.
556 util-vserver provides the components and a framework to setup virtual
557 servers. A virtual server runs inside a linux server. It is nevertheless
558 highly independent. As such, you can run various services with normal
559 configuration. The various vservers can't interact with each other and
560 can't interact with services in the main server.
562 This package contains utilities which assist in building Vservers.
565 util-vserver provides the components and a framework to setup virtual
566 servers. A virtual server runs inside a linux server. It is nevertheless
567 highly independent. As such, you can run various services with normal
568 configuration. The various vservers can't interact with each other and
569 can't interact with services in the main server.
571 This package contains the SysV initscripts which start and stop
572 VServers and related tools.
576 util-vserver provides the components and a framework to setup virtual
577 servers. A virtual server runs inside a linux server. It is nevertheless
578 highly independent. As such, you can run various services with normal
579 configuration. The various vservers can't interact with each other and
580 can't interact with services in the main server.
582 This package contains the tools which are needed to work with VServers
583 having an old-style configuration.
587 util-vserver provides the components and a framework to setup virtual
588 servers. A virtual server runs inside a linux server. It is nevertheless
589 highly independent. As such, you can run various services with normal
590 configuration. The various vservers can't interact with each other and
591 can't interact with services in the main server.
593 This package contains header files and libraries which are needed to
594 develop VServer related applications.
598 %setup -q -n %name-%fullver
602 %configure --with-initrddir=%_initrddir --enable-release \
603 %{?_without_dietlibc:--disable-dietlibc} \
604 %{?_with_legacy:--enable-apis=NOLEGACY} \
605 --with-initscripts=sysv
607 %__make %{?_smp_mflags} all
608 %{!?_without_doc:%__make %{?_smp_mflags} doc}
612 rm -rf $RPM_BUILD_ROOT
613 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
615 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
617 MANIFEST_CONFIG='%config' \
618 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
619 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
627 rm -rf $RPM_BUILD_ROOT
631 test -d /vservers || mkdir -m0000 /vservers
632 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
634 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
635 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
636 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
638 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
642 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
645 %post lib -p /sbin/ldconfig
646 %postun lib -p /sbin/ldconfig
650 %chkconfig --add vservers-default
651 %chkconfig --add vprocunhide
652 %chkconfig --add util-vserver
657 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
659 test "$1" != 0 || %chkconfig --del vprocunhide
660 test "$1" != 0 || %chkconfig --del vservers-default
661 test "$1" != 0 || %chkconfig --del util-vserver
665 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
668 %triggerin build -- fedora-release, centos-release
675 test -r "$i" || continue
677 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
681 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
682 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
683 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
687 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
689 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
690 ln -s /vservers/.hash "$f"/00
692 %_sbindir/setattr --barrier /vservers/.hash || :
696 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
699 ## Temporary workaround to remove old v_* files; it will conflict
700 ## somehow with the -legacy package but can be fixed by reinstalling
702 ## TODO: remove me in the final .spec file
703 %define v_services httpd named portmap sendmail smb sshd xinetd gated
704 %triggerun sysv -- util-vserver-sysv < 0.30.198
705 for i in %v_services; do
706 %chkconfig --del v_$i || :
711 %chkconfig --add rebootmgr
712 %chkconfig --add vservers-legacy
714 for i in %v_services; do
715 %chkconfig --add v_$i
720 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
722 test "$1" != 0 || for i in %v_services; do
723 %chkconfig --del v_$i
726 test "$1" != 0 || %chkconfig --del rebootmgr
727 test "$1" != 0 || %chkconfig --del vservers-legacy
730 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
733 %files -f %name-base.list
734 %defattr(-,root,root,-)
735 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
736 %doc doc/*.html doc/*.css
740 %dir %confdefaultdir/apps
741 %dir %confdefaultdir/files
742 %dir %pkglibdir/defaults
743 %ghost %confdefaultdir/cachebase
744 %ghost %confdefaultdir/vdirbase
745 %ghost %confdefaultdir/run.rev
747 %dir %_localstatedir/cache/vservers
748 %dir %_localstatedir/run/vservers
749 %dir %_localstatedir/run/vservers.rev
750 %dir %_localstatedir/run/vshelper
753 %files lib -f %name-lib.list
754 %files sysv -f %name-sysv.list
757 %files core -f %name-core.list
758 %defattr(-,root,root,-)
762 %files build -f %name-build.list
763 %defattr(-,root,root,-)
764 %doc contrib/yum*.patch
765 %dir %confdir/.distributions
766 %dir %confdir/.distributions/*
767 %dir %confdir/.distributions/*/apt
768 %dir %confdir/.distributions/.common
769 %dir %confdir/.distributions/.common/pubkeys
770 %dir %confdefaultdir/apps/vunify
771 %dir %confdefaultdir/apps/vunify/hash
774 %files legacy -f %name-legacy.list
775 %defattr(-,root,root,-)
776 %dir %pkglibdir/legacy
779 %files devel -f %name-devel.list
780 %defattr(-,root,root,-)
781 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
782 %{!?_without_doc:%doc lib/apidoc/html}
786 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
788 - get rid of e2fsprogs requirement
790 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
791 - add --with legacy and --without doc switches
792 - add util-vserver initscript
794 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
795 - do not require 'xalan' anymore by default
796 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
797 - removed 'chattr' leftovers
798 - create the '/etc/vservers/.defaults/cachebase' symlink
799 - added /var/cache/vservers and the needed support
800 - set barrier attribute on /vservers/.pkg and /vservers/.hash
801 - added 'centos-release' to the list of packages in the copy-the-keys
803 - create '/vservers/.hash' and add initial configuration for it
805 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
809 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
812 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
814 - require the -lib subpackage by -devel
815 - copy GPG keys from /etc/pki/rpm-gpg/
817 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
818 - added patches to make yum work in chroot environments
821 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
822 - added some %%descriptions
823 - copy GPG keys from the system into the confdir
824 - buildrequire dietlibc-0.25
825 - BuildRequire beecrypt-devel
827 - use %%global instead of %%define
828 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
830 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
831 - updated BuildRequires:
832 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
833 - moved the v_* initscripts to legacy
834 - do not ship the /vservers directory itself; as it is immutable, the
835 extraction will fail else
837 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
838 - documented switches for 'rpmbuild'
840 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
841 - (re)added the MANIFEST_* variables which were lost some time ago;
842 this will preserve %%config files...
844 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
845 - use file-list for sysv scripts also
847 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
848 - added vprocunhide-service support
849 - added doxygen support
852 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
854 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
856 ## This package understands the following switches:
857 ## --without dietlibc ... disable usage of dietlibc
858 ## --with xalan ... require/use the xalan xslt processor
859 ## --without doc ... disable doc generation
860 ## --with legacy ... enable the legacy APIs
862 %global confdir %_sysconfdir/vservers
863 %global confdefaultdir %confdir/.defaults
864 %global pkglibdir %_libdir/%name
865 %global chkconfig /sbin/chkconfig
867 %global _localstatedir %_var
869 %global ver %( echo @VERSION@ | sed 's/-.*//' )
870 %global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
871 %global fullver @VERSION@
874 %{!?release_func:%global release_func() %1%{?dist}}
876 Summary: Linux virtual server utilities
879 Release: %release_func 1%subver
881 Group: System Environment/Base
882 URL: http://savannah.nongnu.org/projects/util-vserver/
883 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
884 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
885 BuildRoot: %_tmppath/%name-%version-%release-root
886 Requires: init(%name)
887 Requires: %name-core = %version-%release
888 Requires: %name-lib = %version-%release
889 Requires: diffutils mktemp sed
890 Provides: vserver = %version-%release
891 Obsoletes: vserver < %version
892 BuildRequires: mount vconfig gawk iproute iptables
893 BuildRequires: gcc-c++ wget which diffutils
894 BuildRequires: e2fsprogs-devel beecrypt-devel
895 BuildRequires: e2fsprogs
896 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
897 Requires(post): %name-core
898 Requires(pre): %pkglibdir
899 Requires(postun): %pkglibdir
900 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
901 %{?_with_xalan:BuildRequires: xalan-j}
904 Summary: Dynamic libraries for util-vserver
905 Group: System Environment/Libraries
908 Summary: The core-utilities for util-vserver
909 Group: Applications/System
913 Summary: Tools which can be used to build vservers
914 Group: Applications/System
915 Requires: rpm wget binutils tar
916 Requires: %name = %version-%release
917 Requires(pre): %confdir
918 Requires(postun): %confdir
919 Requires(post): %name-core
922 Summary: SysV-initscripts for vserver
923 Group: System Environment/Base
924 Provides: init(%name) = sysv
925 Requires: make diffutils
926 Requires: initscripts
927 Requires: %name = %version-%release
928 Requires(post): %chkconfig
929 Requires(preun): %chkconfig
930 Requires(pre): %_initrddir %pkglibdir
931 requires(postun): %_initrddir %pkglibdir
934 Summary: Legacy utilities for util-vserver
935 Group: Applications/System
936 Requires: %name = %version-%release
937 Requires(post): %chkconfig
938 Requires(preun): %chkconfig
939 Requires(pre): %_initrddir %pkglibdir
940 requires(postun): %_initrddir %pkglibdir
943 Summary: Header-files and libraries needed to develop vserver based applications
944 Group: Development/Libraries
946 Requires: %name-lib = %version-%release
950 util-vserver provides the components and a framework to setup virtual
951 servers. A virtual server runs inside a linux server. It is nevertheless
952 highly independent. As such, you can run various services with normal
953 configuration. The various vservers can't interact with each other and
954 can't interact with services in the main server.
956 This requires a special kernel supporting the new new_s_context and
957 set_ipv4root system call.
960 util-vserver provides the components and a framework to setup virtual
961 servers. A virtual server runs inside a linux server. It is nevertheless
962 highly independent. As such, you can run various services with normal
963 configuration. The various vservers can't interact with each other and
964 can't interact with services in the main server.
966 This package contains the shared libraries needed by all other
967 'util-vserver' subpackages.
970 util-vserver provides the components and a framework to setup virtual
971 servers. A virtual server runs inside a linux server. It is nevertheless
972 highly independent. As such, you can run various services with normal
973 configuration. The various vservers can't interact with each other and
974 can't interact with services in the main server.
976 This package contains utilities which are required to communicate with
977 the Linux-Vserver enabled kernel.
981 util-vserver provides the components and a framework to setup virtual
982 servers. A virtual server runs inside a linux server. It is nevertheless
983 highly independent. As such, you can run various services with normal
984 configuration. The various vservers can't interact with each other and
985 can't interact with services in the main server.
987 This package contains utilities which assist in building Vservers.
990 util-vserver provides the components and a framework to setup virtual
991 servers. A virtual server runs inside a linux server. It is nevertheless
992 highly independent. As such, you can run various services with normal
993 configuration. The various vservers can't interact with each other and
994 can't interact with services in the main server.
996 This package contains the SysV initscripts which start and stop
997 VServers and related tools.
1001 util-vserver provides the components and a framework to setup virtual
1002 servers. A virtual server runs inside a linux server. It is nevertheless
1003 highly independent. As such, you can run various services with normal
1004 configuration. The various vservers can't interact with each other and
1005 can't interact with services in the main server.
1007 This package contains the tools which are needed to work with VServers
1008 having an old-style configuration.
1012 util-vserver provides the components and a framework to setup virtual
1013 servers. A virtual server runs inside a linux server. It is nevertheless
1014 highly independent. As such, you can run various services with normal
1015 configuration. The various vservers can't interact with each other and
1016 can't interact with services in the main server.
1018 This package contains header files and libraries which are needed to
1019 develop VServer related applications.
1023 %setup -q -n %name-%fullver
1027 %configure --with-initrddir=%_initrddir --enable-release \
1028 %{?_without_dietlibc:--disable-dietlibc} \
1029 %{?_with_legacy:--enable-apis=NOLEGACY} \
1030 --with-initscripts=sysv
1032 %__make %{?_smp_mflags} all
1033 %{!?_without_doc:%__make %{?_smp_mflags} doc}
1037 rm -rf $RPM_BUILD_ROOT
1038 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
1040 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
1042 MANIFEST_CONFIG='%config' \
1043 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
1044 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
1052 rm -rf $RPM_BUILD_ROOT
1056 test -d /vservers || mkdir -m0000 /vservers
1057 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
1059 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
1060 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
1061 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
1063 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
1067 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
1070 %post lib -p /sbin/ldconfig
1071 %postun lib -p /sbin/ldconfig
1075 %chkconfig --add vservers-default
1076 %chkconfig --add vprocunhide
1077 %chkconfig --add util-vserver
1082 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
1084 test "$1" != 0 || %chkconfig --del vprocunhide
1085 test "$1" != 0 || %chkconfig --del vservers-default
1086 test "$1" != 0 || %chkconfig --del util-vserver
1090 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
1093 %triggerin build -- fedora-release, centos-release
1100 test -r "$i" || continue
1102 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
1103 cp -a "$i" "$target"
1106 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
1107 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
1108 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
1112 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
1114 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
1115 ln -s /vservers/.hash "$f"/00
1117 %_sbindir/setattr --barrier /vservers/.hash || :
1121 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
1124 ## Temporary workaround to remove old v_* files; it will conflict
1125 ## somehow with the -legacy package but can be fixed by reinstalling
1127 ## TODO: remove me in the final .spec file
1128 %define v_services httpd named portmap sendmail smb sshd xinetd gated
1129 %triggerun sysv -- util-vserver-sysv < 0.30.198
1130 for i in %v_services; do
1131 %chkconfig --del v_$i || :
1136 %chkconfig --add rebootmgr
1137 %chkconfig --add vservers-legacy
1139 for i in %v_services; do
1140 %chkconfig --add v_$i
1145 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
1147 test "$1" != 0 || for i in %v_services; do
1148 %chkconfig --del v_$i
1151 test "$1" != 0 || %chkconfig --del rebootmgr
1152 test "$1" != 0 || %chkconfig --del vservers-legacy
1155 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
1158 %files -f %name-base.list
1159 %defattr(-,root,root,-)
1160 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
1161 %doc doc/*.html doc/*.css
1164 %dir %confdefaultdir
1165 %dir %confdefaultdir/apps
1166 %dir %confdefaultdir/files
1167 %dir %pkglibdir/defaults
1168 %ghost %confdefaultdir/cachebase
1169 %ghost %confdefaultdir/vdirbase
1170 %ghost %confdefaultdir/run.rev
1172 %dir %_localstatedir/cache/vservers
1173 %dir %_localstatedir/run/vservers
1174 %dir %_localstatedir/run/vservers.rev
1175 %dir %_localstatedir/run/vshelper
1178 %files lib -f %name-lib.list
1179 %files sysv -f %name-sysv.list
1182 %files core -f %name-core.list
1183 %defattr(-,root,root,-)
1187 %files build -f %name-build.list
1188 %defattr(-,root,root,-)
1189 %doc contrib/yum*.patch
1190 %dir %confdir/.distributions
1191 %dir %confdir/.distributions/*
1192 %dir %confdir/.distributions/*/apt
1193 %dir %confdir/.distributions/.common
1194 %dir %confdir/.distributions/.common/pubkeys
1195 %dir %confdefaultdir/apps/vunify
1196 %dir %confdefaultdir/apps/vunify/hash
1199 %files legacy -f %name-legacy.list
1200 %defattr(-,root,root,-)
1201 %dir %pkglibdir/legacy
1204 %files devel -f %name-devel.list
1205 %defattr(-,root,root,-)
1206 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
1207 %{!?_without_doc:%doc lib/apidoc/html}
1211 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
1213 - get rid of e2fsprogs requirement
1215 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
1216 - add --with legacy and --without doc switches
1217 - add util-vserver initscript
1219 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
1220 - do not require 'xalan' anymore by default
1221 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
1222 - removed 'chattr' leftovers
1223 - create the '/etc/vservers/.defaults/cachebase' symlink
1224 - added /var/cache/vservers and the needed support
1225 - set barrier attribute on /vservers/.pkg and /vservers/.hash
1226 - added 'centos-release' to the list of packages in the copy-the-keys
1228 - create '/vservers/.hash' and add initial configuration for it
1230 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
1234 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
1237 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
1239 - require the -lib subpackage by -devel
1240 - copy GPG keys from /etc/pki/rpm-gpg/
1242 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
1243 - added patches to make yum work in chroot environments
1246 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
1247 - added some %%descriptions
1248 - copy GPG keys from the system into the confdir
1249 - buildrequire dietlibc-0.25
1250 - BuildRequire beecrypt-devel
1252 - use %%global instead of %%define
1253 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
1255 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
1256 - updated BuildRequires:
1257 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
1258 - moved the v_* initscripts to legacy
1259 - do not ship the /vservers directory itself; as it is immutable, the
1260 extraction will fail else
1262 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
1263 - documented switches for 'rpmbuild'
1265 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
1266 - (re)added the MANIFEST_* variables which were lost some time ago;
1267 this will preserve %%config files...
1269 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
1270 - use file-list for sysv scripts also
1272 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
1273 - added vprocunhide-service support
1274 - added doxygen support
1277 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
1279 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
1281 ## This package understands the following switches:
1282 ## --without dietlibc ... disable usage of dietlibc
1283 ## --with xalan ... require/use the xalan xslt processor
1284 ## --without doc ... disable doc generation
1285 ## --with legacy ... enable the legacy APIs
1287 %global confdir %_sysconfdir/vservers
1288 %global confdefaultdir %confdir/.defaults
1289 %global pkglibdir %_libdir/%name
1290 %global chkconfig /sbin/chkconfig
1292 %global _localstatedir %_var
1294 %global ver %( echo @VERSION@ | sed 's/-.*//' )
1295 %global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
1296 %global fullver @VERSION@
1299 %{!?release_func:%global release_func() %1%{?dist}}
1301 Summary: Linux virtual server utilities
1304 Release: %release_func 1%subver
1306 Group: System Environment/Base
1307 URL: http://savannah.nongnu.org/projects/util-vserver/
1308 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
1309 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
1310 BuildRoot: %_tmppath/%name-%version-%release-root
1311 Requires: init(%name)
1312 Requires: %name-core = %version-%release
1313 Requires: %name-lib = %version-%release
1314 Requires: diffutils mktemp sed
1315 Provides: vserver = %version-%release
1316 Obsoletes: vserver < %version
1317 BuildRequires: mount vconfig gawk iproute iptables
1318 BuildRequires: gcc-c++ wget which diffutils
1319 BuildRequires: e2fsprogs-devel beecrypt-devel
1320 BuildRequires: e2fsprogs
1321 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
1322 Requires(post): %name-core
1323 Requires(pre): %pkglibdir
1324 Requires(postun): %pkglibdir
1325 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
1326 %{?_with_xalan:BuildRequires: xalan-j}
1329 Summary: Dynamic libraries for util-vserver
1330 Group: System Environment/Libraries
1333 Summary: The core-utilities for util-vserver
1334 Group: Applications/System
1335 Requires: util-linux
1338 Summary: Tools which can be used to build vservers
1339 Group: Applications/System
1340 Requires: rpm wget binutils tar
1341 Requires: %name = %version-%release
1342 Requires(pre): %confdir
1343 Requires(postun): %confdir
1344 Requires(post): %name-core
1347 Summary: SysV-initscripts for vserver
1348 Group: System Environment/Base
1349 Provides: init(%name) = sysv
1350 Requires: make diffutils
1351 Requires: initscripts
1352 Requires: %name = %version-%release
1353 Requires(post): %chkconfig
1354 Requires(preun): %chkconfig
1355 Requires(pre): %_initrddir %pkglibdir
1356 requires(postun): %_initrddir %pkglibdir
1359 Summary: Legacy utilities for util-vserver
1360 Group: Applications/System
1361 Requires: %name = %version-%release
1362 Requires(post): %chkconfig
1363 Requires(preun): %chkconfig
1364 Requires(pre): %_initrddir %pkglibdir
1365 requires(postun): %_initrddir %pkglibdir
1368 Summary: Header-files and libraries needed to develop vserver based applications
1369 Group: Development/Libraries
1371 Requires: %name-lib = %version-%release
1375 util-vserver provides the components and a framework to setup virtual
1376 servers. A virtual server runs inside a linux server. It is nevertheless
1377 highly independent. As such, you can run various services with normal
1378 configuration. The various vservers can't interact with each other and
1379 can't interact with services in the main server.
1381 This requires a special kernel supporting the new new_s_context and
1382 set_ipv4root system call.
1385 util-vserver provides the components and a framework to setup virtual
1386 servers. A virtual server runs inside a linux server. It is nevertheless
1387 highly independent. As such, you can run various services with normal
1388 configuration. The various vservers can't interact with each other and
1389 can't interact with services in the main server.
1391 This package contains the shared libraries needed by all other
1392 'util-vserver' subpackages.
1395 util-vserver provides the components and a framework to setup virtual
1396 servers. A virtual server runs inside a linux server. It is nevertheless
1397 highly independent. As such, you can run various services with normal
1398 configuration. The various vservers can't interact with each other and
1399 can't interact with services in the main server.
1401 This package contains utilities which are required to communicate with
1402 the Linux-Vserver enabled kernel.
1406 util-vserver provides the components and a framework to setup virtual
1407 servers. A virtual server runs inside a linux server. It is nevertheless
1408 highly independent. As such, you can run various services with normal
1409 configuration. The various vservers can't interact with each other and
1410 can't interact with services in the main server.
1412 This package contains utilities which assist in building Vservers.
1415 util-vserver provides the components and a framework to setup virtual
1416 servers. A virtual server runs inside a linux server. It is nevertheless
1417 highly independent. As such, you can run various services with normal
1418 configuration. The various vservers can't interact with each other and
1419 can't interact with services in the main server.
1421 This package contains the SysV initscripts which start and stop
1422 VServers and related tools.
1426 util-vserver provides the components and a framework to setup virtual
1427 servers. A virtual server runs inside a linux server. It is nevertheless
1428 highly independent. As such, you can run various services with normal
1429 configuration. The various vservers can't interact with each other and
1430 can't interact with services in the main server.
1432 This package contains the tools which are needed to work with VServers
1433 having an old-style configuration.
1437 util-vserver provides the components and a framework to setup virtual
1438 servers. A virtual server runs inside a linux server. It is nevertheless
1439 highly independent. As such, you can run various services with normal
1440 configuration. The various vservers can't interact with each other and
1441 can't interact with services in the main server.
1443 This package contains header files and libraries which are needed to
1444 develop VServer related applications.
1448 %setup -q -n %name-%fullver
1452 %configure --with-initrddir=%_initrddir --enable-release \
1453 %{?_without_dietlibc:--disable-dietlibc} \
1454 %{?_with_legacy:--enable-apis=NOLEGACY} \
1455 --with-initscripts=sysv
1457 %__make %{?_smp_mflags} all
1458 %{!?_without_doc:%__make %{?_smp_mflags} doc}
1462 rm -rf $RPM_BUILD_ROOT
1463 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
1465 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
1467 MANIFEST_CONFIG='%config' \
1468 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
1469 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
1477 rm -rf $RPM_BUILD_ROOT
1481 test -d /vservers || mkdir -m0000 /vservers
1482 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
1484 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
1485 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
1486 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
1488 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
1492 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
1495 %post lib -p /sbin/ldconfig
1496 %postun lib -p /sbin/ldconfig
1500 %chkconfig --add vservers-default
1501 %chkconfig --add vprocunhide
1502 %chkconfig --add util-vserver
1507 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
1509 test "$1" != 0 || %chkconfig --del vprocunhide
1510 test "$1" != 0 || %chkconfig --del vservers-default
1511 test "$1" != 0 || %chkconfig --del util-vserver
1515 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
1518 %triggerin build -- fedora-release, centos-release
1525 test -r "$i" || continue
1527 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
1528 cp -a "$i" "$target"
1531 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
1532 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
1533 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
1537 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
1539 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
1540 ln -s /vservers/.hash "$f"/00
1542 %_sbindir/setattr --barrier /vservers/.hash || :
1546 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
1549 ## Temporary workaround to remove old v_* files; it will conflict
1550 ## somehow with the -legacy package but can be fixed by reinstalling
1552 ## TODO: remove me in the final .spec file
1553 %define v_services httpd named portmap sendmail smb sshd xinetd gated
1554 %triggerun sysv -- util-vserver-sysv < 0.30.198
1555 for i in %v_services; do
1556 %chkconfig --del v_$i || :
1561 %chkconfig --add rebootmgr
1562 %chkconfig --add vservers-legacy
1564 for i in %v_services; do
1565 %chkconfig --add v_$i
1570 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
1572 test "$1" != 0 || for i in %v_services; do
1573 %chkconfig --del v_$i
1576 test "$1" != 0 || %chkconfig --del rebootmgr
1577 test "$1" != 0 || %chkconfig --del vservers-legacy
1580 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
1583 %files -f %name-base.list
1584 %defattr(-,root,root,-)
1585 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
1586 %doc doc/*.html doc/*.css
1589 %dir %confdefaultdir
1590 %dir %confdefaultdir/apps
1591 %dir %confdefaultdir/files
1592 %dir %pkglibdir/defaults
1593 %ghost %confdefaultdir/cachebase
1594 %ghost %confdefaultdir/vdirbase
1595 %ghost %confdefaultdir/run.rev
1597 %dir %_localstatedir/cache/vservers
1598 %dir %_localstatedir/run/vservers
1599 %dir %_localstatedir/run/vservers.rev
1600 %dir %_localstatedir/run/vshelper
1603 %files lib -f %name-lib.list
1604 %files sysv -f %name-sysv.list
1607 %files core -f %name-core.list
1608 %defattr(-,root,root,-)
1612 %files build -f %name-build.list
1613 %defattr(-,root,root,-)
1614 %doc contrib/yum*.patch
1615 %dir %confdir/.distributions
1616 %dir %confdir/.distributions/*
1617 %dir %confdir/.distributions/*/apt
1618 %dir %confdir/.distributions/.common
1619 %dir %confdir/.distributions/.common/pubkeys
1620 %dir %confdefaultdir/apps/vunify
1621 %dir %confdefaultdir/apps/vunify/hash
1624 %files legacy -f %name-legacy.list
1625 %defattr(-,root,root,-)
1626 %dir %pkglibdir/legacy
1629 %files devel -f %name-devel.list
1630 %defattr(-,root,root,-)
1631 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
1632 %{!?_without_doc:%doc lib/apidoc/html}
1636 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
1638 - get rid of e2fsprogs requirement
1640 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
1641 - add --with legacy and --without doc switches
1642 - add util-vserver initscript
1644 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
1645 - do not require 'xalan' anymore by default
1646 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
1647 - removed 'chattr' leftovers
1648 - create the '/etc/vservers/.defaults/cachebase' symlink
1649 - added /var/cache/vservers and the needed support
1650 - set barrier attribute on /vservers/.pkg and /vservers/.hash
1651 - added 'centos-release' to the list of packages in the copy-the-keys
1653 - create '/vservers/.hash' and add initial configuration for it
1655 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
1659 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
1662 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
1664 - require the -lib subpackage by -devel
1665 - copy GPG keys from /etc/pki/rpm-gpg/
1667 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
1668 - added patches to make yum work in chroot environments
1671 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
1672 - added some %%descriptions
1673 - copy GPG keys from the system into the confdir
1674 - buildrequire dietlibc-0.25
1675 - BuildRequire beecrypt-devel
1677 - use %%global instead of %%define
1678 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
1680 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
1681 - updated BuildRequires:
1682 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
1683 - moved the v_* initscripts to legacy
1684 - do not ship the /vservers directory itself; as it is immutable, the
1685 extraction will fail else
1687 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
1688 - documented switches for 'rpmbuild'
1690 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
1691 - (re)added the MANIFEST_* variables which were lost some time ago;
1692 this will preserve %%config files...
1694 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
1695 - use file-list for sysv scripts also
1697 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
1698 - added vprocunhide-service support
1699 - added doxygen support
1702 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0