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