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
197 %if "%{?distroname}" != "fc4"
204 rm -rf $RPM_BUILD_ROOT
208 test -d /vservers || mkdir -m0000 /vservers
209 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
211 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
212 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
213 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
215 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
219 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
222 %post lib -p /sbin/ldconfig
223 %postun lib -p /sbin/ldconfig
227 %chkconfig --add vservers-default
228 %chkconfig --add vprocunhide
229 %chkconfig --add util-vserver
234 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
236 test "$1" != 0 || %chkconfig --del vprocunhide
237 test "$1" != 0 || %chkconfig --del vservers-default
238 test "$1" != 0 || %chkconfig --del util-vserver
242 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
245 %triggerin build -- fedora-release, centos-release
252 test -r "$i" || continue
254 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
258 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
259 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
260 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
264 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
266 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
267 ln -s /vservers/.hash "$f"/00
269 %_sbindir/setattr --barrier /vservers/.hash || :
273 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
276 ## Temporary workaround to remove old v_* files; it will conflict
277 ## somehow with the -legacy package but can be fixed by reinstalling
279 ## TODO: remove me in the final .spec file
280 %define v_services httpd named portmap sendmail smb sshd xinetd gated
281 %triggerun sysv -- util-vserver-sysv < 0.30.198
282 for i in %v_services; do
283 %chkconfig --del v_$i || :
288 %chkconfig --add rebootmgr
289 %chkconfig --add vservers-legacy
291 for i in %v_services; do
292 %chkconfig --add v_$i
297 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
299 test "$1" != 0 || for i in %v_services; do
300 %chkconfig --del v_$i
303 test "$1" != 0 || %chkconfig --del rebootmgr
304 test "$1" != 0 || %chkconfig --del vservers-legacy
307 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
310 %files -f %name-base.list
311 %defattr(-,root,root,-)
312 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
313 %doc doc/*.html doc/*.css
317 %dir %confdefaultdir/apps
318 %dir %confdefaultdir/files
319 %dir %pkglibdir/defaults
320 %ghost %confdefaultdir/cachebase
321 %ghost %confdefaultdir/vdirbase
322 %ghost %confdefaultdir/run.rev
324 %dir %_localstatedir/cache/vservers
325 %dir %_localstatedir/run/vservers
326 %dir %_localstatedir/run/vservers.rev
327 %dir %_localstatedir/run/vshelper
330 %files lib -f %name-lib.list
331 %files sysv -f %name-sysv.list
334 %files core -f %name-core.list
335 %defattr(-,root,root,-)
339 %files build -f %name-build.list
340 %defattr(-,root,root,-)
341 %doc contrib/yum*.patch
342 %dir %confdir/.distributions
343 %dir %confdir/.distributions/*
344 %dir %confdir/.distributions/*/apt
345 %dir %confdir/.distributions/.common
346 %dir %confdir/.distributions/.common/pubkeys
347 %dir %confdefaultdir/apps/vunify
348 %dir %confdefaultdir/apps/vunify/hash
351 %files legacy -f %name-legacy.list
352 %defattr(-,root,root,-)
353 %dir %pkglibdir/legacy
356 %files devel -f %name-devel.list
357 %defattr(-,root,root,-)
358 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
359 %{!?_without_doc:%doc lib/apidoc/html}
363 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
365 - get rid of e2fsprogs requirement
367 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
368 - add --with legacy and --without doc switches
369 - add util-vserver initscript
371 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
372 - do not require 'xalan' anymore by default
373 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
374 - removed 'chattr' leftovers
375 - create the '/etc/vservers/.defaults/cachebase' symlink
376 - added /var/cache/vservers and the needed support
377 - set barrier attribute on /vservers/.pkg and /vservers/.hash
378 - added 'centos-release' to the list of packages in the copy-the-keys
380 - create '/vservers/.hash' and add initial configuration for it
382 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
386 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
389 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
391 - require the -lib subpackage by -devel
392 - copy GPG keys from /etc/pki/rpm-gpg/
394 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
395 - added patches to make yum work in chroot environments
398 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
399 - added some %%descriptions
400 - copy GPG keys from the system into the confdir
401 - buildrequire dietlibc-0.25
402 - BuildRequire beecrypt-devel
404 - use %%global instead of %%define
405 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
407 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
408 - updated BuildRequires:
409 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
410 - moved the v_* initscripts to legacy
411 - do not ship the /vservers directory itself; as it is immutable, the
412 extraction will fail else
414 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
415 - documented switches for 'rpmbuild'
417 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
418 - (re)added the MANIFEST_* variables which were lost some time ago;
419 this will preserve %%config files...
421 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
422 - use file-list for sysv scripts also
424 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
425 - added vprocunhide-service support
426 - added doxygen support
429 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
431 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
433 ## This package understands the following switches:
434 ## --without dietlibc ... disable usage of dietlibc
435 ## --with xalan ... require/use the xalan xslt processor
436 ## --without doc ... disable doc generation
437 ## --with legacy ... enable the legacy APIs
439 %global confdir %_sysconfdir/vservers
440 %global confdefaultdir %confdir/.defaults
441 %global pkglibdir %_libdir/%name
442 %global chkconfig /sbin/chkconfig
444 %global _localstatedir %_var
446 %global ver %( echo @VERSION@ | sed 's/-.*//' )
447 %global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
448 %global fullver @VERSION@
451 %{!?release_func:%global release_func() %1%{?dist}}
453 Summary: Linux virtual server utilities
456 Release: %release_func 1%subver
458 Group: System Environment/Base
459 URL: http://savannah.nongnu.org/projects/util-vserver/
460 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
461 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
462 BuildRoot: %_tmppath/%name-%version-%release-root
463 Requires: init(%name)
464 Requires: %name-core = %version-%release
465 Requires: %name-lib = %version-%release
466 Requires: diffutils mktemp sed
467 Provides: vserver = %version-%release
468 Obsoletes: vserver < %version
469 BuildRequires: mount vconfig gawk iproute iptables
470 BuildRequires: gcc-c++ wget which diffutils
471 BuildRequires: e2fsprogs-devel beecrypt-devel
472 BuildRequires: e2fsprogs
473 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
474 Requires(post): %name-core
475 Requires(pre): %pkglibdir
476 Requires(postun): %pkglibdir
477 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
478 %{?_with_xalan:BuildRequires: xalan-j}
481 Summary: Dynamic libraries for util-vserver
482 Group: System Environment/Libraries
485 Summary: The core-utilities for util-vserver
486 Group: Applications/System
490 Summary: Tools which can be used to build vservers
491 Group: Applications/System
492 Requires: rpm wget binutils tar
493 Requires: %name = %version-%release
494 Requires(pre): %confdir
495 Requires(postun): %confdir
496 Requires(post): %name-core
499 Summary: SysV-initscripts for vserver
500 Group: System Environment/Base
501 Provides: init(%name) = sysv
502 Requires: make diffutils
503 Requires: initscripts
504 Requires: %name = %version-%release
505 Requires(post): %chkconfig
506 Requires(preun): %chkconfig
507 Requires(pre): %_initrddir %pkglibdir
508 requires(postun): %_initrddir %pkglibdir
511 Summary: Legacy utilities for util-vserver
512 Group: Applications/System
513 Requires: %name = %version-%release
514 Requires(post): %chkconfig
515 Requires(preun): %chkconfig
516 Requires(pre): %_initrddir %pkglibdir
517 requires(postun): %_initrddir %pkglibdir
520 Summary: Header-files and libraries needed to develop vserver based applications
521 Group: Development/Libraries
523 Requires: %name-lib = %version-%release
527 util-vserver provides the components and a framework to setup virtual
528 servers. A virtual server runs inside a linux server. It is nevertheless
529 highly independent. As such, you can run various services with normal
530 configuration. The various vservers can't interact with each other and
531 can't interact with services in the main server.
533 This requires a special kernel supporting the new new_s_context and
534 set_ipv4root system call.
537 util-vserver provides the components and a framework to setup virtual
538 servers. A virtual server runs inside a linux server. It is nevertheless
539 highly independent. As such, you can run various services with normal
540 configuration. The various vservers can't interact with each other and
541 can't interact with services in the main server.
543 This package contains the shared libraries needed by all other
544 'util-vserver' subpackages.
547 util-vserver provides the components and a framework to setup virtual
548 servers. A virtual server runs inside a linux server. It is nevertheless
549 highly independent. As such, you can run various services with normal
550 configuration. The various vservers can't interact with each other and
551 can't interact with services in the main server.
553 This package contains utilities which are required to communicate with
554 the Linux-Vserver enabled kernel.
558 util-vserver provides the components and a framework to setup virtual
559 servers. A virtual server runs inside a linux server. It is nevertheless
560 highly independent. As such, you can run various services with normal
561 configuration. The various vservers can't interact with each other and
562 can't interact with services in the main server.
564 This package contains utilities which assist in building Vservers.
567 util-vserver provides the components and a framework to setup virtual
568 servers. A virtual server runs inside a linux server. It is nevertheless
569 highly independent. As such, you can run various services with normal
570 configuration. The various vservers can't interact with each other and
571 can't interact with services in the main server.
573 This package contains the SysV initscripts which start and stop
574 VServers and related tools.
578 util-vserver provides the components and a framework to setup virtual
579 servers. A virtual server runs inside a linux server. It is nevertheless
580 highly independent. As such, you can run various services with normal
581 configuration. The various vservers can't interact with each other and
582 can't interact with services in the main server.
584 This package contains the tools which are needed to work with VServers
585 having an old-style configuration.
589 util-vserver provides the components and a framework to setup virtual
590 servers. A virtual server runs inside a linux server. It is nevertheless
591 highly independent. As such, you can run various services with normal
592 configuration. The various vservers can't interact with each other and
593 can't interact with services in the main server.
595 This package contains header files and libraries which are needed to
596 develop VServer related applications.
600 %setup -q -n %name-%fullver
604 %configure --with-initrddir=%_initrddir --enable-release \
605 %{?_without_dietlibc:--disable-dietlibc} \
606 %{?_with_legacy:--enable-apis=NOLEGACY} \
607 --with-initscripts=sysv
609 %__make %{?_smp_mflags} all
610 %{!?_without_doc:%__make %{?_smp_mflags} doc}
614 rm -rf $RPM_BUILD_ROOT
615 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
617 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
619 MANIFEST_CONFIG='%config' \
620 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
621 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
629 rm -rf $RPM_BUILD_ROOT
633 test -d /vservers || mkdir -m0000 /vservers
634 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
636 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
637 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
638 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
640 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
644 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
647 %post lib -p /sbin/ldconfig
648 %postun lib -p /sbin/ldconfig
652 %chkconfig --add vservers-default
653 %chkconfig --add vprocunhide
654 %chkconfig --add util-vserver
659 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
661 test "$1" != 0 || %chkconfig --del vprocunhide
662 test "$1" != 0 || %chkconfig --del vservers-default
663 test "$1" != 0 || %chkconfig --del util-vserver
667 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
670 %triggerin build -- fedora-release, centos-release
677 test -r "$i" || continue
679 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
683 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
684 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
685 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
689 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
691 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
692 ln -s /vservers/.hash "$f"/00
694 %_sbindir/setattr --barrier /vservers/.hash || :
698 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
701 ## Temporary workaround to remove old v_* files; it will conflict
702 ## somehow with the -legacy package but can be fixed by reinstalling
704 ## TODO: remove me in the final .spec file
705 %define v_services httpd named portmap sendmail smb sshd xinetd gated
706 %triggerun sysv -- util-vserver-sysv < 0.30.198
707 for i in %v_services; do
708 %chkconfig --del v_$i || :
713 %chkconfig --add rebootmgr
714 %chkconfig --add vservers-legacy
716 for i in %v_services; do
717 %chkconfig --add v_$i
722 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
724 test "$1" != 0 || for i in %v_services; do
725 %chkconfig --del v_$i
728 test "$1" != 0 || %chkconfig --del rebootmgr
729 test "$1" != 0 || %chkconfig --del vservers-legacy
732 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
735 %files -f %name-base.list
736 %defattr(-,root,root,-)
737 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
738 %doc doc/*.html doc/*.css
742 %dir %confdefaultdir/apps
743 %dir %confdefaultdir/files
744 %dir %pkglibdir/defaults
745 %ghost %confdefaultdir/cachebase
746 %ghost %confdefaultdir/vdirbase
747 %ghost %confdefaultdir/run.rev
749 %dir %_localstatedir/cache/vservers
750 %dir %_localstatedir/run/vservers
751 %dir %_localstatedir/run/vservers.rev
752 %dir %_localstatedir/run/vshelper
755 %files lib -f %name-lib.list
756 %files sysv -f %name-sysv.list
759 %files core -f %name-core.list
760 %defattr(-,root,root,-)
764 %files build -f %name-build.list
765 %defattr(-,root,root,-)
766 %doc contrib/yum*.patch
767 %dir %confdir/.distributions
768 %dir %confdir/.distributions/*
769 %dir %confdir/.distributions/*/apt
770 %dir %confdir/.distributions/.common
771 %dir %confdir/.distributions/.common/pubkeys
772 %dir %confdefaultdir/apps/vunify
773 %dir %confdefaultdir/apps/vunify/hash
776 %files legacy -f %name-legacy.list
777 %defattr(-,root,root,-)
778 %dir %pkglibdir/legacy
781 %files devel -f %name-devel.list
782 %defattr(-,root,root,-)
783 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
784 %{!?_without_doc:%doc lib/apidoc/html}
788 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
790 - get rid of e2fsprogs requirement
792 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
793 - add --with legacy and --without doc switches
794 - add util-vserver initscript
796 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
797 - do not require 'xalan' anymore by default
798 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
799 - removed 'chattr' leftovers
800 - create the '/etc/vservers/.defaults/cachebase' symlink
801 - added /var/cache/vservers and the needed support
802 - set barrier attribute on /vservers/.pkg and /vservers/.hash
803 - added 'centos-release' to the list of packages in the copy-the-keys
805 - create '/vservers/.hash' and add initial configuration for it
807 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
811 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
814 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
816 - require the -lib subpackage by -devel
817 - copy GPG keys from /etc/pki/rpm-gpg/
819 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
820 - added patches to make yum work in chroot environments
823 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
824 - added some %%descriptions
825 - copy GPG keys from the system into the confdir
826 - buildrequire dietlibc-0.25
827 - BuildRequire beecrypt-devel
829 - use %%global instead of %%define
830 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
832 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
833 - updated BuildRequires:
834 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
835 - moved the v_* initscripts to legacy
836 - do not ship the /vservers directory itself; as it is immutable, the
837 extraction will fail else
839 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
840 - documented switches for 'rpmbuild'
842 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
843 - (re)added the MANIFEST_* variables which were lost some time ago;
844 this will preserve %%config files...
846 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
847 - use file-list for sysv scripts also
849 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
850 - added vprocunhide-service support
851 - added doxygen support
854 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
856 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
858 ## This package understands the following switches:
859 ## --without dietlibc ... disable usage of dietlibc
860 ## --with xalan ... require/use the xalan xslt processor
861 ## --without doc ... disable doc generation
862 ## --with legacy ... enable the legacy APIs
864 %global confdir %_sysconfdir/vservers
865 %global confdefaultdir %confdir/.defaults
866 %global pkglibdir %_libdir/%name
867 %global chkconfig /sbin/chkconfig
869 %global _localstatedir %_var
871 %global ver %( echo @VERSION@ | sed 's/-.*//' )
872 %global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
873 %global fullver @VERSION@
876 %{!?release_func:%global release_func() %1%{?dist}}
878 Summary: Linux virtual server utilities
881 Release: %release_func 1%subver
883 Group: System Environment/Base
884 URL: http://savannah.nongnu.org/projects/util-vserver/
885 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
886 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
887 BuildRoot: %_tmppath/%name-%version-%release-root
888 Requires: init(%name)
889 Requires: %name-core = %version-%release
890 Requires: %name-lib = %version-%release
891 Requires: diffutils mktemp sed
892 Provides: vserver = %version-%release
893 Obsoletes: vserver < %version
894 BuildRequires: mount vconfig gawk iproute iptables
895 BuildRequires: gcc-c++ wget which diffutils
896 BuildRequires: e2fsprogs-devel beecrypt-devel
897 BuildRequires: e2fsprogs
898 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
899 Requires(post): %name-core
900 Requires(pre): %pkglibdir
901 Requires(postun): %pkglibdir
902 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
903 %{?_with_xalan:BuildRequires: xalan-j}
906 Summary: Dynamic libraries for util-vserver
907 Group: System Environment/Libraries
910 Summary: The core-utilities for util-vserver
911 Group: Applications/System
915 Summary: Tools which can be used to build vservers
916 Group: Applications/System
917 Requires: rpm wget binutils tar
918 Requires: %name = %version-%release
919 Requires(pre): %confdir
920 Requires(postun): %confdir
921 Requires(post): %name-core
924 Summary: SysV-initscripts for vserver
925 Group: System Environment/Base
926 Provides: init(%name) = sysv
927 Requires: make diffutils
928 Requires: initscripts
929 Requires: %name = %version-%release
930 Requires(post): %chkconfig
931 Requires(preun): %chkconfig
932 Requires(pre): %_initrddir %pkglibdir
933 requires(postun): %_initrddir %pkglibdir
936 Summary: Legacy utilities for util-vserver
937 Group: Applications/System
938 Requires: %name = %version-%release
939 Requires(post): %chkconfig
940 Requires(preun): %chkconfig
941 Requires(pre): %_initrddir %pkglibdir
942 requires(postun): %_initrddir %pkglibdir
945 Summary: Header-files and libraries needed to develop vserver based applications
946 Group: Development/Libraries
948 Requires: %name-lib = %version-%release
952 util-vserver provides the components and a framework to setup virtual
953 servers. A virtual server runs inside a linux server. It is nevertheless
954 highly independent. As such, you can run various services with normal
955 configuration. The various vservers can't interact with each other and
956 can't interact with services in the main server.
958 This requires a special kernel supporting the new new_s_context and
959 set_ipv4root system call.
962 util-vserver provides the components and a framework to setup virtual
963 servers. A virtual server runs inside a linux server. It is nevertheless
964 highly independent. As such, you can run various services with normal
965 configuration. The various vservers can't interact with each other and
966 can't interact with services in the main server.
968 This package contains the shared libraries needed by all other
969 'util-vserver' subpackages.
972 util-vserver provides the components and a framework to setup virtual
973 servers. A virtual server runs inside a linux server. It is nevertheless
974 highly independent. As such, you can run various services with normal
975 configuration. The various vservers can't interact with each other and
976 can't interact with services in the main server.
978 This package contains utilities which are required to communicate with
979 the Linux-Vserver enabled kernel.
983 util-vserver provides the components and a framework to setup virtual
984 servers. A virtual server runs inside a linux server. It is nevertheless
985 highly independent. As such, you can run various services with normal
986 configuration. The various vservers can't interact with each other and
987 can't interact with services in the main server.
989 This package contains utilities which assist in building Vservers.
992 util-vserver provides the components and a framework to setup virtual
993 servers. A virtual server runs inside a linux server. It is nevertheless
994 highly independent. As such, you can run various services with normal
995 configuration. The various vservers can't interact with each other and
996 can't interact with services in the main server.
998 This package contains the SysV initscripts which start and stop
999 VServers and related tools.
1003 util-vserver provides the components and a framework to setup virtual
1004 servers. A virtual server runs inside a linux server. It is nevertheless
1005 highly independent. As such, you can run various services with normal
1006 configuration. The various vservers can't interact with each other and
1007 can't interact with services in the main server.
1009 This package contains the tools which are needed to work with VServers
1010 having an old-style configuration.
1014 util-vserver provides the components and a framework to setup virtual
1015 servers. A virtual server runs inside a linux server. It is nevertheless
1016 highly independent. As such, you can run various services with normal
1017 configuration. The various vservers can't interact with each other and
1018 can't interact with services in the main server.
1020 This package contains header files and libraries which are needed to
1021 develop VServer related applications.
1025 %setup -q -n %name-%fullver
1029 %configure --with-initrddir=%_initrddir --enable-release \
1030 %{?_without_dietlibc:--disable-dietlibc} \
1031 %{?_with_legacy:--enable-apis=NOLEGACY} \
1032 --with-initscripts=sysv
1034 %__make %{?_smp_mflags} all
1035 %{!?_without_doc:%__make %{?_smp_mflags} doc}
1039 rm -rf $RPM_BUILD_ROOT
1040 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
1042 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
1044 MANIFEST_CONFIG='%config' \
1045 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
1046 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
1054 rm -rf $RPM_BUILD_ROOT
1058 test -d /vservers || mkdir -m0000 /vservers
1059 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
1061 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
1062 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
1063 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
1065 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
1069 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
1072 %post lib -p /sbin/ldconfig
1073 %postun lib -p /sbin/ldconfig
1077 %chkconfig --add vservers-default
1078 %chkconfig --add vprocunhide
1079 %chkconfig --add util-vserver
1084 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
1086 test "$1" != 0 || %chkconfig --del vprocunhide
1087 test "$1" != 0 || %chkconfig --del vservers-default
1088 test "$1" != 0 || %chkconfig --del util-vserver
1092 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
1095 %triggerin build -- fedora-release, centos-release
1102 test -r "$i" || continue
1104 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
1105 cp -a "$i" "$target"
1108 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
1109 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
1110 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
1114 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
1116 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
1117 ln -s /vservers/.hash "$f"/00
1119 %_sbindir/setattr --barrier /vservers/.hash || :
1123 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
1126 ## Temporary workaround to remove old v_* files; it will conflict
1127 ## somehow with the -legacy package but can be fixed by reinstalling
1129 ## TODO: remove me in the final .spec file
1130 %define v_services httpd named portmap sendmail smb sshd xinetd gated
1131 %triggerun sysv -- util-vserver-sysv < 0.30.198
1132 for i in %v_services; do
1133 %chkconfig --del v_$i || :
1138 %chkconfig --add rebootmgr
1139 %chkconfig --add vservers-legacy
1141 for i in %v_services; do
1142 %chkconfig --add v_$i
1147 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
1149 test "$1" != 0 || for i in %v_services; do
1150 %chkconfig --del v_$i
1153 test "$1" != 0 || %chkconfig --del rebootmgr
1154 test "$1" != 0 || %chkconfig --del vservers-legacy
1157 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
1160 %files -f %name-base.list
1161 %defattr(-,root,root,-)
1162 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
1163 %doc doc/*.html doc/*.css
1166 %dir %confdefaultdir
1167 %dir %confdefaultdir/apps
1168 %dir %confdefaultdir/files
1169 %dir %pkglibdir/defaults
1170 %ghost %confdefaultdir/cachebase
1171 %ghost %confdefaultdir/vdirbase
1172 %ghost %confdefaultdir/run.rev
1174 %dir %_localstatedir/cache/vservers
1175 %dir %_localstatedir/run/vservers
1176 %dir %_localstatedir/run/vservers.rev
1177 %dir %_localstatedir/run/vshelper
1180 %files lib -f %name-lib.list
1181 %files sysv -f %name-sysv.list
1184 %files core -f %name-core.list
1185 %defattr(-,root,root,-)
1189 %files build -f %name-build.list
1190 %defattr(-,root,root,-)
1191 %doc contrib/yum*.patch
1192 %dir %confdir/.distributions
1193 %dir %confdir/.distributions/*
1194 %dir %confdir/.distributions/*/apt
1195 %dir %confdir/.distributions/.common
1196 %dir %confdir/.distributions/.common/pubkeys
1197 %dir %confdefaultdir/apps/vunify
1198 %dir %confdefaultdir/apps/vunify/hash
1201 %files legacy -f %name-legacy.list
1202 %defattr(-,root,root,-)
1203 %dir %pkglibdir/legacy
1206 %files devel -f %name-devel.list
1207 %defattr(-,root,root,-)
1208 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
1209 %{!?_without_doc:%doc lib/apidoc/html}
1213 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
1215 - get rid of e2fsprogs requirement
1217 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
1218 - add --with legacy and --without doc switches
1219 - add util-vserver initscript
1221 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
1222 - do not require 'xalan' anymore by default
1223 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
1224 - removed 'chattr' leftovers
1225 - create the '/etc/vservers/.defaults/cachebase' symlink
1226 - added /var/cache/vservers and the needed support
1227 - set barrier attribute on /vservers/.pkg and /vservers/.hash
1228 - added 'centos-release' to the list of packages in the copy-the-keys
1230 - create '/vservers/.hash' and add initial configuration for it
1232 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
1236 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
1239 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
1241 - require the -lib subpackage by -devel
1242 - copy GPG keys from /etc/pki/rpm-gpg/
1244 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
1245 - added patches to make yum work in chroot environments
1248 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
1249 - added some %%descriptions
1250 - copy GPG keys from the system into the confdir
1251 - buildrequire dietlibc-0.25
1252 - BuildRequire beecrypt-devel
1254 - use %%global instead of %%define
1255 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
1257 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
1258 - updated BuildRequires:
1259 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
1260 - moved the v_* initscripts to legacy
1261 - do not ship the /vservers directory itself; as it is immutable, the
1262 extraction will fail else
1264 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
1265 - documented switches for 'rpmbuild'
1267 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
1268 - (re)added the MANIFEST_* variables which were lost some time ago;
1269 this will preserve %%config files...
1271 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
1272 - use file-list for sysv scripts also
1274 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
1275 - added vprocunhide-service support
1276 - added doxygen support
1279 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0
1281 # $Id: util-vserver.spec.in 2626 2007-10-16 00:27:58Z dhozac $
1283 ## This package understands the following switches:
1284 ## --without dietlibc ... disable usage of dietlibc
1285 ## --with xalan ... require/use the xalan xslt processor
1286 ## --without doc ... disable doc generation
1287 ## --with legacy ... enable the legacy APIs
1289 %global confdir %_sysconfdir/vservers
1290 %global confdefaultdir %confdir/.defaults
1291 %global pkglibdir %_libdir/%name
1292 %global chkconfig /sbin/chkconfig
1294 %global _localstatedir %_var
1296 %global ver %( echo @VERSION@ | sed 's/-.*//' )
1297 %global subver %( s=`echo @VERSION@ | grep -- - | sed 's/.*-/./'`; echo ${s:-.1} )
1298 %global fullver @VERSION@
1301 %{!?release_func:%global release_func() %1%{?dist}}
1303 Summary: Linux virtual server utilities
1306 Release: %release_func 1%subver
1308 Group: System Environment/Base
1309 URL: http://savannah.nongnu.org/projects/util-vserver/
1310 Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2
1311 #Source1: http://ftp.linux-vserver.org/pub/utils/util-vserver/%name-%fullver.tar.bz2.asc
1312 BuildRoot: %_tmppath/%name-%version-%release-root
1313 Requires: init(%name)
1314 Requires: %name-core = %version-%release
1315 Requires: %name-lib = %version-%release
1316 Requires: diffutils mktemp sed
1317 Provides: vserver = %version-%release
1318 Obsoletes: vserver < %version
1319 BuildRequires: mount vconfig gawk iproute iptables
1320 BuildRequires: gcc-c++ wget which diffutils
1321 BuildRequires: e2fsprogs-devel beecrypt-devel
1322 BuildRequires: e2fsprogs
1323 %{!?_without_doc:BuildRequires: doxygen tetex-latex}
1324 Requires(post): %name-core
1325 Requires(pre): %pkglibdir
1326 Requires(postun): %pkglibdir
1327 %{!?_without_dietlibc:BuildRequires: dietlibc >= 0:0.25}
1328 %{?_with_xalan:BuildRequires: xalan-j}
1331 Summary: Dynamic libraries for util-vserver
1332 Group: System Environment/Libraries
1335 Summary: The core-utilities for util-vserver
1336 Group: Applications/System
1337 Requires: util-linux
1340 Summary: Tools which can be used to build vservers
1341 Group: Applications/System
1342 Requires: rpm wget binutils tar
1343 Requires: %name = %version-%release
1344 Requires(pre): %confdir
1345 Requires(postun): %confdir
1346 Requires(post): %name-core
1349 Summary: SysV-initscripts for vserver
1350 Group: System Environment/Base
1351 Provides: init(%name) = sysv
1352 Requires: make diffutils
1353 Requires: initscripts
1354 Requires: %name = %version-%release
1355 Requires(post): %chkconfig
1356 Requires(preun): %chkconfig
1357 Requires(pre): %_initrddir %pkglibdir
1358 requires(postun): %_initrddir %pkglibdir
1361 Summary: Legacy utilities for util-vserver
1362 Group: Applications/System
1363 Requires: %name = %version-%release
1364 Requires(post): %chkconfig
1365 Requires(preun): %chkconfig
1366 Requires(pre): %_initrddir %pkglibdir
1367 requires(postun): %_initrddir %pkglibdir
1370 Summary: Header-files and libraries needed to develop vserver based applications
1371 Group: Development/Libraries
1373 Requires: %name-lib = %version-%release
1377 util-vserver provides the components and a framework to setup virtual
1378 servers. A virtual server runs inside a linux server. It is nevertheless
1379 highly independent. As such, you can run various services with normal
1380 configuration. The various vservers can't interact with each other and
1381 can't interact with services in the main server.
1383 This requires a special kernel supporting the new new_s_context and
1384 set_ipv4root system call.
1387 util-vserver provides the components and a framework to setup virtual
1388 servers. A virtual server runs inside a linux server. It is nevertheless
1389 highly independent. As such, you can run various services with normal
1390 configuration. The various vservers can't interact with each other and
1391 can't interact with services in the main server.
1393 This package contains the shared libraries needed by all other
1394 'util-vserver' subpackages.
1397 util-vserver provides the components and a framework to setup virtual
1398 servers. A virtual server runs inside a linux server. It is nevertheless
1399 highly independent. As such, you can run various services with normal
1400 configuration. The various vservers can't interact with each other and
1401 can't interact with services in the main server.
1403 This package contains utilities which are required to communicate with
1404 the Linux-Vserver enabled kernel.
1408 util-vserver provides the components and a framework to setup virtual
1409 servers. A virtual server runs inside a linux server. It is nevertheless
1410 highly independent. As such, you can run various services with normal
1411 configuration. The various vservers can't interact with each other and
1412 can't interact with services in the main server.
1414 This package contains utilities which assist in building Vservers.
1417 util-vserver provides the components and a framework to setup virtual
1418 servers. A virtual server runs inside a linux server. It is nevertheless
1419 highly independent. As such, you can run various services with normal
1420 configuration. The various vservers can't interact with each other and
1421 can't interact with services in the main server.
1423 This package contains the SysV initscripts which start and stop
1424 VServers and related tools.
1428 util-vserver provides the components and a framework to setup virtual
1429 servers. A virtual server runs inside a linux server. It is nevertheless
1430 highly independent. As such, you can run various services with normal
1431 configuration. The various vservers can't interact with each other and
1432 can't interact with services in the main server.
1434 This package contains the tools which are needed to work with VServers
1435 having an old-style configuration.
1439 util-vserver provides the components and a framework to setup virtual
1440 servers. A virtual server runs inside a linux server. It is nevertheless
1441 highly independent. As such, you can run various services with normal
1442 configuration. The various vservers can't interact with each other and
1443 can't interact with services in the main server.
1445 This package contains header files and libraries which are needed to
1446 develop VServer related applications.
1450 %setup -q -n %name-%fullver
1454 %configure --with-initrddir=%_initrddir --enable-release \
1455 %{?_without_dietlibc:--disable-dietlibc} \
1456 %{?_with_legacy:--enable-apis=NOLEGACY} \
1457 --with-initscripts=sysv
1459 %__make %{?_smp_mflags} all
1460 %{!?_without_doc:%__make %{?_smp_mflags} doc}
1464 rm -rf $RPM_BUILD_ROOT
1465 %__make DESTDIR="$RPM_BUILD_ROOT" install install-distribution
1467 rm -f $RPM_BUILD_ROOT/%_libdir/*.la
1469 MANIFEST_CONFIG='%config' \
1470 MANIFEST_CONFIG_NOREPLACE='%config(noreplace)' \
1471 contrib/make-manifest %name $RPM_BUILD_ROOT contrib/manifest.dat
1479 rm -rf $RPM_BUILD_ROOT
1483 test -d /vservers || mkdir -m0000 /vservers
1484 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg
1486 f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f"
1487 f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/run/vservers.rev "$f"
1488 f="%confdefaultdir/cachebase"; test -L "$f" -o -e "$f" || ln -s %_localstatedir/cache/vservers "$f"
1490 %_sbindir/setattr --barrier /vservers /vservers/.pkg || :
1494 test "$1" != 0 || rm -rf %_localstatedir/cache/vservers/* 2>/dev/null || :
1497 %post lib -p /sbin/ldconfig
1498 %postun lib -p /sbin/ldconfig
1502 %chkconfig --add vservers-default
1503 %chkconfig --add vprocunhide
1504 %chkconfig --add util-vserver
1509 test "$1" != 0 || %_initrddir/vprocunhide stop &>/dev/null || :
1511 test "$1" != 0 || %chkconfig --del vprocunhide
1512 test "$1" != 0 || %chkconfig --del vservers-default
1513 test "$1" != 0 || %chkconfig --del util-vserver
1517 test "$1" = 0 || %_initrddir/vprocunhide condrestart >/dev/null || :
1520 %triggerin build -- fedora-release, centos-release
1527 test -r "$i" || continue
1529 target=%confdir/.distributions/.common/pubkeys/$base-$(basename "$i")
1530 cp -a "$i" "$target"
1533 copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-*
1534 copy fedora /etc/pki/rpm-gpg/RPM-GPG-*
1535 copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-*
1539 test -d /vservers/.hash || mkdir -m0700 /vservers/.hash
1541 f="%confdefaultdir/apps/vunify/hash"; test -e "$f"/method -o -e "$f"/00 || \
1542 ln -s /vservers/.hash "$f"/00
1544 %_sbindir/setattr --barrier /vservers/.hash || :
1548 test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*
1551 ## Temporary workaround to remove old v_* files; it will conflict
1552 ## somehow with the -legacy package but can be fixed by reinstalling
1554 ## TODO: remove me in the final .spec file
1555 %define v_services httpd named portmap sendmail smb sshd xinetd gated
1556 %triggerun sysv -- util-vserver-sysv < 0.30.198
1557 for i in %v_services; do
1558 %chkconfig --del v_$i || :
1563 %chkconfig --add rebootmgr
1564 %chkconfig --add vservers-legacy
1566 for i in %v_services; do
1567 %chkconfig --add v_$i
1572 test "$1" != 0 || %_initrddir/rebootmgr stop &>/dev/null || :
1574 test "$1" != 0 || for i in %v_services; do
1575 %chkconfig --del v_$i
1578 test "$1" != 0 || %chkconfig --del rebootmgr
1579 test "$1" != 0 || %chkconfig --del vservers-legacy
1582 test "$1" = 0 || %_initrddir/rebootmgr condrestart >/dev/null || :
1585 %files -f %name-base.list
1586 %defattr(-,root,root,-)
1587 %doc AUTHORS COPYING ChangeLog NEWS README THANKS
1588 %doc doc/*.html doc/*.css
1591 %dir %confdefaultdir
1592 %dir %confdefaultdir/apps
1593 %dir %confdefaultdir/files
1594 %dir %pkglibdir/defaults
1595 %ghost %confdefaultdir/cachebase
1596 %ghost %confdefaultdir/vdirbase
1597 %ghost %confdefaultdir/run.rev
1599 %dir %_localstatedir/cache/vservers
1600 %dir %_localstatedir/run/vservers
1601 %dir %_localstatedir/run/vservers.rev
1602 %dir %_localstatedir/run/vshelper
1605 %files lib -f %name-lib.list
1606 %files sysv -f %name-sysv.list
1609 %files core -f %name-core.list
1610 %defattr(-,root,root,-)
1614 %files build -f %name-build.list
1615 %defattr(-,root,root,-)
1616 %doc contrib/yum*.patch
1617 %dir %confdir/.distributions
1618 %dir %confdir/.distributions/*
1619 %dir %confdir/.distributions/*/apt
1620 %dir %confdir/.distributions/.common
1621 %dir %confdir/.distributions/.common/pubkeys
1622 %dir %confdefaultdir/apps/vunify
1623 %dir %confdefaultdir/apps/vunify/hash
1626 %files legacy -f %name-legacy.list
1627 %defattr(-,root,root,-)
1628 %dir %pkglibdir/legacy
1631 %files devel -f %name-devel.list
1632 %defattr(-,root,root,-)
1633 %{!?_without_doc:%doc lib/apidoc/latex/refman.pdf}
1634 %{!?_without_doc:%doc lib/apidoc/html}
1638 * Mon Jun 25 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.214-0
1640 - get rid of e2fsprogs requirement
1642 * Fri Dec 29 2006 Daniel Hokka Zakrisson <daniel@hozac.com> - 0.30.213-0
1643 - add --with legacy and --without doc switches
1644 - add util-vserver initscript
1646 * Sun Jan 22 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.30.210-0
1647 - do not require 'xalan' anymore by default
1648 - removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
1649 - removed 'chattr' leftovers
1650 - create the '/etc/vservers/.defaults/cachebase' symlink
1651 - added /var/cache/vservers and the needed support
1652 - set barrier attribute on /vservers/.pkg and /vservers/.hash
1653 - added 'centos-release' to the list of packages in the copy-the-keys
1655 - create '/vservers/.hash' and add initial configuration for it
1657 * Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.209-0
1661 * Sat Jul 16 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-2
1664 * Fri Jul 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.208-1
1666 - require the -lib subpackage by -devel
1667 - copy GPG keys from /etc/pki/rpm-gpg/
1669 * Fri Apr 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.206-1
1670 - added patches to make yum work in chroot environments
1673 * Thu Mar 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.205-0
1674 - added some %%descriptions
1675 - copy GPG keys from the system into the confdir
1676 - buildrequire dietlibc-0.25
1677 - BuildRequire beecrypt-devel
1679 - use %%global instead of %%define
1680 - removed 'run.rev' as a vserver-local variable and made it a system-wide setting
1682 * Wed Jan 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.198-0.3
1683 - updated BuildRequires:
1684 - use 'setattr --barrier' instead of 'chattr +t' in the %%post scriptlet
1685 - moved the v_* initscripts to legacy
1686 - do not ship the /vservers directory itself; as it is immutable, the
1687 extraction will fail else
1689 * Thu Sep 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.30.194-0
1690 - documented switches for 'rpmbuild'
1692 * Wed May 26 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.215-0
1693 - (re)added the MANIFEST_* variables which were lost some time ago;
1694 this will preserve %%config files...
1696 * Mon Mar 15 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.202-0
1697 - use file-list for sysv scripts also
1699 * Sat Mar 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.29.198-0
1700 - added vprocunhide-service support
1701 - added doxygen support
1704 * Wed Oct 1 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0:0.23.5-0