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