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