2 # - somewhy empty /var/cache/vservers is needed when building pld vserver
3 # - make build create /dev/std{in,out,err} links
5 # m68k and mips are the only not supported archs
8 %bcond_without dietlibc # don't use dietlibc (ask for troubles)
9 %bcond_without doc # don't build documentation which needed LaTeX
10 %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context
11 %bcond_with xalan # use the xalan xslt processor
13 %define _vproc_version 0.01
14 # diet compile fails with ccache in %{__cc}
17 Summary: Linux virtual server utilities
18 Summary(pl): Narzêdzia dla linuksowych serwerów wirtualnych
23 Group: Applications/System
24 Source0: http://www.13thfloor.at/~ensc/util-vserver/files/alpha/%{name}-%{version}.tar.bz2
25 # Source0-md5: 1e8fff7cb6246d21ed029f082123019b
26 Source1: vprocunhide.init
27 Source2: vservers.init
28 Source3: vservers-legacy.init
29 Source4: rebootmgr.init
30 Source5: vservers.sysconfig
31 Source6: vservers-legacy.sysconfig
32 Source7: vrootdevices.init
33 Source8: vrootdevices.sysconfig
34 # A bit of documentation explaining package management
35 # http://www.paul.sladen.org/vserver/archives/200505/0078.html
36 Source9: %{name}-pkgmgmt.txt
37 Source10: %{name}-initpost.sh
38 Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{_vproc_version}.tar.bz2
39 # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85
40 Source12: %{name}-vhashify.cron
41 Patch0: %{name}-vsysvwrapper.patch
42 Patch1: %{name}-pld.patch
43 Patch2: %{name}-vrpm.patch
44 Patch3: %{name}-include.patch
45 Patch4: %{name}-m4-diet.patch
46 Patch5: %{name}-cpuset.patch
47 Patch6: %{name}-build-umask.patch
48 Patch7: %{name}-utmpx.patch
49 Patch8: %{name}-vprocunhide.patch
50 Patch9: %{name}-dev.patch
51 Patch10: %{name}-no-dynamic-ctx.patch
52 Patch11: %{name}-more-ip.patch
53 Patch12: http://daniel.hozac.com/vserver/util-vserver/%{name}-0.30.210-namespace-cleanup.patch
54 Patch13: http://daniel.hozac.com/vserver/util-vserver/%{name}-0.30.210-delete.patch
55 Patch14: http://daniel.hozac.com/vserver/util-vserver/%{name}-0.30.210-shiny10.patch
56 Patch15: %{name}-rpm-fake-resolver-badperm-errorlogging.patch
57 URL: http://savannah.nongnu.org/projects/util-vserver/
58 BuildRequires: autoconf
59 BuildRequires: automake >= 1.9
60 BuildRequires: beecrypt-devel
61 %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.29}
62 BuildRequires: e2fsprogs-devel
63 BuildRequires: libstdc++-devel
64 BuildRequires: libtool >= 1.5.14
66 BuildRequires: sed >= 4.0
68 BuildRequires: rpmbuild(macros) >= 1.268
70 BuildRequires: doxygen
71 BuildRequires: graphviz
72 BuildRequires: libxslt-progs
73 BuildRequires: tetex-format-pdflatex
74 BuildRequires: tetex-makeindex
75 # To be removed when tetex-format-pdflatex, tetex-pdftex...
76 # ...and graphviz packages get fixed
77 BuildRequires: ghostscript
78 BuildRequires: ghostscript-fonts-std
79 BuildRequires: tetex-fonts-jknappen
80 BuildRequires: tetex-metafont
81 %{?with_xalan:BuildRequires: xalan-j}
83 Requires(post,preun): /sbin/chkconfig
84 Requires: %{name}-lib = %{version}-%{release}
88 Obsoletes: util-vserver-core
89 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
92 %define _usrbin /usr/bin
93 %define _usrsbin /usr/sbin
94 %define _usrlib /usr/lib
97 This package provides the components and a framework to setup virtual
98 servers. A virtual server runs inside a Linux server. It is
99 nevertheless highly independent. As such, you can run various services
100 with normal configuration. The various vservers can't interact with
101 each other and can't interact with services in the main server.
103 This requires a special kernel supporting the new new_s_context and
104 set_ipv4root system call.
106 This package contains utilities which are required to communicate with
107 the Linux-Vserver enabled kernel.
110 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
111 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
112 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
113 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
114 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
116 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
117 new_s_context i set_ipv4root.
119 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
120 w³±czonym mechanizmem Linux-Vserver.
123 Summary: Development files for Linux vserver libraries
124 Summary(pl): Pliki programistyczne dla bibliotek linuksowego vserwera
125 Group: Development/Libraries
126 Requires: %{name}-lib = %{version}-%{release}
129 This package contains the development files necessary for developing
130 programs which use vserver library.
132 %description devel -l pl
133 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
134 programów u¿ywaj±cych biblioteki vserver.
137 Summary: Static vserver library
138 Summary(pl): Biblioteka statyczna vservera
139 Group: Development/Libraries
140 Requires: %{name}-devel = %{version}-%{release}
143 This package contains the static version of vserver library.
145 %description static -l pl
146 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
149 Summary: Dynamic libraries for util-vserver
150 Summary(pl): Biblioteki dynamiczne dla pakietu util-vserver
154 util-vserver provides the components and a framework to setup virtual
155 servers. A virtual server runs inside a linux server. It is
156 nevertheless highly independent. As such, you can run various services
157 pith normal configuration. The various vservers can't interact with
158 each other and can't interact with services in the main server.
160 This package contains the shared libraries needed by all other
161 'util-vserver' subpackages.
163 %description lib -l pl
164 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
165 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
166 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
167 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
168 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
170 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
171 podpakiety util-vserver.
174 Summary: Tools which can be used to build vservers
175 Summary(pl): Narzêdzia do budowania vserverów
176 Group: Applications/System
177 Requires: %{name} = %{version}-%{release}
178 Requires: /etc/pld-release
181 Conflicts: poldek < 0.18.8-10
184 util-vserver provides the components and a framework to setup virtual
185 servers. A virtual server runs inside a linux server. It is
186 nevertheless highly independent. As such, you can run various services
187 with normal configuration. The various vservers can't interact with
188 each other and can't interact with services in the main server.
190 This package contains utilities which assist in building Vservers.
192 %description build -l pl
193 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
194 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
195 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
196 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
197 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
199 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
201 %package -n vserver-distro-fedora
202 Summary: VServer build templates for Fedora Core
203 Summary(pl): Szablony do tworzenia VServerów dla dystrybucji Fedora Core
204 Group: Applications/System
205 Requires: %{name} = %{version}-%{release}
212 %description -n vserver-distro-fedora
213 VServer build templates for Fedora Core 1,2,3,4.
215 %description -n vserver-distro-fedora -l pl
216 Szablony do tworzenia VServerów dla dystrybucji Fedora Core 1,2,3,4.
218 %package -n vserver-distro-redhat
219 Summary: VServer build template for Red Hat Linux 9
220 Summary(pl): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9
221 Group: Applications/System
222 Requires: %{name} = %{version}-%{release}
229 %description -n vserver-distro-redhat
230 VServer build template for RedHat Linux 9.
232 %description -n vserver-distro-redhat -l pl
233 Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9.
235 %package -n vserver-distro-suse
236 Summary: VServer build template for SuSE 9.1
237 Summary(pl): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1
238 Group: Applications/System
239 Requires: %{name} = %{version}-%{release}
246 %description -n vserver-distro-suse
247 VServer build template for SuSE Linux 9.1.
249 %description -n vserver-distro-suse -l pl
250 Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1.
252 %package -n vserver-distro-centos
253 Summary: VServer build template for CentOS 4.2
254 Summary(pl): Szablon budowania VServera dla CentOS 4.2
255 Group: Applications/System
256 Requires: util-vserver-build
259 %description -n vserver-distro-centos
260 VServer build template for CentOS 4.2.
262 %description -n vserver-distro-centos -l pl
263 Szablon budowania VServera dla CentOS 4.2.
266 Summary: initscripts for vserver
267 Summary(pl): Skrypty inicjalizuj±ce dla vserwera
268 Group: Applications/System
269 Requires(post,preun): /sbin/chkconfig
270 Requires: %{name} = %{version}-%{release}
276 util-vserver provides the components and a framework to setup virtual
277 servers. A virtual server runs inside a linux server. It is
278 nevertheless highly independent. As such, you can run various services
279 with normal configuration. The various vservers can't interact with
280 each other and can't interact with services in the main server.
282 This package contains the SysV initscripts which start and stop
283 Vservers and related tools.
285 %description init -l pl
286 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
287 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
288 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
289 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
290 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
292 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
293 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
296 Summary: Legacy utilities for util-vserver
297 Summary(pl): Stare narzêdzia dla util-vserver
298 Group: Applications/System
299 Requires(post,preun): /sbin/chkconfig
300 Requires: %{name} = %{version}-%{release}
304 util-vserver provides the components and a framework to setup virtual
305 servers. A virtual server runs inside a linux server. It is
306 nevertheless highly independent. As such, you can run various services
307 with normal configuration. The various vservers can't interact with
308 each other and can't interact with services in the main server.
310 This package contains the tools which are needed to work with Vservers
311 having an old-style configuration.
313 %description legacy -l pl
314 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
315 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
316 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
317 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
318 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
320 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
321 konfiguracjê w starym stylu.
335 %{?with_no_dynamic_context:%patch10 -p1}
342 install %{SOURCE9} package-management.txt
344 cp -a compat.h vserver-compat.h
348 CFLAGS="%{rpmcflags} -D__GLIBC__"
354 --with-initrddir=/etc/rc.d/init.d \
356 --enable-apis=NOLEGACY \
357 %{?with_dietlibc:--enable-dietlibc} \
358 %{!?with_dietlibc:--disable-dietlibc} \
364 IPTABLES=%{_usrsbin}/iptables \
365 MODPROBE=/sbin/modprobe \
366 NAMEIF=/sbin/nameif \
368 VCONFIG=/sbin/vconfig \
369 WGET=%{_usrbin}/wget \
372 %{?with_doc:%{__make} doc}
374 %{__make} -C vproc-%{_vproc_version} \
376 CFLAGS="%{rpmcflags}"
379 rm -rf $RPM_BUILD_ROOT
380 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d,cron.d},/dev/pts} \
381 $RPM_BUILD_ROOT{%{_sysconfdir}/vservices,/vservers/.pkg}
383 %{__make} install install-distribution \
384 DESTDIR=$RPM_BUILD_ROOT
386 cp -a vserver-compat.h $RPM_BUILD_ROOT%{_includedir}
388 chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/*
390 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
391 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
393 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
394 s=`basename $i | sed s/v_//`
395 cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF
396 # IP addresses/interfaces to bound $s service to
402 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \
403 $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
404 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \
405 $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers
406 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \
407 $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
408 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \
409 $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
410 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \
411 $RPM_BUILD_ROOT/etc/sysconfig/vservers
413 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
415 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices
416 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices
417 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost
418 install vproc-%{_vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir}
419 install %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron
421 cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF
422 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron
425 ln -sf null $RPM_BUILD_ROOT/dev/initctl
428 sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pkgs/01
429 sed -i 's/glibc\-\[0\-9\]\*\.rpm/glibc64\-\[0\-9\]\*\.rpm/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpmlist.d/00.lst
432 # baggins check this: needed but seems unused
433 install -d $RPM_BUILD_ROOT/var/cache/vservers
436 rm -rf $RPM_BUILD_ROOT
439 %{_sbindir}/setattr --barrier /vservers || :
441 %post lib -p /sbin/ldconfig
442 %postun lib -p /sbin/ldconfig
445 /sbin/chkconfig --add vrootdevices
446 /sbin/chkconfig --add vprocunhide
447 /sbin/chkconfig --add vservers
448 if [ ! -f /var/lock/subsys/vrootdevices ]; then
449 echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2
451 if [ ! -f /var/lock/subsys/vprocunhide ]; then
452 echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2
454 if [ ! -f /var/lock/subsys/vservers ]; then
455 echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2
459 if [ "$1" = "0" ]; then
460 %service vservers stop
461 %service vprocunhide stop
462 %service vrootdevices stop
463 /sbin/chkconfig --del vservers
464 /sbin/chkconfig --del vprocunhide
465 /sbin/chkconfig --del vrootdevices
469 /sbin/chkconfig --add rebootmgr
470 /sbin/chkconfig --add vservers-legacy
471 if [ ! -f /var/lock/subsys/rebootmgr ] ; then
472 echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2
474 if [ ! -f /var/lock/subsys/vservers-legacy ] ; then
475 echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2
479 if [ "$1" = "0" ]; then
480 %service rebootmgr stop
481 %service vservers-legacy stop
482 /sbin/chkconfig --del rebootmgr
483 /sbin/chkconfig --del vservers-legacy
486 %triggerpostun build -- %{name}-build < 0.30.210-5.2
487 if [ -f /etc/vservers/.distributions/pld2.0/poldek/poldek.conf.rpmsave ]; then
488 mv -f /etc/vservers/.distributions/{pld2.0,pld-ac}/poldek/poldek.conf.rpmsave
491 # kill old vserver specific package ignores which are no longer needed
492 l=`egrep '^ignore.*(basesystem|SysVinit|rc-scripts)' /etc/vservers/*/apps/pkgmgmt/base/poldek/etc/poldek.conf -l 2>/dev/null`
494 %{__sed} -i -e '/^ignore/s, \(basesystem\|SysVinit\|rc-scripts\),,g' $l
498 %defattr(644,root,root,755)
499 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
500 %{?with_doc:%doc doc/*.html}
501 %dir %{_sysconfdir}/vservers
502 %dir %{_sysconfdir}/vservers/.defaults
503 %dir %{_sysconfdir}/vservers/.defaults/apps
504 %dir %{_sysconfdir}/vservers/.defaults/files
505 %{_sysconfdir}/vservers/.defaults/vdirbase
506 %{_sysconfdir}/vservers/.defaults/run.rev
507 %{_sysconfdir}/vservers/vdirbase
508 %{_sysconfdir}/vservers/run.rev
510 %attr(755,root,root) %{_sbindir}/chbind
511 %attr(755,root,root) %{_sbindir}/chcontext
512 %attr(755,root,root) %{_sbindir}/chxid
513 %attr(755,root,root) %{_sbindir}/exec-cd
514 %attr(755,root,root) %{_sbindir}/lsxid
515 %attr(755,root,root) %{_sbindir}/reducecap
516 %attr(755,root,root) %{_sbindir}/setattr
517 %attr(755,root,root) %{_sbindir}/showattr
518 %attr(755,root,root) %{_sbindir}/vattribute
519 %attr(755,root,root) %{_sbindir}/vcontext
520 %attr(755,root,root) %{_sbindir}/vdlimit
521 %attr(755,root,root) %{_sbindir}/vnamespace
522 %attr(755,root,root) %{_sbindir}/vkill
523 %attr(755,root,root) %{_sbindir}/vlimit
524 %attr(755,root,root) %{_sbindir}/vdu
525 %attr(755,root,root) %{_sbindir}/vproc
526 %attr(755,root,root) %{_sbindir}/vps
527 %attr(755,root,root) %{_sbindir}/vpstree
528 %attr(755,root,root) %{_sbindir}/vrsetup
529 %attr(755,root,root) %{_sbindir}/vsched
530 %attr(755,root,root) %{_sbindir}/vserver
531 %attr(755,root,root) %{_sbindir}/vserver-info
532 %attr(755,root,root) %{_sbindir}/vserver-stat
533 %attr(755,root,root) %{_sbindir}/vsomething
534 %attr(755,root,root) %{_sbindir}/vtop
535 %attr(755,root,root) %{_sbindir}/vuname
536 %attr(755,root,root) %{_sbindir}/vwait
537 %dir %{_libdir}/%{name}
538 %dir %{_libdir}/%{name}/defaults
539 %{_libdir}/%{name}/FEATURES.txt
540 %{_libdir}/%{name}/util-vserver-vars
541 %{_libdir}/%{name}/defaults/*
542 %attr(755,root,root) %{_libdir}/%{name}/capchroot
543 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
544 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
545 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
546 %attr(755,root,root) %{_libdir}/%{name}/chroot-sh
547 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
548 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
549 %attr(755,root,root) %{_libdir}/%{name}/filetime
550 %{_libdir}/%{name}/functions
551 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
552 %attr(755,root,root) %{_libdir}/%{name}/lockfile
553 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
554 %attr(755,root,root) %{_libdir}/%{name}/readlink
555 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
556 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
557 %attr(755,root,root) %{_libdir}/%{name}/sigexec
558 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
559 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
560 %{_libdir}/%{name}/vserver.*
561 %{_libdir}/%{name}/vserver-setup.*
562 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
563 %{_libdir}/%{name}/vserver-build.*
564 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
565 %attr(755,root,root) %{_libdir}/%{name}/vhashify
566 %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron
567 %attr(755,root,root) %{_libdir}/%{name}/vshelper
568 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
569 %{_mandir}/man8/chbind.8*
570 %{_mandir}/man8/chcontext.8*
571 %{_mandir}/man8/reducecap.8*
572 %{_mandir}/man8/vps.8*
573 %{_mandir}/man8/vpstree.8*
574 %{_mandir}/man8/vserver-stat.8*
575 %{_mandir}/man8/vserver.8*
576 %{_mandir}/man8/vtop.8*
577 %attr(000,root,root) %dir /vservers
578 %attr(755,root,root) %dir /vservers/.pkg
579 %dir %{_localstatedir}/run/vservers
580 %dir %{_localstatedir}/run/vservers.rev
581 %dir %{_localstatedir}/run/vshelper
582 %dir /var/cache/vservers
585 %defattr(644,root,root,755)
586 %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
587 %attr(755,root,root) %{_libdir}/lib*.so
589 %{_includedir}/vserver*.h
590 %{_pkgconfigdir}/*.pc
593 %defattr(644,root,root,755)
594 %{_libdir}/libvserver.a
597 %defattr(644,root,root,755)
598 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
601 %defattr(644,root,root,755)
602 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
603 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices
604 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers
605 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers
606 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
607 %attr(754,root,root) /etc/rc.d/init.d/vrootdevices
608 %attr(754,root,root) /etc/rc.d/init.d/vservers
611 %defattr(644,root,root,755)
612 %doc contrib/yum*.patch package-management.txt
613 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
614 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
615 %dir %{_sysconfdir}/vservers/.distributions
616 %dir %{_sysconfdir}/vservers/.distributions/.common
617 %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys
618 %dir %{_sysconfdir}/vservers/.distributions/pld-ac
619 %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek
620 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf
621 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
622 %dir %{_libdir}/%{name}/distributions
623 %attr(-,root,root) %{_libdir}/%{name}/distributions/defaults
624 %attr(-,root,root) %{_libdir}/%{name}/distributions/pld*
625 %dir %{_libdir}/%{name}/distributions/template
626 %attr(755,root,root) %{_libdir}/%{name}/distributions/template/init*
627 %attr(-,root,root) %{_libdir}/%{name}/distributions/redhat
628 %{_libdir}/%{name}/vserver-build.*
629 %{_libdir}/%{name}/vserver-setup.functions
630 %{_libdir}/%{name}/defaults/fstab
631 %{_libdir}/%{name}/defaults/debootstrap.uri
632 %{_libdir}/%{name}/defaults/vunify-exclude
633 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
634 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
635 %attr(755,root,root) %{_libdir}/%{name}/vcopy
636 %attr(755,root,root) %{_libdir}/%{name}/vpkg
637 %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker
638 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
639 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
640 %attr(755,root,root) %{_libdir}/%{name}/vunify
641 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
642 %attr(755,root,root) %{_sbindir}/vapt-get
643 %attr(755,root,root) %{_sbindir}/vpoldek
644 %attr(755,root,root) %{_sbindir}/vrpm
645 %attr(755,root,root) %{_sbindir}/vyum
647 %files -n vserver-distro-fedora
648 %defattr(644,root,root,755)
649 %dir %{_sysconfdir}/vservers/.distributions/fc*
650 %dir %{_sysconfdir}/vservers/.distributions/fc*/apt
651 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list
652 %{_libdir}/%{name}/distributions/fc*
654 %files -n vserver-distro-redhat
655 %defattr(644,root,root,755)
656 %dir %{_sysconfdir}/vservers/.distributions/rh*
657 %dir %{_sysconfdir}/vservers/.distributions/rh*/apt
658 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list
659 %{_libdir}/%{name}/distributions/rh*
661 %files -n vserver-distro-suse
662 %defattr(644,root,root,755)
663 %dir %{_sysconfdir}/vservers/.distributions/suse*
664 %dir %{_sysconfdir}/vservers/.distributions/suse*/apt
665 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list
666 %{_libdir}/%{name}/distributions/suse*
668 %files -n vserver-distro-centos
669 %defattr(644,root,root,755)
670 %{_libdir}/util-vserver/distributions/centos42
673 %defattr(644,root,root,755)
674 %dir %{_sysconfdir}/vservices
675 %{_sysconfdir}/vservices/*
676 %dir %{_libdir}/%{name}/legacy
677 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
678 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
679 %attr(754,root,root) /etc/rc.d/init.d/v_*
680 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
681 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
682 %attr(755,root,root) %{_sbindir}/vserver-copy
683 %{_mandir}/man8/distrib-info.8*
684 %{_mandir}/man8/rebootmgr.8*
685 %{_mandir}/man8/vserver-copy.8*