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