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