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