]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver.spec
2eb6e27faeb3a354ca8b08a4961a2dc9fd0a3604
[packages/util-vserver.git] / util-vserver.spec
1 # TODO
2 # - somewhy empty /var/cache/vservers is needed when building pld vserver
3 # - make build create /dev/std{in,out,err} links
4 #
5 # m68k and mips are the only not supported archs
6 #
7 # Conditional build:
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
12 #
13 %define _vproc_version 0.01
14 # fails with ccache in %{__cc}
15 %undefine       with_ccache
16 #
17 Summary:        Linux virtual server utilities
18 Summary(pl):    Narzêdzia dla linuksowych serwerów wirtualnych
19 Name:           util-vserver
20 Version:        0.30.210
21 Release:        7.1
22 License:        GPL
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 Patch0:         %{name}-vsysvwrapper.patch
41 Patch1:         %{name}-pld.patch
42 Patch2:         %{name}-vrpm.patch
43 Patch3:         %{name}-include.patch
44 Patch4:         %{name}-m4-diet.patch
45 Patch5:         %{name}-cpuset.patch
46 Patch6:         %{name}-build-umask.patch
47 Patch7:         %{name}-utmpx.patch
48 Patch8:         %{name}-vprocunhide.patch
49 Patch9:         %{name}-dev.patch
50 Patch10:        %{name}-no-dynamic-ctx.patch
51 URL:            http://savannah.nongnu.org/projects/util-vserver/
52 BuildRequires:  autoconf
53 BuildRequires:  automake >= 1.9
54 BuildRequires:  beecrypt-devel
55 %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.29}
56 BuildRequires:  libstdc++-devel
57 BuildRequires:  libtool >= 1.5.14
58 %ifarch %{x8664}
59 BuildRequires:  sed >= 4.0
60 %endif
61 BuildRequires:  rpmbuild(macros) >= 1.268
62 %if %{with doc}
63 BuildRequires:  doxygen
64 BuildRequires:  graphviz
65 BuildRequires:  libxslt-progs
66 BuildRequires:  tetex-format-pdflatex
67 BuildRequires:  tetex-makeindex
68 # To be removed when tetex-format-pdflatex, tetex-pdftex...
69 # ...and graphviz packages get fixed
70 BuildRequires:  ghostscript
71 BuildRequires:  ghostscript-fonts-std
72 BuildRequires:  tetex-fonts-jknappen
73 BuildRequires:  tetex-metafont
74 %{?with_xalan:BuildRequires:    xalan-j}
75 %endif
76 Requires(post,preun):   /sbin/chkconfig
77 Requires:       %{name}-lib = %{version}-%{release}
78 Requires:       issue
79 Requires:       rc-scripts
80 Requires:       util-linux
81 Obsoletes:      util-vserver-core
82 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83
84 # for adapter
85 %define         _usrbin         /usr/bin
86 %define         _usrsbin        /usr/sbin
87 %define         _usrlib         /usr/lib
88
89 %description
90 This package provides the components and a framework to setup virtual
91 servers. A virtual server runs inside a Linux server. It is
92 nevertheless highly independent. As such, you can run various services
93 with normal configuration. The various vservers can't interact with
94 each other and can't interact with services in the main server.
95
96 This requires a special kernel supporting the new new_s_context and
97 set_ipv4root system call.
98
99 This package contains utilities which are required to communicate with
100 the Linux-Vserver enabled kernel.
101
102 %description -l pl
103 Ten pakiet dostarcza sk³adniki i szkielet do tworzenia wirtualnych
104 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
105 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
106 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
107 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
108
109 Wymaga to specjalnego j±dra obs³uguj±cego nowe wywo³ania systemowe
110 new_s_context i set_ipv4root.
111
112 Ten pakiet zawiera narzêdzia wymagane do komunikacji z j±drem z
113 w³±czonym mechanizmem Linux-Vserver.
114
115 %package devel
116 Summary:        Development files for Linux vserver libraries
117 Summary(pl):    Pliki programistyczne dla bibliotek linuksowego vserwera
118 Group:          Development/Libraries
119 Requires:       %{name}-lib = %{version}-%{release}
120
121 %description devel
122 This package contains the development files necessary for developing
123 programs which use vserver library.
124
125 %description devel -l pl
126 Ten pakiet zawiera pliki programistyczne konieczne do rozwijania
127 programów u¿ywaj±cych biblioteki vserver.
128
129 %package static
130 Summary:        Static vserver library
131 Summary(pl):    Biblioteka statyczna vservera
132 Group:          Development/Libraries
133 Requires:       %{name}-devel = %{version}-%{release}
134
135 %description static
136 This package contains the static version of vserver library.
137
138 %description static -l pl
139 Ten pakiet zawiera statyczn± wersjê biblioteki vservera.
140
141 %package lib
142 Summary:        Dynamic libraries for util-vserver
143 Summary(pl):    Biblioteki dynamiczne dla pakietu util-vserver
144 Group:          Libraries
145
146 %description lib
147 util-vserver provides the components and a framework to setup virtual
148 servers. A virtual server runs inside a linux server. It is
149 nevertheless highly independent. As such, you can run various services
150 pith normal configuration. The various vservers can't interact with
151 each other and can't interact with services in the main server.
152
153 This package contains the shared libraries needed by all other
154 'util-vserver' subpackages.
155
156 %description lib -l pl
157 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
158 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
159 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
160 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
161 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
162
163 Ten pakiet zawiera biblioteki wspó³dzielone wymagane przez wszystkie
164 podpakiety util-vserver.
165
166 %package build
167 Summary:        Tools which can be used to build vservers
168 Summary(pl):    Narzêdzia do budowania vserverów
169 Group:          Applications/System
170 Requires:       %{name} = %{version}-%{release}
171 Requires:       e2fsprogs
172 Requires:       /etc/pld-release
173 Conflicts:      poldek < 0.18.8-10
174
175 %description build
176 util-vserver provides the components and a framework to setup virtual
177 servers. A virtual server runs inside a linux server. It is
178 nevertheless highly independent. As such, you can run various services
179 with normal configuration. The various vservers can't interact with
180 each other and can't interact with services in the main server.
181
182 This package contains utilities which assist in building Vservers.
183
184 %description build -l pl
185 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
186 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
187 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
188 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
189 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
190
191 Ten pakiet zawiera narzêdzia pomagaj±ce przy budowaniu Vserwerów.
192
193 %package -n vserver-distro-fedora
194 Summary:        VServer build templates for Fedora Core
195 Summary(pl):    Szablony do tworzenia VServerów dla dystrybucji Fedora Core
196 Group:          Applications/System
197 Requires:       %{name} = %{version}-%{release}
198 Requires:       binutils
199 Requires:       e2fsprogs
200 Requires:       rpm
201 Requires:       tar
202 Requires:       wget
203
204 %description -n vserver-distro-fedora
205 VServer build templates for Fedora Core 1,2,3,4.
206
207 %description -n vserver-distro-fedora -l pl
208 Szablony do tworzenia VServerów dla dystrybucji Fedora Core 1,2,3,4.
209
210 %package -n vserver-distro-redhat
211 Summary:        VServer build template for Red Hat Linux 9
212 Summary(pl):    Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9
213 Group:          Applications/System
214 Requires:       %{name} = %{version}-%{release}
215 Requires:       binutils
216 Requires:       e2fsprogs
217 Requires:       rpm
218 Requires:       tar
219 Requires:       wget
220
221 %description -n vserver-distro-redhat
222 VServer build template for RedHat Linux 9.
223
224 %description -n vserver-distro-redhat -l pl
225 Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9.
226
227 %package -n vserver-distro-suse
228 Summary:        VServer build template for SuSE 9.1
229 Summary(pl):    Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1
230 Group:          Applications/System
231 Requires:       %{name} = %{version}-%{release}
232 Requires:       binutils
233 Requires:       e2fsprogs
234 Requires:       rpm
235 Requires:       tar
236 Requires:       wget
237
238 %description -n vserver-distro-suse
239 VServer build template for SuSE Linux 9.1.
240
241 %description -n vserver-distro-suse -l pl
242 Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1.
243
244 %package -n vserver-distro-centos
245 Summary:        VServer build template for CentOS 4.2
246 Summary(pl):    Szablon budowania VServera dla CentOS 4.2
247 Group:          Applications/System
248 Requires:       util-vserver-build
249 Requires:       yum
250
251 %description -n vserver-distro-centos
252 VServer build template for CentOS 4.2.
253
254 %description -n vserver-distro-centos -l pl
255 Szablon budowania VServera dla CentOS 4.2.
256
257 %package init
258 Summary:        initscripts for vserver
259 Summary(pl):    Skrypty inicjalizuj±ce dla vserwera
260 Group:          Applications/System
261 Requires(post,preun):   /sbin/chkconfig
262 Requires:       %{name} = %{version}-%{release}
263 Requires:       diffutils
264 Requires:       make
265 Requires:       rc-scripts
266
267 %description init
268 util-vserver provides the components and a framework to setup virtual
269 servers. A virtual server runs inside a linux server. It is
270 nevertheless highly independent. As such, you can run various services
271 with normal configuration. The various vservers can't interact with
272 each other and can't interact with services in the main server.
273
274 This package contains the SysV initscripts which start and stop
275 Vservers and related tools.
276
277 %description init -l pl
278 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
279 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
280 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
281 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
282 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
283
284 Ten pakiet zawiera skrypty inicjalizuj±ce SysV uruchamiaj±ce i
285 zatrzymuj±ce Vserwery oraz powi±zane narzêdzia.
286
287 %package legacy
288 Summary:        Legacy utilities for util-vserver
289 Summary(pl):    Stare narzêdzia dla util-vserver
290 Group:          Applications/System
291 Requires(post,preun):   /sbin/chkconfig
292 Requires:       %{name} = %{version}-%{release}
293 Requires:       rc-scripts
294
295 %description legacy
296 util-vserver provides the components and a framework to setup virtual
297 servers. A virtual server runs inside a linux server. It is
298 nevertheless highly independent. As such, you can run various services
299 with normal configuration. The various vservers can't interact with
300 each other and can't interact with services in the main server.
301
302 This package contains the tools which are needed to work with Vservers
303 having an old-style configuration.
304
305 %description legacy -l pl
306 util-vserver dostarcza sk³adniki i szkielet do tworzenia wirtualnych
307 serwerów. Wirtualny serwer dzia³a wewn±trz serwera linuksowego, lecz
308 jest od niego w du¿ym stopniu niezale¿ny. Jako taki mo¿e uruchamiaæ
309 ró¿ne us³ugi z normaln± konfiguracj±. Ró¿ne vserwery nie mog± wchodziæ
310 w interakcjê z innymi ani z us³ugami na g³ównym serwerze.
311
312 Ten pakiet zawiera narzêdzia potrzebne do pracy z Vserwerami maj±cymi
313 konfiguracjê w starym stylu.
314
315 %prep
316 %setup -q -a11
317 %patch0 -p1
318 %patch1 -p1
319 %patch2 -p1
320 %patch3 -p1
321 %patch4 -p1
322 %patch5 -p1
323 %patch6 -p1
324 %patch7 -p1
325 %patch8 -p1
326 %patch9 -p1
327 %{?with_no_dynamic_context:%patch10 -p1}
328
329 install %{SOURCE9} package-management.txt
330
331 cp -a compat.h vserver-compat.h
332
333 %build
334 %if %{with dietlibc}
335 CFLAGS="%{rpmcflags} -D__GLIBC__"
336 %endif
337 %{__aclocal} -I m4
338 %{__automake}
339 %{__autoconf}
340 %configure \
341         --with-initrddir=/etc/rc.d/init.d \
342         --enable-release \
343         --enable-apis=NOLEGACY \
344         %{?with_dietlibc:--enable-dietlibc} \
345         %{!?with_dietlibc:--disable-dietlibc} \
346         MKTEMP=/bin/mktemp \
347         MOUNT=/bin/mount \
348         PS=/bin/ps \
349         UMOUNT=/bin/umount \
350         IP=/sbin/ip \
351         IPTABLES=%{_usrsbin}/iptables \
352         MODPROBE=/sbin/modprobe \
353         NAMEIF=/sbin/nameif \
354         RMMOD=/sbin/rmmod \
355         VCONFIG=/sbin/vconfig \
356         WGET=%{_usrbin}/wget \
357
358 %{__make} all
359 %{?with_doc:%{__make} doc}
360
361 %{__make} -C vproc-%{_vproc_version} \
362         CC="%{__cc}" \
363         CFLAGS="%{rpmcflags}"
364
365 %install
366 rm -rf $RPM_BUILD_ROOT
367 install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d},/dev/pts} \
368         $RPM_BUILD_ROOT{%{_sysconfdir}/vservices,/vservers/.pkg}
369
370 %{__make} install install-distribution \
371         DESTDIR=$RPM_BUILD_ROOT
372
373 cp -a vserver-compat.h $RPM_BUILD_ROOT%{_includedir}
374
375 chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/*
376
377 ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase
378 ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev
379
380 for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do
381         s=`basename $i | sed s/v_//`
382         cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF
383 # IP addresses/interfaces to bound $s service to
384 #IP=10.0.0.1
385 #IP=eth0
386 EOF
387 done
388
389 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \
390         $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide
391 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \
392         $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers
393 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \
394         $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy
395 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \
396         $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr
397 sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \
398         $RPM_BUILD_ROOT/etc/sysconfig/vservers
399
400 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy
401
402 install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices
403 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices
404 install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost
405 install vproc-%{_vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir}
406
407 ln -sf null $RPM_BUILD_ROOT/dev/initctl
408
409 %ifarch %{x8664}
410 sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pkgs/01
411 sed -i 's/glibc\-\[0\-9\]\*\.rpm/glibc64\-\[0\-9\]\*\.rpm/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpmlist.d/00.lst
412 %endif
413
414 # baggins check this: needed but seems unused
415 install -d $RPM_BUILD_ROOT/var/cache/vservers
416
417 %clean
418 rm -rf $RPM_BUILD_ROOT
419
420 %post
421 %{_sbindir}/setattr --barrier /vservers || :
422
423 %post   lib -p /sbin/ldconfig
424 %postun lib -p /sbin/ldconfig
425
426 %post init
427 /sbin/chkconfig --add vrootdevices
428 /sbin/chkconfig --add vprocunhide
429 /sbin/chkconfig --add vservers
430 if [ ! -f /var/lock/subsys/vrootdevices ]; then
431         echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2
432 fi
433 if [ ! -f /var/lock/subsys/vprocunhide ]; then
434         echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2
435 fi
436 if [ ! -f /var/lock/subsys/vservers ]; then
437         echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2
438 fi
439
440 %preun init
441 if [ "$1" = "0" ]; then
442         %service vservers stop
443         %service vprocunhide stop
444         %service vrootdevices stop
445         /sbin/chkconfig --del vservers
446         /sbin/chkconfig --del vprocunhide
447         /sbin/chkconfig --del vrootdevices
448 fi
449
450 %post legacy
451 /sbin/chkconfig --add rebootmgr
452 /sbin/chkconfig --add vservers-legacy
453 if [ ! -f /var/lock/subsys/rebootmgr ] ; then
454         echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2
455 fi
456 if [ ! -f /var/lock/subsys/vservers-legacy ] ; then
457         echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2
458 fi
459
460 %preun legacy
461 if [ "$1" = "0" ]; then
462         %service rebootmgr stop
463         %service vservers-legacy stop
464         /sbin/chkconfig --del rebootmgr
465         /sbin/chkconfig --del vservers-legacy
466 fi
467
468 %triggerpostun build -- %{name}-build < 0.30.210-5.2
469 if [ -f /etc/vservers/.distributions/pld2.0/poldek/poldek.conf.rpmsave ]; then
470         mv -f /etc/vservers/.distributions/{pld2.0,pld-ac}/poldek/poldek.conf.rpmsave
471 fi
472
473 # kill old vserver specific package ignores which are no longer needed
474 l=`egrep '^ignore.*(basesystem|SysVinit|rc-scripts)' /etc/vservers/*/apps/pkgmgmt/base/poldek/etc/poldek.conf -l 2>/dev/null`
475 if [ "$l" ]; then
476         %{__sed} -i -e '/^ignore/s, \(basesystem\|SysVinit\|rc-scripts\),,g' $l
477 fi
478
479 %files
480 %defattr(644,root,root,755)
481 %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt
482 %{?with_doc:%doc doc/*.html}
483 %dir %{_sysconfdir}/vservers
484 %dir %{_sysconfdir}/vservers/.defaults
485 %dir %{_sysconfdir}/vservers/.defaults/apps
486 %dir %{_sysconfdir}/vservers/.defaults/files
487 %{_sysconfdir}/vservers/.defaults/vdirbase
488 %{_sysconfdir}/vservers/.defaults/run.rev
489 %{_sysconfdir}/vservers/vdirbase
490 %{_sysconfdir}/vservers/run.rev
491 /sbin/vshelper
492 %attr(755,root,root) %{_sbindir}/chbind
493 %attr(755,root,root) %{_sbindir}/chcontext
494 %attr(755,root,root) %{_sbindir}/chxid
495 %attr(755,root,root) %{_sbindir}/exec-cd
496 %attr(755,root,root) %{_sbindir}/lsxid
497 %attr(755,root,root) %{_sbindir}/reducecap
498 %attr(755,root,root) %{_sbindir}/setattr
499 %attr(755,root,root) %{_sbindir}/showattr
500 %attr(755,root,root) %{_sbindir}/vattribute
501 %attr(755,root,root) %{_sbindir}/vcontext
502 %attr(755,root,root) %{_sbindir}/vdlimit
503 %attr(755,root,root) %{_sbindir}/vnamespace
504 %attr(755,root,root) %{_sbindir}/vkill
505 %attr(755,root,root) %{_sbindir}/vlimit
506 %attr(755,root,root) %{_sbindir}/vdu
507 %attr(755,root,root) %{_sbindir}/vproc
508 %attr(755,root,root) %{_sbindir}/vps
509 %attr(755,root,root) %{_sbindir}/vpstree
510 %attr(755,root,root) %{_sbindir}/vrsetup
511 %attr(755,root,root) %{_sbindir}/vsched
512 %attr(755,root,root) %{_sbindir}/vserver
513 %attr(755,root,root) %{_sbindir}/vserver-info
514 %attr(755,root,root) %{_sbindir}/vserver-stat
515 %attr(755,root,root) %{_sbindir}/vsomething
516 %attr(755,root,root) %{_sbindir}/vtop
517 %attr(755,root,root) %{_sbindir}/vuname
518 %attr(755,root,root) %{_sbindir}/vwait
519 %dir %{_libdir}/%{name}
520 %dir %{_libdir}/%{name}/defaults
521 %{_libdir}/%{name}/FEATURES.txt
522 %{_libdir}/%{name}/util-vserver-vars
523 %{_libdir}/%{name}/defaults/*
524 %attr(755,root,root) %{_libdir}/%{name}/capchroot
525 %attr(755,root,root) %{_libdir}/%{name}/chain-echo
526 %attr(755,root,root) %{_libdir}/%{name}/check-unixfile
527 %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat
528 %attr(755,root,root) %{_libdir}/%{name}/chroot-sh
529 %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit
530 %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel
531 %attr(755,root,root) %{_libdir}/%{name}/filetime
532 %{_libdir}/%{name}/functions
533 %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive
534 %attr(755,root,root) %{_libdir}/%{name}/lockfile
535 %attr(755,root,root) %{_libdir}/%{name}/mask2prefix
536 %attr(755,root,root) %{_libdir}/%{name}/readlink
537 %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo
538 %attr(755,root,root) %{_libdir}/%{name}/secure-mount
539 %attr(755,root,root) %{_libdir}/%{name}/sigexec
540 %attr(755,root,root) %{_libdir}/%{name}/start-vservers
541 %attr(755,root,root) %{_libdir}/%{name}/vprocunhide
542 %{_libdir}/%{name}/vserver.*
543 %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh
544 %attr(755,root,root) %{_libdir}/%{name}/vshelper
545 %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync
546 %{_mandir}/man8/chbind.8*
547 %{_mandir}/man8/chcontext.8*
548 %{_mandir}/man8/reducecap.8*
549 %{_mandir}/man8/vps.8*
550 %{_mandir}/man8/vpstree.8*
551 %{_mandir}/man8/vserver-stat.8*
552 %{_mandir}/man8/vserver.8*
553 %{_mandir}/man8/vtop.8*
554 %attr(000,root,root) %dir /vservers
555 %attr(755,root,root) %dir /vservers/.pkg
556 %dir %{_localstatedir}/run/vservers
557 %dir %{_localstatedir}/run/vservers.rev
558 %dir %{_localstatedir}/run/vshelper
559 %dir /var/cache/vservers
560
561 %files devel
562 %defattr(644,root,root,755)
563 %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html}
564 %attr(755,root,root) %{_libdir}/lib*.so
565 %{_libdir}/lib*.la
566 %{_includedir}/vserver*.h
567 %{_pkgconfigdir}/*.pc
568
569 %files static
570 %defattr(644,root,root,755)
571 %{_libdir}/libvserver.a
572
573 %files lib
574 %defattr(644,root,root,755)
575 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
576
577 %files init
578 %defattr(644,root,root,755)
579 %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper
580 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices
581 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers
582 %attr(754,root,root) /etc/rc.d/init.d/vprocunhide
583 %attr(754,root,root) /etc/rc.d/init.d/vrootdevices
584 %attr(754,root,root) /etc/rc.d/init.d/vservers
585
586 %files build
587 %defattr(644,root,root,755)
588 %doc contrib/yum*.patch package-management.txt
589 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify
590 %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash
591 %dir %{_sysconfdir}/vservers/.distributions
592 %dir %{_sysconfdir}/vservers/.distributions/.common
593 %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys
594 %dir %{_sysconfdir}/vservers/.distributions/pld-ac
595 %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek
596 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf
597 %attr(755,root,root) %{_libdir}/%{name}/rpm-fake*
598 %dir %{_libdir}/%{name}/distributions
599 %attr(-,root,root) %{_libdir}/%{name}/distributions/defaults
600 %attr(-,root,root) %{_libdir}/%{name}/distributions/pld*
601 %dir %{_libdir}/%{name}/distributions/template
602 %attr(755,root,root) %{_libdir}/%{name}/distributions/template/init*
603 %attr(-,root,root) %{_libdir}/%{name}/distributions/redhat
604 %{_libdir}/%{name}/vserver-build.*
605 %{_libdir}/%{name}/vserver-setup.functions
606 %{_libdir}/%{name}/defaults/fstab
607 %{_libdir}/%{name}/defaults/debootstrap.uri
608 %{_libdir}/%{name}/defaults/vunify-exclude
609 %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt
610 %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker
611 %attr(755,root,root) %{_libdir}/%{name}/vcopy
612 %attr(755,root,root) %{_libdir}/%{name}/vhashify
613 %attr(755,root,root) %{_libdir}/%{name}/vpkg
614 %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker
615 %attr(755,root,root) %{_libdir}/%{name}/vrpm-*
616 %attr(755,root,root) %{_libdir}/%{name}/vserver-build
617 %attr(755,root,root) %{_libdir}/%{name}/vunify
618 %attr(755,root,root) %{_libdir}/%{name}/vyum-worker
619 %attr(755,root,root) %{_sbindir}/vapt-get
620 %attr(755,root,root) %{_sbindir}/vpoldek
621 %attr(755,root,root) %{_sbindir}/vrpm
622 %attr(755,root,root) %{_sbindir}/vyum
623
624 %files -n vserver-distro-fedora
625 %defattr(644,root,root,755)
626 %dir %{_sysconfdir}/vservers/.distributions/fc*
627 %dir %{_sysconfdir}/vservers/.distributions/fc*/apt
628 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list
629 %{_libdir}/%{name}/distributions/fc*
630
631 %files -n vserver-distro-redhat
632 %defattr(644,root,root,755)
633 %dir %{_sysconfdir}/vservers/.distributions/rh*
634 %dir %{_sysconfdir}/vservers/.distributions/rh*/apt
635 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list
636 %{_libdir}/%{name}/distributions/rh*
637
638 %files -n vserver-distro-suse
639 %defattr(644,root,root,755)
640 %dir %{_sysconfdir}/vservers/.distributions/suse*
641 %dir %{_sysconfdir}/vservers/.distributions/suse*/apt
642 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list
643 %{_libdir}/%{name}/distributions/suse*
644
645 %files -n vserver-distro-centos
646 %defattr(644,root,root,755)
647 %{_libdir}/util-vserver/distributions/centos42
648
649 %files legacy
650 %defattr(644,root,root,755)
651 %dir %{_sysconfdir}/vservices
652 %{_sysconfdir}/vservices/*
653 %dir %{_libdir}/%{name}/legacy
654 %attr(755,root,root) %{_libdir}/%{name}/legacy/*
655 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy
656 %attr(754,root,root) /etc/rc.d/init.d/v_*
657 %attr(754,root,root) /etc/rc.d/init.d/rebootmgr
658 %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy
659 %attr(755,root,root) %{_sbindir}/vserver-copy
660 %{_mandir}/man8/distrib-info.8*
661 %{_mandir}/man8/rebootmgr.8*
662 %{_mandir}/man8/vserver-copy.8*
This page took 0.082653 seconds and 2 git commands to generate.