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